/* WVP Public Styles */

/* VIP Pricing Display */
.wvp-vip-price-active {
    color: #d4a017;
    font-weight: bold;
}

.wvp-vip-price-teaser {
    color: #666;
    font-size: 0.9em;
}

.wvp-vip-label {
    background: #d4a017;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 5px;
    vertical-align: top;
}

.wvp-savings-badge {
    background: #28a745;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
    white-space: nowrap;
    display: inline-block;
}

/* VIP Status Notice */
.wvp-vip-status-notice {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    border: 1px solid #d4a017;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wvp-vip-badge {
    background: #d4a017;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.wvp-vip-message {
    color: #856404;
    font-weight: 500;
    margin: 0;
}

/* Product Badges */
.wvp-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.wvp-vip-active {
    background: #d4a017;
    color: #fff;
}

.wvp-vip-available {
    background: #17a2b8;
    color: #fff;
}

/* VIP Teaser on Shop */
.wvp-vip-teaser {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    text-align: center;
}

.wvp-teaser-text {
    color: #495057;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
}

/* Single Product VIP Info */
.wvp-single-vip-notice {
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.wvp-single-vip-notice.vip-active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
}

.wvp-single-vip-notice.vip-teaser {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
}

.wvp-single-vip-notice h4 {
    margin-top: 0;
    color: #495057;
}

.wvp-vip-price-preview {
    font-size: 18px;
    font-weight: bold;
    color: #d4a017;
    margin: 10px 0;
}

.wvp-login-button {
    background: #007cba;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

.wvp-login-button:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

.wvp-upgrade-message {
    color: #856404;
    font-style: italic;
}

/* Checkout VIP Section */
.wvp-checkout-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.wvp-checkout-section h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wvp-tooltip {
    cursor: help;
    color: #6c757d;
}

.wvp-tooltip:hover {
    color: #495057;
}

.wvp-code-input-wrapper {
    margin-top: 15px;
}

.wvp-code-input-wrapper .form-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin: 0;
}

.wvp-code-input-wrapper input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Ensure WooCommerce checkout form fields aren't affected by health quiz styles */
.woocommerce-checkout .woocommerce-billing-fields input[type="text"],
.woocommerce-checkout .woocommerce-billing-fields input[type="email"],
.woocommerce-checkout .woocommerce-billing-fields input[type="tel"],
.woocommerce-checkout .woocommerce-billing-fields input[type="password"],
.woocommerce-checkout .woocommerce-billing-fields select,
.woocommerce-checkout .woocommerce-billing-fields textarea,
.woocommerce-checkout .woocommerce-shipping-fields input[type="text"],
.woocommerce-checkout .woocommerce-shipping-fields input[type="email"],
.woocommerce-checkout .woocommerce-shipping-fields input[type="tel"],
.woocommerce-checkout .woocommerce-shipping-fields input[type="password"],
.woocommerce-checkout .woocommerce-shipping-fields select,
.woocommerce-checkout .woocommerce-shipping-fields textarea,
.woocommerce-checkout .woocommerce-additional-fields input[type="text"],
.woocommerce-checkout .woocommerce-additional-fields input[type="email"],
.woocommerce-checkout .woocommerce-additional-fields input[type="tel"],
.woocommerce-checkout .woocommerce-additional-fields input[type="password"],
.woocommerce-checkout .woocommerce-additional-fields select,
.woocommerce-checkout .woocommerce-additional-fields textarea,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100% !important;
    max-width: none !important;
    padding: 0.6180469716em !important;
    margin: 0 0 1em !important;
    border: 1px solid #ddd !important;
    border-radius: 2px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    line-height: normal !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #333 !important;
    transition: none !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: auto !important;
}

.woocommerce-checkout .woocommerce-billing-fields input[type="text"]:focus,
.woocommerce-checkout .woocommerce-billing-fields input[type="email"]:focus,
.woocommerce-checkout .woocommerce-billing-fields input[type="tel"]:focus,
.woocommerce-checkout .woocommerce-billing-fields input[type="password"]:focus,
.woocommerce-checkout .woocommerce-billing-fields select:focus,
.woocommerce-checkout .woocommerce-billing-fields textarea:focus,
.woocommerce-checkout .woocommerce-shipping-fields input[type="text"]:focus,
.woocommerce-checkout .woocommerce-shipping-fields input[type="email"]:focus,
.woocommerce-checkout .woocommerce-shipping-fields input[type="tel"]:focus,
.woocommerce-checkout .woocommerce-shipping-fields input[type="password"]:focus,
.woocommerce-checkout .woocommerce-shipping-fields select:focus,
.woocommerce-checkout .woocommerce-shipping-fields textarea:focus,
.woocommerce-checkout .woocommerce-additional-fields input[type="text"]:focus,
.woocommerce-checkout .woocommerce-additional-fields input[type="email"]:focus,
.woocommerce-checkout .woocommerce-additional-fields input[type="tel"]:focus,
.woocommerce-checkout .woocommerce-additional-fields input[type="password"]:focus,
.woocommerce-checkout .woocommerce-additional-fields select:focus,
.woocommerce-checkout .woocommerce-additional-fields textarea:focus,
.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="email"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout input[type="password"]:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #999 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Override any label styles that might be affecting checkout */
.woocommerce-checkout .woocommerce-billing-fields label,
.woocommerce-checkout .woocommerce-shipping-fields label,
.woocommerce-checkout .woocommerce-additional-fields label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 500 !important;
    color: #333 !important;
    font-size: 14px !important;
    line-height: normal !important;
}

.wvp-verify-button {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.wvp-verify-button:hover {
    background: #218838;
}

.wvp-verify-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.wvp-messages {
    margin-top: 15px;
}

.wvp-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 8px 0;
}

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

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

.wvp-message.loading {
    background: #d1ecf1;
    border: 1px solid #b8daff;
    color: #0c5460;
}

/* Package Pages */
.wvp-package-page {
    max-width: 1000px;
    margin: 0 auto;
}

.wvp-package-configuration {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.wvp-package-sizes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.wvp-package-size {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 80px;
}

.wvp-package-size:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.wvp-package-size.selected {
    background: #d4a017;
    border-color: #b8860b;
    color: #fff;
}

.wvp-package-size-label {
    font-weight: bold;
    display: block;
}

.wvp-package-size-discount {
    font-size: 12px;
    opacity: 0.8;
}

/* Discount Table */
.wvp-discount-table {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 30px;
    overflow: hidden;
}

.wvp-discount-table h3 {
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #dee2e6;
}

.wvp-discount-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.wvp-discount-table th,
.wvp-discount-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.wvp-discount-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.wvp-discount-table .vip-column {
    color: #d4a017;
}

.wvp-discount-table .vip-highlight {
    background: #fff3cd;
    color: #856404;
    font-weight: bold;
}

.wvp-user-regular .wvp-discount-table .vip-column {
    filter: blur(2px);
    position: relative;
}

.wvp-user-regular .wvp-discount-table .vip-column::after {
    content: "Samo za VIP";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    filter: none;
}

/* Product Selection */
.wvp-product-selection {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.wvp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.wvp-product-card {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.wvp-product-card:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.wvp-product-card.selected {
    border-color: #d4a017;
    background: #fff3cd;
}

.wvp-product-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wvp-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.wvp-product-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.wvp-product-price {
    color: #6c757d;
    font-size: 13px;
}

.wvp-product-vip-price {
    color: #d4a017;
    font-weight: bold;
}

/* Package Total */
.wvp-package-total {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.wvp-total-breakdown {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wvp-total-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.wvp-total-breakdown li:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
}

.wvp-savings {
    color: #28a745;
}

.wvp-vip-savings {
    color: #d4a017;
}

/* Add to Cart */
.wvp-add-to-cart {
    text-align: center;
}

.wvp-add-to-cart-button {
    background: #d4a017;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wvp-add-to-cart-button:hover {
    background: #b8860b;
}

.wvp-add-to-cart-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Account VIP Status */
.wvp-account-vip-status {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
}

.wvp-vip-status-card {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.wvp-status-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.wvp-status-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #155724;
}

.wvp-status-benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.wvp-status-benefits li {
    padding: 5px 0;
    color: #155724;
}

.wvp-status-benefits li::before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 8px;
}

/* Loading States */
.wvp-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.wvp-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 100;
}

.wvp-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #d4a017;
    border-radius: 50%;
    animation: wvp-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes wvp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wvp-package-sizes {
        justify-content: center;
    }
    
    .wvp-code-input-wrapper .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .wvp-verify-button {
        width: 100%;
    }
    
    .wvp-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .wvp-discount-table {
        font-size: 14px;
    }
    
    .wvp-discount-table th,
    .wvp-discount-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .wvp-package-configuration,
    .wvp-product-selection,
    .wvp-package-total {
        padding: 15px;
    }
    
    .wvp-package-sizes {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
    
    .wvp-products-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .wvp-add-to-cart-button {
        width: 100%;
        padding: 12px 20px;
    }
    
    .wvp-checkout-section {
        padding: 15px;
    }
}

/* Bundle cart presentation */
.wvp-bundle-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.wvp-bundle-item {
    display: block;
}

.wvp-bundle-item--child {
    padding-left: 18px;
    color: #555;
}

.wvp-bundle-prefix {
    margin-right: 6px;
    color: #999;
}

.wvp-bundle-qty {
    font-weight: 600;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}
