:root { --chk-line: #AEB8B6; --chk-line-hover: #7C8886; --chk-on: var(--accent, #E3FC72); --chk-on-line: var(--accent-deep, #C2E22C); --chk-ring: rgba(194, 226, 44, .45); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --chk-line: #4A5E64; --chk-line-hover: #6F858B; --chk-ring: rgba(206, 250, 5, .35); }
}
:root[data-theme="dark"] { --chk-line: #4A5E64; --chk-line-hover: #6F858B; --chk-ring: rgba(206, 250, 5, .35); }

.check input[type="checkbox"],
.pm-pick input[type="checkbox"],
.sw-country input[type="checkbox"],
.card-table td input[type="checkbox"],
.rent-page .rent-terms input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; box-sizing: border-box;
  width: 20px; height: 20px; min-width: 20px; max-width: none; min-height: 0; max-height: none;
  margin: 0; padding: 0; flex: none; vertical-align: middle;
  font: inherit; line-height: inherit; color: inherit;
  border: 2px solid var(--chk-line); border-radius: 5px;
  background: var(--surface, #fff) center / 100% 100% no-repeat;
  box-shadow: none; outline: none; cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.check input[type="checkbox"],
.rent-page .rent-terms input[type="checkbox"] { margin-top: 0; margin-top: calc((1lh - 20px) / 2); }
.check input[type="checkbox"]:focus,
.pm-pick input[type="checkbox"]:focus,
.sw-country input[type="checkbox"]:focus,
.card-table td input[type="checkbox"]:focus,
.rent-page .rent-terms input[type="checkbox"]:focus { border-color: var(--chk-line); box-shadow: none; outline: none; }
.check input[type="checkbox"]:hover,
.pm-pick input[type="checkbox"]:hover,
.sw-country input[type="checkbox"]:hover,
.card-table td input[type="checkbox"]:hover,
.rent-page .rent-terms input[type="checkbox"]:hover { border-color: var(--chk-line-hover); }
.check input[type="checkbox"]:checked,
.pm-pick input[type="checkbox"]:checked,
.sw-country input[type="checkbox"]:checked,
.card-table td input[type="checkbox"]:checked,
.rent-page .rent-terms input[type="checkbox"]:checked {
  background-color: var(--chk-on); border-color: var(--chk-on-line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.3l2.9 2.9 5.9-6.1' fill='none' stroke='%23051114' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check input[type="checkbox"]:focus-visible,
.pm-pick input[type="checkbox"]:focus-visible,
.sw-country input[type="checkbox"]:focus-visible,
.card-table td input[type="checkbox"]:focus-visible,
.rent-page .rent-terms input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 3px var(--chk-ring); }
.check input[type="checkbox"]:disabled,
.pm-pick input[type="checkbox"]:disabled,
.sw-country input[type="checkbox"]:disabled,
.card-table td input[type="checkbox"]:disabled,
.rent-page .rent-terms input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
.check input[type="checkbox"]::before, .check input[type="checkbox"]::after,
.pm-pick input[type="checkbox"]::before, .pm-pick input[type="checkbox"]::after,
.sw-country input[type="checkbox"]::before, .sw-country input[type="checkbox"]::after,
.card-table td input[type="checkbox"]::before, .card-table td input[type="checkbox"]::after,
.rent-page .rent-terms input[type="checkbox"]::before, .rent-page .rent-terms input[type="checkbox"]::after { content: none !important; display: none !important; }

.check { cursor: pointer; }
.check:has(input:disabled) { cursor: not-allowed; }
.check-group { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 8px; }
.check-group > .check { flex: none; min-width: 0; }
