/* Shopping China — cookie consent (familia header / toast) */
.sc-cookie {
  --sc-cookie-navy: #002055;
  --sc-cookie-warn: #fcb92c;
  --sc-cookie-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(0);
  width: min(40rem, calc(100vw - 1.5rem));
  z-index: 10050;
  pointer-events: none;
  opacity: 1;
  transition:
    opacity 220ms var(--sc-cookie-ease),
    transform 280ms var(--sc-cookie-ease);
}

.sc-cookie.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(1.25rem);
  pointer-events: none;
  visibility: hidden;
}

.sc-cookie-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1.1rem;
  background: var(--sc-cookie-navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 40px rgba(0, 20, 55, 0.28),
    0 0 0 1px rgba(0, 32, 85, 0.08);
  color: #fff;
}

.sc-cookie-ico {
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(252, 185, 44, 0.18);
  color: var(--sc-cookie-warn);
}

.sc-cookie-ico svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.sc-cookie-body {
  flex: 1;
  min-width: 0;
}

.sc-cookie-text {
  margin: 0 !important;
  font-family: inherit !important;
  font-size: 0.86rem !important;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92) !important;
}

.sc-cookie-link {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 0.15em;
  font-weight: 700;
}

.sc-cookie-link:hover,
.sc-cookie-link:focus-visible {
  color: var(--sc-cookie-warn) !important;
  outline: none;
}

.sc-cookie-btn {
  flex: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  height: 2.35rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff !important;
  background: linear-gradient(135deg, #ffd56a 0%, var(--sc-cookie-warn) 55%, #f0a20f 100%);
  box-shadow: 0 6px 16px rgba(240, 162, 15, 0.28);
  transition:
    filter 140ms ease-out,
    transform 140ms ease-out;
}

.sc-cookie-btn:hover,
.sc-cookie-btn:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
  outline: none;
  color: #fff !important;
  background: linear-gradient(135deg, #ffe08a 0%, #ffc94a 45%, #f5b01a 100%);
}

.sc-cookie-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

@media (max-width: 575.98px) {
  .sc-cookie {
    bottom: 0.75rem;
    width: calc(100vw - 1rem);
  }

  .sc-cookie-inner {
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0.85rem;
  }

  .sc-cookie-body {
    flex: 1 1 calc(100% - 3.2rem);
  }

  .sc-cookie-btn {
    width: 100%;
    height: 2.5rem;
  }
}

/* Override legacy full-bleed bar from style.css */
.cookie-notice.sc-cookie,
#cookie-notice.sc-cookie {
  left: 50%;
  width: min(40rem, calc(100vw - 1.5rem));
  padding: 0;
  border-top: 0;
  background: transparent;
}
