/* ==================== COOKIE CONSENT ==================== */

.cookie-consent {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 1000;
  width: 320px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
  pointer-events: none;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px 0;
}

.cookie-consent__text {
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: 100%;
}

.cookie-consent__title {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-black);
  margin: 0;
}

.cookie-consent__desc {
  font-family: var(--font-primary);
  font-size: clamp(0.8125rem, 0.04vw + 0.8rem, 0.875rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-black);
  margin: 0;
  word-break: break-word;
}

.cookie-consent__link,
.cookie-consent__link:hover,
.cookie-consent__link:focus,
.cookie-consent__link:active {
  font-weight: 600;
  text-decoration: none !important;
  color: var(--color-black);
}

.cookie-consent__link:hover {
  color: var(--color-primary);
}

/* ---- Actions: buttons + 分割线 ---- */
.cookie-consent__actions {
  position: relative;
  display: flex;
  gap: 0;
  margin: 24px -26px 0 -26px;
  width: calc(100% + 52px);
}

/* 水平线 — 按钮上方分隔线 */
.cookie-consent__actions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-placeholder);
  pointer-events: none;
}

/* 垂直线 — 两按钮之间分隔线，紧贴上边线 */
.cookie-consent__actions::after {
  content: '';
  position: absolute;
  top: 0;
  left: 31.76%;
  width: 1px;
  height: 50px;
  background: var(--color-placeholder);
  pointer-events: none;
}

.cookie-consent__btn {
  height: 50px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: none;
  background: var(--color-white);
  font-family: var(--font-primary);
  font-size: clamp(0.8125rem, 0.04vw + 0.8rem, 0.875rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-black);
  cursor: pointer;
  transition: background var(--duration-micro) var(--ease-standard),
              color var(--duration-micro) var(--ease-standard);
}

.cookie-consent__btn--agree {
  flex-basis: 31.76%;
  border-bottom-left-radius: 16px;
}

.cookie-consent__btn--disagree {
  flex-basis: 68.24%;
  border-bottom-right-radius: 16px;
}

.cookie-consent__btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* 响应式：小屏幕 */
@media (max-width: 480px) {
  .cookie-consent {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .cookie-consent__inner {
    padding: 16px 20px 0;
  }

  .cookie-consent__actions {
    margin: 24px -21px 0 -21px;
    width: calc(100% + 42px);
    flex-direction: column;
  }

  .cookie-consent__btn--agree {
    flex-basis: auto;
    border-bottom-left-radius: 0;
  }

  .cookie-consent__btn--disagree {
    flex-basis: auto;
    border-bottom-right-radius: 16px;
  }

  /* 移动端：竖线改为横线 */
  .cookie-consent__actions::after {
    top: 50px;
    left: 0;
    width: 100%;
    height: 1px;
  }
}
