/* #dlaHanki – formularz przypomnień 1,5% (okno i wersja osadzona). Kolor marki: --dhp-brand. */
.dh-reminder-wrap{--dhp-brand:#a92736;--dhp-brand-dark:#861d2a;margin:1em 0;font-family:inherit}
.dh-reminder-wrap *,.dh-reminder-wrap *::before,.dh-reminder-wrap *::after{box-sizing:border-box}
.dh-reminder-trigger{display:inline-block;cursor:pointer;border:0;border-radius:8px;padding:12px 18px;background:var(--dhp-brand);color:#fff;font-weight:600;font-size:1rem;line-height:1.3;text-decoration:none}
.dh-reminder-trigger:hover,.dh-reminder-trigger:focus-visible{filter:brightness(.88);color:#fff}
.dh-reminder-trigger:focus-visible{outline:3px solid #2271b1;outline-offset:2px}
.dh-reminder-admin-error{padding:10px 12px;border:1px solid #d63638;border-radius:6px;background:#fcf0f1}

/* Okno */
.dh-reminder-modal{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:12px}
.dh-reminder-modal[hidden]{display:none!important}
.dh-reminder-backdrop{position:absolute;inset:0;background:rgba(18,18,18,.68)}
.dh-reminder-panel{position:relative;z-index:1;display:flex;flex-direction:column;width:min(520px,100%);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:hidden;margin:0;border-radius:14px;background:#fff;color:#222;box-shadow:0 20px 70px rgba(0,0,0,.28);text-align:left}
.dh-reminder-panel:focus{outline:none}
.dh-reminder-modal-header{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:12px 56px 12px 18px;background:var(--dhp-brand);color:#fff}
.dh-reminder-modal-logo{display:block;width:auto;max-width:96px;max-height:30px;flex:0 0 auto}
.dh-reminder-modal-header h3{margin:0;font-size:1.05rem;line-height:1.25;color:#fff;font-weight:700}
.dh-reminder-close{position:absolute;top:9px;right:10px;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.2);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.dh-reminder-close:hover,.dh-reminder-close:focus-visible{background:rgba(255,255,255,.35)}
.dh-reminder-close:focus-visible{outline:3px solid #fff;outline-offset:1px}

/* Formularz */
.dh-reminder-form,.dh-reminder-result{flex:1 1 auto;min-height:0;overflow-y:auto;margin:0;padding:12px 18px 16px}
.dh-reminder-result{padding:18px}
.dh-reminder-result[hidden],.dh-reminder-form[hidden]{display:none!important}
.dh-reminder-fieldset{margin:0;padding:0;border:0;min-width:0}
.dh-reminder-legend,.dh-reminder-field>label{display:block;margin:10px 0 4px;padding:0;font-size:.88rem;line-height:1.3;font-weight:600;color:#222}
.dh-reminder-field[hidden],.dh-reminder-consent[hidden],.dh-reminder-channel-note[hidden]{display:none!important}
.dh-reminder-form input[type=email],.dh-reminder-form input[type=tel],.dh-reminder-form select,.dh-reminder-otp input{display:block;width:100%;max-width:100%;height:42px;margin:0;padding:6px 10px;border:1px solid #aaa;border-radius:6px;background:#fff;color:#222;font-size:16px;line-height:1.2;font-family:inherit}
.dh-reminder-form input:focus-visible,.dh-reminder-form select:focus-visible,.dh-reminder-otp input:focus-visible{outline:3px solid #2271b1;outline-offset:1px;border-color:#2271b1}
.dh-reminder-form input[aria-invalid=true]{border-color:#b32d2e;box-shadow:0 0 0 1px #b32d2e}
.dh-reminder-channel-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dh-reminder-channel-choice{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;margin:0;padding:6px 10px;border:1px solid #d8d8d8;border-radius:999px;background:#fff;color:#292929;cursor:pointer;font-weight:600;transition:background .15s,border-color .15s,color .15s}
.dh-reminder-channel-choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.dh-reminder-channel-choice.is-selected{background:var(--dhp-brand);border-color:var(--dhp-brand);color:#fff}
.dh-reminder-channel-choice:not(.is-selected):hover{border-color:var(--dhp-brand);background:#fff8f9}
.dh-reminder-channel-choice:has(input:focus-visible){outline:3px solid #2271b1;outline-offset:2px}
.dh-reminder-channel-icon{display:flex;width:20px;height:20px;flex:0 0 20px}
.dh-reminder-channel-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dh-reminder-channel-title{font-size:.95rem;line-height:1.2}
.dh-reminder-phone{display:flex;align-items:center;gap:8px}
.dh-reminder-phone span{font-weight:600;white-space:nowrap}
.dh-reminder-field-hint{display:block;margin-top:3px;font-size:.75rem;line-height:1.3;color:#666}
.dh-reminder-date-controls{display:grid;grid-template-columns:.8fr 1.5fr 1fr;gap:6px}
.dh-reminder-date-controls select:disabled{background:#f2f2f2;color:#555;opacity:1}
.dh-reminder-consent{display:flex;align-items:flex-start;gap:8px;margin:9px 0 0;font-size:.8rem;line-height:1.38;font-weight:400;color:#333;cursor:pointer}
.dh-reminder-consent input{flex:0 0 auto;width:16px;height:16px;margin:2px 0 0;accent-color:var(--dhp-brand)}
.dh-reminder-consent a{color:var(--dhp-brand)}
.dh-reminder-consent.is-invalid span{color:#b32d2e}
.dh-reminder-channel-note{margin:8px 0 0;font-size:.78rem;line-height:1.35;color:#5b5b5b}
.dh-reminder-more{margin:8px 0 0;font-size:.78rem;color:#5b5b5b}
.dh-reminder-more summary{cursor:pointer;text-decoration:underline;width:max-content;max-width:100%}
.dh-reminder-privacy-note{margin:4px 0 0}
.dh-reminder-form-error{margin:10px 0 0;padding:8px 10px;border-radius:6px;background:#fff0f0;color:#8b1c1c;font-size:.85rem;line-height:1.4}
.dh-reminder-form-error[hidden]{display:none}
.dh-reminder-form-actions{display:flex;align-items:center;gap:12px;margin:12px 0 0}
.dh-reminder-submit,.dh-reminder-primary{flex:1 1 auto;min-height:46px;margin:0;padding:10px 18px;border:0;border-radius:8px;background:var(--dhp-brand);color:#fff;font-weight:700;font-size:1rem;cursor:pointer;font-family:inherit}
.dh-reminder-submit:hover,.dh-reminder-primary:hover{filter:brightness(.9)}
.dh-reminder-submit:disabled{opacity:.65;cursor:wait}
.dh-reminder-submit:focus-visible,.dh-reminder-primary:focus-visible,.dh-reminder-secondary:focus-visible,.dh-reminder-cancel:focus-visible{outline:3px solid #2271b1;outline-offset:2px}
.dh-reminder-cancel{flex:0 0 auto;margin:0;padding:6px 10px;border:0;background:transparent;color:#666;text-decoration:underline;font-size:.88rem;cursor:pointer;font-family:inherit}
.dh-reminder-secondary{min-height:44px;padding:10px 18px;border:1px solid #bbb;border-radius:8px;background:#fff;color:#333;font-weight:600;cursor:pointer;font-family:inherit}
.dh-reminder-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* Wynik i kod SMS */
.dh-reminder-result{text-align:center;font-size:1rem;line-height:1.6}
.dh-reminder-result-title{margin:4px 0 8px;font-size:1.2rem;line-height:1.3;color:#222}
.dh-reminder-result p{margin:0 0 14px}
.dh-reminder-result.is-error .dh-reminder-result-title,.dh-reminder-result.is-error [data-dh-result-message]{color:#8b1c1c}
.dh-reminder-result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:8px}
.dh-reminder-result-actions .dh-reminder-primary{flex:0 1 auto;min-width:140px}
.dh-reminder-otp{max-width:280px;margin:4px auto 10px;text-align:left}
.dh-reminder-otp label{display:block;margin:0 0 4px;font-weight:600;font-size:.88rem}
.dh-reminder-otp input{text-align:center;letter-spacing:.3em;font-size:20px}
.dh-reminder-otp .dh-reminder-submit{width:100%;margin-top:10px}
.dh-reminder-otp-error{margin:8px 0 0!important;color:#8b1c1c;font-size:.85rem}

/* Telefon: karta na środku ekranu z marginesem (nie przyklejona do dołu) */
@media (max-width:480px){
  .dh-reminder-modal{padding:12px}
  .dh-reminder-modal-header{padding:11px 54px 11px 14px}
  .dh-reminder-form{padding:10px 14px 14px}
  .dh-reminder-result{padding:14px}
  .dh-reminder-wrap:not(.dh-reminder-inline-wrap) .dh-reminder-cancel{display:none}
}
/* Niski ekran */
@media (max-height:640px){
  .dh-reminder-modal-logo{display:none}
  .dh-reminder-modal-header{padding-top:9px;padding-bottom:9px}
  .dh-reminder-close{top:6px;width:32px;height:32px}
  .dh-reminder-legend,.dh-reminder-field>label{margin:7px 0 3px}
  .dh-reminder-form input[type=email],.dh-reminder-form input[type=tel],.dh-reminder-form select{height:38px}
  .dh-reminder-channel-choice{min-height:38px}
  .dh-reminder-consent{margin-top:6px;font-size:.76rem;line-height:1.32}
  .dh-reminder-field-hint{display:none}
  .dh-reminder-form-actions{margin-top:9px}
  .dh-reminder-submit{min-height:42px}
}

/* Wersja osadzona (landing, inline="1") — bez okna, na pełną szerokość */
.dh-reminder-inline-wrap{width:100%;margin:0}
.dh-reminder-inline-wrap .dh-reminder-inline-modal{position:static;inset:auto;z-index:auto;display:block;padding:0}
.dh-reminder-inline-wrap .dh-reminder-inline-panel{display:block;width:100%;max-width:none;max-height:none;overflow:visible;border-radius:0;background:transparent;color:inherit;box-shadow:none}
.dh-reminder-inline-wrap .dh-reminder-form,.dh-reminder-inline-wrap .dh-reminder-result{overflow:visible;padding:0}
.dh-reminder-inline-wrap .dh-reminder-submit{width:100%;min-height:54px;border-radius:999px;font-weight:750}
.dh-reminder-inline-wrap .dh-reminder-result{text-align:left}
.dh-reminder-inline-wrap .dh-reminder-result-actions{justify-content:flex-start}

body.dh-reminder-open{overflow:hidden}
@media (prefers-reduced-motion:reduce){.dh-reminder-channel-choice{transition:none}}

/* Odporność na style motywu strony (nagłówki, etykiety, akapity, przyciski) — wartości w px, bez zależności od rozmiaru czcionki motywu */
.dh-reminder-wrap .dh-reminder-panel{font-size:16px!important;line-height:1.45!important;letter-spacing:normal!important;text-transform:none!important}
.dh-reminder-wrap .dh-reminder-modal-header h3,.dh-reminder-wrap .dh-reminder-modal-header h3[data-dh-modal-title]{margin:0!important;padding:0!important;color:#fff!important;font-family:inherit!important;font-size:17px!important;line-height:1.25!important;font-weight:700!important;letter-spacing:normal!important;text-transform:none!important;border:0!important;background:none!important}
.dh-reminder-wrap .dh-reminder-modal-header h3::before,.dh-reminder-wrap .dh-reminder-modal-header h3::after{content:none!important}
.dh-reminder-wrap .dh-reminder-legend,.dh-reminder-wrap .dh-reminder-field>label{color:#222!important;font-size:14px!important;font-weight:600!important;line-height:1.3!important;font-family:inherit!important;text-transform:none!important;letter-spacing:normal!important}
.dh-reminder-wrap .dh-reminder-consent,.dh-reminder-wrap .dh-reminder-consent span{color:#333!important;font-size:13px!important;line-height:1.4!important;font-weight:400!important}
.dh-reminder-wrap .dh-reminder-consent a{color:var(--dhp-brand)!important}
.dh-reminder-wrap .dh-reminder-channel-note,.dh-reminder-wrap .dh-reminder-more,.dh-reminder-wrap .dh-reminder-privacy-note{font-size:12.5px!important;line-height:1.4!important;color:#5b5b5b!important}
.dh-reminder-wrap .dh-reminder-channel-title{font-size:15px!important;line-height:1.2!important}
.dh-reminder-wrap .dh-reminder-channel-choice:not(.is-selected) .dh-reminder-channel-title{color:#292929!important}
.dh-reminder-wrap .dh-reminder-channel-choice.is-selected .dh-reminder-channel-title{color:#fff!important}
.dh-reminder-wrap .dh-reminder-form :is(input[type=email],input[type=tel],select){font-size:16px!important;height:42px!important;padding:6px 10px!important;margin:0!important;line-height:1.2!important;box-shadow:none}
.dh-reminder-wrap .dh-reminder-submit,.dh-reminder-wrap .dh-reminder-primary{font-size:16px!important;line-height:1.2!important;color:#fff!important;text-transform:none!important;letter-spacing:normal!important}
.dh-reminder-wrap .dh-reminder-result-title{color:#222!important;font-size:19px!important;line-height:1.3!important;font-family:inherit!important;text-transform:none!important;margin:4px 0 8px!important}
.dh-reminder-wrap .dh-reminder-result p{font-size:15px!important;line-height:1.55!important;color:#333!important}
.dh-reminder-wrap .dh-reminder-result.is-error .dh-reminder-result-title,.dh-reminder-wrap .dh-reminder-result.is-error [data-dh-result-message]{color:#8b1c1c!important}
@media (max-height:640px){
  .dh-reminder-wrap .dh-reminder-form :is(input[type=email],input[type=tel],select){height:38px!important}
  .dh-reminder-wrap .dh-reminder-consent,.dh-reminder-wrap .dh-reminder-consent span{font-size:12px!important;line-height:1.32!important}
}
