* { box-sizing: border-box; }

.co-body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #2c323e;
  background: #fff;
}

.co-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.co-aside {
  flex: 1 1 50%;
  background: #17181c;
  color: #f2f3f5;
}

.co-aside__inner {
  padding: 28px 20px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .co-shell {
    flex-direction: row;
  }

  .co-aside__inner {
    position: sticky;
    top: 0;
    padding: 48px 64px;
    margin-left: auto;
    margin-right: 0;
  }
}


.co-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 40px;
}

.co-brand__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}

.co-secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #38c793;
}

.co-summary-toggle {
  display: none;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px 16px;
  color: #f2f3f5;
  cursor: pointer;
  margin-bottom: 12px;
  text-align: left;
  font-family: inherit;
}

.co-summary-toggle__icon {
  flex-shrink: 0;
  color: #c1c4cc;
  display: flex;
}

.co-summary-toggle__text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.co-summary-toggle__price {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
}

.co-summary-toggle__price small {
  font-size: 11px;
  font-weight: 600;
  color: #8b8f9c;
  margin-left: 2px;
}

.co-summary-toggle__chevron {
  flex-shrink: 0;
  color: #8b8f9c;
  transition: transform 0.2s ease;
}

.co-summary-toggle.open .co-summary-toggle__chevron {
  transform: rotate(180deg);
}

.co-total__hint-extra {
  display: none;
}

.co-order__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8b8f9c;
  margin-bottom: 10px;
}

.co-order__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.co-order__row-label {
  flex: 1;
  min-width: 0;
}

.co-order__row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.co-order__remove {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #d3d5db;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.co-order__remove:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.co-total__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  font-weight: 700;
}

.co-total__amount {
  font-size: 24px;
  font-weight: 800;
}

.co-total__amount small {
  font-size: 12px;
  font-weight: 500;
  color: #8b8f9c;
}

.co-total__hint {
  font-size: 12px;
  color: #8b8f9c;
  margin-top: 6px;
  margin-bottom: 32px;
}

.co-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #d3d5db;
  margin-bottom: 20px;
}

.co-rating__stars {
  color: #38c793;
  letter-spacing: 1px;
}

.co-quote {
  margin: 0 0 32px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
  color: #e2e3e8;
}

.co-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  color: #8b8f9c;
}

.co-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #d3d5db;
}

.co-trust li::before {
  content: '\2713';
  color: #38c793;
  margin-right: 8px;
  font-weight: 800;
}

/* The dark order-summary panel stacks above the form on mobile — the star
   rating, review quote and trust checklist are nice-to-have social proof
   that made this box very tall on phones before the actual form appeared.
   Keep only the essentials (logo, order line, total) visible there. */
@media (max-width: 899px) {
  .co-aside__inner {
    padding-bottom: 20px;
  }

  .co-brand {
    margin-bottom: 16px;
  }

  .co-total__hint {
    margin-bottom: 0;
  }

  .co-total__hint-extra {
    display: inline;
  }

  .co-rating,
  .co-quote,
  .co-trust {
    display: none;
  }

  .co-summary-toggle {
    display: flex;
  }

  .co-order-details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
  }

  .co-order-details__inner {
    overflow: hidden;
    min-height: 0;
  }

  .co-order-details.open {
    grid-template-rows: 1fr;
  }

  .co-order__row {
    margin-bottom: 0;
  }

  .co-order-details__inner .co-order {
    padding-top: 16px;
  }
}

.co-main {
  flex: 1 1 50%;
  min-width: 0;
}

.co-main__inner {
  max-width: 460px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.co-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 700;
  color: #c1c4cc;
}

.co-steps .co-step:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: #e0e2e8;
  margin-left: 10px;
  vertical-align: middle;
}

.co-step--active {
  color: #14161f;
}

.co-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 20px;
}

.co-alert {
  background: #fee2e2;
  color: #dc2626;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}

.co-section {
  margin-bottom: 30px;
}

.co-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.co-section__head h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: #14161f;
}

.co-hint {
  font-size: 12px;
  color: #9095a6;
  font-weight: 500;
  white-space: nowrap;
}

.co-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #e4e5ef;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}

.co-field:focus-within {
  border-color: #7024c4;
}

.co-field__icon {
  color: #9095a6;
  flex-shrink: 0;
  display: flex;
}

.co-field input {
  border: none;
  outline: none;
  font-size: 15px;
  width: 100%;
  font-family: inherit;
}

.co-verify {
  margin-top: 10px;
  border-radius: 12px;
  font-size: 13px;
  overflow: hidden;
}

.co-verify--loading {
  padding: 12px 14px;
  color: #9095a6;
  background: #f6f7fa;
  border-radius: 12px;
}

.co-verify--error {
  padding: 12px 14px;
  color: #dc2626;
  background: #fee2e2;
  border-radius: 12px;
}

.co-verify--found {
  border: 1.5px solid #e4e5ef;
}

.co-verify__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.co-verify__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #d6d9e3;
}

.co-verify__avatar--placeholder {
  background: #d6d9e3;
}

.co-verify__info {
  flex: 1;
  min-width: 0;
}

.co-verify__name {
  font-size: 14px;
  font-weight: 700;
  color: #14161f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.co-verify__handle {
  font-size: 12px;
  color: #9095a6;
  margin-top: 1px;
}

.co-verify__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38c793;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-verify__private {
  padding: 10px 14px;
  font-size: 12px;
  color: #92400e;
  background: #fef3c7;
  border-top: 1px solid #f5d789;
}

.co-posts__desc {
  font-size: 12px;
  color: #9095a6;
  margin: 0 0 12px;
}

.co-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.co-posts__empty {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #9095a6;
  text-align: center;
  padding: 20px 0;
}

.co-post {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #f0f1f5;
}

.co-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.co-post.selected {
  border-color: var(--brand-primary, #ff5c00);
}

.co-post__badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(20, 22, 31, 0.65);
  padding: 2px 6px;
  border-radius: 6px;
}

.co-post__check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.co-post.selected .co-post__check {
  background: var(--brand-primary, #ff5c00);
  opacity: 1;
}

.co-posts__more {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1.5px solid #e4e5ef;
  border-radius: 10px;
  background: #fff;
  color: #484f5e;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.co-posts__more:disabled {
  opacity: 0.6;
  cursor: default;
}

.co-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(72, 79, 94, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: co-spin 0.7s linear infinite;
  vertical-align: -2px;
}

@keyframes co-spin {
  to { transform: rotate(360deg); }
}

.co-manual {
  margin-top: 14px;
  border: 1.5px solid #e4e5ef;
  border-radius: 10px;
  overflow: hidden;
}

.co-manual__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: none;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #14161f;
  cursor: pointer;
}

.co-manual__toggle svg {
  transition: transform 0.2s ease;
  color: #9095a6;
}

.co-manual__toggle.open svg {
  transform: rotate(180deg);
}

.co-manual__panel {
  padding: 0 14px 14px;
}

.co-manual__desc {
  font-size: 12px;
  color: #9095a6;
  margin: 0 0 10px;
}

.co-manual__row {
  display: flex;
  gap: 8px;
}

.co-manual__field {
  flex: 1;
  padding: 10px 12px;
}

.co-manual__field input {
  font-size: 13px;
}

.co-manual__add {
  flex-shrink: 0;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #14161f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.co-manual__add:disabled {
  opacity: 0.6;
  cursor: default;
}

.co-manual__error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 8px;
}

.co-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: #484f5e;
}

.co-upsells {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-upsell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid #e4e5ef;
  border-radius: 12px;
  padding: 14px 16px;
}

.co-upsell__title {
  font-size: 14px;
  font-weight: 700;
  color: #14161f;
}

.co-upsell__desc {
  font-size: 12px;
  color: #9095a6;
  margin-top: 2px;
}

.co-upsell__action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.co-upsell__price {
  font-size: 13px;
  font-weight: 700;
  color: #14161f;
}

.co-upsell__btn {
  border: 1.5px solid #d6d9e3;
  background: #fff;
  color: #14161f;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
}

.co-upsell--added {
  border-color: #38c793;
  background: #f0fdf7;
}

.co-upsell--added .co-upsell__btn {
  border-color: #38c793;
  background: #ecfdf5;
  color: #16a34a;
}

.co-upsells__hint {
  font-size: 12px;
  color: #9095a6;
  margin-top: 10px;
}

.co-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 18px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(45deg, #ff4330, #ff934b, #ff9ff3, #54a0ff);
  cursor: pointer;
  margin-top: 10px;
}

.co-submit:disabled {
  background: #e4e5ef;
  color: #9095a6;
  cursor: default;
}

.co-step {
  transition: color 0.15s;
}

.co-account-summary {
  margin-bottom: 24px;
}

.co-account-summary__row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #e4e5ef;
  border-radius: 12px;
  padding: 12px 14px;
}

.co-account-summary__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #d6d9e3;
}

.co-account-summary__avatar--placeholder {
  background: #d6d9e3;
}

.co-account-summary__info {
  flex: 1;
  min-width: 0;
}

.co-account-summary__handle {
  font-size: 14px;
  font-weight: 700;
  color: #14161f;
}

.co-account-summary__change {
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--brand-primary, #ff5c00);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.co-submit__hint {
  text-align: center;
  font-size: 12px;
  color: #9095a6;
  margin-top: 12px;
}

.co-checklist {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1.5px solid #e4e5ef;
  border-radius: 12px;
  overflow: hidden;
}

.co-checklist__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f1f5;
}

.co-checklist__item:last-child {
  border-bottom: none;
}

.co-checklist__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38c793;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-checklist__title {
  font-size: 14px;
  font-weight: 700;
  color: #14161f;
}

.co-checklist__sub {
  font-size: 12px;
  color: #9095a6;
  margin-top: 1px;
}

.co-accounts-field {
  margin-bottom: 14px;
}

.co-accounts-field:last-child {
  margin-bottom: 0;
}

.co-accounts-field__label {
  font-size: 13px;
  font-weight: 600;
  color: #484f5e;
  margin-bottom: 6px;
}

/* Payment method selector */
.co-payment-methods {
  display: flex;
  flex-direction: column;
  border: 1.5px solid #e4e5ef;
  border-radius: 12px;
  overflow: hidden;
}

.co-payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e4e5ef;
  cursor: pointer;
}

.co-payment-method:last-child {
  border-bottom: none;
}

.co-payment-method input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary, #ff5c00);
  flex-shrink: 0;
}

.co-payment-method__label {
  font-size: 14px;
  font-weight: 700;
  color: #14161f;
  flex-shrink: 0;
}

.pay-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
  justify-content: flex-end;
}

.pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.pay-logo svg {
  height: 24px;
  width: auto;
  display: block;
}

.co-payment-empty {
  border: 1.5px dashed #e4e5ef;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  color: #9095a6;
  text-align: center;
}
