/**
 * Vybe Cart Drawer & Sticky Bottom Bar (Light Theme Matching vybeocdelivery.com)
 * Author: devsabbirbd
 */

/* Backdrop */
.vybe-cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(1, 16, 37, 0.45);
    backdrop-filter: blur(4px);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vybe-cart-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Slide-out Drawer Panel */
.vybe-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: #FFFFFF !important;
    border-left: 1px solid var(--vybe-bd, #E2E8F0);
    z-index: 99995;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.12);
    color: var(--vybe-tx, #011025);
    font-family: inherit;
}

.vybe-cart-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.vybe-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--vybe-bd, #E2E8F0);
    background: #FFFFFF;
}

.vybe-drawer-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--vybe-tx, #011025);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.3px;
}

.vybe-cart-count-badge {
    color: #00A3A6;
    font-weight: 800;
}

.vybe-drawer-close {
    width: 32px;
    height: 32px;
    background: none;
    border: 0 !important;
    border-radius: 6px;
    color: var(--vybe-tx2, #64748B);
    font-size: 20px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color 0.15s, transform 0.08s;
    padding: 0;
}

.vybe-drawer-close:hover {
    color: #011025;
}

.vybe-drawer-close:active {
    transform: scale(0.92);
}

.vybe-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: #FFFFFF;
}

.vybe-drawer-body .vybe-empty {
    color: var(--vybe-tx2, #64748B) !important;
    font-size: 14.5px !important;
    text-align: center !important;
    padding: 40px 16px !important;
    line-height: 1.5 !important;
}

/* Cart Line Items */
.vybe-lines {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.vybe-line {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #F1F5F9;
    align-items: stretch;
}

.vybe-line-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    display: block;
}

.vybe-line-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vybe-line-info h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--vybe-tx, #011025);
    line-height: 1.25;
}

.vybe-line-info .vybe-notes {
    margin: 3px 0 6px;
    font-size: 12px;
    color: var(--vybe-tx2, #64748B);
}

.vybe-line-info .vybe-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.vybe-line-info .vybe-qty button {
    width: 26px !important;
    height: 28px !important;
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: #011025 !important;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0 !important;
    transition: background 0.1s, border-color 0.1s;
}

.vybe-line-info .vybe-qty button:hover {
    background: #E2E8F0 !important;
    border-color: #94A3B8 !important;
}

.vybe-line-info .vybe-qty span.vybe-qv {
    min-width: 22px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #011025;
}

.vybe-line-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2px 0;
}

.vybe-line-subtotal {
    font-size: 15px;
    font-weight: 800;
    color: #011025;
}

.vybe-line-remove {
    background: transparent !important;
    border: 0 !important;
    color: #94A3B8 !important;
    cursor: pointer;
    padding: 2px !important;
    margin: 0 !important;
    border-radius: 4px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.15s ease, transform 0.08s ease;
}

.vybe-line-remove:hover {
    color: #EF4444 !important;
}

.vybe-line-remove:active {
    transform: scale(0.9);
}

.vybe-line-remove .vybe-ico,
.vybe-line-remove .vybe-trash-svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    display: block !important;
}

/* Order Notes in Cart */
.vybe-cart-notes-wrapper {
    margin: 16px 0 8px;
}

.vybe-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vybe-tx2, #475569);
}

.vybe-field {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 13.5px;
    color: #011025;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
}

.vybe-field:focus {
    border-color: #00FDFE;
    background: #FFFFFF;
}

/* Drawer Footer Totals */
.vybe-drawer-footer {
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--vybe-bd, #E2E8F0);
    background: #FFFFFF;
}

.vybe-totals {
    margin: 0 0 16px;
}

.vybe-totals div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14.5px;
    color: var(--vybe-tx2, #64748B);
}

.vybe-totals dt {
    font-size: 14.5px;
    font-weight: 500;
    color: #64748B;
    margin: 0;
}

.vybe-totals dd {
    font-size: 15px;
    font-weight: 700;
    color: #011025;
    margin: 0;
}

.vybe-total {
    border-top: 1px solid var(--vybe-bd, #E2E8F0);
    margin-top: 10px;
    padding-top: 12px !important;
}

.vybe-total dt {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #011025 !important;
}

.vybe-total dd {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #011025 !important;
}

.vybe-free {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    background: #27c97a;
    color: #011025;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1;
}

.vybe-btn-checkout {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    min-height: 48px !important;
    height: 48px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    background: #00FDFE !important;
    color: #000000 !important;
    border: 1px solid #00FDFE !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 14px rgba(0, 253, 254, 0.35) !important;
    transition: filter 0.15s ease, transform 0.08s ease !important;
    text-decoration: none !important;
}

.vybe-btn-checkout:hover {
    filter: brightness(0.96) !important;
    color: #000000 !important;
}

.vybe-btn-continue {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    background: #FFFFFF !important;
    color: #011025 !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
}

.vybe-btn-continue:hover {
    background: #F8FAFC !important;
    border-color: #94A3B8 !important;
    color: #011025 !important;
}

/* Sticky Bottom Bar (Light Theme) */
.vybe-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99980 !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 auto !important;
    height: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 16px env(safe-area-inset-bottom, 0px) !important;
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    border-radius: 0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
    color: #011025 !important;
    box-sizing: border-box !important;
}

@media (min-width: 768px) {
    .vybe-bar {
        max-width: 760px !important;
        border-radius: 16px 16px 0 0 !important;
        border-left: 1px solid #E2E8F0 !important;
        border-right: 1px solid #E2E8F0 !important;
    }
}

.vybe-bar-cart {
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    user-select: none !important;
}

.vybe-bar-cart .vybe-ico,
.vybe-bar-cart .vybe-cart-icon-svg {
    width: 26px !important;
    height: 26px !important;
    stroke: #011025 !important;
    stroke-width: 2 !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    display: block !important;
}

.vybe-bar .vybe-badge {
    position: absolute !important;
    top: 2px !important;
    right: 1px !important;
    min-width: 19px !important;
    height: 19px !important;
    padding: 0 4px !important;
    border-radius: 10px !important;
    background: #00FDFE !important;
    color: #000000 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 19px !important;
    text-align: center !important;
    box-shadow: 0 0 6px rgba(0, 253, 254, 0.4) !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.vybe-bar-text {
    flex: 1 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #011025 !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
}

.vybe-btn-open-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 22px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    border-radius: 50px !important;
    background: #00FDFE !important;
    color: #000000 !important;
    border: 1px solid #00FDFE !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 12px rgba(0, 253, 254, 0.35) !important;
    transition: filter 0.15s ease, transform 0.08s ease !important;
    text-decoration: none !important;
}

.vybe-btn-open-cart:hover {
    filter: brightness(0.96) !important;
    color: #000000 !important;
}

.vybe-btn-open-cart:active {
    transform: scale(0.97) !important;
}

/* ==========================================================================
   Elementor Menu Cart & WooCommerce Mini Cart Styles (Light Theme)
   ========================================================================== */
.elementor-menu-cart__container {
    background-color: rgba(1, 16, 37, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99998 !important;
}

.elementor-menu-cart__main {
    background-color: #FFFFFF !important;
    border-left: 1px solid #E2E8F0 !important;
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.12) !important;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom)) !important;
    width: 380px !important;
    max-width: 90vw !important;
    color: #011025 !important;
    font-family: inherit !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

/* Title on top of Mini Cart */
.elementor-menu-cart__main::before {
    content: "Your Cart" !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #011025 !important;
    letter-spacing: -0.3px !important;
    display: block !important;
    padding-bottom: 14px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #E2E8F0 !important;
    line-height: 1.2 !important;
}

/* Close Button */
.elementor-menu-cart__close-button {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 32px !important;
    height: 32px !important;
    color: #64748B !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    transition: color 0.15s ease, transform 0.1s ease !important;
    z-index: 2 !important;
}

.elementor-menu-cart__close-button:hover {
    color: #011025 !important;
    transform: scale(1.1) !important;
}

/* Content layout */
.elementor-menu-cart__main .widget_shopping_cart_content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100% !important;
    overflow: hidden !important;
}

/* Products List */
.elementor-menu-cart__products.woocommerce-mini-cart {
    margin: 0 !important;
    padding: 0 4px 0 0 !important;
    flex: 1 !important;
    overflow-y: auto !important;
}

.elementor-menu-cart__products::-webkit-scrollbar {
    width: 5px;
}
.elementor-menu-cart__products::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

.elementor-menu-cart__product.cart_item {
    display: grid !important;
    grid-template-columns: 68px 1fr auto !important;
    gap: 14px !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #F1F5F9 !important;
    align-items: center !important;
}

.elementor-menu-cart__product-image img {
    width: 68px !important;
    height: 68px !important;
    border-radius: 10px !important;
    border: 1px solid #E2E8F0 !important;
    object-fit: cover !important;
    display: block !important;
}

.elementor-menu-cart__product-name {
    margin: 0 !important;
    line-height: 1.3 !important;
}

.elementor-menu-cart__product-name a {
    color: #011025 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.elementor-menu-cart__product-name a:hover {
    color: #008489 !important;
}

.elementor-menu-cart__product-price {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #011025 !important;
    margin-top: 4px !important;
}

.elementor-menu-cart__product-price .product-quantity {
    color: #64748B !important;
    font-weight: 600 !important;
    margin-right: 4px !important;
}

.elementor-menu-cart__product-price .amount {
    color: #011025 !important;
    font-weight: 800 !important;
}

/* Remove button */
.elementor-menu-cart__product-remove a.remove_from_cart_button,
.elementor-menu-cart__product-remove a.elementor_remove_from_cart_button {
    color: #94A3B8 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease !important;
}

.elementor-menu-cart__product-remove a:hover {
    color: #EF4444 !important;
    background: #FEE2E2 !important;
    transform: scale(1.1) !important;
}

/* Subtotal */
.elementor-menu-cart__subtotal {
    border-top: 1px solid #E2E8F0 !important;
    border-bottom: none !important;
    margin-top: 14px !important;
    padding: 14px 0 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #011025 !important;
}

.elementor-menu-cart__subtotal strong {
    font-weight: 800 !important;
    color: #011025 !important;
}

.elementor-menu-cart__subtotal .amount {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #011025 !important;
}

/* Footer Buttons */
.elementor-menu-cart__footer-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: auto !important;
    padding-top: 4px !important;
}

.elementor-menu-cart__footer-buttons .elementor-button {
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: filter 0.15s ease, transform 0.08s ease !important;
}

/* Checkout Button */
.elementor-menu-cart__footer-buttons a.elementor-button--checkout {
    background: #00FDFE !important;
    color: #000000 !important;
    border: 1px solid #00FDFE !important;
    box-shadow: 0 4px 14px rgba(0, 253, 254, 0.35) !important;
    order: 1 !important;
}

.elementor-menu-cart__footer-buttons a.elementor-button--checkout:hover {
    filter: brightness(0.96) !important;
    color: #000000 !important;
}

/* View Cart Button */
.elementor-menu-cart__footer-buttons a.elementor-button--view-cart {
    background: #FFFFFF !important;
    color: #011025 !important;
    border: 1px solid #CBD5E1 !important;
    order: 2 !important;
}

.elementor-menu-cart__footer-buttons a.elementor-button--view-cart:hover {
    background: #F8FAFC !important;
    border-color: #94A3B8 !important;
    color: #011025 !important;
}

/* Empty Cart Message */
.woocommerce-mini-cart__empty-message {
    color: #64748B !important;
    font-size: 15px !important;
    text-align: center !important;
    padding: 30px 10px !important;
    line-height: 1.5 !important;
}
