/**
 * Variation & PreOrder Manager - Frontend Styles
 *
 * @package Variation_PreOrder_Manager
 * @since 1.0.0
 */

/* ============================================
   1. TOAST NOTIFICATIONS
   ============================================ */
.vpm-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 320px;
    max-width: 450px;
    padding: 0;
    background: #0E1D3F;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.vpm-toast.vpm-toast-show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.vpm-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    min-width: 50px;
    background: rgba(255, 255, 255, 0.1);
}

.vpm-toast-icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.vpm-toast-content {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vpm-toast-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    color: #ffffff;
}

.vpm-toast-message {
    font-size: 13px;
    opacity: 0.9;
    color: #ffffff;
}

.vpm-toast-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    background: none;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.vpm-toast-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Toast Types - All use same dark blue background */
.vpm-toast.vpm-toast-success .vpm-toast-icon {
    background: rgba(40, 167, 69, 0.3);
}

.vpm-toast.vpm-toast-error .vpm-toast-icon {
    background: rgba(220, 53, 69, 0.3);
}

.vpm-toast.vpm-toast-warning .vpm-toast-icon {
    background: rgba(255, 193, 7, 0.3);
}

.vpm-toast.vpm-toast-info .vpm-toast-icon {
    background: rgba(23, 162, 184, 0.3);
}

/* ============================================
   2. MORE INFO BUTTON (Loop Grid)
   ============================================ */
/* RESET ALL STYLES - Allow Elementor to fully control */
.vpm-more-info-btn,
span.vpm-more-info-btn,
h2 span.vpm-more-info-btn,
.elementor-heading-title span.vpm-more-info-btn {
    all: unset !important;
    display: inline !important;
    color: inherit !important;
    font: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    text-decoration: inherit !important;
    cursor: pointer !important;
}

/* ============================================
   3. POPUP CONTENT ENHANCEMENTS
   ============================================ */

/* Popup container inside Elementor popup */
.vpm-popup-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Image styling */
.vpm-popup-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Price styling */
.vpm-popup-price {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.vpm-popup-price del {
    color: #999;
    font-weight: 400;
}

.vpm-popup-price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* Attribute pills */
.vpm-popup-attributes span {
    background: #f4f4f4;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
}

/* Stock status */
.vpm-popup-stock {
    font-size: 13px;
    font-weight: 600;
}

.vpm-popup-stock.in-stock {
    color: #28a745;
}

.vpm-popup-stock.out-of-stock {
    color: #dc3545;
}

/* ============================================
   4. ADD TO CART BUTTON (Popup)
   ============================================ */
.vpm-add-to-cart-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #2271b1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.vpm-add-to-cart-btn:hover {
    background: #135e96;
    transform: translateY(-1px);
}

.vpm-add-to-cart-btn:disabled,
.vpm-add-to-cart-btn.loading {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.vpm-add-to-cart-btn.loading {
    position: relative;
}

.vpm-add-to-cart-btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid #666;
    border-top-color: transparent;
    border-radius: 50%;
    animation: vpm-spin 0.8s linear infinite;
    vertical-align: middle;
}

.vpm-add-to-cart-btn.added {
    background: #28a745;
    color: #fff;
}

/* ============================================
   5. PRE-ORDER FORM (Popup & Product Page)
   ============================================ */
.vpm-preorder-form-wrap {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.vpm-preorder-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vpm-preorder-form input[type="text"],
.vpm-preorder-form input[type="email"],
.vpm-preorder-form input[type="tel"] {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vpm-preorder-form input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
    outline: none;
}

.vpm-preorder-form input.error {
    border-color: #dc3545;
}

.vpm-preorder-submit-btn {
    display: inline-block;
    width: 100%;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #e67e22;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.vpm-preorder-submit-btn:hover {
    background: #d35400;
}

.vpm-preorder-submit-btn:disabled,
.vpm-preorder-submit-btn.loading {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.vpm-preorder-submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid #666;
    border-top-color: transparent;
    border-radius: 50%;
    animation: vpm-spin 0.8s linear infinite;
    vertical-align: middle;
}

/* Pre-order message */
.vpm-preorder-msg {
    font-size: 13px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 4px;
}

.vpm-preorder-msg.success {
    display: block !important;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vpm-preorder-msg.error {
    display: block !important;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   6. PRE-ORDER BUTTON (Product Page)
   ============================================ */
.single_add_to_cart_button.vpm-preorder-btn {
    background: #e67e22 !important;
    border-color: #e67e22 !important;
    color: #fff !important;
}

.single_add_to_cart_button.vpm-preorder-btn:hover {
    background: #d35400 !important;
    border-color: #d35400 !important;
}

/* ============================================
   7. LOGIN NOTICE (Popup)
   ============================================ */
.vpm-login-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
}

.vpm-login-notice p {
    margin: 0 0 10px;
    color: #856404;
}

.vpm-login-notice a {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.vpm-login-notice a:hover {
    background: #135e96;
}

/* ============================================
   8. ANIMATIONS
   ============================================ */
@keyframes vpm-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes vpm-shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.vpm-shake {
    animation: vpm-shake 0.5s ease;
}

/* ============================================
   9. RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    /* Popup content stacked */
    .vpm-popup-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 15px !important;
    }

    /* Toast full width on mobile */
    .vpm-toast {
        left: 10px;
        right: 10px;
        max-width: none;
        min-width: auto;
    }

    /* Smaller buttons */
    .vpm-add-to-cart-btn,
    .vpm-preorder-submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .vpm-popup-content {
        padding: 10px !important;
    }

    .vpm-popup-content h2 {
        font-size: 20px !important;
    }

    .vpm-popup-price {
        font-size: 18px !important;
    }
}

/* ============================================
   10. ELEMENTOR POPUP OVERRIDES
   ============================================ */

/* Ensure popup dialog has enough padding */
.elementor-popup-modal .dialog-message {
    padding: 0;
}

/* Fix for Elementor popup content width */
.elementor-popup-modal .vpm-popup-content {
    width: 100%;
}

/* ============================================
   11. CART PAGE / MINI CART BADGES
   ============================================ */
.vpm-preorder-badge {
    display: inline-block;
    background: #e67e22;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    text-transform: uppercase;
}

/* ============================================
   12. LOADING OVERLAY (optional)
   ============================================ */
.vpm-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.vpm-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: vpm-spin 1s linear infinite;
}

/* ============================================
   13. PRE-ORDER FORM OVERLAY
   ============================================ */
.vpm-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vpm-form-overlay.vpm-form-overlay-show {
    opacity: 1;
    visibility: visible;
}

.vpm-form-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.vpm-form-overlay-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.vpm-form-overlay.vpm-form-overlay-show .vpm-form-overlay-content {
    transform: translateY(0);
}

.vpm-form-overlay-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    color: #333;
    font-size: 24px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vpm-form-overlay-close:hover {
    background: #e0e0e0;
    color: #000;
}

.vpm-form-overlay-body {
    padding: 30px;
}

.vpm-form-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Form inside overlay */
.vpm-form-overlay .vpm-preorder-form input[type="text"],
.vpm-form-overlay .vpm-preorder-form input[type="email"],
.vpm-form-overlay .vpm-preorder-form input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

.vpm-form-overlay .vpm-preorder-form input:focus {
    outline: none;
    border-color: #0E1D3F;
}

.vpm-form-overlay .vpm-preorder-form button[type="submit"],
.vpm-form-overlay .vpm-preorder-submit-btn {
    width: 100%;
    padding: 16px;
    background: #0E1D3F;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.vpm-form-overlay .vpm-preorder-form button[type="submit"]:hover,
.vpm-form-overlay .vpm-preorder-submit-btn:hover {
    background: #1a2d5a;
}

.vpm-form-overlay .vpm-preorder-msg {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.vpm-form-overlay .vpm-preorder-msg.error {
    background: #ffebee;
    color: #c62828;
}

.vpm-form-overlay .vpm-preorder-msg.success {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Pre-order completed button state */
.vpm-preorder-btn.vpm-preorder-completed {
    background-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
    pointer-events: none;
}

/* ============================================
   14. MORE INFO OVERLAY
   ============================================ */
.vpm-more-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vpm-more-info-overlay.vpm-overlay-show {
    opacity: 1;
    visibility: visible;
}

.vpm-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.vpm-overlay-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.vpm-more-info-overlay.vpm-overlay-show .vpm-overlay-content {
    transform: translateY(0);
}

.vpm-overlay-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vpm-overlay-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
}

.vpm-overlay-body {
    padding: 20px;
}

.vpm-loading {
    text-align: center;
    padding: 60px 40px;
    color: #666;
    font-size: 16px;
}

/* Style the content inside the overlay */
.vpm-overlay-body .elementor-section,
.vpm-overlay-body .elementor-container {
    width: 100% !important;
    max-width: 100% !important;
}

.vpm-overlay-body img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   15. POPUP CONTENT STYLING
   ============================================ */

/* Main popup content container */
.vpm-popup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
}

/* Image section */
.vpm-popup-image {
    display: flex;
    align-items: flex-start;
}

.vpm-popup-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Details section */
.vpm-popup-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Product name */
.vpm-popup-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

/* Price */
.vpm-popup-price {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

/* Attributes */
.vpm-popup-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vpm-popup-attribute {
    background: #f4f4f4;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
}

.vpm-popup-attribute strong {
    font-weight: 600;
}

/* Description */
.vpm-popup-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Stock status */
.vpm-popup-stock {
    font-size: 13px;
    font-weight: 600;
}

.vpm-popup-stock.in-stock {
    color: #28a745;
}

.vpm-popup-stock.out-of-stock {
    color: #dc3545;
}

/* Add to cart button */
.vpm-popup-add-to-cart,
.vpm-add-to-cart-btn {
    background: #0E1D3F;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.vpm-popup-add-to-cart:hover,
.vpm-add-to-cart-btn:hover {
    background: #1a2d5a;
    transform: translateY(-1px);
}

/* Out of stock button */
.vpm-popup-out-of-stock {
    background: #ccc;
    color: #666;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    width: 100%;
    cursor: not-allowed;
}

/* Login notice */
.vpm-login-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
}

.vpm-login-notice p {
    margin: 0 0 10px;
}

.vpm-login-notice a {
    display: inline-block;
    background: #0E1D3F;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.vpm-login-notice a:hover {
    background: #1a2d5a;
}

/* ============================================
   16. PRE-ORDER SECTION STYLING
   ============================================ */

/* Pre-order section container */
.vpm-preorder-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Pre-order notice text */
.vpm-preorder-notice {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px;
    line-height: 1.5;
}

/* Pre-order trigger button */
.vpm-preorder-trigger-btn {
    width: 100%;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.vpm-preorder-trigger-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.vpm-preorder-trigger-btn.vpm-preorder-completed {
    cursor: default;
}

/* Pre-order form overlay (inside popup) */
.vpm-preorder-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: vpm-fade-in 0.2s ease;
}

@keyframes vpm-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Form container inside overlay */
.vpm-preorder-form-overlay .vpm-preorder-form-container {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    position: relative;
}

/* Close button */
.vpm-preorder-form-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    color: #333;
    font-size: 24px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vpm-preorder-form-close:hover {
    background: #e0e0e0;
    color: #000;
}

/* Form title */
.vpm-preorder-form-title {
    margin: 0 0 25px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
}

/* Form fields */
.vpm-preorder-form .vpm-form-field {
    margin-bottom: 15px;
}

.vpm-preorder-form .vpm-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.vpm-preorder-form .vpm-input:focus {
    outline: none;
    border-color: #0E1D3F;
}

/* Message */
.vpm-preorder-form .vpm-preorder-msg {
    display: none;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

.vpm-preorder-form .vpm-preorder-msg.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vpm-preorder-form .vpm-preorder-msg.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Submit button */
.vpm-preorder-submit-btn {
    width: 100%;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.vpm-preorder-submit-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.vpm-preorder-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .vpm-popup-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vpm-overlay-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .vpm-popup-name {
        font-size: 20px;
    }
    
    .vpm-popup-price {
        font-size: 18px;
    }
    
    .vpm-preorder-form-overlay .vpm-preorder-form-container {
        padding: 20px;
    }
}

/* ============================================
   PRE-ORDER CART DISPLAY
   ============================================ */

/* Pre-order label in cart */
.vpm-preorder-label {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Pre-order label with crossed price */
.product-subtotal del,
.product-price del,
.woocommerce-cart-form__cart-item del {
    color: #999;
    margin-right: 8px;
}

/* In cart button (Remove state) */
.vpm-preorder-btn.vpm-in-cart,
.vpm-preorder-trigger-btn.vpm-in-cart {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

.vpm-preorder-btn.vpm-in-cart:hover,
.vpm-preorder-trigger-btn.vpm-in-cart:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* Elementor Menu Cart Widget - Pre-order display */
.elementor-menu-cart__product-price.product-price .vpm-preorder-label {
    display: block;
    text-align: left;
}

/* WooCommerce Cart Table - Pre-order items */
.woocommerce-cart-form__cart-item .vpm-preorder-label {
    font-size: 11px;
    padding: 3px 10px;
}

/* WooCommerce Mini Cart - Pre-order items */
.woocommerce-mini-cart-item .vpm-preorder-label {
    font-size: 10px;
    padding: 2px 8px;
}

/* Cart page - hide quantity input for pre-order items */
.woocommerce-cart-form__cart-item.vpm-preorder-item .quantity {
    display: none;
}

/* Side cart / mini cart styling for pre-order */
.widget_shopping_cart .vpm-preorder-label,
.elementor-menu-cart__products .vpm-preorder-label {
    margin-top: 4px;
}

