/* Initial hidden state with opacity for transition - Removed as not used in Accordion mode */

/* Base Step */
.variation-step {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
}

.variation-step:last-child {
    border-bottom: none;
}

/* Header */
.wc-step-header {
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2d3748;
}

.wc-step-header .wc-step-name {
    font-size: 16px;
}

.wc-step-header .wc-step-selected-value {
    font-size: 14px;
    font-weight: 400;
    color: #718096;
}

/* Content */
.wc-step-content {
    display: none;
    padding-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* States */
.variation-step.wc-step-active .wc-step-content {
    display: block;
}

.variation-step.wc-step-locked .wc-step-header {
    color: #a0aec0;
    cursor: not-allowed;
}

/* Indicate clickable header for completed steps (but not active) */
.variation-step.wc-step-completed:not(.wc-step-active) .wc-step-header {
    cursor: pointer;
}

.variation-step.wc-step-completed:not(.wc-step-active) .wc-step-header:hover {
    color: #3182ce;
}

.variation-step .label {
    margin-bottom: 8px;
    font-size: 16px;
}

/* Tile Design */
.wc-step-tiles-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.wc-step-tile {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Color Swatches */
.wc-step-tile.is-color {
    padding: 4px;
    border-radius: 50%;
    width: 34px;
    height: 34px;
}

.wc-step-tile.is-color span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Image Swatches */
.wc-step-tile.is-image {
    padding: 4px;
    width: auto;
    height: auto;
}

.wc-step-tile.is-image img {
    display: block;
    max-width: 40px;
    max-height: 40px;
    border-radius: 4px;
}

/* Card Swatches (Image + Label) */
.wc-step-tile.is-card {
    padding: 10px;
    flex-direction: column;
    width: 120px;
    text-align: center;
    justify-content: flex-start;
}

.wc-step-tile.is-card .wc-step-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.wc-step-tile.is-card .wc-step-card-label {
    font-size: 13px;
    line-height: 1.2;
}

/* Radio List Swatches */
.wc-step-tiles-wrapper.type-radio {
    flex-direction: column;
    gap: 8px;
}

.wc-step-tile.is-radio {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 15px;
    text-align: left;
    display: flex;
    align-items: center;
    /* Vertically align radio circle with content */
}

.wc-step-radio-ui {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e0;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.wc-step-tile.is-radio.selected .wc-step-radio-ui {
    border-color: #3182ce;
}

.wc-step-tile.is-radio.selected .wc-step-radio-ui::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #3182ce;
    border-radius: 50%;
}

.wc-step-radio-content {
    display: flex;
    flex-direction: column;
}

.wc-step-radio-label {
    font-weight: 600;
    color: #2d3748;
}

.wc-step-radio-desc {
    font-size: 12px;
    color: #718096;
    margin-top: 2px;
}

/* Label Swatches (Minimal) */
.wc-step-tile.is-label {
    min-width: 40px;
    padding: 8px 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
}

.wc-step-tile.is-label:hover {
    background: #edf2f7;
}

.wc-step-tile.is-label.selected {
    background: #3182ce;
    color: #fff;
    border-color: #3182ce;
}

.wc-step-tile:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.wc-step-tile.selected {
    border-color: #3182ce;
    background: #eff6ff;
    color: #2b6cb0;
    box-shadow: 0 0 0 1px #3182ce;
}

.wc-step-tile.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f7fafc;
    border-color: #e2e8f0;
    color: #a0aec0;
    pointer-events: none;
    position: relative;
}

.wc-step-tile.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

/* Hide the default price display in the single variation section */
/* Price Summary Box */
.wc-step-price-summary {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    display: none;
    /* Hidden by default */
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.wc-step-price-summary.visible {
    display: flex;
}

/* Initially hidden via JS, but good to have default */
.wc-step-price-summary[style*="display: none"] {
    display: none !important;
}

.wc-step-price-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wc-step-price-left .label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.wc-step-big-price {
    font-size: 2.5em;
    /* Big font */
    font-weight: 800;
    color: #4CAF50;
    /* Green like screenshot */
    line-height: 1;
}

.wc-step-big-price .price-decimals {
    font-size: 0.6em;
    vertical-align: super;
    margin-left: 2px;
}

.wc-step-big-price .price-sep {
    font-size: 0.6em;
    vertical-align: super;
}

.wc-step-price-right {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid #eee;
    padding-left: 20px;
}

.wc-step-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95em;
    color: #333;
}

.wc-step-summary-row .label {
    color: #555;
}

.wc-step-summary-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-weight: bold;
    font-size: 1.3em;
    color: #000;
}

.variations-wrapper {
    margin-bottom: 0 !important;
}

.wc-step-summary-row.total-incl-btw {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

/* Add clear fix or spacing if needed */
.single_variation_wrap {
    margin-top: 20px;
}

/* Hide original select nicely, keep it accessible if needed but hidden visually */
.wc-step-hidden-select {
    opacity: 0 !important;
    position: absolute !important;
    z-index: -1 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    display: inline-block !important;
    /* Ensure it is in the box tree */
}

/* Ensure label matches modern feel if possible, though it's theme dependent */
.variations label {
    font-weight: 600;
    color: #2d3748;
}