:root {
  --azm-cookie-red: #a7191f;
  --azm-cookie-red-dark: #7f1116;
  --azm-cookie-red-soft: #fff1f1;
  --azm-cookie-ink: #211f20;
  --azm-cookie-muted: #5f5a5c;
  --azm-cookie-border: #e3dddd;
  --azm-cookie-surface: #fff;
}

.azm-cookie-banner,
.azm-cookie-modal {
  box-sizing: border-box;
  color: var(--azm-cookie-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.azm-cookie-banner *,
.azm-cookie-modal * {
  box-sizing: border-box;
}

.azm-cookie-banner[hidden],
.azm-cookie-modal[hidden] {
  display: none !important;
}

.azm-cookie-banner {
  position: fixed;
  z-index: 10000;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 0;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -10px 36px rgba(43, 22, 24, .18);
}

.azm-cookie-banner::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azm-cookie-red-dark), #d33b42 55%, var(--azm-cookie-red-dark));
  content: '';
}

.azm-cookie-banner__inner {
  display: grid;
  grid-template-columns: auto minmax(340px, 1fr) auto;
  align-items: center;
  gap: 1.35rem;
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.15rem;
}

.azm-cookie-icon {
  display: grid;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #f0d9c2;
  border-radius: 22px;
  background: #fff7ef;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .65);
}

.azm-cookie-icon svg {
  display: block;
  width: 57px;
  height: 57px;
}

.azm-cookie-icon__biscuit {
  fill: #d99a52;
  stroke: #a85e27;
  stroke-width: 2;
}

.azm-cookie-icon__bite {
  fill: #fff7ef;
}

.azm-cookie-icon__chip {
  fill: #6f351d;
}

.azm-cookie-banner__content {
  min-width: 0;
}

.azm-cookie-kicker {
  display: block;
  margin-bottom: .18rem;
  color: var(--azm-cookie-red);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.25;
  text-transform: uppercase;
}

.azm-cookie-banner h2,
.azm-cookie-modal h2 {
  margin: 0;
  color: var(--azm-cookie-ink);
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1.2;
}

.azm-cookie-banner p,
.azm-cookie-modal p {
  margin: .45rem 0 0;
  color: var(--azm-cookie-muted);
  line-height: 1.48;
}

.azm-cookie-banner__content > p {
  max-width: 720px;
  font-size: 1.57rem;
}

.azm-cookie-banner a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .45rem;
  color: var(--azm-cookie-red-dark);
  font-size: 1.48rem;
  font-weight: 700;
  text-decoration: none;
}

.azm-cookie-banner a:hover {
  text-decoration: underline;
}

.azm-cookie-actions {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: .65rem;
  justify-content: end;
}

.azm-cookie-button,
.azm-cookie-settings-link {
  font: inherit;
}

.azm-cookie-button {
  min-width: 138px;
  min-height: 46px;
  padding: .7rem 1rem;
  border: 2px solid var(--azm-cookie-red);
  border-radius: 9px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.15;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.azm-cookie-button--primary {
  color: #fff;
  background: var(--azm-cookie-red);
  box-shadow: 0 4px 12px rgba(167, 25, 31, .18);
}

.azm-cookie-button--primary:hover {
  border-color: var(--azm-cookie-red-dark);
  background: var(--azm-cookie-red-dark);
  transform: translateY(-1px);
}

.azm-cookie-button--secondary {
  color: var(--azm-cookie-red-dark);
  background: var(--azm-cookie-surface);
}

.azm-cookie-button--secondary:hover {
  background: var(--azm-cookie-red-soft);
  transform: translateY(-1px);
}

.azm-cookie-button:focus-visible,
.azm-cookie-close:focus-visible,
.azm-cookie-settings-link:focus-visible,
.azm-cookie-banner a:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.azm-cookie-modal {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(26, 18, 19, .68);
  backdrop-filter: blur(3px);
}

.azm-cookie-modal__panel {
  position: relative;
  width: calc(100vw - 2rem);
  max-width: 720px;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.65rem;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  background: var(--azm-cookie-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.azm-cookie-modal__panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  border-radius: 18px 18px 0 0;
  background: var(--azm-cookie-red);
  content: '';
}

.azm-cookie-modal__panel:focus {
  outline: none;
}

.azm-cookie-modal__header,
.azm-cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.azm-cookie-close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--azm-cookie-border);
  border-radius: 50%;
  color: #4a4446;
  background: #f8f6f6;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  place-items: center;
}

.azm-cookie-close:hover {
  color: var(--azm-cookie-red-dark);
  background: var(--azm-cookie-red-soft);
}

.azm-cookie-category {
  margin-top: .85rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--azm-cookie-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(40, 21, 23, .035);
}

.azm-cookie-category strong {
  color: #2d292a;
  font-size: 1rem;
}

.azm-cookie-category p {
  margin: .3rem 0 0;
  font-size: .91rem;
}

.azm-cookie-switch {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: .5rem;
  color: #3d3739;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}

.azm-cookie-switch:has(input:disabled) {
  cursor: default;
}

.azm-cookie-switch input {
  position: relative;
  width: 46px;
  height: 26px;
  margin: 0;
  border: 1px solid #aaa3a5;
  border-radius: 999px;
  appearance: none;
  background: #c7c1c3;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}

.azm-cookie-switch input::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  content: '';
  transition: transform .16s ease;
}

.azm-cookie-switch input:checked {
  border-color: var(--azm-cookie-red);
  background: var(--azm-cookie-red);
}

.azm-cookie-switch input:checked::before {
  transform: translateX(20px);
}

.azm-cookie-switch input:disabled {
  border-color: #39754c;
  opacity: 1;
  background: #39754c;
  cursor: default;
}

.azm-cookie-switch input:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

.azm-cookie-actions--modal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.azm-cookie-modal-open {
  overflow: hidden;
}

.azm-cookie-settings-link {
  padding: 0;
  border: 0;
  color: #c91111;
  background: transparent;
  cursor: pointer;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
  vertical-align: baseline;
}

.azm-cookie-settings-link:hover,
.azm-cookie-settings-link:active {
  color: #e50000;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .azm-cookie-banner__inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .azm-cookie-banner .azm-cookie-actions {
    grid-column: 1 / -1;
    justify-content: end;
  }
}

@media (max-width: 720px) {
  .azm-cookie-banner {
    max-height: 92vh;
    overflow: auto;
  }

  .azm-cookie-banner__inner {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: .85rem 1rem;
    padding: 1rem;
  }

  .azm-cookie-icon {
    align-self: start;
    width: 54px;
    height: 54px;
    margin-top: .15rem;
    border-radius: 16px;
  }

  .azm-cookie-icon svg {
    width: 43px;
    height: 43px;
  }

  .azm-cookie-banner h2,
  .azm-cookie-modal h2 {
    font-size: 1.18rem;
  }

  .azm-cookie-banner__content > p {
    font-size: 1.51rem;
  }

  .azm-cookie-banner .azm-cookie-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .azm-cookie-button {
    width: 100%;
  }

  .azm-cookie-modal__panel {
    padding: 1.35rem 1rem 1rem;
    border-radius: 14px;
  }
}

@media (max-width: 540px) {
  .azm-cookie-category {
    display: block;
  }

  .azm-cookie-switch {
    justify-content: space-between;
    margin-top: .85rem;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .azm-cookie-button,
  .azm-cookie-switch input,
  .azm-cookie-switch input::before {
    transition: none;
  }
}
