/* ==========================================================
   GMD RESTAURANT
   BOOKING POPUP
========================================================== */


/* ==========================================================
   SELECTED BADGE
========================================================== */

.gmd-restaurant-service-card .gmd-selected-badge{

    position:absolute;

    top:12px;
    right:12px;

    background:#16a34a;

    color:#fff;

    padding:4px 10px;

    border-radius:20px;

    font-size:12px;

    font-weight:600;

    display:none;

}

.gmd-restaurant-service-card.active .gmd-selected-badge{

    display:block;

}


/* ==========================================================
   CLOSE BUTTON
========================================================== */

.gmd-restaurant-shell-close{

    width:48px;
    height:48px;

    border:none;
    border-radius:12px;

    background:#f3f4f6;
    color:#6b7280;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:28px;
    line-height:1;

    cursor:pointer;

    transition:.2s ease;

}

.gmd-restaurant-shell-close{

    position:absolute;

    top:18px;

    right:18px;

    width:48px;

    height:48px;

    border:none;

    border-radius:14px;

    background:#f3f4f6;

    font-size:32px;

    cursor:pointer;

    z-index:10;

}


/* ==========================================================
   STEP HEADERS
========================================================== */

.gmd-restaurant-step{

    display:flex;

    align-items:center;

    gap:16px;

    margin-bottom:25px;

}

.gmd-restaurant-step-number{

    width:42px;
    height:42px;

    min-width:42px;

    border-radius:50%;

    background:#2563eb;
    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:700;

    font-size:18px;

}

.gmd-restaurant-step h3{

    margin:0;

}

.gmd-restaurant-step p{

    margin:4px 0 0;

    color:#6b7280;

}


/* ==========================================================
   RESTAURANT SERVICE CARDS
========================================================== */

.gmd-restaurant-service-card{

    border:2px solid #e5e7eb;

    border-radius:14px;

    padding:10px 10px;

    margin-bottom:8px;

    cursor:pointer;

    transition:.25s ease;

    background:#fff;

    position:relative;

}

.gmd-restaurant-service-card:hover{

    border-color:#2563eb;

    box-shadow:0 10px 25px rgba(37,99,235,.12);

}

.gmd-service-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:10px;

}

.gmd-restaurant-service-card h4{

    margin:0;

    font-size:22px;

}

.gmd-restaurant-time{

    background:#eef2ff;

    color:#2563eb;

    padding:6px 12px;

    border-radius:999px;

    font-size:14px;

    font-weight:600;

}

.gmd-restaurant-service-info{

    display:flex;

    gap:20px;

    align-items:center;

}

.gmd-restaurant-discount{

    color:#dc2626;

    font-weight:600;

}

.gmd-restaurant-service-card.active{

    border-color:#2563eb;

    background:#eff6ff;

    box-shadow:0 10px 30px rgba(37,99,235,.18);

    transform:translateY(-2px);

}


/* ==========================================================
   DATE / TIME LAYOUT
========================================================== */

.gmd-restaurant-date-time-layout{

    display:block;

    height:100%;

}

.gmd-restaurant-date-list{

    display:block;

    max-height:430px;

    overflow-y:auto;

    padding-right:8px;

}


/* ==========================================================
   DATE CARDS
========================================================== */

.gmd-restaurant-date-card{

    background:#fff;

    border:2px solid #e5e7eb;

    border-radius:12px;

    padding:12px;

    text-align:center;

    cursor:pointer;

    transition:.2s;

}

.gmd-restaurant-date-card:hover{

    border-color:#2563eb;

}

.gmd-restaurant-date-card.active{

    border-color:#2563eb;

    background:#eff6ff;

}

.gmd-restaurant-date-day{

    display:block;

    font-weight:700;

    font-size:15px;

}

.gmd-restaurant-date-date{

    display:block;

    margin-top:4px;

    color:#6b7280;

    font-size:14px;

}


/* ==========================================================
   BOOKING POPUP - 3 COLUMN LAYOUT
========================================================== */

.gmd-restaurant-shell-content{

    display:grid;

    grid-template-columns:320px 500px 270px;

    gap:10px;

    align-items:start;

}


/* ==========================================================
   COLUMN PANELS
========================================================== */

.gmd-restaurant-shell-left,
.gmd-restaurant-shell-middle,
.gmd-restaurant-shell-right{

    background:#ffffff;

    border:1px solid #e5e7eb;

    border-radius:18px;

    padding:22px;

    height:620px;

    overflow-y:auto;

}


/* ==========================================================
   DATE & TIME PLACEHOLDER
========================================================== */

.gmd-restaurant-date-time-wrap{

    margin-top:20px;

    height:100%;

}


/* ==========================================================
   MAIN POPUP SHELL
========================================================== */

#gmd-restaurant-booking-shell{

    position:fixed;

    inset:0;

    display:none;

    z-index:999999;

}


/* ==========================================================
   POPUP OVERLAY
========================================================== */

.gmd-restaurant-shell-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.6);

}


/* ==========================================================
   POPUP WINDOW
========================================================== */

.gmd-restaurant-shell-window{

    position:relative;

    width:min(1180px,95vw);

    max-height:90vh;

    margin:5vh auto;

    background:#ffffff;

    border-radius:24px;

    padding:20px 25px 25px;

    overflow:hidden;

    box-shadow:0 25px 80px rgba(0,0,0,.25);

}


/* ==========================================================
   TIME LIST
========================================================== */

.gmd-restaurant-time-list{

    display:flex;

    flex-wrap:wrap;

    align-content:flex-start;

    gap:10px;

}


/* ==========================================================
   TIME CARDS
========================================================== */

.gmd-restaurant-time-card{

    min-width:90px;

    padding:12px 16px;

    border:2px solid #e5e7eb;

    border-radius:10px;

    background:#fff;

    cursor:pointer;

    text-align:center;

    transition:.2s;

}

.gmd-restaurant-time-card:hover{

    border-color:#2563eb;

}

.gmd-restaurant-time-card.active{

    border-color:#2563eb;

    background:#eff6ff;

}


/* ==========================================================
   TIME PILLS
========================================================== */

.gmd-restaurant-time-pill{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:72px;

    height:38px;

    padding:0 14px;

    margin:4px;

    border:2px solid #dbe3ef;

    border-radius:10px;

    background:#ffffff;

    color:#111827;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}

.gmd-restaurant-time-pill:hover{

    border-color:#2563eb;

    background:#eff6ff;

}

.gmd-restaurant-time-pill.active{

    background:#2563eb;

    border-color:#2563eb;

    color:#ffffff;

}


/* ==========================================================
   SOLD OUT TIMES
========================================================== */

.gmd-restaurant-time-pill.sold-out{

    min-height:56px;

    height:auto;

    padding:10px 16px;

    display:inline-flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:6px;

    background:#fef2f2;

    border:1px solid #fecaca;

    color:#9ca3af;

    cursor:not-allowed;

}

.gmd-restaurant-sold-out-label{

    display:block;

    margin-top:0;

    font-size:11px;

    font-weight:700;

    line-height:1;

    color:#ef4444;

    letter-spacing:.3px;

    text-transform:uppercase;

}


/* ==========================================================
   DATE ROW
========================================================== */

.gmd-restaurant-date-row{

    display:grid;

    grid-template-columns:100px 1fr;

    gap:16px;

    align-items:center;

    padding:10px 0;

    border-bottom:1px solid #eef2f7;

}

.gmd-restaurant-date-row:last-child{

    border-bottom:none;

}


/* ==========================================================
   DATE TIMES
========================================================== */

.gmd-restaurant-date-times{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

    align-items:center;

}


/* ==========================================================
   LOADING
========================================================== */

.gmd-restaurant-loading{

    color:#6b7280;

    font-size:14px;

}


/* ==========================================================
   MORE TIMES
========================================================== */

.gmd-restaurant-more-times{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    height:38px;

    padding:0 14px;

    border-radius:10px;

    background:#eef2ff;

    color:#2563eb;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

}


/* ==========================================================
   BOOKING SUMMARY
========================================================== */

.gmd-restaurant-summary-details{

    display:flex;

    flex-direction:column;

    gap:16px;

}

.gmd-restaurant-summary-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    font-size:15px;

}

.gmd-restaurant-summary-row span{

    color:#6b7280;

}

.gmd-restaurant-summary-row strong{

    color:#111827;

    font-weight:700;

    text-align:right;

}

.gmd-restaurant-summary-divider{

    height:1px;

    background:#e5e7eb;

    margin:6px 0;

}


/* ==========================================================
   BOOKING FEE
========================================================== */

.gmd-restaurant-summary-fee strong{

    color:#2563eb;

    font-size:18px;

}


/* ==========================================================
   SUMMARY EMPTY STATE
========================================================== */

.gmd-restaurant-summary-empty{

    color:#111827;

}

.gmd-restaurant-summary-empty h4{

    margin-top:0;

    margin-bottom:10px;

    font-size:18px;

}

.gmd-restaurant-summary-empty p{

    margin:0;

    color:#6b7280;

    line-height:1.5;

}


/* ==========================================================
   TERMS
========================================================== */

.gmd-restaurant-summary-terms{

    display:flex;

    gap:10px;

    align-items:flex-start;

    font-size:14px;

    margin-top:20px;

    padding-top:18px;

    border-top:1px solid #e5e7eb;

}

.gmd-restaurant-summary-terms input{

    margin-top:3px;

}

.gmd-restaurant-summary-terms a{

    color:#2563eb;

    text-decoration:none;

}

.gmd-restaurant-summary-terms a:hover{

    text-decoration:underline;

}


/* ==========================================================
   BOOK NOW BUTTON
========================================================== */

.gmd-restaurant-book-now-btn{

    width:100%;

    height:52px;

    margin-top:18px;

    border:none;

    border-radius:12px;

    background:#2563eb;

    color:#fff;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

}

.gmd-restaurant-book-now-btn:hover{

    background:#1d4ed8;

}

.gmd-restaurant-book-now-btn:disabled,
.gmd-restaurant-book-now-btn.gmd-restaurant-disabled{

    background:#d1d5db;

    cursor:not-allowed;

}


/* ==========================================================
   CONDITIONS MODAL
========================================================== */

.gmd-restaurant-conditions-modal{

    position:fixed;

    inset:0;

    display:none;

    z-index:1000000;

}

.gmd-restaurant-conditions-modal.active{

    display:block;

}

.gmd-restaurant-conditions-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.55);

}

.gmd-restaurant-conditions-window{

    position:absolute;

    top:50%;

    left:50%;

    transform:translate(-50%,-50%);

    width:min(700px,90vw);

    max-height:80vh;

    overflow:auto;

    background:#fff;

    border-radius:20px;

    padding:30px;

    box-shadow:0 25px 80px rgba(0,0,0,.30);

    z-index:100;

}

.gmd-restaurant-conditions-close{

    position:absolute;

    top:15px;

    right:15px;

    width:42px;

    height:42px;

    border:0;

    border-radius:10px;

    background:#f3f4f6;

    color:#6b7280;

    font-size:28px;

    cursor:pointer;

}


/* ==========================================================
   MOBILE / TABLET
========================================================== */

@media (max-width:1024px){

    .gmd-restaurant-shell-content{

        grid-template-columns:1fr;

    }

    .gmd-restaurant-shell-left,
    .gmd-restaurant-shell-middle,
    .gmd-restaurant-shell-right{

        height:auto;

        min-height:auto;

    }

    .gmd-restaurant-shell-window{

        overflow-y:auto;

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:767px){

    .gmd-restaurant-shell-window{

        width:96vw;

        max-height:96vh;

        margin:2vh auto;

        padding:15px;

        border-radius:18px;

    }

    .gmd-restaurant-shell-content{

        grid-template-columns:1fr;

    }

    .gmd-restaurant-shell-left,
    .gmd-restaurant-shell-middle,
    .gmd-restaurant-shell-right{

        padding:18px;

    }

    .gmd-restaurant-date-row{

        grid-template-columns:1fr;

    }

    .gmd-restaurant-shell-close{

        top:10px;

        right:10px;

    }

}