.jt-consent {
  --jt-consent-brand: #1769e0;
  --jt-consent-text: #20242b;
  --jt-consent-muted: #667085;
  --jt-consent-line: #dde2ea;
  width: 100%;
  color: var(--jt-consent-text);
  font: 15px/1.6 system-ui, -apple-system, "Noto Sans KR", sans-serif;
}

.jt-consent,
.jt-consent * {
  box-sizing: border-box;
}

.jt-consent button,
.jt-consent input {
  font: inherit;
}

.jt-consent-summary {
  display: grid;
  gap: 12px;
  width: min(370px, 100%);
  margin: 16px 0;
}

.jt-consent-summary-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
}

.jt-consent-all-row {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--jt-consent-line);
}

.jt-consent-all-row .jt-consent-summary-label {
  font-size: 16px;
}

.jt-consent-summary-check {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  margin: 0 !important;
  padding: 0 !important;
  flex: none;
  accent-color: var(--jt-consent-brand);
  cursor: pointer;
}

.jt-consent-summary-label {
  margin: 0;
  color: var(--jt-consent-text);
  font-weight: 700;
  cursor: pointer;
}

.jt-consent-link {
  margin-left: auto;
  color: var(--jt-consent-brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.jt-consent-link:hover {
  color: #0f52b5;
}

.jt-consent-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(23, 105, 224, .25);
  outline-offset: 3px;
}

.jt-consent-modal[hidden] {
  display: none;
}

.jt-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: left;
}

.jt-consent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .58);
}

.jt-consent-modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 850px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.jt-consent-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--jt-consent-line);
}

.jt-consent-modal-header h2 {
  margin: 0;
  color: var(--jt-consent-text);
  font-size: 20px;
  line-height: 1.4;
}

.jt-consent-modal-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: var(--jt-consent-text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.jt-consent-modal-body {
  overflow: auto;
  padding: 22px;
}

.jt-consent-section + .jt-consent-section {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--jt-consent-line);
}

.jt-consent-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--jt-consent-text);
  font-size: 17px;
  line-height: 1.5;
}

.jt-consent-required {
  color: #d92d20;
}

.jt-consent-optional {
  color: var(--jt-consent-muted);
}

.jt-consent-description {
  margin: 0 0 14px;
  color: #475467;
}

.jt-consent-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  color: var(--jt-consent-text);
  font-size: 14px;
}

.jt-consent-table th,
.jt-consent-table td {
  padding: 11px 12px;
  border: 1px solid var(--jt-consent-line);
  text-align: left;
  vertical-align: top;
}

.jt-consent-table th {
  width: 150px;
  background: #f8fafc;
}

.jt-consent-check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  color: var(--jt-consent-text);
  font-weight: 700;
  cursor: pointer;
}

.jt-consent-check-row input,
.jt-consent-channel-grid input {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin: 3px 0 0 !important;
  padding: 0 !important;
  accent-color: var(--jt-consent-brand);
  flex: none;
}

.jt-consent-channel-box {
  margin-top: 13px;
  padding: 14px;
  border-radius: 10px;
  background: #f8fafc;
}

.jt-consent-channel-box + .jt-consent-description {
  margin-top: 14px;
}

.jt-consent-channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 10px;
}

.jt-consent-channel-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--jt-consent-text);
  cursor: pointer;
}

.jt-consent-error {
  min-height: 24px;
  margin: 9px 0 0;
  color: #d92d20;
  font-size: 13px;
  font-weight: 700;
}

.jt-consent-error + .jt-consent-description {
  margin-top: 8px;
}

.jt-consent-modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--jt-consent-line);
  background: #fff;
}

.jt-consent-confirm-button {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--jt-consent-brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

body.jt-consent-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .jt-consent-summary-row {
    gap: 7px;
  }

  .jt-consent-summary-label {
    font-size: 13px;
  }

  .jt-consent-all-row .jt-consent-summary-label {
    font-size: 14px;
  }

  .jt-consent-link {
    font-size: 13px;
  }

  .jt-consent-modal {
    padding: 0;
    align-items: end;
  }

  .jt-consent-modal-panel {
    max-height: 94vh;
    border-radius: 16px 16px 0 0;
  }

  .jt-consent-modal-header,
  .jt-consent-modal-body,
  .jt-consent-modal-footer {
    padding-left: 17px;
    padding-right: 17px;
  }

  .jt-consent-table,
  .jt-consent-table tbody,
  .jt-consent-table tr,
  .jt-consent-table th,
  .jt-consent-table td {
    display: block;
    width: 100%;
  }

  .jt-consent-table tr + tr {
    margin-top: 9px;
  }

  .jt-consent-table th {
    border-bottom: 0;
    padding-bottom: 7px;
  }

  .jt-consent-table td {
    padding-top: 8px;
  }
}

