.co-header {
  background: var(--c-green);
  display: flex;
  justify-content: center;
  padding: 12px;
}

.co-header img {
  height: 56px;
}

.co-summary {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-purple-deep);
  border-bottom: 1px solid var(--c-purple-line);
}

.co-summary__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px var(--pad);
}

.co-summary__bar > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
}

.co-summary__bar svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.co-summary.is-open .co-summary__bar svg {
  transform: rotate(180deg);
}

.co-summary__total {
  color: var(--c-green-bright);
  font-family: var(--f-display);
  font-weight: 700;
}

.co-summary__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.co-summary.is-open .co-summary__panel {
  max-height: 520px;
  overflow-y: auto;
}

.co-summary__panel-inner {
  padding: 4px var(--pad) 18px;
}

.co-sum-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

.co-sum-item img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--c-purple-soft);
}

.co-sum-item__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.co-sum-item__qty {
  font-size: 12px;
  color: var(--c-muted);
}

.co-sum-item__price {
  font-family: var(--f-display);
  font-weight: 600;
}

.co-sum-rows {
  border-top: 1px solid var(--c-purple-line);
  margin-top: 8px;
  padding-top: 12px;
}

.co-sum-rows .co-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.co-sum-rows .co-row--total {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
}

.co-sum-rows .co-row--total span:last-child {
  color: var(--c-green-bright);
}

.co-steps {
  display: flex;
  justify-content: space-between;
  padding: 22px 28px 6px;
}

.co-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.co-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--c-purple-line);
  z-index: 0;
}

.co-step__icon {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--c-purple-line);
  background: var(--c-purple);
  color: var(--c-muted);
}

.co-step__icon svg {
  width: 17px;
  height: 17px;
}

.co-step__label {
  font-weight: 700;
  font-size: 13px;
  color: var(--c-muted);
}

.co-step.is-done .co-step__icon {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-white);
}

.co-step.is-active .co-step__icon {
  border-color: var(--c-white);
  color: var(--c-white);
}

.co-step.is-done .co-step__label,
.co-step.is-active .co-step__label {
  color: var(--c-white);
}

.co-main {
  padding: 18px var(--pad) 40px;
}

.co-view {
  display: none;
}

.co-view.is-active {
  display: block;
}

.co-coupon {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  color: var(--c-white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--r-pill);
  padding: 15px 20px;
}

.co-coupon svg {
  width: 17px;
  height: 17px;
}

.co-summary__coupon {
  display: none;
}

.co-section {
  margin-top: 28px;
}

.co-section__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  text-align: center;
  margin-bottom: 18px;
}

.co-section__title--help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.co-section__help {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--c-muted);
  color: var(--c-muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.field {
  position: relative;
  display: block;
  margin-bottom: 12px;
}

.field__input {
  width: 100%;
  height: 58px;
  padding: 22px 46px 6px 20px;
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-pill);
  outline: none;
  transition: border-color 0.16s ease;
}

.field__input:focus {
  border-color: var(--c-white);
}

.field__label {
  position: absolute;
  left: 21px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transition: top 0.14s ease, font-size 0.14s ease;
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  top: 14px;
  transform: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.field__check {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-white);
  display: none;
  align-items: center;
  justify-content: center;
}

.field__check svg {
  width: 14px;
  height: 14px;
}

.field__input:not(:placeholder-shown) ~ .field__check {
  display: inline-flex;
}

.field--select::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--c-white);
  border-bottom: 2px solid var(--c-white);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.field--select .field__input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.field--select .field__label {
  top: 14px;
  transform: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.field--select .field__input option {
  color: #2a2353;
}

.co-optin {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 14px;
}

.co-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  accent-color: var(--c-green);
}

.ship-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--c-purple-line);
  border-radius: 16px;
  padding: 16px;
}

.ship-option__radio {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ship-option.is-selected .ship-option__radio {
  border-color: var(--c-green);
}

.ship-option.is-selected .ship-option__radio::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-green);
}

.ship-option__info {
  flex: 1;
}

.ship-option__name {
  font-weight: 700;
  margin-bottom: 4px;
}

.ship-option__eta {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.4;
}

.ship-option__price {
  text-align: right;
  font-weight: 700;
}

.ship-option__price .free {
  color: var(--c-green-bright);
  display: block;
}

.ship-option__price .old {
  font-size: 13px;
  color: var(--c-price-old);
  text-decoration: line-through;
}

.co-more {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  margin-top: 14px;
}

.co-address {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid var(--c-purple-line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.co-address__main {
  display: flex;
  gap: 10px;
}

.co-address__main svg {
  width: 20px;
  height: 20px;
  color: var(--c-green-bright);
  flex: 0 0 auto;
  margin-top: 2px;
}

.co-address__text {
  font-size: 14px;
  line-height: 1.45;
}

.co-address__text strong {
  display: block;
}

.co-address__edit {
  font-weight: 700;
  flex: 0 0 auto;
}

.co-row-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.co-row-inline .field {
  flex: 1;
  margin-bottom: 12px;
}

.co-nonumber {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
}

.co-continue {
  margin-top: 26px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.co-review {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.co-review-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-purple-line);
}

.co-review-row__main {
  display: flex;
  gap: 12px;
}

.co-review-row__main svg {
  width: 20px;
  height: 20px;
  color: var(--c-green-bright);
  flex: 0 0 auto;
  margin-top: 2px;
}

.co-review-row__text {
  font-size: 14px;
  line-height: 1.4;
}

.co-review-row__text strong {
  display: block;
}

.co-review-row__action {
  font-weight: 700;
  color: var(--c-white);
  flex: 0 0 auto;
}

.pay-method {
  border: 1px solid var(--c-purple-line);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}

.pay-method__head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 16px;
}

.pay-method__head svg.pay-icon {
  width: 24px;
  height: 24px;
}

.pay-method__name {
  flex: 1;
  text-align: left;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
}

.pay-method__badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: var(--c-green);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.pay-method__badge--muted {
  background: var(--c-purple-line);
  color: var(--c-muted);
}

.pay-method--disabled .pay-method__head {
  opacity: 0.55;
  cursor: default;
}

.pay-method__chev {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.pay-method.is-open .pay-method__chev {
  transform: rotate(90deg);
}

.pay-method__body {
  display: none;
  padding: 4px 16px 20px;
}

.pay-method.is-open .pay-method__body {
  display: block;
}

.pay-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
}

.pay-cards span {
  font-weight: 700;
  font-size: 13px;
  width: 100%;
  margin-bottom: 4px;
}

.pay-cards img {
  height: 26px;
  border-radius: 4px;
}

.pix-info {
  display: flex;
  gap: 12px;
}

.pix-info__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--c-green-bright);
}

.pix-info__text {
  font-size: 14px;
  line-height: 1.5;
}

.pix-info__text .pix-data {
  margin-top: 12px;
}

.pix-info__text .pix-data strong {
  display: block;
}

.applepay-hint {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--c-muted);
}

.applepay-wait-text {
  margin: 6px 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-muted);
  text-align: center;
}

.co-terms {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--c-muted);
}

.co-terms a {
  color: var(--c-green-bright);
  font-weight: 700;
}

.co-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
  font-size: 14px;
}

.co-secure svg {
  width: 18px;
  height: 18px;
}

.co-submit {
  margin-top: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.co-order-id {
  color: var(--c-muted);
  font-weight: 700;
  margin: 6px 0 16px;
}

.co-success {
  position: relative;
  background: var(--c-green);
  color: var(--c-white);
  text-align: center;
  font-weight: 700;
  border-radius: 16px;
  padding: 22px 40px;
  margin-bottom: 22px;
}

.co-success__close {
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--c-white);
  font-size: 20px;
}

.co-pix-status {
  border: 1px solid var(--c-purple-line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.co-pix-status__head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 14px;
}

.co-pix-status__head svg {
  width: 24px;
  height: 24px;
  color: var(--c-green-bright);
}

.co-pix-status__exp {
  margin-bottom: 16px;
}

.co-pix-status__exp strong {
  display: block;
  font-family: var(--f-display);
  font-size: 22px;
}

.co-pix-copy {
  margin: 0 0 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.co-pix-steps p {
  margin-bottom: 12px;
  line-height: 1.5;
}

.co-info-block {
  border-top: 1px solid var(--c-purple-line);
  padding-top: 20px;
  margin-top: 20px;
}

.co-info-block__head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.co-info-block__head svg {
  width: 22px;
  height: 22px;
  color: var(--c-green-bright);
}

.co-info-block p {
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.co-info-dl dt {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 14px;
}

.co-info-dl dd {
  line-height: 1.45;
}

.co-final-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.co-foot {
  border-top: 1px solid var(--c-purple-line);
  padding: 18px var(--pad) 28px;
  text-align: center;
  font-size: 13px;
  color: var(--c-muted);
}

.co-foot a {
  color: var(--c-green-bright);
  font-weight: 700;
}

.ship-option {
  position: relative;
  cursor: pointer;
}

.ship-option + .ship-option {
  margin-top: 10px;
}

.ship-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.co-error,
.co-cep-msg {
  color: #ff8a8a;
  font-weight: 700;
  font-size: 14px;
  margin: 8px 0;
}

.co-sum-rows .co-row--discount span:last-child {
  color: var(--c-green-bright);
}

.co-pay-loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--c-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: co-fade 0.25s ease both;
}

.co-pay-loading[hidden] {
  display: none;
}

.co-loader {
  width: 100%;
  max-width: 300px;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--c-purple-soft), var(--c-purple-deep));
  border: 1px solid var(--c-purple-line);
  box-shadow: 0 24px 60px rgba(20, 14, 45, 0.5);
  text-align: center;
  animation: co-pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.co-loader__qr {
  position: relative;
  width: 156px;
  height: 156px;
  margin: 0 auto 20px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #fff;
  background-image:
    repeating-linear-gradient(90deg, rgba(55, 45, 99, 0.16) 0 7px, transparent 7px 14px),
    repeating-linear-gradient(0deg, rgba(55, 45, 99, 0.16) 0 7px, transparent 7px 14px);
}

.co-loader__finder {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 6px solid var(--c-green-bright);
  border-radius: 8px;
  animation: co-pulse 1.6s ease-in-out infinite;
}

.co-loader__finder--tl { top: 12px; left: 12px; }
.co-loader__finder--tr { top: 12px; right: 12px; animation-delay: 0.2s; }
.co-loader__finder--bl { bottom: 12px; left: 12px; animation-delay: 0.4s; }

.co-loader__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -26px;
  height: 26px;
  background: linear-gradient(180deg, transparent, rgba(22, 176, 74, 0.5), transparent);
  box-shadow: 0 0 18px 5px rgba(22, 176, 74, 0.45);
  animation: co-scan 1.7s ease-in-out infinite;
}

.co-loader__title {
  font-family: var(--f-display);
  font-size: 19px;
  color: var(--c-white);
  margin: 0 0 6px;
}

.co-loader__dots::after {
  content: "";
  animation: co-dots 1.4s steps(4, end) infinite;
}

.co-loader__sub {
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-muted);
  margin: 0;
}

@keyframes co-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes co-pop {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes co-scan {
  0% { top: -26px; }
  50% { top: 100%; }
  100% { top: -26px; }
}

@keyframes co-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes co-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
  100% { content: ""; }
}

@media (prefers-reduced-motion: reduce) {
  .co-pay-loading,
  .co-loader { animation: none; }
  .co-loader__scan { display: none; }
  .co-loader__finder { animation: co-pulse 2.4s ease-in-out infinite; }
  .co-loader__dots::after { content: "…"; animation: none; }
}

.co-pix-qr {
  display: flex;
  justify-content: center;
  margin: 4px 0 14px;
}

.co-pix-qr canvas {
  border-radius: 12px;
}

.co-pix-amount {
  text-align: center;
  font-family: var(--f-display);
  font-size: 24px;
  margin-bottom: 6px;
}

.co-pix-code {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--c-purple-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-white);
  font-size: 12px;
  text-overflow: ellipsis;
}
