/**
 * Copyright since 2026 Lagence123
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to a proprietary license.
 * Developed for E-liquide-fr, through Lagence123.
 *
 * @author    Lagence123
 * @copyright Since 2026 Lagence123
 * @license   Proprietary
 */

/* Deliberately neutral: colours and radii inherit from the active theme so the
   widget blends into whichever theme is installed. Only layout is opinionated. */

.eliquidecalculateur {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px solid currentColor;
    border-radius: 4px;
}

.eliquidecalculateur-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.eliquidecalculateur-group {
    flex: 1 1 14rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.eliquidecalculateur-legend {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
}

.eliquidecalculateur-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.eliquidecalculateur-choice {
    padding: 0.5rem 0.9rem;
    border: 1px solid currentColor;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
}

.eliquidecalculateur-choice:hover,
.eliquidecalculateur-choice:focus-visible {
    text-decoration: underline;
}

.eliquidecalculateur-choice.is-selected {
    font-weight: 700;
    border-width: 2px;
}

.eliquidecalculateur-result {
    display: block;
    margin-top: 1.25rem;
}

.eliquidecalculateur-result:empty {
    display: none;
}

.eliquidecalculateur-headline {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.eliquidecalculateur-detail {
    margin: 0;
    padding-left: 1.2rem;
}

.eliquidecalculateur-note {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    opacity: 0.75;
}

@media (max-width: 480px) {
    .eliquidecalculateur-form {
        gap: 1rem;
    }

    .eliquidecalculateur-group {
        flex-basis: 100%;
    }
}
