/**
 * WOW Dynamic Pricing - Frontend CSS v5.7.0
 * Brand Colors: Gold #D4A853, Navy #1A237E
 */

/* ========================================
   DIMENSION INPUTS LAYOUT FIX
   ======================================== */

/* CRITICAL: Width × Height inputs must always stay side-by-side */
.wow-dp-dim-inputs {
    display: flex !important;
    align-items: flex-end !important;
    gap: 12px;
    flex-wrap: nowrap !important;
}

.wow-dp-dim-input {
    flex: 1;
    min-width: 0;
}

.wow-dp-times {
    flex-shrink: 0;
    padding-bottom: 8px;
}

/* ERROR CONTAINER - MUST BE OUTSIDE FLEX FLOW (FIXES LAYOUT BREAK) */
.wow-dp-errors-container {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

/* Error styling */
.wow-dp-error-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border-left: 4px solid #EF4444;
    border-radius: 8px;
    margin-bottom: 6px;
    color: #991B1B;
    font-size: 13px;
    font-weight: 600;
}

.wow-dp-error-item:last-child {
    margin-bottom: 0;
}

.wow-dp-error-item .dashicons {
    font-size: 18px;
    color: #DC2626;
    flex-shrink: 0;
}

/* Error input state */
.wow-dp-input-error {
    border-color: #EF4444 !important;
    background-color: #FEF2F2 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1) !important;
}

/* ========================================
   PRICE DISPLAY
   ======================================== */

/* Price Display at Top of Product Page */
.wow-dp-price-display {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.08) 0%, rgba(212, 168, 83, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.wow-dp-price-label {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.wow-dp-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.wow-dp-regular-price del {
    font-size: 18px;
    font-weight: 600;
    color: #9CA3AF;
    text-decoration: line-through;
}

.wow-dp-separator {
    font-size: 18px;
    color: #9CA3AF;
    font-weight: 300;
}

.wow-dp-sale-price {
    font-size: 28px;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.5px;
}

.wow-dp-unit {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-left: 4px;
}

/* Drag Scroll Support for Paper Carousel */
.wow-dp-paper-carousel-container {
    cursor: grab;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
}

.wow-dp-paper-carousel-container:active {
    cursor: grabbing;
}

.wow-dp-paper-carousel-container::-webkit-scrollbar {
    display: none;
}

@media (max-width: 480px) {
    .wow-dp-sale-price { font-size: 22px; }
    .wow-dp-regular-price del { font-size: 16px; }
}
