/* Online order page (online-order.html) – menu list, cart and checkout */
.wg-online-order {
    --oo-gold: #c6ac83;
    --oo-line: #3a4447;
    --oo-muted: #b8bec0;
    --oo-bg: #0e1618;
    --oo-panel: #142023;
}

.wg-online-order [hidden] {
    display: none !important;
}

.oo-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.oo-info-item {
    padding: 24px;
    border: 1px solid var(--oo-gold);
    text-align: center;
}

.oo-info-item .title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--oo-gold);
    margin-bottom: 10px;
}

.oo-info-item p {
    margin: 0;
}

.oo-notice {
    padding: 16px 20px;
    margin-bottom: 30px;
    border-left: 3px solid var(--oo-gold);
    background: var(--oo-panel);
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 24px;
}

.oo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
}

/* menu */
.oo-cats {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    margin-bottom: 20px;
    background: var(--oo-bg);
    scrollbar-width: thin;
}

.oo-cats a {
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid var(--oo-line);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

.oo-cats a:hover {
    border-color: var(--oo-gold);
    color: var(--oo-gold);
}

.oo-section {
    margin-bottom: 40px;
    scroll-margin-top: 90px;
}

.oo-section-title {
    font-size: 30px;
    line-height: 40px;
    color: var(--oo-gold);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--oo-line);
}

.oo-dish {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--oo-line);
    transition: background-color .3s;
}

.oo-dish.is-highlight {
    background: var(--oo-panel);
}

.oo-dish-img {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.oo-dish-body {
    flex: 1;
    min-width: 0;
}

.oo-dish-name {
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
}

.oo-dish-name a {
    color: #fff;
}

.oo-dish-name a:hover {
    color: var(--oo-gold);
}

.oo-dish-desc,
.oo-dish-allergens {
    margin: 4px 0 0;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 21px;
    color: var(--oo-muted);
}

.oo-dish-allergens {
    font-size: 12px;
}

.oo-dish-buy {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.oo-dish-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--oo-gold);
    white-space: nowrap;
}

.oo-size {
    max-width: 170px;
    padding: 8px 10px;
    border: 1px solid var(--oo-line);
    background: transparent;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
}

.oo-size option {
    color: var(--oo-bg);
}

.oo-add {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--oo-gold);
    background: transparent;
    color: var(--oo-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    overflow: visible;
    transition: background-color .2s, color .2s;
}

.oo-add:hover,
.oo-add.is-added {
    background: var(--oo-gold);
    color: var(--oo-bg);
}

/* cart */
.oo-cart.slot-booking {
    max-width: none;
    position: sticky;
    top: 100px;
}

.oo-cart-inner {
    padding: 28px;
    border: 1px solid var(--oo-gold);
    background: var(--oo-panel);
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

.oo-cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: var(--oo-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.oo-cart-count {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 16px;
    background: var(--oo-gold);
    color: var(--oo-bg);
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 32px;
    text-align: center;
}

.oo-type {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.oo-type label {
    flex: 1;
    position: relative;
    margin: 0;
}

.oo-type input {
    position: absolute;
    opacity: 0;
}

.oo-type label {
    padding: 10px;
    border: 1px solid var(--oo-line);
    text-align: center;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

.oo-type label:has(input:checked) {
    border-color: var(--oo-gold);
    background: var(--oo-gold);
    color: var(--oo-bg);
}

.oo-type input:focus-visible + * {
    outline: 2px solid var(--oo-gold);
}

.oo-lines {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    font-family: "DM Sans", sans-serif;
}

.oo-line {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--oo-line);
    font-size: 14px;
    line-height: 20px;
}

.oo-line-name span {
    display: block;
    color: var(--oo-muted);
    font-size: 12px;
}

.oo-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.oo-qty button {
    width: 26px;
    height: 26px;
    border: 1px solid var(--oo-line);
    background: transparent;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.oo-qty button:hover {
    border-color: var(--oo-gold);
    color: var(--oo-gold);
}

.oo-line-price {
    min-width: 70px;
    text-align: right;
    white-space: nowrap;
}

.oo-empty {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: var(--oo-muted);
    margin-bottom: 20px;
}

.oo-totals {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
}

.oo-totals > div {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.oo-totals .oo-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--oo-line);
    font-size: 18px;
    font-weight: 600;
    color: var(--oo-gold);
}

.oo-totals-small .oo-total {
    border-top: 0;
    margin-top: 0;
}

.oo-hint {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 19px;
    color: #e0a84a;
}

.oo-checkout-btn {
    width: 100%;
    justify-content: center;
}

.oo-checkout-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.oo-form .sb-field {
    margin-bottom: 18px;
}

.oo-form .sb-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

.oo-pay {
    border: 0;
    padding: 0;
    margin: 0 0 18px;
    min-width: 0;
}

.oo-pay legend {
    float: none;
    width: auto;
}

.oo-pay-option {
    display: block;
    position: relative;
    margin: 0 0 8px;
    padding: 12px 14px 12px 44px;
    border: 1px solid var(--oo-line);
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    transition: border-color .15s;
}

.oo-pay-option input {
    position: absolute;
    left: 16px;
    top: 15px;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--oo-gold);
}

.oo-pay-option:has(input:checked) {
    border-color: var(--oo-gold);
    background: rgba(198, 172, 131, .08);
}

.oo-pay-option:has(input:focus-visible) {
    outline: 2px solid var(--oo-gold);
}

.oo-pay-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
}

.oo-pay-option:has(input:checked) .oo-pay-title {
    color: var(--oo-gold);
}

.oo-pay-text {
    display: block;
    font-size: 13px;
    line-height: 19px;
    opacity: .75;
}

.oo-verify-row {
    display: flex;
    gap: 8px;
}

.oo-verify-row input {
    flex: 1;
    min-width: 0;
}

.oo-verify-btn {
    flex: none;
    padding: 0 14px;
    border: 1px solid var(--oo-gold);
    background: transparent;
    color: var(--oo-gold);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.oo-verify-btn:disabled {
    opacity: .5;
    cursor: default;
}

.oo-verify-code {
    margin-top: 12px;
}

.oo-verify-code input {
    letter-spacing: 4px;
}

.oo-verify-msg {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 19px;
    color: #e0a84a;
}

.oo-verify-msg.is-ok,
.oo-verified {
    color: #6fbf73;
}

.oo-verified {
    font-weight: 600;
    margin-left: 6px;
}

.oo-paypal {
    margin: 4px 0 16px;
    position: relative;
    z-index: 0; /* keeps the PayPal card form below the sticky header */
}

.oo-paypal-note {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 19px;
    opacity: .75;
}

.oo-done {
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 24px;
}

.oo-done-title {
    font-family: 'CormorantInfant', sans-serif;
    font-size: 26px;
    line-height: 34px;
    color: var(--oo-gold);
    margin-bottom: 14px;
}

.oo-done .button-two-line {
    margin: 10px 0 20px;
}

.oo-done .sb-link {
    display: block;
}

.oo-cart-fab {
    display: none;
}

/* order status page */
.oo-status {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--oo-gold);
    background: var(--oo-panel);
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 24px;
}

.oo-steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    gap: 6px;
}

.oo-steps li {
    flex: 1;
    padding-top: 10px;
    border-top: 3px solid var(--oo-line);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--oo-muted);
}

.oo-steps li.done {
    border-top-color: var(--oo-gold);
    color: #fff;
}

.oo-status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--oo-gold);
    color: var(--oo-bg);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 13px;
}

.oo-status-badge.is-cancelled {
    background: #a94442;
    color: #fff;
}

.oo-status table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.oo-status td {
    padding: 8px 0;
    border-bottom: 1px solid var(--oo-line);
}

.oo-status td:last-child {
    text-align: right;
    white-space: nowrap;
}

.oo-status tfoot td {
    border-bottom: 0;
}

.oo-status tfoot tr:last-child td {
    font-size: 18px;
    font-weight: 600;
    color: var(--oo-gold);
}

@media (max-width: 991px) {
    .oo-layout {
        grid-template-columns: minmax(0, 1fr); /* plain 1fr grows to the width of the category scroller */
    }

    .oo-cart.slot-booking {
        position: static;
    }

    .oo-cart-inner {
        max-height: none;
    }

    .oo-cart-fab {
        display: block;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        z-index: 50;
        padding: 14px;
        border: 0;
        background: var(--oo-gold);
        color: var(--oo-bg);
        font-family: "DM Sans", sans-serif;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
    }
}

@media (max-width: 575px) {
    .oo-dish {
        flex-wrap: wrap;
    }

    .oo-dish-img {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .oo-dish-body {
        flex-basis: calc(100% - 80px);
    }

    .oo-dish-buy {
        width: 100%;
        justify-content: flex-end;
    }

    .oo-cart-inner,
    .oo-status {
        padding: 20px;
    }
}
