/* Közös fizetési űrlap-hibakezelés (docs/FIZETESI_HIBAKEZELES.md): mezőüzenet, összesítő és a gomb melletti tartós üzenet.
   A görgetési margó miatt a ragadós fejléc és az alsó sáv / fizetési sáv nem takarja el a hibás mezőt. */
:root { --urlap-hiba-szin: #A3341F; --urlap-hiba-hatter: #FBEDE9; --urlap-info-hatter: #EEF4EF; --urlap-info-szin: #1F4D3A; }

.urlap-hibas { scroll-margin-top: calc(96px + env(safe-area-inset-top)); scroll-margin-bottom: calc(120px + env(safe-area-inset-bottom)); }
.urlap-hiba { display: flex; align-items: flex-start; gap: 7px; margin: 8px 0 0; color: var(--urlap-hiba-szin); font-size: .9375rem; font-weight: 700; line-height: 1.35; }
.urlap-hiba__jel { flex: none; display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; margin-top: .1em; border-radius: 50%; background: var(--urlap-hiba-szin); color: #fff; font-size: .8em; line-height: 1; }
[aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]) { border-color: var(--urlap-hiba-szin) !important; box-shadow: 0 0 0 1px var(--urlap-hiba-szin); }
input[type="checkbox"][aria-invalid="true"] { outline: 2px solid var(--urlap-hiba-szin); outline-offset: 2px; }

.urlap-hiba-doboz { margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(163, 52, 31, .35); border-radius: 12px; background: var(--urlap-hiba-hatter); color: var(--td-hiba-szoveg, #5E1F12); scroll-margin: calc(96px + env(safe-area-inset-top)) 0 calc(120px + env(safe-area-inset-bottom)); }
.urlap-hiba-doboz[hidden] { display: none !important; }
.urlap-hiba-doboz:focus { outline: 3px solid rgba(163, 52, 31, .35); outline-offset: 2px; }
.urlap-hiba-doboz--info { border-color: rgba(31, 77, 58, .3); background: var(--urlap-info-hatter); color: var(--urlap-info-szin); }
.urlap-hiba-doboz__cim, .urlap-hiba-doboz__szoveg { margin: 0; font-weight: 700; line-height: 1.4; }
.urlap-hiba-doboz__lista { margin: 6px 0 0; padding: 0; list-style: none; }
.urlap-hiba-doboz__lista a, .urlap-hiba-doboz__muvelet { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.urlap-hiba-doboz__lista a { display: block; padding: 6px 0; line-height: 1.35; }
.urlap-hiba-doboz__muvelet { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

.urlap-gomb--toltes { position: relative; cursor: progress; }
.urlap-gomb--toltes::before { content: ""; width: 1em; height: 1em; margin-right: .5em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: urlap-porog .8s linear infinite; vertical-align: -.15em; display: inline-block; }
@keyframes urlap-porog { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .urlap-gomb--toltes::before { animation-duration: 2.4s; } }

html.dark-theme .urlap-hiba-doboz { background: #3a1d17; color: #f6d5cc; border-color: rgba(246, 213, 204, .3); }
html.dark-theme .urlap-hiba-doboz--info { background: #17302a; color: #cfe8df; }
html.dark-theme .urlap-hiba { color: #ff9c86; }
