/**
 * PrintSpace Product Page Redesign v3.0
 *
 * Premium B2B print shop design for 360Print.
 * Tight spacing, professional hierarchy, cyan brand accents.
 *
 * @version 3.0.0
 */

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
    /* Brand Colors - Cyan Primary */
    --ps-cyan: #00bcd4;
    --ps-cyan-light: #4dd0e1;
    --ps-cyan-dark: #0097a7;
    --ps-cyan-glow: rgba(0, 188, 212, 0.2);
    --ps-cyan-subtle: rgba(0, 188, 212, 0.06);

    /* Action Colors - Teal for CTA */
    --ps-teal: #1b6f58;
    --ps-teal-dark: #145544;

    /* Neutral Palette */
    --ps-black: #0a0a0a;
    --ps-charcoal: #1a1a2e;
    --ps-slate: #2d3748;
    --ps-gray-700: #374151;
    --ps-gray-600: #4a5568;
    --ps-gray-500: #6b7280;
    --ps-gray-400: #9ca3af;
    --ps-gray-300: #d1d5db;
    --ps-gray-200: #e5e7eb;
    --ps-gray-100: #f3f4f6;
    --ps-gray-50: #f9fafb;
    --ps-white: #ffffff;

    /* Semantic Colors */
    --ps-success: #10b981;
    --ps-warning: #f59e0b;
    --ps-error: #ef4444;

    /* Typography */
    --ps-font: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Spacing Scale (8px base) */
    --ps-space-1: 4px;
    --ps-space-2: 8px;
    --ps-space-3: 12px;
    --ps-space-4: 16px;
    --ps-space-5: 20px;
    --ps-space-6: 24px;
    --ps-space-8: 32px;

    /* Border Radius */
    --ps-radius-sm: 6px;
    --ps-radius-md: 8px;
    --ps-radius-lg: 12px;

    /* Shadows */
    --ps-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --ps-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --ps-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --ps-shadow-cyan: 0 4px 16px rgba(0, 188, 212, 0.25);

    /* Transitions */
    --ps-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ps-transition: 200ms var(--ps-ease);
}

/* ==========================================================================
   Form Container & Layout - Tight Spacing
   ========================================================================== */

.single-product-top form.cart {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.single-product-top form.cart table.variations {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.single-product-top form.cart table.variations tbody {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-4);
}

.single-product-top form.cart table.variations tr {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-2);
}

.single-product-top form.cart table.variations tr:last-child {
    margin-top: var(--ps-space-1);
}

.single-product-top form.cart table.variations td {
    display: block;
    padding: 0;
}

/* ==========================================================================
   Labels - Clean & Compact
   ========================================================================== */

.single-product-top form.cart table.variations .label {
    display: flex;
    align-items: center;
    gap: var(--ps-space-2);
    margin-bottom: var(--ps-space-1);
}

.single-product-top form.cart table.variations .label label {
    font-family: var(--ps-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--ps-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.single-product-top form.cart table.variations .selected-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--ps-cyan-dark);
}

/* ==========================================================================
   Dropdown Selects - Clean, No Dashed Borders
   ========================================================================== */

.single-product-top form.cart table.variations select,
.variations_form select[name^="attribute_"],
select.haru-variation-select-box {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 16px;
    font-family: var(--ps-font);
    font-size: 15px;
    font-weight: 500;
    color: var(--ps-charcoal);
    background-color: var(--ps-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2300bcd4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 16px;
    border: 2px solid var(--ps-gray-200);
    border-radius: var(--ps-radius-md);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color var(--ps-transition), box-shadow var(--ps-transition);
    outline: none;
    box-shadow: none;
}

/* Remove any dashed or dotted borders */
.single-product-top form.cart table.variations select,
.variations_form select[name^="attribute_"],
select.haru-variation-select-box,
.single-product-top select {
    border-style: solid !important;
    outline: none !important;
}

.single-product-top form.cart table.variations select:hover,
.variations_form select[name^="attribute_"]:hover {
    border-color: var(--ps-cyan);
}

.single-product-top form.cart table.variations select:focus,
.variations_form select[name^="attribute_"]:focus {
    border-color: var(--ps-cyan);
    box-shadow: 0 0 0 3px var(--ps-cyan-glow);
}

/* Disabled select state */
.single-product-top form.cart table.variations select:disabled,
.variations_form select[name^="attribute_"]:disabled {
    background-color: var(--ps-gray-50);
    color: var(--ps-gray-400);
    cursor: not-allowed;
    border-color: var(--ps-gray-200);
}

/* ==========================================================================
   Turnaround Date Boxes - Large & Prominent
   ========================================================================== */

.tav-custom-interface {
    --tav-primary-color: var(--ps-cyan);
    --tav-primary-hover: var(--ps-cyan-dark);
    margin: var(--ps-space-4) 0 var(--ps-space-5);
}

/* Section Label for Turnaround */
.tav-custom-interface .tav-section-label,
.tav-label {
    display: flex;
    align-items: center;
    gap: var(--ps-space-2);
    margin-bottom: var(--ps-space-3);
    font-family: var(--ps-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--ps-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Date Boxes Grid - 4 columns on desktop */
.tav-date-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ps-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 1024px) {
    .tav-date-boxes {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tav-date-boxes {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ps-space-2);
    }
}

/* Individual Date Box - Larger & More Prominent */
.tav-date-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--ps-space-5) var(--ps-space-4);
    min-height: 110px;
    background: var(--ps-white);
    border: 2px solid var(--ps-gray-200);
    border-radius: var(--ps-radius-lg);
    cursor: pointer;
    text-align: center;
    transition: all var(--ps-transition);
    user-select: none;
}

.tav-date-box:hover {
    border-color: var(--ps-cyan);
    background: var(--ps-cyan-subtle);
    transform: translateY(-2px);
    box-shadow: var(--ps-shadow-md);
}

/* Selected State - Bold Cyan */
.tav-date-box.selected {
    background: linear-gradient(135deg, var(--ps-cyan) 0%, var(--ps-cyan-dark) 100%) !important;
    border-color: var(--ps-cyan) !important;
    box-shadow: var(--ps-shadow-cyan);
    transform: translateY(-2px);
}

.tav-date-box.selected .tav-date-box-date,
.tav-date-box.selected .tav-date-box-label {
    color: var(--ps-white) !important;
}

/* Checkmark on Selected */
.tav-date-box.selected::before {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 22px !important;
    height: 22px !important;
    background: var(--ps-white) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tav-date-box.selected::after {
    content: '' !important;
    position: absolute !important;
    top: 15px !important;
    right: 17px !important;
    width: 6px !important;
    height: 10px !important;
    border: solid var(--ps-cyan) !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* Date Text */
.tav-date-box-date {
    font-family: var(--ps-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--ps-charcoal);
    margin-bottom: var(--ps-space-2);
    line-height: 1.2;
}

/* Label Text */
.tav-date-box-label {
    font-family: var(--ps-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--ps-gray-500);
    line-height: 1.4;
}

/* Disabled Date Box */
.tav-date-box.tav-date-box-disabled,
.tav-date-box[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   Price Display - Clean Professional Card
   ========================================================================== */

.single-product-top .woocommerce-variation.single_variation,
.single_variation_wrap .woocommerce-variation,
.haru-woo-product-variations form.cart .woocommerce-variation.single_variation {
    position: relative;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ps-space-4);
    padding: var(--ps-space-4) var(--ps-space-5) !important;
    margin: var(--ps-space-3) 0 var(--ps-space-3);
    background: var(--ps-white) !important;
    border: 2px solid var(--ps-gray-200) !important;
    border-left: 4px solid var(--ps-cyan) !important;
    border-radius: var(--ps-radius-md) !important;
    box-shadow: var(--ps-shadow-sm);
    overflow: hidden;
}

/* Remove the top accent line for clean look */
.single-product-top .woocommerce-variation.single_variation::before,
.haru-woo-product-variations form.cart .woocommerce-variation.single_variation::before {
    display: none;
}

/* Price Container */
.single-product-top .woocommerce-variation-price,
.single_variation_wrap .woocommerce-variation-price,
.haru-woo-product-variations form.cart .woocommerce-variation-price {
    flex: 1;
    margin: 0;
}

/* Price Text */
.single-product-top .woocommerce-variation-price .price,
.single_variation_wrap .woocommerce-variation-price .price,
.woocommerce-variation.single_variation .woocommerce-variation-price span.price {
    display: flex !important;
    align-items: baseline;
    gap: 2px;
    font-family: var(--ps-font);
    font-size: 32px !important;
    font-weight: 700;
    color: var(--ps-charcoal) !important;
    line-height: 1;
    letter-spacing: -0.5px;
}

/* Currency Symbol */
.single-product-top .woocommerce-variation-price .price .woocommerce-Price-currencySymbol,
.woocommerce-variation-price span.price .woocommerce-Price-currencySymbol {
    font-size: 20px;
    font-weight: 600;
    color: var(--ps-cyan-dark) !important;
    position: relative;
    top: -4px;
}

/* Fix price amount - remove any borders/boxes */
.single-product-top .woocommerce-variation-price,
.single_variation .woocommerce-variation-price,
.woocommerce-variation.single_variation .woocommerce-variation-price {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.single-product-top .woocommerce-variation-price .price *,
.single-product-top .woocommerce-variation-price .price bdi,
.single-product-top .woocommerce-variation-price bdi,
.single-product-top .woocommerce-variation-price .price span,
.single-product-top .woocommerce-variation-price .woocommerce-Price-amount,
.woocommerce-variation.single_variation .woocommerce-Price-amount,
.woocommerce-variation.single_variation bdi,
.woocommerce-variation-price bdi,
bdi {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Stock Indicator */
.single-product-top .woocommerce-variation-availability,
.single_variation_wrap .woocommerce-variation-availability {
    flex-shrink: 0;
}

.single-product-top .woocommerce-variation-availability .stock,
.single_variation_wrap .woocommerce-variation-availability .stock,
.woocommerce-variation.single_variation .woocommerce-variation-availability .stock {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 14px !important;
    font-family: var(--ps-font);
    font-size: 11px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px !important;
    background: transparent !important;
}

/* In Stock */
.single-product-top .woocommerce-variation-availability .in-stock,
.woocommerce-variation.single_variation .woocommerce-variation-availability .in-stock {
    color: var(--ps-cyan-dark) !important;
    background: rgba(0, 188, 212, 0.1) !important;
    border: 1.5px solid var(--ps-cyan) !important;
}

.single-product-top .woocommerce-variation-availability .in-stock::before,
.woocommerce-variation.single_variation .woocommerce-variation-availability .in-stock::before {
    content: '' !important;
    width: 7px !important;
    height: 7px !important;
    background: var(--ps-cyan) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 4px var(--ps-cyan);
    animation: stockPulse 2s ease-in-out infinite;
}

@keyframes stockPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Out of Stock */
.single-product-top .woocommerce-variation-availability .out-of-stock,
.woocommerce-variation.single_variation .woocommerce-variation-availability .out-of-stock {
    color: var(--ps-error) !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1.5px solid rgba(239, 68, 68, 0.5) !important;
}

/* ==========================================================================
   Orientation Selector - Proper Layout
   ========================================================================== */

.single-product-top .nbdesigner-orientation,
.single-product-top [class*="orientation-wrapper"],
.orientation-selector {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ps-space-2);
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin: var(--ps-space-3) 0;
}

.single-product-top .nbdesigner-orientation label,
.single-product-top .orientation-option,
.orientation-selector label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ps-space-2);
    padding: var(--ps-space-3) var(--ps-space-5);
    min-width: 120px;
    font-family: var(--ps-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--ps-gray-600);
    background: transparent;
    border: 1px solid var(--ps-gray-200);
    border-radius: var(--ps-radius-sm);
    cursor: pointer;
    transition: all var(--ps-transition);
    white-space: nowrap;
    text-align: center;
}

.single-product-top .nbdesigner-orientation label:hover,
.single-product-top .orientation-option:hover,
.orientation-selector label:hover {
    background: transparent;
    color: var(--ps-charcoal);
    border-color: var(--ps-cyan);
}

.single-product-top .nbdesigner-orientation input[type="radio"]:checked + label,
.single-product-top .nbdesigner-orientation label.active,
.single-product-top .orientation-option.selected,
.orientation-selector input[type="radio"]:checked + label {
    background: transparent !important;
    color: var(--ps-charcoal) !important;
    border-color: var(--ps-cyan) !important;
    box-shadow: 0 0 0 1px var(--ps-cyan) !important;
}

.single-product-top .nbdesigner-orientation input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Orientation Icons */
.single-product-top .nbdesigner-orientation label svg,
.orientation-selector label svg,
.orientation-option svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ==========================================================================
   Quantity Input - Compact
   ========================================================================== */

.single-product-top .quantity,
.single_variation_wrap .quantity {
    display: inline-flex;
    align-items: center;
    background: var(--ps-gray-100);
    border-radius: var(--ps-radius-md);
    overflow: hidden;
    height: 48px;
}

.single-product-top .quantity .qty,
.single_variation_wrap .quantity .qty {
    width: 52px;
    height: 100%;
    padding: 0;
    font-family: var(--ps-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--ps-charcoal);
    text-align: center;
    border: none;
    background: transparent;
    -moz-appearance: textfield;
}

.single-product-top .quantity .qty::-webkit-outer-spin-button,
.single-product-top .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single-product-top .quantity button,
.single-product-top .quantity .minus,
.single-product-top .quantity .plus {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--ps-gray-500);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--ps-transition);
}

.single-product-top .quantity button:hover,
.single-product-top .quantity .minus:hover,
.single-product-top .quantity .plus:hover {
    background: var(--ps-cyan);
    color: var(--ps-white);
}

/* ==========================================================================
   Buttons - Professional Action Buttons
   ========================================================================== */

/* Add to Cart Button */
.single-product-top .single_add_to_cart_button,
.single_variation_wrap .single_add_to_cart_button,
.woocommerce-variation-add-to-cart .single_add_to_cart_button,
button.single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px !important;
    min-height: 52px;
    font-family: var(--ps-font);
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ps-white) !important;
    background: var(--ps-teal) !important;
    border: none !important;
    border-radius: var(--ps-radius-md) !important;
    cursor: pointer;
    transition: all var(--ps-transition);
    box-shadow: 0 4px 12px rgba(27, 111, 88, 0.25);
}

.single-product-top .single_add_to_cart_button:hover,
button.single_add_to_cart_button:hover {
    background: var(--ps-teal-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(27, 111, 88, 0.3);
}

/* Disabled State */
.single-product-top .single_add_to_cart_button.disabled,
.single-product-top .single_add_to_cart_button:disabled,
.single_add_to_cart_button.wc-variation-selection-needed {
    background: var(--ps-gray-300) !important;
    color: var(--ps-gray-500) !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Design Button - Cyan */
.single-product-top .nbdesigner_frontend_btn,
.single-product-top [class*="nbdesigner"] .button,
button[class*="nbdesigner"],
a[class*="nbdesigner"].button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px !important;
    min-height: 52px;
    font-family: var(--ps-font);
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ps-white) !important;
    background: linear-gradient(135deg, var(--ps-cyan) 0%, var(--ps-cyan-dark) 100%) !important;
    border: none !important;
    border-radius: var(--ps-radius-md) !important;
    cursor: pointer;
    transition: all var(--ps-transition);
    box-shadow: var(--ps-shadow-cyan);
}

.single-product-top .nbdesigner_frontend_btn:hover,
button[class*="nbdesigner"]:hover,
a[class*="nbdesigner"].button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.35);
}

/* ==========================================================================
   Clear/Reset Link
   ========================================================================== */

.single-product-top .reset_variations,
.variations_form .reset_variations {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-family: var(--ps-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--ps-gray-500);
    background: transparent;
    border: none;
    border-radius: var(--ps-radius-sm);
    text-decoration: none;
    transition: all var(--ps-transition);
    cursor: pointer;
}

.single-product-top .reset_variations:hover,
.variations_form .reset_variations:hover {
    color: var(--ps-cyan);
    background: var(--ps-cyan-subtle);
}

/* ==========================================================================
   Disclaimer
   ========================================================================== */

.tav-disclaimer {
    margin-top: var(--ps-space-3);
    margin-bottom: var(--ps-space-2);
    padding: var(--ps-space-2) var(--ps-space-3);
    font-family: var(--ps-font);
    font-size: 11px;
    line-height: 1.5;
    color: var(--ps-gray-500);
    font-style: normal;
    text-align: left;
    background: var(--ps-gray-50);
    border-radius: var(--ps-radius-sm);
    border: none;
}

/* ==========================================================================
   Orientation Selector - Tighter spacing with Turnaround
   ========================================================================== */

.psdm-orientation-selector {
    margin-top: -24px !important;  /* Pull up closer to turnaround */
    margin-bottom: var(--ps-space-4) !important;
    padding: 0 !important;
    position: relative;
}

/* Reduce gap after turnaround interface */
.tav-custom-interface {
    margin-bottom: var(--ps-space-2) !important;
}

/* Hide empty last row in variations table that creates extra space */
.single-product-top table.variations tbody tr:last-child:empty,
.single-product-top table.variations tbody tr:last-child td:empty {
    display: none;
}

/* Reduce tbody gap to tighten spacing */
.single-product-top form.cart table.variations tbody {
    gap: var(--ps-space-3);
}

/* Reduce margin after the last visible variation row (before orientation) */
.single-product-top table.variations tbody tr:has(.tav-custom-interface),
.single-product-top table.variations tbody tr:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Orientation label styling */
.psdm-orientation-selector .psdm-orientation-label {
    font-family: var(--ps-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--ps-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--ps-space-2);
}

/* ==========================================================================
   Wishlist & Compare
   ========================================================================== */

.single-product-top .product-button a,
.single-product-top .yith-wcwl-add-to-wishlist a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-family: var(--ps-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--ps-gray-600);
    background: var(--ps-gray-100);
    border: none;
    border-radius: var(--ps-radius-sm);
    text-decoration: none;
    transition: all var(--ps-transition);
}

.single-product-top .product-button a:hover,
.single-product-top .yith-wcwl-add-to-wishlist a:hover {
    color: var(--ps-cyan);
    background: var(--ps-cyan-subtle);
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.tav-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--ps-space-8) var(--ps-space-4);
    min-height: 120px;
}

.tav-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--ps-gray-200);
    border-top-color: var(--ps-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: var(--ps-space-3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tav-loading-text {
    font-family: var(--ps-font);
    font-size: 14px;
    color: var(--ps-gray-500);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .single-product-top .woocommerce-variation.single_variation,
    .haru-woo-product-variations form.cart .woocommerce-variation.single_variation {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--ps-space-3) var(--ps-space-4) !important;
        gap: var(--ps-space-2);
    }

    .single-product-top .woocommerce-variation-price .price,
    .woocommerce-variation.single_variation .woocommerce-variation-price span.price {
        font-size: 28px !important;
    }

    .single-product-top .single_add_to_cart_button,
    button.single_add_to_cart_button {
        width: 100%;
    }

    .tav-date-box {
        padding: var(--ps-space-4) var(--ps-space-3);
        min-height: 95px;
    }

    .tav-date-box-date {
        font-size: 16px;
    }

    .single-product-top .nbdesigner-orientation,
    .orientation-selector {
        flex-direction: column;
    }

    .single-product-top .nbdesigner-orientation label,
    .orientation-selector label {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.single-product-top .single_add_to_cart_button:focus-visible,
.tav-date-box:focus-visible,
select:focus-visible,
.single-product-top .nbdesigner-orientation label:focus-visible {
    outline: 2px solid var(--ps-cyan);
    outline-offset: 2px;
}

/* ==========================================================================
   Fix Dashed Borders - Targeted Fixes Only
   ========================================================================== */

/* Only fix select dropdowns that might have dashed borders */
.single-product-top select {
    border-style: solid !important;
}

/* Remove table cell borders */
.single-product-top form.cart table.variations td,
.single-product-top form.cart table.variations tr {
    border: none !important;
}

/* ==========================================================================
   Global Border Cleanup - Fix All Rogue Borders
   ========================================================================== */

/* Currency symbol - NO borders whatsoever */
.woocommerce-Price-currencySymbol,
.single-product-top .woocommerce-Price-currencySymbol,
span.woocommerce-Price-currencySymbol {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Orientation boxes - PSDM specific styling */
.psdm-orientation-options {
    display: flex !important;
    gap: 12px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* Base Option State - White Card with Border */
.psdm-orientation-option {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 16px 24px !important;
    width: auto !important;
    min-width: 110px !important;
    height: auto !important;
    
    /* Box Look */
    background: #ffffff !important;
    border: 1px solid var(--ps-gray-200) !important;
    border-radius: var(--ps-radius-md) !important;
    
    /* Text */
    color: var(--ps-charcoal) !important;
    font-weight: 600 !important;
    
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

/* Hover State */
.psdm-orientation-option:hover {
    border-color: var(--ps-cyan) !important;
    background: var(--ps-white) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

/* SELECTED STATE - Filled Theme Color (Cyan) */
.psdm-orientation-option.selected,
.psdm-orientation-option input:checked + *,
input[type="radio"]:checked + .psdm-orientation-option {
    background: var(--ps-cyan) !important;
    border-color: var(--ps-cyan) !important;
    color: #ffffff !important; /* White text */
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3) !important;
}

/* Fix Icons/Text inside Selected State */
.psdm-orientation-option.selected *,
.psdm-orientation-option input:checked + * *,
input[type="radio"]:checked + .psdm-orientation-option * {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Ensure SVG icons are visible */
.psdm-orientation-option svg,
.psdm-orientation-option .orientation-icon,
.psdm-orientation-option span[class*="icon"] {
    width: 24px !important;
    height: 24px !important;
    border: none !important;
    background: transparent !important;
    margin-bottom: 4px !important;
    transition: all 0.2s ease !important;
}

/* General orientation fallback */
.single-product-top .nbdesigner-orientation-box,
.single-product-top .nbdesigner-orientation label,
.single-product-top input[type="radio"] + label,
.single-product-top .orientation-box,
.nbdesigner-orientation label,
.nbdesigner_frontend_wrap label,
label[for*="orientation"],
.orientation-selector label {
    border: 1px solid var(--ps-gray-200) !important;
    border-radius: var(--ps-radius-md) !important;
    background: #ffffff !important;
    padding: 12px 20px !important;
    color: var(--ps-gray-600) !important;
}

.single-product-top .nbdesigner-orientation-box:hover,
.single-product-top .nbdesigner-orientation label:hover,
.nbdesigner-orientation label:hover {
    border-color: var(--ps-cyan) !important;
    color: var(--ps-cyan) !important;
}

/* Selected state for fallback labels */
.single-product-top .nbdesigner-orientation input[type="radio"]:checked + label,
.single-product-top .nbdesigner-orientation label.active,
.nbdesigner-orientation label.active,
label[for*="orientation"].selected {
    background: var(--ps-cyan) !important;
    border-color: var(--ps-cyan) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Force icons in fallback labels to be white on selected */
.single-product-top .nbdesigner-orientation input[type="radio"]:checked + label svg,
.single-product-top .nbdesigner-orientation label.active svg,
label[for*="orientation"].selected svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Quantity input - clean up borders and outlines */
.single-product-top .quantity input[type="number"],
.single-product-top input.qty,
input.qty,
.quantity input.qty {
    border: 2px solid var(--ps-gray-200) !important;
    border-radius: var(--ps-radius-md) !important;
    background: var(--ps-white) !important;
    outline: none !important;
    box-shadow: none !important;
}

.single-product-top .quantity input[type="number"]:focus,
input.qty:focus,
.quantity input.qty:focus {
    border-color: var(--ps-cyan) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15) !important;
}

/* Compare & Wishlist buttons - remove black borders */
.single-product-top .compare,
.single-product-top .product-button a,
.single-product-top a.compare,
.single-product-top .yith-woocompare-add-product,
a[href*="woocompare"],
a[href*="wishlist"] {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Fix any link borders */
.single-product-top a {
    text-decoration: none;
}
