/*
 * Extracted verbatim from webordering/views/layouts/header.php.
 *
 * The existing site inlines this inside the page body, so it lands after
 * every linked stylesheet. It is linked last in index.html for the same
 * reason - several rules here rely on winning over style.css.
 */
.modifiers-list {
        margin-top: 5px;
        padding-left: 10px;
    }

    .modifier-item {
        font-size: 12px;
        color: #666;
        display: block;
        line-height: 1.4;
    }

    .bogo-cart-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: red;
        font-size: 16px;
        font-weight: bold;
    }

    /* ===== My Account Button ===== */
    .login-nav {
        align-items: center;
        gap: 10px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .login-nav .btn-light {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        color: #111827;
        font-weight: 600;
        font-size: 14px;
        padding: 10px 18px;
        border-radius: 12px;
        transition: all 0.25s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .login-nav .btn-light:hover,
    .login-nav .btn-light:focus {
        background: #f3f4f6;
        color: #000;
        border-color: #d1d5db;
        transform: translateY(-1px);
    }

    /* ===== Dropdown ===== */
    .profile-dropdown {
        min-width: 250px;
        border: none;
        border-radius: 18px;
        padding: 12px;
        margin-top: 14px !important;
        background: #fff;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
        animation: dropdownFade 0.2s ease;
        overflow: hidden;
    }

    /* Arrow */
    .profile-dropdown::before {
        content: "";
        position: absolute;
        top: -8px;
        right: 28px;
        width: 16px;
        height: 16px;
        background: #fff;
        transform: rotate(45deg);
        border-radius: 2px;
    }

    /* Menu Item */
    .profile-dropdown .dropdown-item {
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 500;
        color: #111827 !important;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Hover */
    .profile-dropdown .dropdown-item:hover {
        background: #f3f4f6;
        color: #000 !important;
        transform: translateX(4px);
    }

    /* Divider */
    .profile-dropdown .dropdown-divider {
        margin: 10px 0;
        border-top: 1px solid #ececec;
    }

    /* Remove red */
    .profile-dropdown .dropdown-item.text-danger {
        color: #111827 !important;
    }

    /* Animation */
    @keyframes dropdownFade {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Mobile */
    @media (max-width: 576px) {
        .profile-dropdown {
            min-width: 220px;
            right: 0 !important;
            left: auto !important;
        }

        .login-nav .btn-light {
            padding: 9px 14px;
            font-size: 13px;
        }
    }

    .cashback-cart-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: red;
        font-size: 16px;
        font-weight: bold;
    }

    .modifier-error {
        border: 2px solid red;
        border-radius: 8px;
        padding: 8px;
        background-color: #fff5f5;
    }

    .modifier-error h6::after {
        content: ' *Please select an option';
        color: red;
        font-size: 12px;
        font-weight: normal;
    }

    .dining-modal {
        border-radius: 20px;
        overflow: hidden;
    }

    .order-option {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px;
        margin-bottom: 15px;
        border: 2px solid #ececec;
        border-radius: 15px;
        cursor: pointer;
        transition: .25s;
        background: #fff;
    }

    .order-option:hover {
        border-color: #ff5a1f;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    }

    .order-option h5 {
        margin: 0;
        font-weight: 600;
    }

    .order-option small {
        color: #777;
    }

    .disabled-option {
        opacity: .55;
        cursor: not-allowed;
        background: #f8f8f8;
    }

    .disabled-option:hover {
        transform: none;
        border-color: #ececec;
        box-shadow: none;
    }

    .basket-list {
        max-height: 320px;
        overflow: auto;
    }

    .basket-item {
        display: flex;
        align-items: center;
        border: 1px solid #ececec;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 12px;
    }

    .basket-image {
        width: 75px;
        height: 75px;
        object-fit: cover;
        border-radius: 8px;
        margin-right: 15px;
    }

    .basket-info {
        flex: 1;
    }

    .basket-info h5 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }

    .basket-info span {
        color: #ff6200;
        font-weight: bold;
        font-size: 18px;
    }

    .dining-warning-modal {
        border: none;
        border-radius: 22px;
        overflow: hidden;
    }

    .warning-icon {
        width: 80px;
        height: 80px;
        margin: auto;
        background: #fff3cd;
        color: #f59e0b;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 40px;
    }

    .product-list {
        max-height: 350px;
        overflow: auto;
        padding: 5px;
    }

    .product-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 2px solid #efebe7;
        border-radius: 18px;
        padding: 18px;
        margin-bottom: 28px;
        background: #fff;
    }

    .product-left {
        display: flex;
        align-items: center;
        gap: 18px;
        flex: 1;
    }

    .product-image {
        width: 110px;
        height: 110px;
        border-radius: 12px;
        object-fit: cover;
        border: 1px solid #eee;
    }

    .product-name {
        font-size: 22px;
        font-weight: 600;
        color: #222;
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 20px;
        font-weight: 600;
        color: #ff6600;
    }

    .remove-badge {
        background: #ffe5e5;
        color: #dc3545;
        padding: 6px 12px;
        border-radius: 30px;
        font-size: 13px;
        font-weight: 600;
    }

    .btn-warning {
        background: #ff5a1f;
        border: none;
    }

    .btn-warning:hover {
        background: #e34c14;
    }

    .product-list::-webkit-scrollbar {
        width: 6px;
    }

    .product-list::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }

    .dining-warning-modal {
        border: none;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 15px 40px rgba(0, 0, 0, .18);
    }

    .dining-warning-modal .modal-header {
        padding: 20px 20px 0;
    }

    .dining-warning-modal .modal-title {
        font-size: 22px;
        font-weight: 700;
    }

    .dining-warning-modal .modal-body {
        padding: 15px 20px;
    }

    .warning-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 15px;
        border-radius: 50%;
        background: #fff5db;
        color: #f59e0b;
        font-size: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .warning-message {
        text-align: center;
        font-size: 15px;
        color: #555;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .product-list {
        max-height: 240px;
        overflow-y: auto;
    }

    .product-card {
        display: flex;
        align-items: center;
        padding: 10px;
        border: 1px solid #ececec;
        border-radius: 12px;
        margin-bottom: 12px;
        background: #fff;
    }

    .product-left {
        display: flex;
        align-items: center;
        flex: 1;
    }

    .product-image {
        width: 60px;
        height: 60px;
        border-radius: 10px;
        object-fit: cover;
        margin-right: 12px;
    }

    .product-name {
        font-size: 15px;
        font-weight: 600;
        color: #222;
    }

    .product-price {
        font-size: 14px;
        color: #ff6200;
        font-weight: 600;
        margin-top: 4px;
    }

    .remove-badge {
        background: #ffe8e8;
        color: #dc3545;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }

    .modal-footer {
        padding: 15px 20px 20px;
    }

    .btn-switch {
        height: 46px;
        border: none;
        border-radius: 10px;
        background: #ff6200;
        color: #fff;
        font-weight: 600;
        font-size: 16px;
        transition: .25s;
    }

    .btn-switch:hover {
        background: #eb5600;
        color: #fff;
    }

    .btn-cancel {
        height: 46px;
        border: 1px solid #dcdcdc;
        border-radius: 10px;
        background: #fff;
        color: #555;
        font-weight: 600;
        font-size: 16px;
        transition: .25s;
    }

    .btn-cancel:hover {
        background: #f7f7f7;
    }

    .product-list::-webkit-scrollbar {
        width: 6px;
    }

    .product-list::-webkit-scrollbar-thumb {
        background: #d8d8d8;
        border-radius: 10px;
    }

/* On the checkout the basket is already on the page, so the header icon keeps
   its count but stops behaving like a button — no pointer, no hover lift. */
.btn-cart:disabled,
.btn-cart:disabled:hover {
    background-color: var(--color-white);
    cursor: default;
}

/* Selected entry in the account menu.
   Without this it fell through to Bootstrap's own .dropdown-item.active, which
   paints it #0d6efd — a blue panel in a red-themed header. */
.profile-dropdown .dropdown-item.active,
.profile-dropdown .dropdown-item.active:hover,
.profile-dropdown .dropdown-item.active:focus {
    background: var(--color-primary);
    color: var(--color-white) !important;
}
