/* ============================================================
   Solutioo Withdrawal – Hyvä-spezifische CSS-Overrides

   Hyvä 1.4.x verwendet Tailwind v4 mit CSS-Layern (theme/base/
   components/utilities). Tailwind setzt im base-Layer u.a.
   `[type=text] { appearance: none; border-width: 1px;
   background: var(--form-bg); padding-inline: var(--form-px); ... }`.

   Da unsere `.withdrawal-input`-Regeln in withdrawal.css zwar
   `!important`, aber teils generische `border`-Shorthand-Werte
   verwenden, gewinnt in seltenen Render-Konstellationen Tailwinds
   längliches `:is([type=text],...)`-Selector mit höherer
   Spezifität. Diese Datei erzwingt die Sichtbarkeit der Inputs
   auf der Widerruf-Seite mit maximaler Spezifität.
   ============================================================ */

[x-data] .withdrawal-input,
.withdrawal-step-card .withdrawal-input,
input.withdrawal-input,
select.withdrawal-input,
textarea.withdrawal-input {
    display: block !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: #1a1a1a !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 2px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    outline: none !important;
}

[x-data] .withdrawal-input:focus,
.withdrawal-step-card .withdrawal-input:focus,
input.withdrawal-input:focus,
select.withdrawal-input:focus,
textarea.withdrawal-input:focus {
    border-color: #6c5ce7 !important;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15) !important;
    outline: none !important;
}

[x-data] .withdrawal-input::placeholder,
.withdrawal-step-card .withdrawal-input::placeholder,
input.withdrawal-input::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

[x-data] .withdrawal-fields-row,
.withdrawal-step-card .withdrawal-fields-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
}

[x-data] .withdrawal-fields-row--3,
.withdrawal-step-card .withdrawal-fields-row--3 {
    grid-template-columns: 1fr 1fr 1fr !important;
}

@media (max-width: 640px) {
    [x-data] .withdrawal-fields-row,
    [x-data] .withdrawal-fields-row--3,
    .withdrawal-step-card .withdrawal-fields-row,
    .withdrawal-step-card .withdrawal-fields-row--3 {
        grid-template-columns: 1fr !important;
    }
}

[x-data] .withdrawal-field,
.withdrawal-step-card .withdrawal-field {
    display: block !important;
    margin-bottom: 16px;
    min-width: 0;
}

[x-data] .withdrawal-field label,
.withdrawal-step-card .withdrawal-field label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    margin-bottom: 6px !important;
    color: #343a40 !important;
}

[x-data] .withdrawal-field label .required,
.withdrawal-step-card .withdrawal-field label .required {
    color: #dc3545 !important;
}

[x-data] .withdrawal-step-card__body {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[x-data] .withdrawal-textarea,
.withdrawal-step-card .withdrawal-textarea {
    min-height: 100px !important;
    resize: vertical !important;
    font-family: inherit !important;
}

[x-data] .withdrawal-select,
.withdrawal-step-card .withdrawal-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 8px !important;
    padding-right: 40px !important;
}

[x-data] .withdrawal-qty-input,
.withdrawal-step-card .withdrawal-qty-input {
    width: 80px !important;
    min-width: 80px !important;
    text-align: center !important;
}
