/* Huslejestigning-tjek: the parts that depositum-tjek.css does not have.
   Load this file after depositum-tjek.css. */

/* Step 1: the increase under the two rents. */
.rc-increase:empty { display: none; }

/* What the notice contains. */
.rc-checks { display: grid; gap: 10px; }
.rc-check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--dc-line); border-radius: 12px; background: var(--dc-paper); font-weight: 700; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.rc-check:hover, .rc-check:has(input:checked) { border-color: var(--dc-green); background: var(--dc-green-soft); }
.rc-check input { width: 24px; height: 24px; margin: 0; accent-color: var(--dc-green); }
.rc-check input:focus-visible { outline: 3px solid rgba(10, 77, 60, 0.35); outline-offset: 2px; }

/* The two dates. */
.rc-dates { display: grid; gap: 12px; }
.rc-dates .dc-detail input[type="date"] { max-width: none; width: 100%; }

/* Verdict: a date instead of an amount needs less room per character. */
.dc-amount.rc-date { font-size: clamp(1.75rem, 8.4vw, 2.5rem); }
.dc-headline.is-object .dc-question, .dc-headline.is-late .dc-question, .dc-headline.is-ok .dc-question { font-weight: 700; }

/* The deadline to object. */
.rc-deadline { display: grid; gap: 4px; padding: 14px 16px; border: 2px solid var(--dc-amber); border-radius: 14px; background: var(--dc-amber-soft); color: var(--dc-amber-ink); }
.rc-deadline strong { color: var(--dc-ink); font-size: 1.08rem; line-height: 1.3; }
.rc-deadline-left { font-size: 0.86rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.rc-deadline p { margin: 4px 0 2px; color: var(--dc-ink); font-size: 0.93rem; }
.rc-deadline a { justify-self: start; color: var(--dc-green); font-size: 0.86rem; font-weight: 700; }
.rc-deadline.is-passed { border-color: var(--dc-line); background: #f4f6f5; color: var(--dc-muted); }

/* What the check cannot tell, and the warning about paying. */
.rc-note { padding: 12px 14px; border: 1px solid var(--dc-line); border-radius: 12px; background: #fbfcfa; }
.rc-note strong { display: block; font-size: 0.95rem; }
.rc-note p { margin: 4px 0 0; color: var(--dc-muted); font-size: 0.92rem; }
.rc-note a { color: var(--dc-green); font-weight: 700; }
.rc-note.is-caution { border-color: #ecd9b0; background: var(--dc-amber-soft); }
.rc-note.is-caution strong { color: var(--dc-amber-ink); }
.rc-note.is-caution p { color: var(--dc-ink); }

/* The bought pack: which version of the follow-up letter is shown. */
.rc-switch { display: grid; gap: 6px; padding: 6px; border: 1px solid var(--dc-line); border-radius: 14px; background: #f6f9f7; }
.rc-switch[hidden] { display: none; }
.rc-switch-option { min-height: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--dc-muted); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.rc-switch-option.is-active { border-color: var(--dc-green); background: #fff; color: var(--dc-green); }
.rc-switch-option:focus-visible { outline: 3px solid rgba(10, 77, 60, 0.35); outline-offset: 2px; }

@media (min-width: 560px) {
  .rc-dates { grid-template-columns: 1fr 1fr; }
  .rc-switch { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rc-check { transition: none; }
}
