.custom-form-agora h3 {
    font-size: 36px;
    line-height: 40px;
}
@media (max-width: 768px) {
    .custom-form-agora {
        padding-top: 24px !important;
    }
    .custom-form-agora h3 {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 0 !important;
    }
}

.aviso-de-dias {
    background-color: #EEF8FF;
    padding: 12px;
    color: #4E4B66;
    margin-bottom: 2rem;
}
.aviso-de-dias .aviso-de-dias-span {
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    color: #19488F;
}
.aviso-de-dias p {
    padding-left: 38px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}
.devolucion-buttons > a {
    outline: 2px solid #2C9BFF !important;
    outline-offset: -2px !important;
    color: #2C9BFF !important;
}
.devolucion-buttons > * {
    font-size: 16px;
    line-height: 22px;
    font-weight: 600 !important;
    padding: 16px 24px !important;
    height: unset !important;
}
@media (max-width: 768px) {
    .devolucion-buttons {
        padding-top: 0 !important;
    }
}

/* ---- SPINNER ---- */
.semicircle-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 !important;
    margin-right: 8px !important;
    vertical-align: middle;
    border-radius: 50%;
    border: 1px solid #ffffff;
    border-right-color: transparent;
    border-left-color: transparent;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---- INPUTS Y SELECTS ---- */
select:focus {
    box-shadow: none !important;
}
select:has(option:checked:not([value=""])),
input:not([value=""]) {
    color: #14142B; /* Color when an option is selected */
}
select option:not([value=""]):not(:disabled) {
    color: #14142B;
}
textarea {
    color: #14142B;
}
input, textarea {
    padding: 18px 20px !important;
    border-bottom: 2px solid #D9DBE9 !important;
}
.custom-form-agora span {
    letter-spacing: -0.05em !important;
    margin-bottom: 0 !important;
}
.custom-form-agora span {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #4E4B66;
    text-transform: none !important;
}

/* ---- CUSTOM SELECT ---- */
.custom-select-container {
    position: relative;
    width: 100%;
}
.custom-select-container > .custom-select-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
}
.custom-select-container > .custom-select-arrow > .arrow-icon {
    width: 22px;
    height: 22px;
    transform: rotate(-90deg);
    transition: transform 0.3s;
    position: relative;
}
.custom-select-container > .custom-select-arrow > .arrow-icon:before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: "\e819";
    font-family: "Porto";
    font-size: 22px;
    line-height: 22px;
    color: #6E7191;
}
.custom-select-container.active > .custom-select-arrow > .arrow-icon {
    transform: rotate(90deg);
}

.custom-select-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #D9DBE9;
    cursor: pointer;
    background: white;
}

/* Inputs de select con flecha: reservar espacio para la flecha y truncar
   el texto largo (ej. varios productos) en vez de que se sobreponga.
   Se usa !important para ganarle a la regla global `input, textarea { padding: ... !important }`. */
.custom-select-container > .custom-select-input {
    padding-right: 44px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #D9DBE9;
    overflow-y: auto;
    margin-top: 4px;
    padding: 8px 0;
    z-index: 10;
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.03);
}

.custom-select-option {
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 16px;
    width: 16px;
    background-color: #D9DBE9;
    border: 2px solid #D9DBE9;
    border-radius: 4px;
    margin: 0;
    cursor: pointer;
}

.custom-checkbox input:checked + label {
    background-color: #2C9BFF;
    border-color: #2C9BFF;
}

.custom-checkbox input:checked + label:after {
    content: '';
    position: absolute;
    left: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-select-option .option-text {
    flex-grow: 1;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    color: #6E7191 !important;

}
.custom-select-container.productos-select .option-text {
    align-self: stretch;
    display: flex;
    align-items: center;
}

.custom-select-option .custom-checkbox:has(input:checked) + .option-text {
    color: #14142B !important;
}

.custom-select-container.active .custom-select-dropdown {
    display: block;
}

.custom-select-container .custom-select-option .option-text {
    transition: color 50ms;
}
.custom-select-container .custom-select-option .option-text:hover,
.custom-select-container .custom-select-option .custom-checkbox:hover + .option-text {
    color: #14142B !important;
}
.custom-select-container.motivo-select .custom-select-option:hover .option-text {
    color: #14142B !important;
}
.productos-select .custom-select-option > * {
    cursor: pointer;
}
.motivo-select .custom-select-option {
    cursor: pointer;
}

/* ---- QUANTITY SELECTOR ---- */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.quantity-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #D9DBE9;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.quantity-btn:hover {
    background: #f5f5f5;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none !important;
    outline: 1px solid #D9DBE9 !important;
    outline-offset: -1px !important;
    border-radius: 4px;
    padding: 2px !important;
    font-size: 12px !important;
}

.custom-select-option {
    justify-content: space-between;
}

/* ---- IMAGES INPUT ---- */
.custom-file-input-container {
    width: 100%;
}

.custom-file-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: white;
    border-bottom: 2px solid #D9DBE9;
    padding: 18px 20px;
    gap: 16px;
}

.custom-file-button {
    cursor: pointer;
    margin: 0;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    color: #2C9BFF;
    white-space: nowrap;
}

.selected-files-names {
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    color: #14142B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
}

.custom-file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-input-help-text {
    font-size: 12px;
    line-height: 16px;
    color: #14142B;
    margin-top: 4px;
}

#fileValidationMessage {
    font-size: 12px;
    line-height: 16px;
    color: #FF3B3B;
    margin-top: 4px;
}

/* ---- DIRECCIONES ---- */
.direccion-select .custom-select-input {
    cursor: text !important;
}

.direccion-select .custom-select-group-label {
    padding: 8px 12px;
    font-weight: bold;
    color: #666;
    background-color: #f5f5f5;
}

.direccion-select .custom-select-option {
    cursor: pointer;
}

.direccion-select .custom-select-option:hover {
    background-color: #f0f0f0;
}
