/* Delivery Options Styles - Used in cart sidebar footer */
/* Primary styles are now in the Cart Sidebar Footer section below */
/* These are overrides for the compact view (if used separately) */

.delivery-options-section {
    height: 30px;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
    overflow: hidden;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    background-color: #fafbfc;
    cursor: pointer;
}

.delivery-options-section:hover {
    background-color: #f0f4f8;
}

.delivery-options-section.expanded {
    height: auto;
    /* margin-bottom: 15px; */
    padding: 12px 0;
    background-color: #fff;
}

.delivery-options-title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: none;
    padding: 0 8px;
}

.delivery-options-section.expanded .delivery-options-title {
    display: block;
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #333;
    padding: 0 12px;
}

.delivery-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.delivery-option {
    display: flex;
    align-items: center;
    /* padding: 0 8px; */
    background-color: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    /* height: 30px; */
    font-size: 12px;
    /* gap: 6px; */
    user-select: none;
}

.delivery-option:hover {
    background-color: rgba(0, 115, 170, 0.04);
}

.delivery-options-section.expanded .delivery-option {
    /* padding: 8px; */
    /* background-color: transparent;
    border: none;
    border-radius: 4px;
    height: auto;
    font-size: 13px;
    /* gap: 8px; */
    /* margin-bottom: 8px;
    transition: all 0.25s ease; */
}

.delivery-options-section.expanded .delivery-option:last-child {
    margin-bottom: 0;
}

.delivery-options-section.expanded .delivery-option:hover {
    background-color: rgba(0, 115, 170, 0.08);
    border-color: transparent;
    box-shadow: none;
}

.delivery-option-input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #0073aa;
    transition: accent-color 0.2s ease;
}

.delivery-options-section.expanded .delivery-option-input {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
}

.delivery-option-label {
    flex: 1;
    cursor: pointer;
    
    transition: color 0.2s ease;
}

.delivery-options-section.expanded .delivery-option-label {
    flex-direction: column;
    gap: 3px;
}

.delivery-option-name {
    font-weight: 600;
    color: #333;
    font-size: 12px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.delivery-options-section.expanded .delivery-option-name {
    font-size: 13px;
    white-space: normal;
}

.delivery-option-desc {
    font-size: 10px;
    color: #777;
    line-height: 1.3;
    display: none;
}

.delivery-options-section.expanded .delivery-option-desc {
    display: block;
    font-size: 11px;
    color: #666;
}

.delivery-option-cost {
    color: #22c55e;
    font-weight: 700;
    font-size: 12px;
    margin-left: 0;
    flex-shrink: 0;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.delivery-options-section.expanded .delivery-option-cost {
    font-size: 13px;
    margin-left: 4px;
}

.delivery-option-selected {
    background-color: #dbeafe;
    border-color: #0073aa;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.1);
}

/* Shipping Cost Display - Old styles (overridden by footer layout) */
.shipping-cost-display {
    padding: 0;
    margin-bottom: 0;
    border-bottom: none;
    height: auto;
    display: none;
    align-items: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
}

.shipping-cost-display.show {
    display: block;
}

.shipping-cost-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
    font-size: 12px;
    gap: 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.shipping-cost-label {
    color: #999;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.shipping-cost-amount {
    color: #27ae60;
    font-weight: 700;
    font-size: 16px;
    transition: color 0.2s ease;
}

/* Cart Item Styles - Additional */
.cart-item-summary {
    
}

.cart-item-summary-qty {
    font-weight: 700;
    color: #0073aa;
    margin-right: 5px;
}

.cart-item-summary-name {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.cart-item-summary-name:hover {
    color: #0073aa;
}

.cart-item-increcse-decrease {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.cart-item-remove-more,
.cart-item-add-more,
.cart-item-details-toggle {
    background: #ff6b6b45;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    padding: 2px 6px;
    transition: color 0.2s;
}

.cart-item-remove-more:hover,
.cart-item-add-more:hover,
.cart-item-details-toggle:hover {
    color: #005a87;
}

.cart-item-more-details {
    display: none;
    grid-template-columns: 60px 1fr;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.cart-sidebar-item.expanded .cart-item-more-details {
    display: grid;
}

/* Mobile responsiveness for sidebar */
@media (max-width: 600px) {
    .woo-cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .woo-cart-sidebar.open {
        right: 0;
    }
    
    .delivery-option {
        flex-direction: column;
    }
    
    .delivery-option-cost {
        margin-left: 0;
        margin-top: 6px;
    }

    /* Stack two-column layout on mobile */
    .cart-sidebar-footer {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .delivery-options-section {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .cart-sidebar-total {
        border-top: 1px solid #e5e7eb;
    }

    .total-row {
        font-size: 12px;
    }

    .total-row.final-total {
        font-size: 14px;
    }
}

/* Total Breakdown Styles - Already defined in Cart Sidebar Footer section */
/* See cart-sidebar-footer and related styles above */

/* Cart Box Hover Trigger */
.cart-box {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.cart-box:hover {
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Cart Sidebar Footer - Two Column Layout */
.cart-sidebar-footer {
    /* display: grid;
    grid-template-columns: 0.6fr 1fr;
    gap: 0; */
    border-top: 1px solid #e5e7eb;
    background-color: #ffffff;
    padding: 0;
}

/* Left Column - Delivery Options */
.delivery-options-section {
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-right: 2px solid #e5e7eb;
}

.delivery-options-section:hover {
    background-color: #f8f9fa;
}

.delivery-options-section.expanded {
    padding: 15px 12px;
    /* height: auto;
    margin-bottom: 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    position: absolute;
    bottom: 220px;
    width: 210px; */
}

.delivery-options-title {
    display: block !important;
    margin: 0 0 10px 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #555 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    padding: 0 !important;
}

.is_grid_2 {
    grid-template-columns: 50% 50%;
    display: grid;
}
.is_relative_footer{
    position: relative;
    display: flex;
    align-self: self-end;
}

.delivery-options-list {
    /* width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px; */
}

.delivery-option {
    display: flex;
    align-items: center;
    /* padding: 8px; */
    background-color: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    height: auto;
    font-size: 12px;
    /* gap: 6px; */
    user-select: none;
}

.delivery-option:hover {
    background-color: rgba(0, 115, 170, 0.08);
}

/* Shipping Cost Display */
.shipping-cost-display {
    padding: 0;
    display: none;
}

.shipping-cost-display.show {
    display: block;
}

.shipping-cost-row {
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.shipping-cost-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.shipping-cost-amount {
    font-size: 16px;
    font-weight: 700;
    color: #27ae60;
}

/* Right Column - Total Breakdown */
.cart-sidebar-total {
    padding: 15px 12px;
    border-top: none;
    border-bottom: none;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.total-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.total-row.items-total {
    color: #666;
    font-weight: 500;
    padding: 6px 0;
}

.total-row.shipping-total {
    color: #666;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px dotted #e5e7eb;
    margin-bottom: 6px;
    padding-bottom: 6px;
}

.total-row.final-total {
    color: #333333;
    font-weight: 700;
    font-size: 15px;
    padding-top: 6px;
}

.total-label {
    font-weight: 600;
    color: #555;
}

.items-total-amount,
.shipping-total-amount,
.total-amount {
    font-weight: 700;
    color: inherit;
}

/* Cart Sidebar Buttons */
.cart-sidebar-buttons {
    grid-column: 1 / -1;
    padding: 15px 12px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e5e7eb;
    background-color: #fafbfc;
}

.checkout-btn {
    flex: 1;
    background-color: #ff6b6b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
    text-transform: capitalize;
}

.checkout-btn:hover {
    background-color: #ff5252 !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.checkout-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(255, 107, 107, 0.2);
}
