.wc-cookie-banner {
  position: fixed;
  z-index: 10000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  width: min(960px, calc(100% - 32px));
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid #d9e0e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(13, 29, 50, .24);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.wc-cookie-banner[hidden] { display: none; }
.wc-cookie-banner__copy h2 { margin: 1px 0 4px; color: #142033; font-size: 19px; line-height: 1.2; }
.wc-cookie-banner__copy p { margin: 0; color: #607086; font-size: 13px; line-height: 1.45; }
.wc-cookie-banner__copy a { display: inline-block; margin-top: 5px; color: #cc4c00; font-size: 12px; font-weight: 800; text-underline-offset: 3px; }
.wc-cookie-kicker { color: #df5708; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.wc-cookie-banner__actions, .wc-cookie-preferences__actions { display: flex; gap: 8px; }
.wc-cookie-banner__actions .wc-cookie-action { min-width: 150px; }
.wc-cookie-preferences__actions .wc-cookie-action { min-width: 0; flex: 1 1 0; }

.wc-cookie-action,
.wc-cookie-policy-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #aeb9c6;
  border-radius: 11px;
  background: #fff;
  color: #142033;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.wc-cookie-action:hover, .wc-cookie-policy-button:hover { border-color: #142033; background: #f4f7fa; }
.wc-cookie-action--primary, .wc-cookie-policy-button { border-color: #f26522; background: #f26522; color: #fff; }
.wc-cookie-action--primary:hover, .wc-cookie-policy-button:hover { border-color: #d94d09; background: #d94d09; color: #fff; }

.wc-cookie-preferences-link {
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #cc4c00;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.wc-cookie-action:focus-visible,
.wc-cookie-policy-button:focus-visible,
.wc-cookie-preferences-link:focus-visible,
.wc-cookie-close:focus-visible,
.wc-cookie-category input:focus-visible {
  outline: 3px solid rgba(242, 101, 34, .35);
  outline-offset: 2px;
}

.wc-cookie-preferences {
  width: min(570px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  color: #142033;
  box-shadow: 0 24px 80px rgba(10, 25, 45, .35);
}

.wc-cookie-preferences::backdrop { background: rgba(11, 24, 43, .58); }
.wc-cookie-preferences form { padding: 24px; }
.wc-cookie-preferences__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.wc-cookie-preferences__heading h2 { margin: 2px 0 0; color: #142033; font-size: 24px; line-height: 1.15; }
.wc-cookie-close { display: grid; width: 42px; height: 42px; padding: 0; flex: 0 0 auto; border: 1px solid #d9e0e8; border-radius: 50%; background: #f4f7fa; color: #607086; font-size: 23px; line-height: 1; cursor: pointer; place-items: center; }
.wc-cookie-preferences__intro { margin: 12px 0 18px; color: #607086; font-size: 13px; line-height: 1.5; }

.wc-cookie-category {
  display: flex;
  min-height: 70px;
  padding: 14px 0;
  border-top: 1px solid #e3e8ee;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wc-cookie-category strong, .wc-cookie-category small { display: block; }
.wc-cookie-category strong { color: #142033; font-size: 14px; }
.wc-cookie-category small { margin-top: 3px; color: #607086; font-size: 12px; line-height: 1.4; }
.wc-cookie-category input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: #f26522; }
.wc-cookie-always-on { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: #e8f5ed; color: #177a45; font-size: 10px; font-weight: 900; }
.wc-cookie-preferences__actions { padding-top: 18px; justify-content: flex-end; border-top: 1px solid #e3e8ee; }
.wc-cookie-status { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wc-cookie-policy-button { margin-top: 14px; }

@media (max-width: 760px) {
  .wc-cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    padding: 14px;
    overflow-y: auto;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wc-cookie-kicker { display: none; }
  .wc-cookie-banner__copy h2 { font-size: 17px; }
  .wc-cookie-banner__copy p { font-size: 12px; }
  .wc-cookie-banner__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wc-cookie-banner__actions .wc-cookie-preferences-link { grid-column: 1 / -1; }
  .wc-cookie-action { width: 100%; min-width: 0; padding-inline: 9px; white-space: normal; }
  .wc-cookie-preferences form { padding: 20px; }
  .wc-cookie-preferences__actions { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .wc-cookie-banner__actions, .wc-cookie-preferences__actions { grid-template-columns: 1fr; }
  .wc-cookie-banner__actions .wc-cookie-preferences-link { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .wc-cookie-banner *, .wc-cookie-preferences * { scroll-behavior: auto; transition-duration: .01ms !important; }
}
