.consent-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto 80px;
}

.consent-hero,
.consent-panel {
  border: 1px solid rgba(15, 107, 103, 0.22);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(9, 38, 38, 0.08);
}

.consent-hero {
  padding: clamp(24px, 5vw, 52px);
  background: linear-gradient(135deg, #062f32, #0f6b67);
  color: #fff;
}

.consent-kicker {
  margin: 0 0 10px;
  color: #c9f24a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.consent-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
}

.consent-hero p:last-child {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.consent-panel {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 38px);
}

.consent-panel[hidden],
.consent-status[hidden] {
  display: none;
}

.consent-form {
  display: grid;
  gap: 16px;
  max-width: 620px;
}

.consent-form label {
  display: grid;
  gap: 7px;
  color: #173a3a;
  font-weight: 750;
}

.consent-form input,
.consent-form textarea,
.consent-toolbar select {
  width: 100%;
  border: 1px solid #afc4c0;
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: #142020;
  font: inherit;
}

.consent-form input:focus,
.consent-form textarea:focus,
.consent-toolbar select:focus {
  outline: 3px solid rgba(201, 242, 74, 0.52);
  border-color: #0f6b67;
}

.consent-button {
  width: fit-content;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: #0f6b67;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.consent-button:hover {
  background: #084c4a;
}

.consent-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.consent-button.is-secondary {
  border: 1px solid #0f6b67;
  background: #fff;
  color: #0f6b67;
}

.consent-button.is-warning {
  background: #8b3a28;
}

.consent-status {
  margin-top: 16px;
  border-left: 4px solid #0f6b67;
  padding: 12px 14px;
  background: #edf7f4;
}

.consent-status.is-error {
  border-color: #a33b2b;
  background: #fff1ee;
  color: #72261c;
}

.consent-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.consent-summary article {
  border: 1px solid #d5e2df;
  border-radius: 12px;
  padding: 18px;
  background: #f7faf9;
}

.consent-summary strong,
.consent-summary span {
  display: block;
}

.consent-summary strong {
  color: #062f32;
  font-size: 1.8rem;
}

.consent-summary span {
  color: #4e6967;
  font-size: 0.84rem;
}

.consent-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}

.consent-toolbar label {
  min-width: 240px;
  color: #173a3a;
  font-weight: 700;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-table-wrap {
  overflow-x: auto;
  border: 1px solid #d5e2df;
  border-radius: 12px;
}

.consent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.consent-table th,
.consent-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e0e9e7;
  text-align: left;
  vertical-align: top;
}

.consent-table th {
  background: #eef5f3;
  color: #173a3a;
  white-space: nowrap;
}

.consent-table tr:last-child td {
  border-bottom: 0;
}

.consent-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  background: #e7efed;
  color: #234b49;
  font-size: 0.76rem;
  font-weight: 800;
}

.consent-badge[data-status="confirmed"],
.consent-badge[data-status="granted"] {
  background: #e9f7d1;
  color: #345400;
}

.consent-badge[data-status="withdrawn"],
.consent-badge[data-status="unsubscribed"] {
  background: #fce7e3;
  color: #7b2c20;
}

.consent-note {
  color: #58716f;
  font-size: 0.9rem;
}

@media (max-width: 780px) {
  .consent-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .consent-shell {
    width: min(100% - 20px, 1180px);
  }

  .consent-summary {
    grid-template-columns: 1fr;
  }
}
