/* Soleved Variable Selector Styles */
.soleved-variable-selector {
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

/* Order Summary Styles */
.soleved-order-summary {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.soleved-order-title {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 15px 0;
}

.soleved-order-items {
    margin-bottom: 15px;
}

.soleved-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333333;
}

.soleved-order-item:last-child {
    margin-bottom: 0;
}

.soleved-item-name {
    font-weight: 500;
}

.soleved-item-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.soleved-current-price {
    font-weight: 500;
    color: #333333;
}

.soleved-original-price {
    font-size: 12px;
    color: #999999;
    text-decoration: line-through;
}

.soleved-order-totals {
    border-top: 1px solid #e5e5e5;
    padding-top: 15px;
}

.soleved-total-original-price {
    font-size: 14px;
    color: #333333;
    margin-bottom: 8px;
}

.soleved-savings {
    font-size: 14px;
    color: #28a745;
    font-weight: 500;
}

.soleved-savings strong {
    font-weight: 700;
}

/* Product Bundles Section */
.soleved-product-bundles {
    margin-bottom: 30px;
}

.soleved-bundle-option {
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.soleved-bundle-option:hover {
    border-color: #007cba;
    box-shadow: 0 2px 10px rgba(0, 124, 186, 0.1);
}

.soleved-bundle-option.soleved-selected {
    border-color: #007cba;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.2);
}

.soleved-bundle-option.soleved-selected-bg {
    /* Default; overridden by inline style from plugin setting */
    background: #feee2e;
    border-color: #feee2e;
}

.soleved-bundle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    margin: 0;
    position: relative;
    gap: 15px;
}

.soleved-bundle-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.soleved-bundle-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-left: auto;
    flex: 1;
}

.soleved-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    align-self: flex-end;
}

/* Most Popular badge - Red background */
.soleved-badge-popular {
    background: #ff0000;
    color: #ffffff;
}

/* Best Value badge - Green background */
.soleved-badge-value {
    background: #4eff33;
    color: #000000;
}

.soleved-bundle-image {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
}

.soleved-product-image {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid #e5e5e5;
}

.soleved-product-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.soleved-product-placeholder {
    color: #666666;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}

.soleved-product-count {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    text-align: center;
}

.soleved-bundle-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.soleved-price-per-item {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    white-space: nowrap;
}

.soleved-shipping-badge {
    font-size: 11px;
    font-weight: 600;
    color: #28a745;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.soleved-total-price {
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    white-space: nowrap;
    margin-top: 4px;
}

.soleved-original-total {
    font-size: 12px;
    font-weight: 400;
    color: #999999;
    text-decoration: line-through;
    margin-left: 8px;
}

.soleved-bundle-middle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
    min-width: 120px;
    flex: 1;
}

.soleved-savings-badge {
    color: #ff6b35;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
    display: inline-block;
}

.soleved-savings-mobile {
    display: none !important;
}

.soleved-radio {
    display: none;
}

/* Pair Selection */
.soleved-pair-selection {
    padding: 4px 10px;
    margin-top: 0px;
}

.soleved-pair-selection:first-of-type {
    border-top: none;
    margin-top: -25px;
}

.soleved-pair-label {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

/* Selection Section */
.soleved-selection-section {
    margin: 15px 0;
    padding: 15px;
    display: block;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.soleved-gender-row {
    display: flex;
    justify-content: flex-start;
}

/* Gender Toggle Switch */
.soleved-gender-toggle {
    display: inline-block;
    position: relative;
}

.soleved-gender-checkbox {
    display: none !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

.soleved-gender-slider {
    display: flex;
    align-items: center;
    background: #e5e5e5;
    border-radius: 20px;
    padding: 3px;
    cursor: pointer;
    position: relative;
    width: 140px;
    height: 32px;
    transition: all 0.3s ease;
}

.soleved-gender-male,
.soleved-gender-female {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
    transition: color 0.3s ease;
    padding: 4px 8px;
    color: #666;
}

.soleved-gender-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: #dc3545;
    border-radius: 17px;
    transition: all 0.3s ease;
    z-index: 1;
    opacity: 1;
}

/* Checked state - moves slider to Female side */
.soleved-gender-checkbox:checked + .soleved-gender-slider::before {
    left: calc(50%);
}

/* Default state: Male is selected (unchecked = Male) */
.soleved-gender-checkbox:not(:checked) + .soleved-gender-slider .soleved-gender-male {
    color: #fff;
}

/* When checked: Female is selected */
.soleved-gender-checkbox:checked + .soleved-gender-slider .soleved-gender-female {
    color: #fff;
}

.soleved-size-row {
    width: 100%;
    margin-top: 0px;
}

.soleved-size-selection {
    width: 100%;
}

.soleved-size-label {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
    text-align: left;
}

/* Compact Size Options */
.soleved-size-options-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.soleved-size-btn-rect {
    min-width: 55px;
    height: 30px;
    padding: 0 10px;
    border: 1.5px solid #e5e5e5;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.soleved-size-btn-rect:hover {
    border-color: #007cba;
    background: #f8f9fa;
}

.soleved-size-btn-rect.soleved-size-selected {
    border-color: #dc3545;
    background: #dc3545;
    color: #ffffff;
}

/* Other Dropdown */
.soleved-size-other-wrapper {
    position: relative;
}

.soleved-other-btn {
    min-width: 70px;
}

.soleved-size-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #ffffff;
    border: 1.5px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 100px;
    max-height: 200px;
    overflow-y: auto;
}

.soleved-dropdown-item {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.soleved-dropdown-item:last-child {
    border-bottom: none;
}

.soleved-dropdown-item:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.soleved-dropdown-item.soleved-size-selected {
    background: #dc3545;
    color: #ffffff;
}

/* Checkout Section */
.soleved-checkout-section {
    text-align: center;
    margin-top: 20px;
}

.soleved-checkout-btn {
    width: 100%;
    padding: 18px 30px;
    background: #ff6b35;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.soleved-checkout-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.soleved-checkout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .soleved-variable-selector {
        margin: 10px;
        padding: 15px;
    }

    .soleved-gender-options {
        justify-content: flex-start;
    }

    .soleved-size-options-grid {
        gap: 4px;
    }

    .soleved-size-option {
        width: 45px;
        height: 45px;
        font-size: 13px;
    }

    .soleved-bundle-content {
        flex-direction: row;
        text-align: left;
        gap: 15px;
        align-items: center;
    }

    .soleved-bundle-image {
        align-items: flex-start;
    }

    .soleved-bundle-right {
        align-items: flex-end;
    }

    .soleved-bundle-price {
        align-items: flex-end;
    }

    .soleved-product-image {
        width: 50px;
        height: 50px;
    }

    .soleved-product-placeholder {
        font-size: 20px;
    }

    /* Mobile: Show only first 3 sizes, then Other button */
    .soleved-size-btn-rect:nth-child(n+4):not(.soleved-other-btn) {
        display: none !important;
    }

    /* Ensure Other button wrapper is always visible on mobile */
    .soleved-size-other-wrapper {
        display: flex !important;
    }
    
    /* Mobile styles for savings badge */
    .soleved-savings-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .soleved-total-price {
        font-size: 12px;
    }
    
    .soleved-original-total {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .soleved-bundle-label {
        padding: 15px;
    }

    .soleved-size-option {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .soleved-checkout-btn {
        padding: 15px 20px;
        font-size: 16px;
    }

    .soleved-price-per-item {
        font-size: 14px;
    }

    .soleved-product-count {
        font-size: 12px;
    }
}

/* Message Styles */
.soleved-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    animation: soleved-slideDown 0.3s ease;
}

.soleved-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.soleved-error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes soleved-slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .soleved-variable-selector {
        margin: 10px;
        padding: 15px;
    }
    
    .soleved-order-summary {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .soleved-order-title {
        font-size: 14px;
    }
    
    .soleved-order-item {
        font-size: 13px;
    }
    
    .soleved-item-price {
        gap: 6px;
    }
    
    .soleved-original-price {
        font-size: 11px;
    }
    
    .soleved-total-original-price,
    .soleved-savings {
        font-size: 13px;
    }
    
    .soleved-option-label {
        padding: 15px;
    }
    
    .soleved-size-selection {
        padding: 2px;
    }
    
    .soleved-option-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .soleved-option-price {
        text-align: left;
        align-self: flex-end;
    }
    
    .soleved-total-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .soleved-shipping {
        text-align: left;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
	
	.soleved-bundle-middle {
		display:none;
	}
	
	.soleved-savings-mobile {
    display: block !important;
    padding:0px;
}
    .soleved-pair-count {
        font-size: 16px;
    }
    
    .soleved-option-price {
        font-size: 14px;
    }
    
    .soleved-checkout-btn {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .soleved-selection-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .soleved-selection-inputs {
        flex-direction: column;
        gap: 12px;
    }
    
    .soleved-gender-select,
    .soleved-size-select {
        width: 100%;
        min-width: auto;
    }
}

/* Debug class to force visual updates */
.soleved-updated {
    animation: soleved-flash 0.1s ease-in-out;
}

@keyframes soleved-flash {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Ensure total price elements are visible and properly styled */
.soleved-total-current {
    font-weight: bold;
    color: #333;
}

.soleved-total-original {
    text-decoration: line-through;
    color: #999;
    margin-left: 5px;
}

/* Checkout info section styles */
.soleved-checkout-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 8px;
}

.soleved-checkout-text {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.soleved-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #ccc;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.soleved-tooltip-icon:hover {
    background-color: #999;
}

.soleved-tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    white-space: normal;
    width: 280px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
    line-height: 1.4;
}

.soleved-tooltip-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}

/* Hide FunnelKit restoration messages for Soleved products */
.wfacp_product_restore_wrap {
    display: none !important;
}

