:root {
    --black: #222221;
    --accent: #EE8787;
    --accent-soft: #FDF0F0;
    --accent-dark: #D94F4F;
    --grey-text: #898683;
    --grey-light: #F5F4F1;
    --grey-border: #EDECE7;
    --warm-bg: #FBFAF9;
    --white: #ffffff;
}

a { text-decoration: none; }

/* ---- Hours Banner ---- */
.hours-banner {
    background: #FFFBF0;
    border-bottom: 1px solid #F5E6A3;
    padding: 14px 80px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hours-banner-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.hours-banner p {
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    color: #7A6000;
    margin: 0;
    line-height: 22px;
    letter-spacing: -0.2px;
}

/* ---- Back Button ---- */
.back-button-container {
    display: block;
    margin-top: 40px;
    margin-bottom: 40px;
    margin-left: 80px;
    width: fit-content;
}

.back-button {
    background: var(--warm-bg);
    border: 1px solid #F0EFEB;
    border-radius: 300px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover { background: #F0EFEB; }
.back-button img { width: 20px; height: 20px; }

/* ---- Page ---- */
.summary-page {
    margin: 0 80px 80px 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.page-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-title h1 {
    font-family: 'Geist', sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: var(--black);
    margin: 0;
    letter-spacing: -1px;
    line-height: 44px;
}

.page-title p {
    font-family: 'Geist', sans-serif;
    font-size: 17px;
    color: var(--grey-text);
    margin: 0;
    letter-spacing: -0.3px;
}

/* ---- Layout ---- */
.summary-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.summary-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.order-summary {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 32px;
}

/* ---- Cards ---- */
.summary-card,
.form-card {
    background: var(--warm-bg);
    border: 1px solid var(--grey-border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.card-label {
    font-family: 'Geist', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--grey-text);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.card-subtitle {
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    color: var(--grey-text);
    margin: 0;
    line-height: 22px;
    letter-spacing: -0.2px;
}

.card-subtitle strong { color: var(--black); font-weight: 500; }

/* ---- Order Items ---- */
.order-items { display: flex; flex-direction: column; }

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-border);
}

.order-item:first-child { padding-top: 0; }
.order-item:last-child { border-bottom: none; padding-bottom: 0; }

.item-description { display: flex; flex-direction: column; gap: 3px; }

.item-name {
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    color: var(--black);
    line-height: 1.4;
}

.item-description small {
    font-family: 'Geist', sans-serif;
    font-size: 13px;
    color: var(--grey-text);
}

.item-price {
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    white-space: nowrap;
    padding-left: 16px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--black);
}

.total-label {
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
}

.total-amount {
    font-family: 'Geist', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--black);
    letter-spacing: -0.5px;
}

.prep-note {
    font-family: 'Geist', sans-serif;
    font-size: 13px;
    color: var(--grey-text);
    margin: 0;
    font-style: italic;
}

/* ---- Quantity ---- */
.feature-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.feature-info { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.feature-desc {
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    color: var(--grey-text);
    margin: 0;
    line-height: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--grey-border);
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-btn {
    background: none;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 20px;
    color: var(--black);
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.qty-btn:hover { background: var(--grey-light); }

.qty-value {
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    min-width: 32px;
    text-align: center;
    user-select: none;
}

/* ---- Special Instructions ---- */
.summary-card textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--grey-border);
    border-radius: 10px;
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 100px;
    box-sizing: border-box;
}

.summary-card textarea::placeholder { color: #C0BEBB; }
.summary-card textarea:focus { border-color: #C8C7C1; box-shadow: 0 0 0 3px rgba(34,34,33,0.04); }
.summary-card textarea.warning { border-color: #F0AD4E; }
.summary-card textarea.limit { border-color: var(--accent); }

.counter { font-family: 'Geist', sans-serif; font-size: 13px; color: var(--grey-text); text-align: right; }
.counter.warning { color: #F0AD4E; }
.counter.limit { color: var(--accent-dark); font-weight: 500; }

/* ---- Toggle ---- */
.toggle-row { display: flex; gap: 10px; }

.toggle-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--grey-border);
    background: var(--grey-light);
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    color: var(--grey-text);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.toggle-btn.active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
    font-weight: 500;
}

.toggle-btn:not(.active):hover { border-color: #C8C7C1; background: var(--grey-border); }

.delivery-fee-tag { font-size: 11px; opacity: 0.7; }

/* ---- Delivery Address ---- */
.delivery-address-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.delivery-address-field label {
    font-family: 'Geist', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
}

.delivery-address-field input {
    padding: 11px 14px;
    border: 1px solid var(--grey-border);
    border-radius: 10px;
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    color: var(--black);
    background: var(--white);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.delivery-address-field input::placeholder { color: #C0BEBB; }
.delivery-address-field input:focus { border-color: #C8C7C1; box-shadow: 0 0 0 3px rgba(34,34,33,0.04); }

/* ---- Time Select ---- */
.time-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--grey-border);
    border-radius: 10px;
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    color: var(--black);
    background: var(--white);
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23898683' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    box-sizing: border-box;
}

.time-select:focus { border-color: #C8C7C1; box-shadow: 0 0 0 3px rgba(34,34,33,0.04); }

/* ---- Contact Fields ---- */
.contact-fields { display: flex; flex-direction: column; gap: 14px; }

.contact-field { display: flex; flex-direction: column; gap: 6px; }

.contact-field label {
    font-family: 'Geist', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
}

.req { color: var(--accent); font-weight: 400; }

.contact-field input {
    padding: 11px 14px;
    border: 1px solid var(--grey-border);
    border-radius: 10px;
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    color: var(--black);
    background: var(--white);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-field input::placeholder { color: #C0BEBB; }
.contact-field input:focus { border-color: #C8C7C1; box-shadow: 0 0 0 3px rgba(34,34,33,0.04); }
.contact-field input.error { border-color: var(--accent); }
.contact-field input.valid { border-color: #51CF66; }

.field-error {
    font-family: 'Geist', sans-serif;
    font-size: 12px;
    color: var(--accent-dark);
    min-height: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.2s ease, opacity 0.2s ease;
}

.field-error:not(:empty) { height: auto; opacity: 1; margin-top: 2px; }

/* ---- Payment Card ---- */
.payment-card { background: var(--grey-light); }

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--white);
    border-radius: 10px;
    padding: 18px;
    border: 1px solid var(--grey-border);
}

.payment-row { display: flex; flex-direction: column; gap: 4px; }

.payment-label {
    font-family: 'Geist', sans-serif;
    font-size: 11px;
    color: var(--grey-text);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.payment-value {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    letter-spacing: -0.3px;
}

/* ---- Payment value row with copy ---- */
.payment-value-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-btn {
    background: var(--grey-light);
    border: 1px solid var(--grey-border);
    border-radius: 6px;
    padding: 3px 10px;
    font-family: 'Geist', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--black);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover { background: var(--grey-border); }

.copy-btn.copied {
    background: #ECFDF5;
    border-color: #86EFAC;
    color: #166534;
}

.total-row {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--grey-border);
}

.payment-total {
    font-size: 20px;
    letter-spacing: -0.5px;
}

/* ---- Submit ---- */
.confirm-payment-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-family: 'Geist', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-payment-btn:hover:not(:disabled) {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,34,33,0.15);
}

.confirm-payment-btn:active { transform: translateY(0); }

.confirm-payment-btn:disabled {
    background: var(--grey-text);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- Notifications ---- */
.custom-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--grey-border);
    box-shadow: 0 8px 32px rgba(34,34,33,0.1);
    max-width: 380px;
    transform: translateX(calc(100% + 32px));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-notification.show { transform: translateX(0); }

.custom-notification-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Geist', sans-serif;
}

.custom-notification-icon.success { background: rgba(81,207,102,0.12); color: #2f9e44; }
.custom-notification-icon.error   { background: rgba(238,135,135,0.12); color: var(--accent-dark); }
.custom-notification-icon.warning { background: rgba(240,173,78,0.12); color: #e67700; }
.custom-notification-icon.info    { background: rgba(114,112,111,0.1); color: var(--grey-text); }

.custom-notification-content { flex: 1; }

.custom-notification-title {
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    margin: 0 0 4px 0;
}

.custom-notification-message {
    font-family: 'Geist', sans-serif;
    font-size: 13px;
    color: var(--grey-text);
    margin: 0;
    line-height: 1.5;
}

.custom-notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--grey-text);
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.custom-notification-close:hover { color: var(--black); background: var(--grey-light); }

.custom-notification-progress {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--grey-border);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.custom-notification-progress-bar {
    height: 100%;
    background: var(--black);
    width: 100%;
    transform: translateX(-100%);
    transition: transform 5s linear;
}

.custom-notification.show .custom-notification-progress-bar { transform: translateX(0); }

/* ---- Tablet ---- */
@media (min-width: 744px) and (max-width: 1279px) {
    .hours-banner { padding: 14px 64px; }
    .back-button-container { margin-left: 64px; margin-top: 32px; margin-bottom: 32px; }
    .summary-page { margin: 0 64px 64px 64px; gap: 40px; max-width: 82%; }
    .page-title h1 { font-size: 32px; }
    .summary-layout { flex-direction: column; gap: 24px; }
    .order-summary { width: 100%; position: static; }
    .custom-notification { right: 64px; max-width: 340px; }
}

/* ---- Mobile ---- */
@media (min-width: 320px) and (max-width: 743px) {
    .hours-banner { padding: 12px 20px; }
    .back-button-container { margin-left: 20px; margin-top: 24px; margin-bottom: 24px; }
    .summary-page { margin: 0 20px 40px 20px; gap: 20px; }
    .page-title h1 { font-size: 26px; line-height: 32px; }
    .page-title p { font-size: 15px; }
    .summary-layout { flex-direction: column; gap: 16px; }
    .order-summary { width: 100%; position: static; }
    .summary-card, .form-card { padding: 18px 16px; }
    .total-amount { font-size: 18px; }
    .confirm-payment-btn { padding: 15px 20px; font-size: 16px; }
    .custom-notification { top: 16px; right: 16px; left: 16px; max-width: calc(100% - 32px); }
}