.cp-head h1 {
  margin-block: 0;
  font-size: clamp(26px, 7vw, 44px);
  text-align: center;
  text-transform: uppercase;
}

.cp-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: clamp(5px, 1.5vw, 10px);
  row-gap: 3px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: #4a4e78;
  font-size: clamp(11px, 3.25vw, 15px);
  font-weight: 600;
  line-height: 1.45;
}

.cp-summary > li {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(5px, 1.5vw, 10px);
  white-space: nowrap;
}

.cp-summary-separator {
  color: #6a6e94;
}

.cp-class {
  margin: 12px 0 5px;
  color: #6a6e94;
  text-align: center;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 500;
  line-height: 1.45;
}

.cp-head .cp-price-tools {
  display: block;
  margin-top: 32px;
}

.cp-price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.cp-price-header .cp-h {
  margin: 0;
  text-align: start;
  text-transform: none;
  letter-spacing: -.025em;
}

.cp-currency {
  position: relative;
}

.cp-currency > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 13px/1 var(--font);
  list-style: none;
  cursor: pointer;
}

.cp-currency > summary::-webkit-details-marker { display: none; }

.cp-currency > summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-1px) rotate(45deg);
}

.cp-currency[open] > summary::after {
  transform: translateY(1px) rotate(225deg);
}

.cp-currency > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.cp-currency .cur-sw {
  position: absolute;
  z-index: 5;
  inset: calc(100% + 6px) 0 auto auto;
  display: grid !important;
  width: max-content;
  max-width: none;
  min-width: 100%;
  margin: 0 !important;
  justify-content: stretch;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(13, 15, 51, .11);
}

.cp-currency .cur-sw button {
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 9px;
  font: 600 13px/1 var(--font);
  text-align: start;
}

.cp-price-tools .cp-tiers {
  border-radius: 16px;
}

.cp-price-tools .cp-tiers .tr-row {
  min-height: 46px;
  padding: 6px clamp(10px, 3vw, 16px);
  gap: 8px;
  font-size: 13px;
  text-align: start;
}

.cp-price-tools .cp-tiers .tr-row b {
  flex-shrink: 0;
  font-size: clamp(15px, 4vw, 18px);
  text-align: end;
  white-space: nowrap;
}

.cp-price-tools .cp-tiers .tr-row b small {
  font-size: 11px;
}

.cp-price-tools .cp-tiers .tr-row.cp-offer-tier {
  background: var(--blue-soft);
  color: var(--ink);
}

.cp-price-tools .cp-tiers .tr-row.cp-offer-tier b small {
  color: #4a4e78;
  opacity: 1;
}

.cp-price-tools .cp-offer-tier-badge {
  border-color: #c8cff7;
  background: #fff;
  color: var(--blue);
}

.cp-price-tools .cp-offer-tier-badge:hover {
  background: #f7f8ff;
}

.cp-price-tools .cp-offer-tier-badge:focus-visible {
  outline-color: var(--blue);
}

.cp-price-tools .cp-price-offer {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 767px) {
  .cp-currency > summary::after {
    transform: translateX(1px) rotate(135deg);
  }

  .cp-currency[open] > summary::after {
    transform: translateX(-1px) rotate(-45deg);
  }

  .cp-currency .cur-sw {
    inset: 50% calc(100% + 4px) auto auto;
    display: flex !important;
    gap: 2px;
    min-width: 0;
    padding: 3px;
    border-radius: 999px;
    transform: translateY(-50%);
  }

  .cp-currency .cur-sw button {
    min-height: 32px;
    padding-inline: 8px;
    border-radius: 999px;
  }

  .cp-currency .cur-sw button[aria-pressed="true"] {
    display: none;
  }

  .cp-currency[open] .cur-sw {
    animation: cp-currency-slide-in .18s ease-out;
  }
}

@keyframes cp-currency-slide-in {
  from { clip-path: inset(0 0 0 100%); opacity: 0; transform: translate(4px, -50%); }
  to { clip-path: inset(0); opacity: 1; transform: translate(0, -50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cp-currency[open] .cur-sw { animation: none; }
}
