/* ================================================
   Product Info Panel Styles
   WooCommerce Variable Product Selector
================================================ */

/* =====================================
   LAYOUT STRUCTURE
===================================== */

.gv-purchase-form {
    position: relative;
    /* Context for absolute positioning */
}

.gv-purchase-layout {
    display: flex;
    align-items: flex-end;
    width: 100%;
}

/* Wishlist Container (Right side) */
.gv-wishlist-container {
    position: static;
    /* Reset absolute */
    width: auto;
    height: auto;
    margin-left: 20px;
    /* Spacing from left column */
    z-index: 10;
}

/* Header Sections */

/* Wrapper for Left (Reviews+Title) and Right (Wishlist) */
.gv-panel-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align top */
    width: 100%;
}

/* Left Column: Reviews on Top, Title on Bottom */
.gv-header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Gap between reviews and title */
}

/* Reviews Container */
.gv-rating-header {
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
    /* Allow auto height */
    display: flex;
    align-items: center;
}

.gv-custom-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    /* Reset line height for alignment */
}

/* Star Rating Colors */
.gv-custom-rating .star-rating {
    color: #dc9202 !important;
    /* Fill star color */
    font-size: 14px !important;
    width: 5.4em !important;
    /* Ensure width is enough for font-size */
    margin: 0 !important;
    /* Remove any potential default margins */
}

.gv-custom-rating .star-rating::before {
    color: #cdcdcd !important;
    /* Stroke/Empty star color */
}

.gv-rating-average {
    font-weight: 500;
}

.gv-rating-sep {
    color: #d8d8d8;
    font-weight: 300;
    /* Thin */
    font-size: 12px;
    /* Slightly smaller/low */
    position: relative;
    top: 0;
    /* Reset top */
    opacity: 0.8;
    margin-top: 1px;
    /* Subtle optical alignment */
}

.gv-review-link {
    color: #fff !important;
    /* Corrected typo */
    text-decoration: none;
    line-height: 1;
    display: inline-block;
    /* Required for transform */
    transition: transform 0.2s ease;
}

.gv-review-link:hover {
    transform: scale(1.05);
    /* Grow slightly on hover */
}

/* Tooltip Adjustments (Left Align) */
.gv-tooltip-container {
    position: relative;
    display: inline-flex;
    /* Ensure it wraps icon */
}

.gv-tooltip-text {
    /* Override existing centering */
    left: -8px !important;
    /* Move Left */
    bottom: 135% !important;
    /* Move Up */
    transform: none !important;
    right: auto !important;
    white-space: normal !important;
    width: 240px !important;
    /* Fixed width for consistency */
    padding: 12px 14px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Adjust arrow to match left alignment */
.gv-tooltip-text::after {
    left: 14px !important;
    /* Align arrow with icon */
    /* Move arrow to left side */
    transform: translateX(0) !important;
    right: auto !important;
}

.gv-product-header {
    padding: 0;
    margin: 0;
    width: auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.gv-product-header h2 {
    margin: 0;
    font-size: 1.5rem !important;
    /* Force override theme styles */
    color: #fff;
    line-height: 1;
}

/* LEFT: Attribute Selectors */
.gv-attr-only-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 305px;
    /* Fixed height as requested */
    justify-content: flex-end;
    /* Align elements to bottom */
}

/* Delivery Time Display */
/* Delivery Time Display */
/* Delivery Time Display */
.gv-delivery-time-container {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    margin-bottom: auto;
    /* Push to top */
    width: 100%;
}

.gv-dt-content-wrap {
    position: relative;
    /* Anchor for tooltip */
    cursor: help;
    display: inline-block;
}

.gv-dt-icon {
    font-size: 16px;
}

.gv-dt-label {
    opacity: 0.8;
}

.gv-dt-value {
    font-weight: bold;
    color: #00e676;
    /* Bright Green */
}

/* Tooltip Styles */
.gv-dt-tooltip {
    position: absolute;
    bottom: 120%;
    /* Above the container */
    left: 0;
    transform: translateY(5px);
    margin-bottom: 8px;
    background: #1a1a1a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    width: max-content;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 100;
    backdrop-filter: blur(5px);
}

/* Arrow */
.gv-dt-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    margin-left: 0;
    border-width: 6px;
    border-style: solid;
    border-color: #1a1a1a transparent transparent transparent;
}

.gv-dt-content-wrap:hover .gv-dt-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* RIGHT: Purchase Panel */
.gv-purchase-panel {
    flex: 0 0 260px;
    width: 260px;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* =====================================
   ATTRIBUTE ROW
===================================== */

.gv-attr-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Attribute Circle (Icon Container) */
.gv-attr-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(#2f2f2f, #2f2f2f) padding-box,
        linear-gradient(60deg, #FF6B6B, #4ECDC4) border-box;
    border: 1px solid transparent;
}

.gv-attr-circle::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    z-index: 1;
    background: #6d6d6d;
}

.gv-attr-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    display: block;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.1));
}

/* Attribute Background Images */
.gv-attr-row[data-attr*="type"] .gv-attr-circle::before,
.gv-attr-row[data-attr*="pa_type"] .gv-attr-circle::before {
    background: url('https://gamevers.store/wp-content/uploads/2025/12/Game-type-bg.webp') center / cover no-repeat;
}

.gv-attr-row[data-attr*="platform"] .gv-attr-circle::before,
.gv-attr-row[data-attr*="pa_platform"] .gv-attr-circle::before {
    background: url('https://gamevers.store/wp-content/uploads/2025/12/Game-platform-bg.webp') center / cover no-repeat;
}

.gv-attr-row[data-attr*="region"] .gv-attr-circle::before,
.gv-attr-row[data-attr*="pa_region"] .gv-attr-circle::before {
    background: url('https://gamevers.store/wp-content/uploads/2025/12/Game-country-Bcg.webp') center / cover no-repeat;
}

/* Flag Sizing */
.gv-attr-circle img[src*="circle-flags"] {
    width: 65% !important;
    height: 65% !important;
    object-fit: contain !important;
}

/* =====================================
   DROPDOWN STYLES
===================================== */

.gv-dropdown {
    position: relative;
    flex: 1;
}

/* Dropdown Toggle Button */
.gv-dropdown-toggle {
    width: 100%;
    height: 42px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #1325419c;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.gv-dropdown-toggle:hover {
    background: #1325419c;
}


.gv-game-edition .gv-dropdown-toggle.has-selection {
    /* the element was button.gv-dropdown-toggle.has-selection */
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Dropdown Label */
.gv-dropdown-label {
    flex: 1;
}

/* Dropdown Icons Container */
.gv-dropdown-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Clear Selection Button */
.gv-clear-selection {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
    background: transparent !important;
}

.gv-clear-selection .gv-clear-icon {
    width: 18px !important;
    height: 18px !important;
}

.gv-clear-selection svg {
    width: 65%;
    height: 65%;
    display: block;
}

.gv-clear-selection:hover {
    background: transparent;
    opacity: 0.8;
    transform: rotate(-30deg);
}

.gv-clear-selection[style*="display: none"] {
    display: none !important;
}

/* Dropdown Arrow */
.gv-dropdown-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    pointer-events: none;
}

/* Hide Arrow when value is selected (toggle has value) */
.gv-dropdown-toggle[data-selected-value] .gv-dropdown-arrow {
    display: none;
}

/* Arrow Rotation: Down (normal) → Up (when open) */
.gv-dropdown.active .gv-dropdown-arrow {
    transform: rotate(225deg);
}

/* Dropdown Menu - Modernized (No Blur) */
.gv-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    /* Slightly increased gap */
    left: 0;
    right: 0;
    background: #1a1a1a;
    /* Deep dark background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    /* More rounded */
    overflow: hidden;
    display: none;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    /* Deep shadow */

    /* Animation Initial State */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gv-dropdown-menu.active {
    display: block;
    /* We need a small delay or use keyframes for display:block transition, 
       but standard CSS transition on display:block doesn't work well. 
       Let's use animation or keep it simple. */
    animation: gv-dropdown-slide-in 0.2s forwards;
}

@keyframes gv-dropdown-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Option */
.gv-dropdown-option {
    padding: 2px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.gv-dropdown-option.gv-disabled {
    display: none !important;
}

.gv-dropdown-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Option Content */
.gv-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.gv-option-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.gv-option-text {
    flex: 1;
}

/* Placeholder Images in Dropdown */
.gv-option-icon[src*="Default-Placeholder"] {
    object-fit: contain !important;
    opacity: 0.7;
}

.gv-option-icon[src*="circle-flags"] {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
}

/* Reduce Spacing for Specific Attributes */
.gv-attr-row[data-attr*="platform"] .gv-option-content,
.gv-attr-row[data-attr*="pa_platform"] .gv-option-content,
.gv-attr-row[data-attr*="type"] .gv-option-content,
.gv-attr-row[data-attr*="pa_type"] .gv-option-content {
    gap: 3px !important;
}

/* =====================================
   DROPDOWN WIDTHS
===================================== */

.gv-game-type .gv-dropdown {
    flex: 0 0 180px;
    max-width: 180px;
    min-width: 180px;
}

.gv-game-platform .gv-dropdown {
    flex: 0 0 180px;
    max-width: 180px;
    min-width: 180px;
}

.gv-game-region .gv-dropdown {
    flex: 0 0 180px;
    max-width: 180px;
    min-width: 180px;
}

.gv-game-edition .gv-dropdown {
    flex: 0 0 240px;
    max-width: 240px;
    min-width: 240px;
}

/* =====================================
   STAR BORDER EFFECT (Active State Only)
   Ported from React Demo
===================================== */


/* 
   ADJUSTMENT: We now use an inner wrapper (.gv-dropdown-inner) 
   injected by JS. We must adjust the styles to avoid "double layout".
*/

/* 1. Toggle Button (Outer Shell) */
.gv-dropdown-toggle {
    /* Existing styles define shape/bg */
    /* We override padding here because the Inner Wrapper will handle spacing now */
    padding: 2px !important;
    border: 0px solid transparent;
    /* Match original */
}

/* 2. Inner Wrapper (The Content & Mask) */
.gv-dropdown-inner {
    /* Layout: Takes over content positioning */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 7px;
    /* Original toggle padding moved here */
    border-radius: 999px;
    z-index: 1;

    /* Visuals: Default is TRANSPARENT (shows parent's bg) */
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* 3. Active State: Outer Shell */
.gv-dropdown.active .gv-dropdown-toggle {
    background: transparent !important;
    /* Hide parent bg */
    border: none !important;
    padding: 2px !important;
    /* Create gap for star border */
    display: flex;
    align-items: stretch;
}

/* 4. Active State: Inner Wrapper (The Mask) */
.gv-dropdown.active .gv-dropdown-inner {
    background: #202020;
    /* The inner border */
    border: 1px solid transparent;
    padding: 0 7px;
    /* Compensate for the 2px outer padding to keep alignment? */
    /* Actually, standardizing padding avoids "getting wide" */
}



/* Hide glare effect when active */
.gv-dropdown.active .gv-dropdown-toggle::before {
    display: none;
}

/* Remove CSS-only masked gradient approach */
.gv-dropdown.active .gv-dropdown-toggle::after {
    display: none;
}

/* Star Border Gradient Elements */
.gv-star-gradient-bottom,
.gv-star-gradient-top {
    position: absolute;
    width: 300%;
    height: 50%;
    opacity: 0.7;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle, red, transparent 10%);
    animation-duration: 6s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    display: none;
    /* Hidden by default */
}

.gv-dropdown.active .gv-star-gradient-bottom,
.gv-dropdown.active .gv-star-gradient-top {
    display: block;
    /* Show when active */
}

.gv-star-gradient-bottom {
    bottom: -12px;
    right: -250%;
    animation-name: gv-star-movement-bottom;
}

.gv-star-gradient-top {
    top: -12px;
    left: -250%;
    animation-name: gv-star-movement-top;
}

/* Ensure content stays on top */
.gv-dropdown-toggle .gv-dropdown-label,
.gv-dropdown-toggle .gv-dropdown-icons {
    position: relative;
    z-index: 2;
    /* Increased z-index */
}

/* Animations */
@keyframes gv-star-movement-bottom {
    0% {
        transform: translate(0%, 0%);
        opacity: 1;
    }

    100% {
        transform: translate(-100%, 0%);
        opacity: 0;
    }
}

@keyframes gv-star-movement-top {
    0% {
        transform: translate(0%, 0%);
        opacity: 1;
    }

    100% {
        transform: translate(100%, 0%);
        opacity: 0;
    }
}

/* =====================================
   GLARE HOVER EFFECT
===================================== */

.gv-dropdown-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(-45deg,
            hsla(0, 0%, 0%, 0) 60%,
            rgba(255, 255, 255, 0.5) 70%,
            hsla(0, 0%, 0%, 0) 100%);
    transition: background-position 0.65s ease;
    background-size: 250% 250%;
    background-repeat: no-repeat;
    background-position: -100% -100%;
    border-radius: 999px;
    pointer-events: none;
    z-index: 2;
    /* Increased to 2 so it sits on top of Inner Wrapper (z-index 1) */
}

.gv-dropdown-toggle:hover::before {
    background-position: 100% 100%;
}

/* =====================================
   EDITION GRADIENT BACKGROUND
===================================== */

.gv-game-edition .gv-dropdown-toggle.has-selection {
    /* Gradient will be applied via inline style from JS */
    transition: background 0.3s ease;
}

/* =====================================
   PURCHASE PANEL
===================================== */

/* Price */
.gv-price-wrap {
    text-align: center;
}

.gv-price-old {
    display: block;
    color: #bdbdbd;
    font-size: 18px;
    text-decoration: line-through;
    text-decoration-color: #ff0000;
    /* Red cut line */
    margin-bottom: 4px;
}

.gv-price-new {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
}

/* Cart Row */
.gv-cart-row {
    display: flex;
    gap: 12px;
}

/* =====================================
   TIERED PRICING (Advanced)
===================================== */

.gv-price-row-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Space between Official and Regular */
    margin-bottom: 2px;
}

.gv-price-official {
    color: #c7c7c7 !important;
    font-size: 14px;
    text-decoration: line-through;
    text-decoration-color: #ff0000 !important;
    position: relative;
    cursor: help;
}

.gv-price-official .amount,
.gv-price-official bdi,
.gv-price-official .woocommerce-Price-currencySymbol {
    color: inherit !important;
    text-decoration: inherit !important;
}

/* Update Regular Price old style to match flex layout if needed, 
   but .gv-price-old is already defined as block. 
   We should make it inline value for the top row. */
.gv-price-row-top .gv-price-old {
    display: inline-block;
    font-size: 14px;
    margin-bottom: 0;
    cursor: help;
}

.gv-price-row-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gv-price-new {
    /* Existing style is good, just ensuring cursor */
    cursor: help;
    display: inline-block;
}

/* Tooltip on Prices */
[data-gv-tooltip] {
    position: relative;
}

[data-gv-tooltip]::after {
    content: attr(data-gv-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #1a1a1a;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* RESETS */
    font-weight: 500;
    /* Reset from bold parent */
    text-decoration: none;
    /* Reset from crossed parent */
    line-height: normal;
    /* Reset line height */
    text-transform: none;
    /* Reset uppercase */
    font-style: normal;
    /* Reset italic */
    letter-spacing: normal;
    /* Reset spacing */
}

[data-gv-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* 3-Tier Pricing Specifics */
.gv-price-separator {
    color: #999;
    font-size: 14px;
    margin: 0 2px;
}

.gv-price-intermediate {
    color: #c7c7c7 !important;
    font-size: 14px;
    text-decoration: line-through;
    text-decoration-color: #ff0000 !important;
    cursor: help;
    display: inline-block;
}

.gv-price-intermediate .amount,
.gv-price-intermediate bdi,
.gv-price-intermediate .woocommerce-Price-currencySymbol {
    color: inherit !important;
    text-decoration: inherit !important;
}

/* =====================================
   TIERED PRICING STYLES
===================================== */

.gv-price-row-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* Space between Official and Regular */
    margin-bottom: 2px;
}

.gv-price-row-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gv-price-official {
    color: #ffd000;
    /* Distinct color for Official */
    font-size: 14px;
    font-weight: 500;
    text-decoration: line-through;
    opacity: 0.8;
}

.gv-price-old {
    display: block;
    color: #bdbdbd;
    font-size: 16px;
    /* Slightly smaller to distinguish from main price */
    text-decoration: line-through;
    text-decoration-color: #ff0000;
    margin-bottom: 0;
    /* Reset margin as it's in a flex row */
}

.gv-price-new {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

/* Tooltip Styles for Prices */
[data-gv-tooltip] {
    position: relative;
    cursor: help;
}

[data-gv-tooltip]::after {
    content: attr(data-gv-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #1a1a1a;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-gv-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Quantity Pill */
.gv-qty-pill {
    width: 124px;
    height: 42px;
    flex: 1;
    border-radius: 999px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: relative;
    z-index: 1;
}

.gv-qty-pill::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 1px;
    /* Border thickness */
    background: linear-gradient(90deg, #ff6b6b 0%, #4ecdc4 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.gv-qty-pill.gv-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.gv-qty-value {
    font-size: 18px;
    font-weight: 600;
}

.gv-qty-minus,
.gv-qty-plus {
    font-size: 14px;
    opacity: 0.8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Button */
.gv-cart-btn {
    width: 124px;
    background: linear-gradient(#33313140, #2f2f2f) padding-box, linear-gradient(60deg, #FF6B6B, #4ECDC4) border-box;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 22px;
    cursor: pointer;
    color: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Buy Now Button */
.gv-buy-now-btn {
    width: 100%;
    height: 42px;
    background: #1325419c;
    border: 1px solid #9d9d9d63;
    border-radius: 999px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}



/* Buy Now Active State */
.gv-buy-now-btn.is-active {
    background: linear-gradient(90deg, #07c5fb 0%, #201eb0 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Cart Button Active State (Shine Only) */
.gv-cart-btn.is-active {
    position: relative;
    overflow: hidden;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);

    /* Keep original bg */
}

/* Shine Effect for both buttons */
.gv-buy-now-btn.is-active::before,
.gv-cart-btn.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 150%;
    /* Start from Right */
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 1;

    /* Hover Transition Logic */
    transition: left 0.75s ease-in-out;

    /* Initial Activation Animation */
    animation: gv-shine-intro 0.75s ease-in-out;
}

/* Hover State: Move to Left */
.gv-buy-now-btn.is-active:hover::before,
.gv-cart-btn.is-active:hover::before {
    left: -50%;
}

/* Initial Intro Animation (Right to Left) */
@keyframes gv-shine-intro {
    0% {
        left: 150%;
    }

    100% {
        left: -50%;
    }
}


/* =====================================
   OVERFLOW FIXES (Elementor Compatibility)
===================================== */

.gv-purchase-layout,
.gv-attr-only-card,
.gv-attr-row,
.gv-dropdown {
    overflow: visible !important;
}

.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget-wrap {
    overflow: visible !important;
}

/* =====================================
   DROPDOWN MENU WHEN MOVED TO BODY
===================================== */

body>.gv-dropdown-menu {
    position: fixed !important;
    z-index: 2 !important;
}

/* =====================================
   TOOLTIPS
   ===================================== */

.gv-tooltip-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.gv-tooltip-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.gv-tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
}

.gv-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

.gv-tooltip-container:hover .gv-tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

.gv-tooltip-container:hover .gv-tooltip-icon {
    transform: scale(1.1);
}

/* =====================================
   VALIDATION ERROR BLINK
   ===================================== */

@keyframes gv-error-blink {

    0%,
    100% {
        border-color: #ff0000;
    }

    50% {
        border-color: transparent;
    }
}

.gv-dropdown-toggle.gv-validation-error {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #ff0000;
    animation: gv-error-blink 0.4s ease-in-out 3;
    /* 3 blinks */
}

/* =====================================
   CUSTOM FIELDS (Floating Labels)
   ===================================== */

/* Container Spacing */
.gv-custom-fields-container {
    display: flex;
    flex-direction: column;
}



.gv-custom-fields-container .gv-custom-field:last-child {
    margin-bottom: 0 !important;
}

/* RESET DEFAULT PLUGIN BOX STYLES */
.gv-custom-fields-container .gv-custom-fields-wrap {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Field Wrapper */
.gv-custom-fields-container .gv-custom-field {
    position: relative;
    /* Margin handled by container gap usually, but safe to keep 0 */
    /* margin-bottom: 0px !important; REMOVED - using margin for spacing now */

    /* Layout for Tooltip (Input + Tooltip side-by-side) */
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Hide Group Titles/Dividers if any (optional clean up) */
.gv-custom-fields-container .gv-field-group {
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

/* Enforce Flex Inside Groups */
.gv-custom-fields-container .gv-group-fields {
    display: flex !important;
    flex-direction: column !important;
}

.gv-custom-fields-container .gv-group-title {
    display: none;
    /* User didn't request titles, keeping it clean */
}

/* INPUT STYLES */
.gv-custom-fields-container input.gv-custom-field-input,
.gv-custom-fields-container textarea.gv-custom-field-input,
.gv-custom-fields-container select.gv-custom-field-input {
    width: 100%;
    /* Flex child to take available space (pushing tooltip to right) */
    flex: 1 !important;
    background: transparent !important;
    border: 1px solid #757575 !important;
    /* Gray border default */
    border-radius: 999px !important;
    /* Pill shape */
    padding: 6px 16px !important;
    /* Further reduced padding */
    font-size: 14px !important;
    /* Slightly smaller font for smaller height */
    color: #fff !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    height: auto !important;
    min-height: 34px;
    /* Reduced from 42px */

    /* Ensure no default shadow */
    box-shadow: none !important;
    -webkit-appearance: none;
}

/* Input Focus / Active State */
.gv-custom-fields-container input.gv-custom-field-input:focus,
.gv-custom-fields-container textarea.gv-custom-field-input:focus,
.gv-custom-fields-container select.gv-custom-field-input:focus {
    border-color: #fff !important;
    /* White border on focus */
}

/* LABEL STYLES */
.gv-custom-fields-container label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 4px;
    color: #b0b0b0;
    /* Placeholder gray */
    font-size: 15px !important;
    pointer-events: none;
    /* Click goes through to input */
    transition: none !important;
    /* User requested NO animation */
    z-index: 10;
    /* Ensure above input */
    margin: 0 !important;
    line-height: 1.2 !important;
    height: auto !important;
    width: auto !important;
    display: block !important;

    /* Default State: Hidden (User sees placeholder inside input) */
    opacity: 0;
    visibility: hidden;

    /* Ensure label text doesn't wrap weirdly */
    white-space: nowrap;
    max-width: calc(100% - 40px);
    overflow: visible;
    /* Removing hidden to debug clipping, ellipsis might need hidden though */
    text-overflow: ellipsis;
    overflow: hidden;
    /* Restore hidden for ellipsis but ensure height is okay */
}

/* Required asterisk style */
.gv-custom-fields-container label .required {
    color: #ff6b6b;
    text-decoration: none;
    margin-left: 2px;
}

/* FLOATING STATE: Focus OR Not Placeholder Shown (Has Value) */
/* 
   Logic: 
   - :placeholder-shown is TRUE when input is empty.
   - :placeholder-shown is FALSE when input has text.
   - We want label visible if Focus OR Has Text (Not Placeholder Shown).
*/
.gv-custom-fields-container input.gv-custom-field-input:focus~label,
.gv-custom-fields-container input.gv-custom-field-input:not(:placeholder-shown)~label,
.gv-custom-fields-container textarea.gv-custom-field-input:focus~label,
.gv-custom-fields-container textarea.gv-custom-field-input:not(:placeholder-shown)~label,
.gv-custom-fields-container select.gv-custom-field-input:focus~label,
.gv-custom-fields-container select.gv-custom-field-input:valid~label {
    top: 0 !important;
    left: 20px;
    transform: translateY(-50%) scale(0.9);
    background: #fff !important;
    /* Rounded white background */
    color: #000 !important;
    /* Dark text for contrast */
    border-radius: 12px !important;
    /* Rounded edges */
    padding: 0 6px !important;
    /* Little extra padding for the pill look */
    font-weight: 600;
    /* Slightly bolder for readability on white */
    z-index: 20 !important;
    /* Ensure it floats ABOVE the input border */

    /* Active State: Visible */
    opacity: 1 !important;
    visibility: visible !important;
}

/* Number Input Arrows Hide */
.gv-custom-fields-container input[type=number]::-webkit-inner-spin-button,
.gv-custom-fields-container input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Quantity Pill Disabled State */
.gv-qty-pill.gv-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(100%);
}

/* Static Disabled State (Missing Attributes) */
.gv-dropdown.gv-disabled-static {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
    cursor: not-allowed;
}

/* Instant Delivery Visuals */
.gv-dt-value.gv-text-instant {
    color: #ffd700;
    /* Gold for Instant */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    display: flex;
    /* Align text and icon */
    align-items: center;
    gap: 6px;
}

.gv-delivery-flash-icon {
    display: inline-block;
    animation: gv-flash-pulse 2s infinite;
}

@keyframes gv-flash-pulse {
    0% {
        opacity: 0.7;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* =====================================
   COMING SOON OVERLAY (Product Page)
===================================== */
.gv-purchase-layout.is-future-product {
    position: relative;
    /* Ensure it contains the absolute overlay */
}

/* 1. Disable & Blur the underlying form content */
.gv-purchase-layout.is-future-product>*:not(.gv-future-overlay) {
    filter: blur(4px) grayscale(50%);
    opacity: 0.6;
    pointer-events: none;
    /* Prevent clicks/hover */
    user-select: none;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* 2. The Overlay Container */
.gv-future-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    /* Above the disabled content */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(19, 18, 35, 0.5);
    /* Semi-transparent dark bg */
    border-radius: 16px;
    /* Match panel radius if any, or just rounded */
    backdrop-filter: blur(2px);
    /* Slight additional blur on top */
}

@property --gv-rgb-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

/* 3. The Content Box (with Transparent Masked RGB Border) */
.gv-fo-content {
    /* Glass effect center so it's transparent but readable */
    background: rgba(19, 18, 35, 0.4);
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* The Hollow Animated RGB Border */
.gv-fo-content::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Cover exactly the container size */
    border-radius: 12px;
    /* Match container radius */
    padding: 2px;
    /* THIS IS THE BORDER THICKNESS (Thinner 2px) */
    z-index: -1;
    pointer-events: none;

    /* The animated gradient using custom property */
    background: conic-gradient(from var(--gv-rgb-angle),
            #ff0000,
            #ff8000,
            #ffff00,
            #00ff00,
            #00ffff,
            #0000ff,
            #8000ff,
            #ff0080,
            #ff0000);

    /* Masking to hollow out the center and only show the padding area as border */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;

    animation: gv-rgb-spin 4s linear infinite;
}

@keyframes gv-rgb-spin {
    0% {
        --gv-rgb-angle: 0deg;
    }

    100% {
        --gv-rgb-angle: 360deg;
    }
}

/* Keep content nicely positioned */
.gv-fo-content>* {
    position: relative;
    z-index: 2;
}

.gv-fo-title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 2.7em !important;
    color: #fff;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.1em;
}

.gv-fo-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 0.9em;
    color: #4ECDC4;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Ensure the reused countdown timer is centered and styled correctly in this context */
.gv-future-overlay .gv-countdown {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    width: auto;
    margin: 0 auto;
    /* Replicate the glassmorphism from the homepage but tweak for this layout */
    background: rgba(25, 25, 25, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    display: inline-flex;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gv-future-overlay .gv-cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.gv-future-overlay .gv-cd-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.gv-future-overlay .gv-cd-label {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 500;
}

.gv-future-overlay .gv-cd-expired {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: #4ECDC4;
    letter-spacing: 1px;
}