.al-consent-panel,
.al-consent-dialog {
  box-sizing: border-box;
  color: #fff;
  background: linear-gradient(145deg, rgba(62, 5, 77, .72), rgba(10, 8, 16, .8) 58%, rgba(46, 17, 27, .74));
  border: 1px solid rgba(248, 117, 73, .45);
  border-radius: 14px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font: 400 13px/1.45 Inter, ui-sans-serif, system-ui, sans-serif;
}

.al-consent-panel[hidden] { display: none !important; }

.al-consent-panel {
  position: fixed;
  z-index: 1000;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: min(344px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  padding: 12px 13px 13px;
}

.al-consent-panel strong,
.al-consent-dialog h2 {
  display: block;
  margin: 0;
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
}

.al-consent-panel strong { font-size: 15px; line-height: 1.18; }
.al-consent-dialog h2 { font-size: 17px; line-height: 1.2; }

.al-consent-panel p,
.al-consent-dialog p {
  color: rgba(255, 255, 255, .78);
}

.al-consent-panel p {
  margin: 5px 0 6px;
  font-size: 11px;
  line-height: 1.34;
}

.al-consent-dialog p {
  margin: 8px 0 10px;
  font-size: 12px;
  line-height: 1.45;
}

.al-consent-panel a {
  color: #ffad80;
  font-size: 11px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.al-consent-panel a:hover { color: #fff; }

.al-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.al-consent-panel .al-consent-actions { margin-top: 8px; }

.al-consent-actions button,
.al-consent-revisit {
  cursor: pointer;
  min-height: 39px;
  padding: 7px 6px;
  border: 1px solid rgba(248, 117, 73, .42);
  border-radius: 6px;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  font: 700 11px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.al-consent-panel .al-consent-actions button {
  min-height: 34px;
  padding: 5px 4px;
  font-size: 10px;
  line-height: 1.15;
}

.al-consent-actions button:hover,
.al-consent-revisit:hover {
  border-color: rgba(248, 117, 73, .8);
  background: rgba(248, 117, 73, .16);
  transform: translateY(-1px);
}

.al-consent-actions [data-accept],
.al-consent-actions [data-dialog-save] {
  border-color: rgba(248, 117, 73, .7);
  background: linear-gradient(110deg, #7b2b82, #e05a2a);
}

.al-consent-actions [data-accept]:hover,
.al-consent-actions [data-dialog-save]:hover {
  background: linear-gradient(110deg, #923594, #f87549);
}

.al-consent-actions button:focus-visible,
.al-consent-revisit:focus-visible,
.al-consent-panel a:focus-visible,
.al-consent-dialog input:focus-visible {
  outline: 2px solid #ffad80;
  outline-offset: 2px;
}

.al-consent-dialog {
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 20px;
}

.al-consent-dialog::backdrop { background: rgba(3, 2, 8, .62); }

.al-consent-dialog form {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.al-consent-dialog label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: normal;
  text-transform: none;
}

.al-consent-dialog input[type="checkbox"] {
  flex: none;
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: #e05a2a;
}

.al-consent-revisit {
  position: fixed;
  z-index: 999;
  right: 16px;
  bottom: 16px;
  min-height: 34px;
  padding-inline: 12px;
  background: rgba(18, 9, 24, .7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 11px;
}

body[data-locale] .al-consent-revisit {
  position: static;
  display: block;
  margin: 18px auto;
}

.al-consent-panel:not([hidden]) ~ .al-consent-revisit { display: none; }

@media (min-width: 761px) {
  .al-consent-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: grid;
    grid-template-columns: clamp(145px, 11vw, 185px) minmax(0, 1fr) clamp(270px, 28vw, 360px);
    grid-template-areas:
      "title summary actions"
      "policy summary actions";
    column-gap: clamp(16px, 2vw, 32px);
    row-gap: 4px;
    align-items: center;
    padding: 12px clamp(24px, 3vw, 56px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(62, 5, 77, .84), rgba(10, 8, 16, .88) 55%, rgba(46, 17, 27, .82));
  }

  .al-consent-panel > strong { grid-area: title; }
  .al-consent-panel > p { grid-area: summary; margin: 0; }
  .al-consent-panel > a { grid-area: policy; }
  .al-consent-panel > .al-consent-actions { grid-area: actions; margin: 0; }
}

@media (max-width: 380px) {
  .al-consent-panel { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 16px); padding: 11px; }
  .al-consent-dialog { width: calc(100vw - 24px); padding: 16px; }
  .al-consent-actions { gap: 5px; }
  .al-consent-actions button { padding-inline: 4px; font-size: 10px; }
}
