/* Cart drawer in the GP language (CartDrawer, nebula-combo-upsell banner). The
   "html body .bde-mini-cart-offcanvas" start matches the specificity of the GP Audit
   and GP Pass selectors, which load in the head before this file. */
@font-face {
  font-family: "gp-icons";
  src: url("../vendor/bootstrap-icons.woff2") format("woff2");
  font-display: swap;
}

/* Top bar */
html body .bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bde-mini-cart-offcanvas-topbar {
  padding: 14px 20px;
  background-color: var(--gp-navy);
  border-bottom: 3px solid var(--gp-yellow);
}

html body .bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bde-mini-cart-offcanvas-title {
  margin: 0;
  color: var(--gp-white, #fff);
  letter-spacing: 0.02em;
}

html body .bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bde-mini-cart-offcanvas__close-button {
  color: var(--gp-white, #fff);
}

html body .bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bde-mini-cart-offcanvas__close-button:hover {
  color: var(--gp-yellow);
}

/* Line cards */
html body .bde-mini-cart-offcanvas .woocommerce-mini-cart .bde-mini-cart-item {
  position: relative;
  margin: 12px 16px 0;
  padding: 12px;
  background-color: var(--gp-cream);
  border: 1px solid var(--gp-line);
  border-radius: 16px;
}

html body .bde-mini-cart-offcanvas .woocommerce-mini-cart .bde-mini-cart-item:last-of-type {
  margin-bottom: 12px;
}

html body .bde-mini-cart-offcanvas .woocommerce-mini-cart a.bde-mini-cart-item-title,
html body .bde-mini-cart-offcanvas .woocommerce-mini-cart span.bde-mini-cart-item-title {
  color: var(--gp-navy);
  font-family: var(--gp-font-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
}

html body .bde-mini-cart-offcanvas .woocommerce-mini-cart a.bde-mini-cart-item-title:hover {
  color: var(--gp-green);
}

.gp-mc-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: var(--gp-muted);
  font-family: var(--gp-font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;
  text-transform: none;
}

.gp-mc-meta__row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.gp-mc-meta__row::before {
  flex: none;
  width: 14px;
  color: var(--gp-green);
  font-family: "gp-icons";
  font-size: 13px;
  line-height: 1;
}

.gp-mc-meta__row--when::before {
  content: "\f214";
}

.gp-mc-meta__row--people::before {
  content: "\f4d0";
}

.gp-mc-meta__row--other::before {
  content: "\f6ca";
}

/* New lines after an add */
html body .bde-mini-cart-offcanvas .woocommerce-mini-cart .bde-mini-cart-item.gp-mc-flash {
  animation: gp-mc-flash 1.4s ease-out 1;
}

@keyframes gp-mc-flash {
  0%,
  60% {
    border-color: var(--gp-yellow);
    box-shadow: 0 0 0 3px var(--gp-yellow);
  }
  100% {
    box-shadow: 0 0 0 3px transparent;
  }
}

/* Receipt */
html body .bde-mini-cart-offcanvas .woocommerce-mini-cart__total.total {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.gp-mc-receipt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--gp-navy);
  font-family: var(--gp-font-body);
  font-weight: 600;
  font-size: 15px;
}

.gp-mc-receipt__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.gp-mc-receipt__line--total {
  align-items: baseline;
}

.gp-mc-receipt__line--total b {
  font-family: var(--gp-font-display);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
}

html body .bde-mini-cart-offcanvas .gp-mc-receipt__line--total strong,
html body .bde-mini-cart-offcanvas .gp-mc-receipt__line--total strong .amount,
html body .bde-mini-cart-offcanvas .gp-mc-receipt__line--total strong bdi {
  color: var(--gp-navy);
  font-family: var(--gp-font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
}

html body .bde-mini-cart-offcanvas .gp-mc-receipt__line--saving,
html body .bde-mini-cart-offcanvas .gp-mc-receipt__line--saving .amount,
html body .bde-mini-cart-offcanvas .gp-mc-receipt__line--saving bdi {
  color: var(--gp-green);
  font-weight: 700;
}

/* Add more tickets */
html body .bde-mini-cart-offcanvas a.gp-mc-more-link {
  display: block;
  margin-top: 10px;
  color: var(--gp-navy);
  font-family: var(--gp-font-body);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html body .bde-mini-cart-offcanvas a.gp-mc-more-link:hover {
  color: var(--gp-green);
}

/* Combo upgrade offer */
html body .nebula-cu-banner {
  --nbcu-bg: var(--gp-navy);
  --nbcu-fg: var(--gp-white, #fff);
  --nbcu-border: var(--gp-navy);
  --nbcu-accent: var(--gp-yellow);
  border-left-width: 1px;
  border-radius: 16px;
  color: var(--gp-white, #fff);
  font-family: var(--gp-font-body);
}

html body .nebula-cu-banner .nebula-cu-banner__message {
  color: var(--gp-white, #fff);
}

html body .nebula-cu-banner .nebula-cu-banner__apply,
html body .nebula-cu-banner .nebula-cu-banner__apply:hover,
html body .nebula-cu-banner .nebula-cu-banner__apply:focus {
  padding: 10px 18px;
  color: var(--gp-navy);
  font-weight: 700;
  background-color: var(--gp-yellow);
  border-radius: 999px;
  filter: none;
}

html body .nebula-cu-banner .nebula-cu-banner__apply:hover {
  background-color: var(--gp-yellow-2);
}

html body .nebula-cu-banner .nebula-cu-banner__link {
  color: var(--gp-yellow);
}

html body .nebula-cu-banner .nebula-cu-banner__dismiss {
  color: var(--gp-white, #fff);
}

html body .nebula-cu-banner .nebula-cu-banner__error {
  color: var(--gp-yellow);
}

html body .bde-mini-cart-offcanvas .nebula-cu-banner--minicart {
  margin: 0 0 12px;
  padding: 12px 36px 12px 14px;
  font-size: 14px;
}

/* The footer has to leave room for the lines on a phone. */
html body .bde-mini-cart-offcanvas .nebula-cu-banner--minicart .nebula-cu-banner__link {
  display: none;
}

/* More below and More above: zero height rows stuck to the ends of the scrolling
   list, each carrying its fade and pill over the list. */
html body .bde-mini-cart-offcanvas .woocommerce-mini-cart > .gp-mc-more {
  position: sticky;
  flex: none;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

html body .bde-mini-cart-offcanvas .woocommerce-mini-cart > .gp-mc-more--below {
  bottom: 0;
}

html body .bde-mini-cart-offcanvas .woocommerce-mini-cart > .gp-mc-more--above {
  top: 0;
  z-index: 1;
}

html body .bde-mini-cart-offcanvas .woocommerce-mini-cart > .gp-mc-more.is-visible {
  opacity: 1;
}

.gp-mc-more::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 64px;
}

.gp-mc-more--below::before {
  bottom: 0;
  background: linear-gradient(transparent, var(--gp-paper) 85%);
}

.gp-mc-more--above::before {
  top: 0;
  background: linear-gradient(var(--gp-paper) 15%, transparent);
}

.gp-mc-more__pill {
  position: absolute;
  bottom: 10px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  color: var(--gp-navy);
  font-family: var(--gp-font-body);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  background: var(--gp-yellow);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  translate: -50% 0;
}

.gp-mc-more--above .gp-mc-more__pill {
  top: 10px;
  bottom: auto;
}

.gp-mc-more.is-visible .gp-mc-more__pill {
  pointer-events: auto;
}

.gp-mc-more__pill::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.gp-mc-more--above .gp-mc-more__pill::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.gp-mc-more__pill:hover {
  background: var(--gp-yellow-2);
}

.gp-mc-more__pill:focus-visible {
  outline: 2px solid var(--gp-navy);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html body .bde-mini-cart-offcanvas .woocommerce-mini-cart .bde-mini-cart-item.gp-mc-flash {
    animation: none;
  }
}
