/* =========================================================
    NOOKS COFFEE & EATERY
    CONFIRM ORDER PAGE STYLESHEET
    MODERN EMERALD GREEN THEME
========================================================= */


/* =========================================================
    RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
    VARIABLES
========================================================= */

:root {
    --green: #123c32;
    --green-2: #1f5a4b;
    --green-3: #2b6857;

    --sage: #dce8df;
    --sage-light: #e9f0eb;

    --cream: #f7f4ed;
    --white: #ffffff;

    --ink: #17221e;
    --muted: #68746e;

    --line: #d8dfda;
}


/* =========================================================
    HTML
========================================================= */

html {
    scroll-behavior: smooth;
}


/* =========================================================
    BODY
========================================================= */

body {
    font-family: "DM Sans", sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}


/* =========================================================
    LINKS
========================================================= */

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
    HEADER
========================================================= */

.site-header {
    width: min(1180px, 92%);
    min-height: 86px;
    margin: 0 auto;
    padding: 0 26px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(18, 60, 50, 0.08);
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 5px 20px rgba(18, 60, 50, 0.05);
}


.brand {
    width: 150px;
    height: 58px;
}


/* =========================================================
    HAMBURGER
========================================================= */

.menu-toggle {
    display: block;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
}


.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 6px auto;
    background: var(--green);
}


/* =========================================================
    CONFIRM MAIN CONTAINER
========================================================= */

.confirm-main {
    width: min(750px, 90%);
    margin: 0 auto;
    padding: 60px 0 100px;
    text-align: center;
}


/* =========================================================
    HEADING & ICON SECTION
========================================================= */

.confirm-heading-section {
    margin-bottom: 45px;
}


.confirm-icon-placeholder {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: var(--sage);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--green);
    box-shadow: 0 8px 25px rgba(18, 60, 50, 0.07);
}


.confirm-heading-section h1 {
    font-family: "Playfair Display", serif;
    color: var(--green);
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}


.confirm-subtitle {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.ordering-closed-message {
    margin: 20px 0 0;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--green);
    background: var(--sage-light);
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
    CONFIRM DETAILS SECTION
========================================================= */

.confirm-details-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 50px;
    text-align: left;
}


.summary-info-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px 30px;
    box-shadow: 0 4px 15px rgba(18, 60, 50, 0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: var(--muted);
    font-weight: 500;
}


.summary-row:last-child {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    font-weight: 700;
    color: var(--green);
}


.summary-value {
    color: var(--ink);
    font-weight: 700;
}

.summary-row:last-child .summary-value {
    color: var(--green);
}


/* =========================================================
    PAYMENT INFO CARD
========================================================= */

.payment-info-card {
    background: var(--sage);
    border-radius: 20px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(18, 60, 50, 0.07);
}


.payment-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--white);
    color: var(--green);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}


.payment-text-group h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}


.payment-text-group p {
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
}


/* =========================================================
    CONFIRM ACTIONS (BUTTONS)
========================================================= */

.confirm-actions {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}


.action-btn {
    flex: 1;
    padding: 16px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}


.cancel-btn {
    background: var(--white);
    color: var(--green);
    border: 1px solid var(--line);
    box-shadow: 0 4px 15px rgba(18, 60, 50, 0.03);
}


.cancel-btn:hover {
    background: var(--sage);
    border-color: var(--green-2);
}


.place-order-btn {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(18, 60, 50, 0.18);
}


.place-order-btn:hover {
    background: var(--green-2);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(18, 60, 50, 0.22);
}

.place-order-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}


/* =========================================================
    MOBILE MENU
========================================================= */

.mobile-menu {
    display: none;
}


/* =========================================================
    RESPONSIVE DESIGN
========================================================= */

@media (max-width: 850px) {
    .site-header {
        width: 94%;
        min-height: 78px;
        padding: 0 20px;
    }

    .confirm-main {
        width: 90%;
        padding: 40px 0 80px;
    }
}


@media (max-width: 520px) {
    .site-header {
        width: 94%;
        min-height: 72px;
        padding: 0 16px;
        border-radius: 0 0 16px 16px;
    }

    .confirm-main {
        width: 90%;
        padding: 30px 0 60px;
    }

    .confirm-heading-section h1 {
        font-size: 30px;
    }

    .confirm-subtitle {
        font-size: 13px;
    }

    .payment-info-card {
        padding: 20px;
        gap: 16px;
    }

    .confirm-actions {
        flex-direction: column;
        gap: 12px;
    }
}