/* 공통 마케팅 활용 동의 자세히보기 모달 */
.marketing-consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.marketing-consent-row label,
.marketing-consent-row .marketing-consent-label {
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.45;
  flex: 1;
}

.marketing-consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.marketing-detail-btn {
  border: 0;
  background: transparent;
  color: #0b3a6f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
  padding: 2px 0;
}

.marketing-detail-btn:hover {
  color: #c8913b;
}

.marketing-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.marketing-modal.is-open {
  display: block;
}

.marketing-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.marketing-modal__panel {
  position: relative;
  width: min(92vw, 580px);
  max-height: 84vh;
  overflow-y: auto;
  margin: 7vh auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.marketing-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid #e8e8e8;
}

.marketing-modal__header h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  color: #111;
}

.marketing-modal__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f1f1f1;
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.marketing-modal__body {
  padding: 22px 24px;
  color: #333;
  font-size: 14px;
  line-height: 1.75;
}

.marketing-modal__body p {
  margin: 0 0 16px;
}

.marketing-modal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.marketing-modal__table th,
.marketing-modal__table td {
  border: 1px solid #e1e1e1;
  padding: 12px;
  vertical-align: top;
  text-align: left;
}

.marketing-modal__table th {
  width: 135px;
  background: #f7f7f7;
  color: #111;
  font-weight: 700;
}

.marketing-modal__notice {
  padding: 14px;
  border-radius: 10px;
  background: #f8f4ed;
  color: #6a4b20;
}

.marketing-modal__footer {
  padding: 18px 24px 24px;
  text-align: right;
}

.marketing-modal__confirm {
  min-width: 110px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #0b2444;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

body.marketing-modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .marketing-consent-row {
    align-items: flex-start;
  }

  .marketing-modal__panel {
    width: calc(100vw - 24px);
    margin-top: 5vh;
  }

  .marketing-modal__header,
  .marketing-modal__body,
  .marketing-modal__footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .marketing-modal__table th,
  .marketing-modal__table td {
    display: block;
    width: 100%;
  }

  .marketing-modal__table th {
    border-bottom: 0;
  }
}
