/* Custom Variable Options - Frontend Styles - Updated for Side Panels */
.single-product.has-customvaropt .variations{display: none;}
.customvaropt-container {
    position: relative;
    margin-bottom: 30px;
    counter-reset: customvaropt-step;
}

.customvaropt-wrapper {
    position: relative;
    z-index: 20;
}

/* Panel Styles */
.customvaropt-panel {
    margin-bottom: 10px;
   /* position: relative;*/
}

.customvaropt-panel.panel-hidden {
    display: none;
}

.customvaropt-panel.closed .customvaropt-flyout {
    display: none;
}

.customvaropt-panel.open .customvaropt-flyout {
    display: block;
}

/* Panel Title - Desktop Side Panel Style */
.customvaropt-title {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    opacity: 1;
    color: #333;
    margin-bottom: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    transition: all 0.2s ease;
}

.customvaropt-title:hover,
.customvaropt-panel.open .customvaropt-title {
    opacity: 1;
    color: #000;
    margin-bottom: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.panel-lock .customvaropt-title {
    opacity: 0.9;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 5px;
}

.customvaropt-panel + .panel-lock .customvaropt-title {
    opacity: 0.9;
    color: #555;
}

.panel-lock ~ .customvaropt-panel .customvaropt-title:hover {
    background: rgba(222, 0, 40, 0.1);
    opacity: 0.7;
    background: #fff;
}

/* Panel Title Number */
.customvaropt-title-number {
    width: 15%;
    border-right: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.customvaropt-autonumber {
    background: #fff;
    width: 30px;
    height: 30px;
    font-size: 12px;
    border-radius: 50%;
    text-align: center;
    color: #000;
    border: 1px solid #ccc;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}
.panel-required-not-filled.panel-lock .customvaropt-autonumber{background: #efefef !important; color: #555 !important;}

.customvaropt-flyout-inner label.tm-epo-field-label{ background: #fff;
    height: 100%;
    padding: 8px;
    overflow: hidden;
    border: 1px solid #ccc;     font-size: 12px !important;
    cursor: pointer;
    text-align: right;}
   .customvaropt-flyout .tc-label-wrap .tc-input-wrap{visibility: hidden; display: none;}
 .customvaropt-flyout-inner label.tm-epo-field-label:hover { border: 1px solid #333;}
.tc-totals-form {
    display: none !important;
}
/* Hide the default WooCommerce "choose option" message */
.woocommerce-variation-availability .stock {
    display: none !important;
}

/* Show price even when variation not found */
.has-customvaropt .price {
    display: block !important;
}

/*
.panel-lock ~ .panel-lock .customvaropt-autonumber {
    background: #e0e0e0 !important;
    color: #555 !important;
}
*/
.att-is-set .customvaropt-autonumber {
    background: #2e3a84;
    color: #fff;
    border: 1px solid #2e3a84;
}
.customvaropt-title-inner {
    width: 85%;
    padding: 10px 30px;
    min-height: 66px;
    position: relative;
    display: flex;
    align-items: center;
}

.customvaropt-title-main h3 {
    margin-bottom: 0;
    font-size: 14px;
    color: inherit; font-weight: 600;
}

.customvaropt-selected {
    padding-top: 2px;
    font-size: 12px;
}

.customvaropt-selected:empty {
    display: none;
}

/* Title status icon */
.customvaropt-title-inner::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-family: 'ETmodules';
    font-weight: 700;
    font-size: 16px;
    line-height: 28px;
    justify-content: flex-start;
    color: inherit;
    width: 45px;
    opacity: 0;
    color: transparent;
    transition: color 0.1s linear;
}

.panel-lock ~ .customvaropt-panel.panel-lock .customvaropt-title .customvaropt-title-inner::after {
    content: '\f192';
    font-weight: 900;
    opacity: 1;
    color: inherit;
}

.customvaropt-panel.att-is-set .customvaropt-title .customvaropt-title-inner::after {
    content: '\4e';
    color: #2e3a84;
    opacity: 1;
   
}

/* Flyout Panel - DESKTOP: Right side */
.customvaropt-flyout {
    position: absolute;
    right: 100%;
    top: -52px;
    bottom: -1px;
    margin-right: 10px;
    width: 45vw;
    min-height: 530px;
    max-width: 500px;
    background: #fff;
    display: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.customvaropt-flyout-inner {
    padding: 15px;
    height: 100%;
    min-height: 485px;
    overflow-x: hidden;
    overflow-y: auto;
}

.customvaropt-flyout-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}




 
/* Price Container - Always Visible with Both Prices */
.customvaropt-price-container {
    display: block !important;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.customvaropt-normal-price {
    font-size: 16px;
    color: #3d3d3d;
    margin-bottom: 10px;
    text-decoration: line-through; text-align: right;
}

.customvaropt-normal-price del {
    opacity: 0.7;
}

.customvaropt-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customvaropt-price-label {
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 500;
}

.customvaropt-price-box-price {
    font-size: 30px;
    font-weight: 700;
    color: #2c3e50;
}

/* When there's a sale, make sale price stand out */
.customvaropt-normal-price + .customvaropt-price-box .customvaropt-price-box-price {
    color: #2e3a84; /* Red color for sale price */
}
ul#tm-extra-product-options-fields{display: none;}
 

/* MOBILE: Full screen overlay */
@media (max-width: 980px) {
    .customvaropt-flyout {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        min-height: 100vh;
        margin: 0;
        z-index: 9999;
        border-radius: 0;
        padding-top: 45px; max-width: 90%;
    }
    .customvaropt-flyout-close { right: 12% !important; }
     .customvaropt-price-container {
        padding: 15px;
        margin: 20px 0;
    }
    
    .customvaropt-price-box-price {
        font-size: 24px;
    }
    
    .customvaropt-price-label {
        font-size: 14px;
    }
    .customvaropt-flyout-inner {
        padding: 20px 15px;
        min-height: auto;
        height: auto;
        overflow-y: auto;
        height: 85vh;
    }
    
    .customvaropt-title {
        padding: 12px;
    }
    
    .customvaropt-title-inner {
        padding: 10px 15px;
        min-height: 50px;
    }
}

/* Close Button - Mobile Only */
.customvaropt-flyout-close {
    display: none;
    position: fixed;
    right: 15px;
    top: 15px;
    z-index: 10001;
}

@media (max-width: 980px) {
    .customvaropt-flyout-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.customvaropt-flyout-close span {
    margin-right: 6px;
    font-size: 14px;
}

.customvaropt-flyout-close i {
    font-size: 33px;
    color: #333;
}

/* Options Grid - Desktop Layout */
.customvaropt-options {
    margin: 0;
}

.customvaropt-options-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));*/
    grid-template-columns: repeat(2, 1fr); 
    gap: 6px;
}
.customvaropt-options-list li.customvaropt-option {list-style: none;}
/*
@media (max-width: 1199px) {
    .customvaropt-options-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 991px) {
    .customvaropt-options-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 767px) {
    .customvaropt-options-list {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}*/

.customvaropt-option {
    margin: 0;
}

.customvaropt-option-inner {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    background: #fff;
    height: 100%;
    padding: 8px;
    overflow: hidden;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: right;
    min-height: 60px;
}

.customvaropt-option-inner:hover {
    border-color: #666;
}

.customvaropt-option-inner.active,
.customvaropt-option-inner:active {
    background: #e0e0e0 !important;
}

.customvaropt-option-label {
    flex-grow: 1;
    text-align: left;
    flex-shrink: 0;
    max-width: 100%;
    white-space: break-spaces;
    color: inherit;
    margin-bottom: 0;
    line-height: 1;
    cursor: pointer;
    font-size: 14px;;
}

.customvaropt-option-price {
    display: block;
    display: inline-block;
    font-size: 0.9em;
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    margin-top: 4px;
    margin-bottom: 4px;
    white-space: nowrap;
    flex-grow: 0;
    flex-shrink: 0;
    text-align: left;
    display: none;
}

.customvaropt-option-input {
    margin-bottom: 0;
    -webkit-appearance: none;
    display: inline-block;
    width: 0;
    height: 0;
    display: none;
}

/* Price Container */
.customvaropt-price-container {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.customvaropt-normal-price {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 10px;
    text-decoration: line-through;
}

.customvaropt-price-box {
    
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    line-height: 30px;
    flex-flow: row nowrap;
    align-items: center;
    margin-bottom: 15px;
}

.customvaropt-price-box .customvaropt-price-box-price {
    font-size: 30px;
    font-weight: 700;
    color: #2c3e50;
}

.customvaropt-price-label {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

/* Progress Bar */
.customvaropt-progress {
  display: none;
  /*  margin-top: 30px;
    padding: 20px 0; */
}

.customvaropt-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.customvaropt-progress-fill {
    height: 100%;
    background: #3498db;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.customvaropt-progress-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

.customvaropt-progress-current {
    font-weight: 700;
    color: #3498db;
}

.customvaropt-progress-total {
    font-weight: 500;
}

.customvaropt-progress-separator {
    margin: 0 5px;
}

.customvaropt-progress-label {
    margin-left: 10px;
}

/* Body classes for mobile */
body.customvaropt-active {
    /* In the original variation UI we used overflow:hidden as a mobile "modal".
       For TM EPO step UI this blocks page scrolling in many themes, so keep scroll enabled. */
    overflow: auto;
}

/* Hide default variations */
.customvaropt-hidden-variations {
    display: none !important;
}

/* Disabled state */
.customvaropt-option-inner.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.customvaropt-option-inner.disabled:hover {
    border-color: #e0e0e0;
    background: #fff;
}

/* Split panel styling (for two-column attributes) */
.customvaropt-panel-split .customvaropt-options {
    width: 100%;
    width: calc(100% + 8px);
    display: flex;
    flex-flow: row nowrap;
    margin-left: -4px;
    margin-right: -4px;
}

.customvaropt-panel-split .customvaropt-options-list {
    padding-left: 4px;
    padding-right: 4px;
    flex-basis: 50%;
    flex-grow: 1;
    display: block;
}

.customvaropt-panel-split .customvaropt-options-list-split-right::before {
    content: 'Rechts';
    margin-left: 0px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.customvaropt-panel-split .customvaropt-options-list-split-left::before {
    content: 'Links';
    margin-left: 0px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

/* Quick start button */
.customvaropt-quickstart {
    display: none;
    position: absolute;
    width: auto;
    left: 50%;
    top: -76px;
    transform: translateX(-50%);
}

@keyframes customvaropt-leftright {
    from {
        transform: translate3d(15px, 0, 0);
    }
    to {
        transform: translate3d(25px, 0, 0);
    }
}

.quickstart-inner {
    animation: customvaropt-leftright;
    animation-play-state: paused;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-fill-mode: none;
    animation-duration: 1.5s;
    animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
    min-height: 60px;
    position: relative;
    background: #3498db;
    border: 3px solid #3498db;
    color: #fff;
    font-weight: 700;
    padding: 8px;
    filter: drop-shadow(0px 0px 5px #ccc) drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.1));
    display: flex;
    text-align: center;
    align-items: center;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.5s cubic-bezier(0.46, 0.03, 0.52, 0.96);
    transform: translateY(15px);
}

.quickstart-inner:hover {
    animation-play-state: running;
    transform: translateY(15px);
}

.quickstart-inner::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 12px solid #3498db;
    position: absolute;
    left: 49%;
    bottom: -20px;
    transform: rotate(90deg);
}

@media (max-width: 549px) {
    .customvaropt-quickstart {
        top: -70px;
        left: 0;
        right: unset;
        transform: unset;
    }
    
    .quickstart-inner::after {
        top: unset;
        left: 15px;
        bottom: -15px;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;  
        border-top: 12px solid #3498db;
        border-bottom: 0;
        transform: unset;
    }
}