/* =========================================================================
   Container
   ========================================================================= */

.ola-radio-variations {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5em;
}

/* Hide the native WooCommerce attribute-select table */
.ola-radio-variations ~ .variations {
    display: none !important;
}

/* =========================================================================
   Individual variation item
   ========================================================================= */

.ola-radio-variation {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.5em 0.65em;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    user-select: none;
}

.ola-radio-variation[data-purchasable="no"] {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.ola-radio-variation:hover {
    border-color: #ddd;
    background-color: rgba(0, 0, 0, 0.02);
}

.ola-radio-variation-active {
    border-left-width: 3px;
    border-left-color: currentColor;
    background-color: rgba(0, 0, 0, 0.04);
}

/* =========================================================================
   Radio input
   ========================================================================= */

.ola-radio-variation-selector {
    flex-shrink: 0;
}

.ola-radio-variation-selector input[type="radio"] {
    margin: 0;
    cursor: inherit;
}

/* =========================================================================
   Info block (name + availability)
   ========================================================================= */

.ola-radio-variation-info {
    flex: 1;
}

.ola-radio-variation-name label {
    font-weight: 500;
    line-height: 1.4;
    cursor: inherit;
}

.ola-radio-variation-availability {
    font-size: 0.85em;
    color: #666;
}

.ola-radio-variation-availability p {
    margin: 0;
}
