.jtn-cookie {
  font-family: inherit;
  color: #252825;
  box-sizing: border-box;
}
.jtn-cookie[hidden] {
  display: none !important;
}
.jtn-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 1120px;
  margin: auto;
  padding: 24px 28px;
  background: #f7f7f7;
  border: 1px solid #687487;
  border-radius: 16px;
  z-index: 2147482000;
  box-shadow: 0 8px 28px #25282526;
  display: flex;
  gap: 28px;
  align-items: center;
}
.jtn-cookie h2 {
  font:
    700 20px/1.3 Arial,
    Helvetica,
    sans-serif;
  margin: 0 0 8px;
}
.jtn-cookie p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.jtn-cookie a,
.jtn-legal-check a,
.jtn-legal-links a {
  text-decoration: underline;
  color: inherit;
  text-underline-offset: 3px;
}
.jtn-cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.jtn-cookie button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #687487;
  border-radius: 8px;
  background: #f7f7f7;
  color: #252825;
  min-height: 44px;
  padding: 10px 16px;
}
.jtn-cookie .jtn-cookie-actions button:hover {
  background: #622573;
  border-color: #622573;
  color: #fff;
}
.jtn-cookie button[data-jtn-cookie="accept"],
.jtn-cookie button[data-jtn-cookie="save"] {
  background: #252825;
  color: #f7f7f7;
  border-color: #252825;
}
.jtn-cookie button:focus-visible,
.jtn-cookie-toggle:focus-visible {
  outline: 2px solid #687487;
  outline-offset: 3px;
}
.jtn-cookie-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(720px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid #687487;
  border-radius: 16px;
  background: #f7f7f7;
  overflow: auto;
}
.jtn-cookie-dialog::backdrop {
  background: #25282599;
}
.jtn-cookie-dialog:not([open]) {
  display: none;
}
.jtn-cookie-dialog .jtn-cookie-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}
.jtn-cookie-dialog .jtn-cookie-actions button {
  height: 44px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}
.jtn-cookie-dialog .jtn-cookie-close {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
}
.jtn-cookie-category {
  display: block;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #68748755;
  font-size: 15px;
}
.jtn-cookie-category small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.jtn-cookie input {
  accent-color: #252825;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin: 0 8px 0 0;
}
.jtn-cookie-close {
  float: right;
  margin: -12px -12px 8px 8px;
}
.jtn-cookie-toggle {
  font: inherit;
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  line-height: inherit;
}
.jtn-legal-check {
  display: block;
  position: relative;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.jtn-legal-check label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font: inherit;
  margin: 0 !important;
  cursor: pointer;
}
.jtn-legal-check input {
  flex-shrink: 0;
  width: 18px !important;
  height: 18px !important;
  appearance: auto !important;
  accent-color: #252825;
  margin: 2px 0 0 !important;
  position: static !important;
  opacity: 1 !important;
}
.jtn-legal-error {
  display: none;
  color: #b32d2e;
  font-size: 12px;
  margin: 6px 0 0 28px;
}
.jtn-legal-check.jtn-invalid {
  border-color: #b32d2e;
}
.jtn-invalid .jtn-legal-error {
  display: block;
}
.callback-form__agree .wpcf7-list-item {
  margin: 0;
}
.callback-form__agree .wpcf7-list-item-label {
  font-size: 13px;
  line-height: 1.5;
}
.callback-form__agree .wpcf7-not-valid-tip {
  color: #b32d2e;
  font-size: 12px;
}
.jtn-legal-links {
  font-size: 13px;
  line-height: 1.6;
}
.jtn-legal-blocks .wc-block-components-checkbox {
  margin-bottom: 12px;
}
@media (max-width: 767px) {
  .jtn-cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: block;
    padding: 20px;
    max-height: calc(100dvh - 100px);
    overflow: auto;
  }
  .jtn-cookie-banner .jtn-cookie-actions {
    margin-top: 16px;
  }
  .jtn-cookie-actions {
    gap: 8px;
  }
  .jtn-cookie-banner .jtn-cookie-actions button {
    flex: 1 1 auto;
  }
  .jtn-cookie-dialog .jtn-cookie-actions {
    grid-template-columns: 1fr;
  }
  .jtn-cookie h2 {
    font-size: 18px;
  }
  .jtn-cookie-dialog {
    padding: 24px 20px;
  }
  .bottom__left {
    flex-wrap: wrap;
  }
}
.jtn-constructor-consents {
  margin: 16px 0;
  grid-column: 1/-1;
}
.jtn-team-consents {
  padding: 0 20px;
  flex-shrink: 0;
}
.jtn-constructor-consents .jtn-legal-check {
  margin: 6px 0;
}

/* Native, keyboard-accessible consent checkboxes; replace the legacy hidden control. */
.callback-form__agree .wpcf7-list-item > label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.callback-form__agree .wpcf7-list-item input[type="checkbox"] {
  display: inline-block !important;
  appearance: auto !important;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: #687487;
}
:is(#js-modal-callback, body)
  .callback-form__agree
  .wpcf7-list-item
  .wpcf7-list-item-label {
  padding-left: 0 !important;
}
.callback-form__agree .wpcf7-list-item-label::before,
.callback-form__agree .wpcf7-list-item-label::after {
  display: none !important;
}
.jtn-legal-check:has(input:user-invalid) {
  border-color: #b32d2e;
}
.jtn-legal-check:has(input:user-invalid) .jtn-legal-error {
  display: block;
}
.jtn-legal-check.jtn-invalid:has(input:checked) {
  border-color: transparent;
}
.jtn-legal-check.jtn-invalid:has(input:checked) .jtn-legal-error {
  display: none;
}

.order-foot:has(> .jtn-constructor-consents) {
  flex-wrap: wrap;
}
.order-foot > .jtn-constructor-consents {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}
.ordm__card:has(.jtn-constructor-consents) {
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

/* Consent rows follow the site's existing controls without large per-row spacing. */
form.wpcf7-form .callback-form__agree {
  margin: 0 0 12px;
  color: inherit;
  opacity: 1;
}
.callback-form__agree + .callback-form__agree {
  margin-top: 0;
}
.callback-form__agree .wpcf7-list-item > label {
  gap: 10px;
}
.callback-form__agree .wpcf7-list-item-label,
.jtn-legal-check {
  font-size: 14px;
  line-height: 1.5;
}
.callback-form__agree a,
.jtn-checkout-document-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.callback-form__agree a:hover,
.jtn-checkout-document-link:hover {
  text-decoration-thickness: 2px;
}
.callback-form__agree .wpcf7-list-item input[type="checkbox"],
.jtn-legal-check input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-grid !important;
  place-content: center;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.callback-form__agree input[type="checkbox"]::after,
.jtn-legal-check input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
  visibility: hidden;
}
.callback-form__agree input[type="checkbox"]:checked::after,
.jtn-legal-check input[type="checkbox"]:checked::after {
  visibility: visible;
}
.callback-form__agree input[type="checkbox"]:focus-visible,
.jtn-legal-check input[type="checkbox"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.jtn-legal-check {
  margin: 8px 0;
  padding: 4px 0;
}
.jtn-legal-check label {
  gap: 10px;
}
.jtn-legal-check.jtn-invalid {
  padding: 4px 8px;
}
/* Keep modal/cart/city layers above the header's own stacking context. */
.jtn2.jtn2-sticky-portal {
  z-index: 100000 !important;
}
@media (forced-colors: active) {
  .callback-form__agree .wpcf7-list-item input[type="checkbox"],
  .jtn-legal-check input[type="checkbox"] {
    appearance: auto !important;
  }
  .callback-form__agree input[type="checkbox"]::after,
  .jtn-legal-check input[type="checkbox"]::after {
    display: none;
  }
}

/* Accents measured from the existing hero. */
.callback__content form.wpcf7-form .callback-form__agree,
.callback__content form.wpcf7-form .callback-form__agree .wpcf7-list-item-label {
    color: #FFFFFF;
}
.callback__content .jtn-recaptcha-notice { color: #FFFFFF; }
form.wpcf7-form .callback-form__btn {
    background: #622573;
    color: #FFFFFF;
    border-radius: 8px;
}
form.wpcf7-form .callback-form__btn:hover { background: #A7468A; }
form.wpcf7-form .callback-form__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.jtn-cookie [role="status"]:empty{display:none}
