/* ==========================================
   OUTER CARD
========================================== */
.ccp-box{
    width:100%;
    border:1px solid #111;
    border-radius:18px;
    overflow:hidden;
    background:#ffffff;
    position:relative;
    font-family:Inter, sans-serif;
}

/* ==========================================
   HEADER
========================================== */
.ccp-header{
    display:grid;
    background:linear-gradient(145deg,#111,#222);
    color:#fff;
    font-weight:600;
    font-size:13px;
    padding:14px 14px;
    border-radius:0 !important;
}

/* ==========================================
   BODY
========================================== */
.ccp-body{
    max-height:240px;
    overflow-y:auto;
    background:#ffffff;
    scrollbar-width:none;
}
.ccp-body::-webkit-scrollbar{ display:none; }

/* ==========================================
   GRID STRUCTURE
========================================== */
.ccp-header,
.ccp-row{
    display:grid;
    width:100%;
    column-gap:28px;
    align-items:center;
}
.ccp-header > div,
.ccp-row > div{
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

/* ==========================================
   ROWS
========================================== */
.ccp-row{
    padding:10px 18px;
    font-size:13px;
    border-bottom:1px solid rgba(0,0,0,.05);
    cursor:pointer;
    transition:background .15s;
}
.ccp-row:last-child{ border-bottom:none; }
.ccp-row:nth-child(even){ background:#f8f8f8; }
.ccp-row:nth-child(even):hover{ background:#fff3e8; }
.ccp-row:hover{ background:#fff3e8; }

/* ==========================================
   PRICE
========================================== */
.ccp-price{ font-weight:600; }

/* ==========================================
   POPULAR
========================================== */
.ccp-popular{ background:#fff3cd !important; }
.ccp-popular:hover{ background:#ffe8a0 !important; }

/* ==========================================
   STAR
========================================== */
.ccp-size-wrapper{ position:relative; display:inline-block; }
.ccp-star{
    position:absolute;
    right:-10px;
    top:0;
    font-size:11px;
    font-weight:600;
    color:#c99a00;
}
.ccp-star::after{
    content:attr(data-note);
    position:absolute;
    top:-14px;
    left:50%;
    transform:translateX(-50%);
    font-size:10px;
    white-space:nowrap;
    opacity:0;
    transition:opacity .2s ease;
}
.ccp-star:hover::after{ opacity:1; }

/* ==========================================
   SCROLL BUTTON
========================================== */
.ccp-scroll-btn{
    position:absolute;
    bottom:16px;
    right:16px;
    width:32px;
    height:32px;
    border-radius:50%;
    background:#111;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    cursor:pointer;
    box-shadow:0 6px 16px rgba(0,0,0,.2);
}

/* ==========================================
   BOOK NOW BUTTON (in row)
========================================== */
.ccp-book-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 16px;
    border-radius:10px;
    background:#FF7601;
    color:#fff;
    font-size:12px;
    font-weight:700;
    font-family:Inter, sans-serif;
    border:none;
    outline:none;
    cursor:pointer;
    white-space:nowrap;
    transition:background .15s, transform .1s, box-shadow .15s;
    box-shadow:0 3px 10px rgba(255,118,1,.35);
    -webkit-tap-highlight-color:transparent;
}
.ccp-book-btn:hover{
    background:#e56a00;
    box-shadow:0 5px 14px rgba(255,118,1,.45);
    transform:translateY(-1px);
}
.ccp-book-btn:active{
    transform:translateY(0);
    box-shadow:0 2px 6px rgba(255,118,1,.3);
}

/* ==========================================
   MODAL BACKDROP
========================================== */
.ccp-modal-back{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    align-items:center;
    justify-content:center;
    z-index:99999;
    padding:16px;
}
.ccp-modal-back.ccp-modal-open{
    display:flex;
}

/* ==========================================
   MODAL BOX
========================================== */
.ccp-modal{
    background:#fff;
    width:100%;
    max-width:580px;
    border-radius:22px;
    padding:26px;
    max-height:92vh;
    overflow-y:auto;
    box-shadow:0 24px 60px rgba(0,0,0,.25);
    font-family:Inter, sans-serif;
}

/* Header row */
.ccp-modal-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
}
.ccp-modal-title{
    font-size:19px;
    font-weight:700;
    color:#111;
    margin:0;
}
.ccp-modal-sub{
    font-size:13px;
    color:#6b7280;
    margin:4px 0 0;
}
.ccp-modal-close{
    width:32px;
    height:32px;
    border-radius:50%;
    border:1.5px solid #e6edf5;
    background:#fff;
    cursor:pointer;
    font-size:14px;
    color:#6b7280;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    transition:background .15s;
}
.ccp-modal-close:hover{ background:#f3f4f6; }

/* ==========================================
   VARIANT BADGE PILLS
========================================== */
.ccp-variant-badge{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
    padding:12px 14px;
    background:#fff8f2;
    border:1.5px solid #ffe0bf;
    border-radius:14px;
}
.ccp-variant-badge span{
    font-size:12px;
    font-weight:600;
    color:#92400e;
    background:#fff;
    border:1px solid #ffd0a0;
    border-radius:8px;
    padding:4px 10px;
    white-space:nowrap;
}
.ccp-variant-badge:empty{ display:none; }

/* ==========================================
   FORM GRID
========================================== */
.ccp-form-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:12px;
    margin-top:16px;
}
.ccp-field{ display:flex; flex-direction:column; }
.ccp-field-full{ grid-column:1 / -1; }

.ccp-field label{
    font-size:12px;
    font-weight:500;
    color:#374151;
    margin-bottom:6px;
}
.ccp-field input,
.ccp-field textarea{
    width:100%;
    min-width:0;
    padding:12px;
    border-radius:12px;
    border:1.5px solid #e6edf5;
    font-size:14px;
    font-family:inherit;
    outline:none;
    transition:border-color .15s;
}
.ccp-field input:focus,
.ccp-field textarea:focus{ border-color:#FF7601; }
.ccp-field textarea{
    resize:vertical;
    min-height:80px;
}

.ccp-notice{
    font-size:11px;
    color:#b45309;
    margin-top:4px;
    display:none;
}

/* ==========================================
   MODAL ACTIONS
========================================== */
.ccp-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:20px;
}
.ccp-cancel-btn{
    padding:13px;
    border-radius:12px;
    border:1.5px solid #e6edf5;
    background:#fff;
    color:#374151;
    font-weight:600;
    font-size:14px;
    font-family:inherit;
    cursor:pointer;
    transition:background .15s;
}
.ccp-cancel-btn:hover{ background:#f3f4f6; }

.ccp-send-btn{
    padding:13px;
    border-radius:12px;
    border:none;
    background:#FF7601;
    color:#fff;
    font-weight:700;
    font-size:14px;
    font-family:inherit;
    cursor:pointer;
    transition:background .15s, box-shadow .15s;
    box-shadow:0 4px 14px rgba(255,118,1,.35);
}
.ccp-send-btn:hover{ background:#e56a00; }
.ccp-send-btn:disabled{ opacity:.6; cursor:not-allowed; }

/* ==========================================
   TOASTS
========================================== */
.ccp-toast{
    position:fixed;
    bottom:24px;
    left:50%;
    transform:translateX(-50%) translateY(80px);
    padding:13px 22px;
    border-radius:12px;
    z-index:100000;
    color:#fff;
    font-weight:600;
    font-size:14px;
    font-family:Inter, sans-serif;
    box-shadow:0 6px 20px rgba(0,0,0,.2);
    opacity:0;
    transition:opacity .3s, transform .3s;
    pointer-events:none;
}
.ccp-toast.ccp-toast-show{
    opacity:1;
    transform:translateX(-50%) translateY(0);
}
.ccp-toast-success{ background:#22c55e; }
.ccp-toast-error  { background:#dc2626; }

/* ==========================================
   MOBILE
========================================== */
@media(max-width:640px){
    .ccp-modal{
        position:fixed;
        bottom:0;
        left:0;
        right:0;
        max-width:none;
        max-height:92vh;
        border-radius:22px 22px 0 0;
        padding:20px 16px 28px;
    }
    .ccp-book-btn{
        padding:7px 11px;
        font-size:11px;
    }
    .ccp-form-grid{
        grid-template-columns:1fr;
    }
    .ccp-field-full{
        grid-column:1;
    }
    .ccp-row{
        column-gap:10px;
    }
}
