/* Product Carousel Styles */
.product-carousel {
    margin: 2rem 0;
}

.splide__slide {
    padding: 0.5rem;
}

.modern-product-card {
    height: 100%;
    margin: 0;
}

.splide__track {
    padding: 1rem 0;
}

.product-details {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-title {
    flex-grow: 1;
}

/* Shipping Rates Selection Styles */
.shipping-rates-selection {
    margin: 1rem 0;
    padding: 15px;
}

.shipping-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.shipping-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shipping-method-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 8px;
    border: 2px solid #ddd;
    border-radius: 10rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.shipping-method-label:hover,
.shipping-method-label.selected {
    border-color: #94BE5B;
    background: #e9f6ec;
}

.shipping-method-label input {
    display: none;
}

.shipping-method-text {
    font-weight: 500;
    font-size: 16px;
    color: #555;
}

.shipping-method-price {
    font-weight: bold;
    color: #333;
}

/* Product Card Styles */
.sale-badge {
    position: absolute;
    top: 1rem;
    background: #ff0000;
    color: white;
    padding: 3px 8px;
    border-radius: 0 5px 5px 0;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

/* List View Styles */
.modern-product-card.list-view {
    width: 100% !important;
    max-width: 100% !important;
    /* margin-bottom: 1.5rem; */
    padding-bottom: 0 !important;
    overflow: visible !important;
}

.list-card-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    position: relative;
    width: 100%;
}

.list-image-column {
    flex: 0 0 220px !important;
    width: 220px;
    position: relative;
    padding: 10px;
    background: #f9f9f9;
}

.list-content-column {
    flex: 1 1 auto !important;
    min-width: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-action-column {
    flex: 0 0 220px !important;
    width: 220px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
    border-left: 1px solid #eee;
}

.product-image-container.list-image {
    height: 180px;
    padding: 0;
}

.product-excerpt {
    margin: 10px 0;
    color: #666;
    line-height: 1.5;
}

.product-categories {
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
}

.product-categories a {
    color: #666;
    text-decoration: none;
}

.product-categories a:hover {
    color: #8bc63e;
}

.product-price.list-price {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    text-align: center;
    margin-bottom: 15px;
}

.sale-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.regular-price-only {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.stock-info {
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.in-stock {
    color: #8bc63e;
    font-weight: 600;
}

.out-of-stock {
    color: #ff4444;
    font-weight: 600;
}

.list-add-to-cart-button {
    background-color: #8bc63e;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.list-add-to-cart-button:hover {
    background-color: #6fa130;
    transform: translateY(-2px);
}

.list-add-to-cart-button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.list-product-action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.quantity-selector.list-quantity {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.rating-count {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

/* Delivery Date Picker Styles */
@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.delivery-date-wrapper {
    position: relative;
}

.flatpickr-calendar {
    z-index: 999999 !important;
}

.bd-delivery-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.bd-time-slot {
    flex: 1 1 auto;
    min-width: 130px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.bd-time-slot:hover {
    border-color: #9CC957;
}

.bd-time-slot.selected {
    background: #222;
    color: #fff;
    border-color: #222;
}

.bd-bidfresh-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    margin: 0 0 20px 0;
    background: #FFF8E1;
    border: 1px solid #F0C36D;
    border-left: 4px solid #E0A800;
    border-radius: 6px;
    color: #6B4F00;
    font-size: 14px;
    line-height: 1.5;
}

.bd-bidfresh-notice__icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E0A800;
    color: #fff;
    font-weight: 700;
    text-align: center;
    line-height: 24px;
    font-size: 15px;
}

.bd-bidfresh-notice__body {
    flex: 1;
}

.bd-bidfresh-notice strong {
    color: #5A4200;
}

/* Admin Area Styles */
ul.wc-radios {
    margin-top: 25px !important;
}

ul.wc-radios li {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .list-card-container {
        flex-direction: column;
    }

    .list-image-column,
    .list-content-column,
    .list-action-column {
        width: 100%;
        border-left: none;
    }

    .list-action-column {
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
}

.woocommerce-account .woocommerce-MyAccount-content .invite-card .referral-buttons {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
}

a

/* Create a flex container for price and action */
.modern-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Make the price and action wrapper elements display in a row */
.modern-product-card .product-price {
    position: absolute;
    bottom: 15px;
    left: 15px;
    margin: 0;
    z-index: 1;
}

.modern-product-card .product-action-wrapper {
    position: absolute;
    bottom: 15px;
    right: 15px;
    margin: 0;
    padding: 0;
}

/* Add some bottom padding to the card for the absolute positioned elements */
.modern-product-card {
    padding-bottom: 50px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   Cart announcement banner (offer / threshold)
   ============================================ */
.bidfood-cart-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
    padding: 16px 56px 16px 18px;
    border-radius: 14px;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.45;
    background: linear-gradient(135deg, #ffffff 0%, #f7fdf3 100%);
    border: 1px solid rgba(140, 198, 63, 0.35);
    box-shadow: 0 6px 18px -10px rgba(76, 137, 22, 0.35), 0 2px 4px -2px rgba(15, 23, 42, 0.08);
    animation: bidfoodCartBannerSlide 0.35s ease-out both;
}

.bidfood-cart-banner.is-dismissed {
    display: none;
}

@keyframes bidfoodCartBannerSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bidfood-cart-banner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, #8cc63f 0%, #6aa12b 100%);
}

.bidfood-cart-banner__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #8cc63f 0%, #6aa12b 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px -4px rgba(76, 137, 22, 0.55);
}

.bidfood-cart-banner__icon svg {
    width: 22px;
    height: 22px;
}

.bidfood-cart-banner__body {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 500;
    color: #1f2937;
    word-break: break-word;
}

.bidfood-cart-banner__body strong {
    font-weight: 700;
    color: #4a7d18;
}

.bidfood-cart-banner__close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.bidfood-cart-banner__close:hover,
.bidfood-cart-banner__close:focus-visible {
    background-color: rgba(15, 23, 42, 0.06);
    color: #1f2937;
    outline: none;
}

.bidfood-cart-banner__close svg {
    width: 16px;
    height: 16px;
}

/* Info variant: blue accent for "Add more to unlock" */
.bidfood-cart-banner--info {
    background: linear-gradient(135deg, #ffffff 0%, #f1f7ff 100%);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 6px 18px -10px rgba(37, 99, 235, 0.35), 0 2px 4px -2px rgba(15, 23, 42, 0.08);
}

.bidfood-cart-banner--info::before {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.bidfood-cart-banner--info .bidfood-cart-banner__icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 10px -4px rgba(37, 99, 235, 0.55);
}

.bidfood-cart-banner--info .bidfood-cart-banner__body strong {
    color: #1d4ed8;
}

@media (max-width: 600px) {
    .bidfood-cart-banner {
        padding: 14px 48px 14px 14px;
        gap: 12px;
        font-size: 14px;
    }

    .bidfood-cart-banner__icon {
        width: 36px;
        height: 36px;
    }

    .bidfood-cart-banner__icon svg {
        width: 18px;
        height: 18px;
    }
}