/*
 * Vloerenstunter huisstijl
 * hoofdkleur (oranje)  #F8902D
 * tweede kleur (blauw)  #125C91
 * Thema (Avada) laadt de lettertype; hieronder erven we die gewoon over.
 */

.madebysens-calculator {
    margin: 1.5rem 0;
    padding: 1.4rem;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #f8902d;
    border-radius: 4px;
    background: #fff;
    color: #1f2d3d;
}

.madebysens-calculator h3 {
    margin: 0 0 1rem;
    color: #125c91;
    font-size: 1.2rem;
    font-weight: 700;
}

.madebysens-calculator__input-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    max-width: 16rem;
}

.madebysens-calculator__input-row input {
    width: 100%;
    min-height: 2.75rem;
    padding: .5rem .7rem;
    border: 1px solid #c7d0d9;
    border-radius: 4px;
    background: #fff;
    font-size: 1rem;
}

.madebysens-calculator__input-row input:focus {
    border-color: #f8902d;
    box-shadow: 0 0 0 1px #f8902d;
    outline: none;
}

.madebysens-calculator__input-row span {
    color: #125c91;
    font-weight: 600;
}

.madebysens-calculator__waste {
    display: block;
    margin-top: 1rem;
    font-size: .95rem;
}

.madebysens-calculator__waste input {
    accent-color: #f8902d;
}

.madebysens-calculator__result {
    position: relative;
    margin-top: 1rem;
    padding: .9rem;
    border: 1px solid #f6d9bf;
    border-radius: 4px;
    background: #fff7ef;
    line-height: 1.55;
}

.madebysens-calculator__result strong {
    color: #f8902d;
}

.madebysens-calculator__result p {
    margin: .75rem 0 0;
    font-size: 1.1rem;
}

.madebysens-calculator__result p strong {
    color: #f8902d;
}

.madebysens-calculator__clear {
    position: absolute;
    top: .6rem;
    right: .6rem;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #75859a;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.madebysens-calculator__clear:hover,
.madebysens-calculator__clear:focus-visible {
    background: #fdeadc;
    color: #f8902d;
}

.madebysens-calculator__waste-note:not([hidden]) {
    display: block;
    margin-top: .35rem;
}

.madebysens-downloads__list {
    margin: 0;
    padding-left: 1.25rem;
}

.madebysens-downloads__link {
    color: #125c91;
    text-decoration: underline;
}

.madebysens-downloads__link:hover {
    color: #f8902d;
}

/* Kleurvarianten ("Overige kleuren") */
.madebysens-colors {
    margin: 1.25rem 0;
}

.madebysens-colors__title {
    margin: 0 0 .6rem;
    font-weight: 600;
}

.madebysens-colors__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.madebysens-colors__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 76px;
    text-decoration: none;
    color: inherit;
}

.madebysens-colors__item img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    transition: border-color .15s ease;
}

.madebysens-colors__item a:hover img,
.madebysens-colors__item a:focus-visible img {
    border-color: #f8902d;
}

.madebysens-colors__label {
    margin-top: .25rem;
    font-size: .75rem;
    color: #125c91;
    text-align: center;
    line-height: 1.2;
}

/* "per m²" achter de prijs: een eigen, rustige stijl, en op DEZELFDE regel als de prijs.
   !important omdat het Avada-thema eigen regels op de prijs zet. */
.woocommerce-price-suffix,
.woocommerce-price-suffix .vloerenstunter-price-suffix,
.vloerenstunter-price-suffix {
    display: inline !important;
    float: none !important;
    white-space: nowrap !important;
    margin-left: 5px;
    font-family: Archivo, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    color: #999999 !important;
    vertical-align: baseline;
}

/* Forceer de prijsregel naar ÉÉN rij naast elkaar. Avada's "Woo Price"-element
   (Fusion Builder) zet de prijs in een flex-kolom, waardoor prijs en eenheid stapelen. */
.price:has(.vloerenstunter-price-suffix),
.fusion-price-rating .price,
.fusion-woo-price-tb p.price,
.fusion-woo-price-tb .price {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Avada live-search (zoekdropdown): prijs uiterst rechts, eenheid (m²) op een eigen regel erboven.
   Avada's .fusion-search-result is een flex-rij; .fusion-search-content moet daarom meeGROEIEN
   (flex: 1 1 auto), anders is er geen ruimte om rechts uit te lijnen.  De prijs is platte tekst,
   dus de regeleinde werkt via white-space: pre-line. */
.fusion-live-search .fusion-search-content {
    flex: 1 1 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    min-width: 0;
}

.fusion-live-search .fusion-search-post-type {
    white-space: pre-line;
    text-align: right;
    line-height: 1.15;
    margin: 0 0 0 auto;
}
