/**
 * CartCubes rebrand announcement modal.
 */

html.fch-rebrand-open,
html.fch-rebrand-open body {
  overflow: hidden;
}

.fch-rebrand-notice {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.fch-rebrand-notice[hidden] {
  display: none !important;
}

.fch-rebrand-notice.is-visible {
  display: flex;
}

.fch-rebrand-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 38, 64, 0.55);
  backdrop-filter: blur(2px);
}

.fch-rebrand-notice__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px 24px 22px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(11, 38, 64, 0.28);
  color: var(--wp--preset--color--primary, #0b2640);
  text-align: left;
}

.fch-rebrand-notice__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--wp--preset--color--neutral-50, #f0f1f4);
  color: var(--wp--preset--color--primary, #0b2640);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.fch-rebrand-notice__close:hover,
.fch-rebrand-notice__close:focus-visible {
  background: var(--wp--preset--color--primary-50, #ebf5ff);
  outline: none;
}

.fch-rebrand-notice__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--base, #399cff);
}

.fch-rebrand-notice__title {
  margin: 0 0 12px;
  padding-right: 28px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  line-height: 1.25;
  color: var(--wp--preset--color--heading, #0b2640);
}

.fch-rebrand-notice__body {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--wp--preset--color--body-neutral, #555e72);
}

.fch-rebrand-notice__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.fch-rebrand-notice__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.fch-rebrand-notice__btn--primary {
  background: var(--wp--preset--color--base, #399cff);
  color: #ffffff;
}

.fch-rebrand-notice__btn--primary:hover,
.fch-rebrand-notice__btn--primary:focus-visible {
  background: var(--wp--preset--color--primary-600, #2e7ecf);
  color: #ffffff;
  outline: none;
}

.fch-rebrand-notice__btn--secondary {
  background: var(--wp--preset--color--primary-50, #ebf5ff);
  color: var(--wp--preset--color--primary-700, #22619f);
}

.fch-rebrand-notice__btn--secondary:hover,
.fch-rebrand-notice__btn--secondary:focus-visible {
  background: var(--wp--preset--color--primary-100, #d7ebff);
  color: var(--wp--preset--color--primary-700, #22619f);
  outline: none;
}

.fch-rebrand-notice__continue {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--wp--preset--color--body-neutral, #555e72);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.fch-rebrand-notice__continue:hover,
.fch-rebrand-notice__continue:focus-visible {
  color: var(--wp--preset--color--primary, #0b2640);
  outline: none;
}

@media (min-width: 480px) {
  .fch-rebrand-notice__dialog {
    padding: 32px 28px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fch-rebrand-notice__btn {
    transition: none;
  }
}
