/* Manrope comes from the theme (themes/teklano-store/assets/fonts); loading a second copy here doubled the font download. */
:root {
  --tk-cookie-ink: #111311;
  --tk-cookie-paper: #f7f6f1;
  --tk-cookie-mint: #79d7c3;
  --tk-cookie-mint-deep: #2b8b78;
  --tk-cookie-muted: #626560;
  --tk-cookie-line: rgba(17, 19, 17, 0.15);
}

.tk-cookie-banner,
.tk-cookie-panel,
.tk-cookie-settings-slot {
  box-sizing: border-box;
  font-family: 'Teklano Manrope', Manrope, Arial, sans-serif;
}

.tk-cookie-banner *,
.tk-cookie-panel *,
.tk-cookie-settings-slot * {
  box-sizing: border-box;
}

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

.tk-cookie-banner,
.tk-footer-links > .tk-cookie-banner {
  position: fixed;
  z-index: 10020;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  max-width: 900px;
  min-height: 0;
  margin: auto;
  padding: 24px;
  gap: 30px;
  color: var(--tk-cookie-paper);
  background: var(--tk-cookie-ink);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  line-height: 1.5;
}

.tk-cookie-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.tk-cookie-copy h2,
.tk-cookie-panel-card h2 {
  text-transform: none;
}

.tk-cookie-copy h2 {
  margin: 0 0 5px;
  color: var(--tk-cookie-paper);
  font-family: 'Teklano Manrope', Manrope, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.05em;
}

.tk-cookie-copy p {
  max-width: 500px;
  margin: 0 0 7px;
  color: var(--tk-cookie-paper);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  opacity: 0.75;
}

.tk-cookie-copy a,
.tk-cookie-manage,
.tk-cookie-settings {
  color: var(--tk-cookie-mint);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: underline;
}

.tk-cookie-copy a:hover,
.tk-cookie-copy a:focus,
.tk-cookie-manage:hover,
.tk-cookie-manage:focus,
.tk-cookie-settings:hover,
.tk-cookie-settings:focus {
  color: var(--tk-cookie-mint);
  text-decoration-thickness: 2px;
}

.tk-cookie-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.tk-cookie-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 0 0 0 auto;
  padding: 0 20px;
  gap: 22px;
  border-radius: 999px;
  font-family: 'Teklano Manrope', Manrope, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.tk-cookie-button--plain {
  color: var(--tk-cookie-paper);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.tk-cookie-button--dark {
  color: #fff;
  background: var(--tk-cookie-ink);
}

.tk-cookie-manage {
  margin: 0;
  padding: 8px;
  color: var(--tk-cookie-mint);
  background: none;
  border: 0;
  cursor: pointer;
}

.tk-cookie-panel,
.tk-footer-links > .tk-cookie-panel {
  position: fixed;
  z-index: 10025;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 19, 17, 0.45);
}

.tk-cookie-panel-card {
  position: relative;
  width: min(550px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px;
  color: var(--tk-cookie-ink);
  background: var(--tk-cookie-paper);
  border-radius: 24px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
}

.tk-cookie-panel-card h2 {
  margin: 0 0 8px;
  color: var(--tk-cookie-ink);
  font-family: 'Teklano Manrope', Manrope, Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.06em;
}

.tk-cookie-panel-card > p {
  margin: 0 0 16px;
  color: var(--tk-cookie-muted);
  font-size: 13px;
  line-height: 1.6;
}

.tk-cookie-close {
  position: absolute;
  top: 10px;
  right: 15px;
  margin: 0;
  padding: 0;
  color: var(--tk-cookie-ink);
  background: transparent;
  border: 0;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.tk-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  padding: 16px 0;
  gap: 18px;
  color: var(--tk-cookie-ink);
  border-top: 1px solid var(--tk-cookie-line);
  cursor: pointer;
}

.tk-consent-option span{
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
}

.tk-consent-option:last-of-type {
  border-bottom: 1px solid var(--tk-cookie-line);
}

.tk-consent-option b,
.tk-consent-option small {
  width: fit-content
}

.tk-consent-option b {
  color: var(--tk-cookie-ink);
  font-size: 14px;
  font-weight: 700;
}

.tk-consent-option small {
  max-width: 390px;
  margin-top: 3px;
  color: var(--tk-cookie-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.tk-consent-option input {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  margin: 0;
  appearance: none;
  background: #b6b7b2;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
}

.tk-consent-option input::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  content: '';
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s ease;
}

.tk-consent-option input:checked {
  background: var(--tk-cookie-mint-deep);
}

.tk-consent-option input:checked::after {
  left: 21px;
}

.tk-consent-option input:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.tk-cookie-settings-slot {
  width: 100%;
}

.tk-cookie-settings {
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.tk-cookie-banner :where(a, button, input):focus-visible,
.tk-cookie-panel :where(a, button, input):focus-visible,
.tk-cookie-settings:focus-visible {
  outline: 3px solid var(--tk-cookie-paper);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--tk-cookie-mint-deep);
}

body.tk-cookie-panel-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .tk-cookie-banner {
    max-width: 620px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .tk-cookie-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 580px) {
  .tk-cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 20px;
  }

  .tk-cookie-actions {
    width: 100%;
  }

  .tk-cookie-actions .tk-cookie-button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 13px;
    gap: 8px;
    font-size: 10px;
  }

  .tk-cookie-panel-card {
    padding: 28px 22px;
  }

  .tk-cookie-panel-card h2 {
    padding-right: 30px;
    font-size: 26px;
  }

  .tk-consent-option small {
    max-width: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-consent-option input::after {
    transition: none;
  }
}
