/**
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 *
 * @author    Veo by Kebes <hola@kebes.es>
 * @copyright 2026 Veo by Kebes
 * @license   https://opensource.org/licenses/AFL-3.0  Academic Free License 3.0 (AFL-3.0)
 */
.veo-fsp {
    --veo-fsp-bar: var(--veo-brand, var(--bs-primary, #24b9d7));
    --veo-fsp-track: var(--bs-secondary-bg, #e9ecef);
    --veo-fsp-done: var(--bs-success, #198754);
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.35;
}

/* Icon on the first line and the text wrapping beside it, with «change» right after the text */
.veo-fsp__text {
    display: flex;
    gap: 0.375rem;
    align-items: flex-start;
    margin: 0 0 0.375rem;
}

.veo-fsp__text > span {
    flex: 1 1 auto;
    min-width: 0;
}

.veo-fsp__icon {
    flex: none;
    margin-top: 0.0625rem;
}

.veo-fsp__link,
.veo-fsp__link:hover,
.veo-fsp__link:focus {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.veo-fsp__change {
    margin-left: 0.25rem;
    padding: 0;
    color: inherit;
    text-decoration: underline;
    background: none;
    border: 0;
    cursor: pointer;
}

.veo-fsp__bar {
    height: 6px;
    overflow: hidden;
    background: var(--veo-fsp-track);
    border-radius: 3px;
}

.veo-fsp__bar span {
    display: block;
    height: 100%;
    background: var(--veo-fsp-bar);
    border-radius: inherit;
    transition: width 0.4s ease;
}

.veo-fsp.is-reached .veo-fsp__text {
    color: var(--bs-success-text-emphasis, #0a3622);
}

.veo-fsp.is-reached .veo-fsp__bar span {
    background: var(--veo-fsp-done);
}

.veo-fsp__chooser {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

/* Own sizing: some themes give small controls a fixed height and a padding that leaves no room for the text */
.veo-fsp__chooser select,
.veo-fsp__chooser button {
    box-sizing: border-box;
    height: auto;
    min-height: 2.5rem;
    margin: 0;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    line-height: 1.5;
}

.veo-fsp__chooser select {
    width: auto;
    max-width: 100%;
}

.veo-fsp--product {
    margin-top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .veo-fsp__bar span {
        transition: none;
    }
}
