/*
 * Boosting: the shared animated "boost gradient" border, and the boost page
 * (items/boost). The Sell form's Boost section (items/_form) uses the border too.
 */

/* ------------------------------------------------------------ boost gradient */

/* The Boosted badge's gradient, sliding. Two backgrounds, one clipped to the
   padding box and one to the border box; only the second moves. Its last
   colour repeats its first, so the loop has no seam. Set the border width and
   the loop's length per use (--np-boost-speed). */
.np-boost-border {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--np-boost-fill, #FFFFFF), var(--np-boost-fill, #FFFFFF)) padding-box,
    linear-gradient(115deg, #2DC1FF, #96E0FF, #F8F088, #F86028, #2DC1FF) 0% 50% / 300% 100% border-box;
  animation: np-boost var(--np-boost-speed, 4s) linear infinite;
}

@keyframes np-boost {
  0% { background-position: 0% 50%, 0% 50%; }
  100% { background-position: 0% 50%, 300% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] { animation: none !important; }
}

.bo-explain {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12.5px;
}

.bo-explain a {
  color: var(--cm-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bo-explain a:hover { color: #0A5477; }

/* ----------------------------------------------------------------- the page */

.bo-page { padding-bottom: 56px; }

.bo-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.bo-back {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: #444444;
  text-decoration: none;
}

.bo-back:hover { background: #F4EFD3; color: #222222; }

.bo-hero { margin-top: 16px; max-width: 760px; }

.bo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #222222;
}

.bo-hero__title {
  margin: 14px 0 0;
  font-size: clamp(32px, 5.2vw, 52px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.02;
  color: #222222;
  text-wrap: balance;
}

.bo-hero__sub {
  margin: 12px 0 0;
  max-width: 46ch;
  font-size: 16.5px;
  line-height: 1.5;
  color: #444444;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------- card */

.bo-card {
  margin-top: 24px;
  border-width: 3px;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(34, 34, 34, 0.1);
  --np-boost-speed: 5s;
}

.bo-card__inner {
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 22px 40px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

.bo-card__left,
.bo-card__right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.bo-card__right { padding-top: 20px; border-top: 1px solid #EDE7C8; }

@media (min-width: 760px) {
  .bo-card__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  .bo-card__right {
    padding-top: 0;
    border-top: 0;
    padding-left: 40px;
    margin-left: -1px;
    border-left: 1px solid #EDE7C8;
  }
}

.bo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EDE7C8;
}

.bo-item__thumb {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}

.bo-item__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EFE9C6;
  color: #A89E76;
}

.bo-item__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.bo-item__name {
  font-size: 14.5px;
  font-weight: 700;
  color: #222222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-item__meta { font-size: 12.5px; color: #666666; }

.bo-plan__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #666666;
}

.bo-plan__price {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

.bo-plan__amount {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1;
  color: #222222;
}

.bo-plan__once { font-size: 14px; font-weight: 600; color: #444444; }

.bo-plan__was { font-size: 15px; color: #666666; }

.bo-plan__sale {
  align-self: center;
  padding: 3px 7px;
  border-radius: 6px;
  background: #F86028;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bo-plan__through { margin: 6px 0 0; font-size: 13.5px; color: #555555; }
.bo-plan__through strong { color: #222222; }

.bo-plan__note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #E6F7FF;
  font-size: 13px;
  line-height: 1.45;
  color: #10333F;
}

.bo-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bo-checks li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.4;
  color: #222222;
}

.bo-checks__dot {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: -1px;
  border-radius: 999px;
  background: #2DC1FF;
  border: 1.5px solid #222222;
  color: #10333F;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The primary call to action: blue to yellow, with a hard shadow it rises off. */
.bo-pay {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-radius: 14px;
  border: 2px solid #222222;
  background: linear-gradient(115deg, #2DC1FF 0%, #96E0FF 50%, #F8F088 100%);
  box-shadow: 0 3px 0 #222222;
  font-size: 17px;
  font-weight: 800;
  color: #10333F;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}

.bo-pay:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #222222; }
.bo-pay:active { transform: translateY(2px); box-shadow: 0 1px 0 #222222; }
.bo-pay:disabled { opacity: 0.7; cursor: default; transform: none; }

.bo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bo-foot__secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #555555;
}

.bo-foot__later { font-size: 13.5px; font-weight: 600; color: #555555; text-decoration: none; }
.bo-foot__later:hover { color: #222222; }

/* -------------------------------------------------------------- after paying */

.bo-done {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bo-done__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(115deg, #2DC1FF, #96E0FF 45%, #F8F088);
  border: 1.5px solid #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222222;
}

.bo-done__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #222222;
}

.bo-done__body {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #444444;
}

.bo-done__body strong { color: #222222; }

.bo-done__back {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-radius: 12px;
  background: #222222;
  color: #FFF9D0;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.bo-done__back:hover { background: #0E6E9E; color: #FFF9D0; }

.bo-done__link { font-size: 13.5px; font-weight: 600; color: #0E6E9E; text-decoration: none; }
.bo-done__link:hover { color: #0A5477; }
