/* wpvp-popup CSS - Gemini Inspired */
.wpvp-popup {
    z-index: 99999999;
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.7); /* Slightly softer overlay */
}

.wpvp-popup:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0); /* Transparent pseudo-element */
}

.popup-inner {
    max-width: 600px; /* Wider for better content display */
    width: 90%;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff; /* Crisp white background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Deeper, softer shadow */
    overflow: hidden; /* Ensure content stays within rounded corners */
}

.wpvp-popup .popup-inner {
    max-width: 450px; /* Adjusted max-width for popup content */
    border: none; /* Rely on shadow instead of border */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Refined shadow */
    max-height: 85vh; /* More vertical space */
    overflow-x: hidden;
    overflow-y: auto; /* Smooth scroll behavior */
}

.wpvp-popup .popup-content {
    padding: 30px; /* Increased padding for breathing room */
}

.wpvp-popup td {
    padding: 0 0 15px 0; /* Space between table rows */
    margin: 0;
    vertical-align: baseline;
}

.wpvp-popup label {
    font-size: 15px; /* Clean, readable size */
    font-weight: 500; /* Medium weight */
    color: #333; /* Softer black */
    padding: 0 8px 0 0;
}

.wpvp-popup select,
.wpvp-popup input[type="text"],
.wpvp-popup input[type="number"] {
    font-size: 15px;
    padding: 10px 12px; /* Better touch targets */
    margin-bottom: 0;
    border-radius: 5px; /* Rounded corners */
    border: 1px solid #ddd; /* Light grey border */
    background: #f9f9f9; /* Off-white background */
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.wpvp-popup select:focus,
.wpvp-popup input:focus {
    border-color: #4285F4; /* Google Blue on focus */
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2); /* Subtle glow */
}

.wpvp-popup .single_variation_wrap {
    text-align: left;
}

.wpvp-popup .quantity {
    display: none !important; /* Hide quantity wrapper */
}

.wpvp-popup .quantity input.qty {
    flex-grow: 0; /* Prevent excessive growth */
    width: auto; /* Content-based width */
    text-align: center;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    color: #333;
    font-size: 15px;
    box-sizing: border-box;
}

.wpvp-popup .single_add_to_cart_button {
    padding: 12px 25px; /* Generous padding */
    background: #4285F4; /* Google Blue */
    border: none;
    font-weight: 600; /* Bold text */
    color: #fff;
    vertical-align: middle;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    position: relative; /* For spinner positioning */
}

.wpvp-popup .single_add_to_cart_button:hover {
    background-color: #3367D6; /* Darker blue on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.wpvp-popup .single_add_to_cart_button.loading {
    cursor: not-allowed;
    color: transparent !important; /* Hide text during animation */
    background: linear-gradient(90deg, #ff0000, #ff9900, #ff69b4, #ff0000);
    background-size: 400% 100%;
    animation: geminiGradient 2s linear infinite;
    transition: all 0.3s ease;
}

.wpvp-popup .single_add_to_cart_button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm0-14a6 6 0 0 0-6 6h2a4 4 0 0 1 4-4z"/></svg>') no-repeat center;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes geminiGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.wpvp-popup .single_add_to_cart_button:not(.loading) {
    background: #4285F4; /* Restore default background */
    color: #fff; /* Restore default text color */
}

.wpvp-popup .product-title {
    font-size: 22px; /* Prominent title */
    font-weight: 600;
    color: #202124; /* Dark text */
    margin-bottom: 8px;
}

.wpvp-popup .price {
    font-size: 20px;
    color: #4285F4; /* Accent color */
    font-weight: 700;
}

.wpvp-popup .product-title-price {
    margin-bottom: 20px;
    text-align: left;
}

.wpvp-popup-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: #eee;
    width: 30px;
    height: 30px;
    color: #555;
    text-align: center;
    font-size: 24px;
    font-weight: 300;
    line-height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.wpvp-popup-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.reset_variations {
    display: none !important;
}

.wpvp-popup .woocommerce {
    display: block;
    position: relative;
}

.woocommerce form .form-row {
    padding: 0;
    margin-bottom: 15px !important;
}

.wc-pao-addon-field.wc-pao-addon-checkbox {
    border-radius: 4px;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.wc-pao-addon-field.wc-pao-addon-checkbox:checked {
    background-color: #4285F4;
    border-color: #4285F4;
}

.wc-pao-addon-field.wc-pao-addon-checkbox:checked::before {
    content: '\2713';
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
}

.wc-pao-addon {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item.selected:not(.no-stock) {
    color: #4285f4 !important;
}

.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected,
.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio