.cdo-cost-panel {
  border: 1px solid var(--color-border, #1d2c8c1a);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 9px;
  box-shadow: 0 8px 22px #1d2c8c0d;
}

.cdo-cost-panel strong {
  color: var(--color-primary, #1d2c8c);
  font-size: 0.94rem;
}

.cdo-cost-panel span {
  color: var(--color-muted, #667085);
  font-size: 0.84rem;
  line-height: 1.35;
}

.cdo-cost-button,
.cdo-footer-button,
.cdo-modal-close {
  font: inherit;
}

.cdo-cost-button {
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: var(--color-primary, #1d2c8c);
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
}

.cdo-cost-button svg,
.cdo-footer-button svg {
  flex: 0 0 auto;
}

.cdo-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(13, 20, 56, 0.52);
  display: grid;
  align-items: end;
  padding: 16px;
}

.cdo-modal {
  width: min(100%, 680px);
  max-height: min(86vh, 720px);
  margin: 0 auto;
  border-radius: 20px;
  background: #fff;
  color: var(--color-text, #1d2c8c);
  box-shadow: 0 22px 70px #0f1a4f4d;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.cdo-modal-head {
  border-bottom: 1px solid var(--color-border, #1d2c8c1a);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.cdo-modal-head span {
  color: var(--color-muted, #667085);
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 900;
}

.cdo-modal-head h2 {
  margin: 3px 0 0;
  font-size: 1.25rem;
  line-height: 1.12;
}

.cdo-modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--color-primary, #1d2c8c);
  background: #1d2c8c12;
  font-size: 1.4rem;
  line-height: 1;
}

.cdo-modal-body {
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.cdo-cost-summary {
  border: 1px solid var(--color-border, #1d2c8c1a);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: linear-gradient(135deg, #1d2c8c0f, #e3062b0a), #fff;
}

.cdo-cost-summary small,
.cdo-plan-card small {
  color: var(--color-muted, #667085);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
}

.cdo-cost-summary strong {
  color: var(--color-primary, #1d2c8c);
  font-size: 1.18rem;
}

.cdo-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cdo-plan-card {
  border: 1px solid var(--color-border, #1d2c8c1a);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  min-width: 0;
  display: grid;
  gap: 9px;
  box-shadow: 0 8px 22px #1d2c8c0d;
}

.cdo-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cdo-pay-icon {
  width: 42px;
  height: 32px;
  border-radius: 9px;
  background: var(--color-primary, #1d2c8c);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
}

.cdo-plan-card img {
  max-width: 54px;
  max-height: 32px;
  object-fit: contain;
}

.cdo-plan-card strong {
  color: var(--color-primary, #1d2c8c);
  font-size: 1rem;
  line-height: 1.18;
}

.cdo-plan-card b {
  color: #168a3a;
  font-size: 0.84rem;
}

.cdo-plan-card span {
  color: var(--color-muted, #667085);
  font-size: 0.82rem;
  line-height: 1.35;
}

.cdo-plan-card.is-surcharge b {
  color: var(--color-accent, #e3062b);
}

.cdo-modal-message {
  color: var(--color-muted, #667085);
  border: 1px solid var(--color-border, #1d2c8c1a);
  border-radius: 14px;
  margin: 0;
  padding: 14px;
  line-height: 1.4;
}

.cdo-account-regret-link {
  display: grid;
  gap: 5px;
  border: 1px solid var(--color-border, #1d2c8c1a);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px #1d2c8c0d;
  color: inherit;
  padding: 14px;
  text-decoration: none;
}

.cdo-account-regret-link strong {
  color: var(--color-primary, #1d2c8c);
  font-size: 0.98rem;
}

.cdo-account-regret-link span {
  color: var(--color-muted, #667085);
  font-size: 0.84rem;
  line-height: 1.35;
}

.cdo-regret-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 16px 96px;
}

.cdo-regret-card {
  display: grid;
  gap: 14px;
  border: 1px solid #1d2c8c1a;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px #1d2c8c12;
  padding: 16px;
}

.cdo-regret-card h1 {
  color: #1d2c8c;
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 0;
}

.cdo-regret-card p,
.cdo-regret-card small {
  color: #667085;
  line-height: 1.4;
  margin: 0;
}

.cdo-regret-list {
  display: grid;
  gap: 8px;
}

.cdo-regret-option {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid #1d2c8c1a;
  border-radius: 10px;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 12px;
  text-align: left;
}

.cdo-regret-option.is-selected,
.cdo-regret-option:hover {
  border-color: #1d2c8c;
  background: #eef4ff;
}

.cdo-regret-option strong {
  color: #1d2c8c;
}

.cdo-regret-form {
  display: grid;
  gap: 10px;
}

.cdo-regret-form textarea {
  min-height: 110px;
  border: 1px solid #d7dce8;
  border-radius: 10px;
  font: inherit;
  padding: 10px;
}

.cdo-regret-submit,
.cdo-regret-back {
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
}

.cdo-regret-submit {
  border: 0;
  background: #1d2c8c;
  color: #ffffff;
}

.cdo-regret-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cdo-regret-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1d2c8c1a;
  background: #ffffff;
  color: #1d2c8c;
  text-decoration: none;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch;
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.product-card {
  display: flex !important;
  flex-direction: column;
  grid-template-columns: none !important;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px #1d2c8c12;
}

.product-card-image {
  aspect-ratio: 1 / 1 !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  border-bottom: 1px solid var(--color-border, #1d2c8c1a);
  background: #fff !important;
}

.product-card-image img {
  object-fit: contain !important;
  object-position: center center;
  background: #fff;
  padding: 8px;
}

.product-card-body {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding: 10px !important;
}

.product-card-meta {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  justify-content: flex-end !important;
  min-height: 0;
}

.product-card-meta span {
  display: none !important;
}

.product-card-footer {
  display: contents !important;
}

.product-card-pricing {
  order: 3;
  min-height: 0;
}

.product-card-price {
  color: var(--color-primary, #1d2c8c) !important;
  font-size: clamp(1.24rem, 5vw, 1.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
}

.product-card .button {
  order: 5;
  width: 100%;
  min-height: 44px !important;
  border-radius: 10px;
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.product-card-title {
  order: 1;
  min-width: 0;
}

.product-card-title h3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  min-height: 2.36em !important;
  overflow: hidden !important;
  font-size: 0.92rem !important;
  line-height: 1.18 !important;
}

.product-card p {
  order: 2;
  margin: 0 !important;
  color: var(--color-muted, #667085) !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-badges {
  order: 4;
  min-height: 0;
  gap: 5px;
}

.product-card-badges span,
.product-card-badges strong {
  min-height: 22px;
  padding: 0;
  color: var(--color-muted, #667085) !important;
  background: transparent !important;
  font-size: 0.72rem;
  line-height: 1.1;
  font-weight: 700;
}

.product-card-badges span:nth-child(n+2) {
  display: none !important;
}

.product-card-badges strong {
  color: var(--color-primary, #1d2c8c) !important;
  font-weight: 900;
}

.cdo-legal-footer {
  border-top: 1px solid var(--color-border, #1d2c8c1a);
  background: #fff;
  padding: 18px 14px calc(92px + var(--safe-bottom, 0px));
  display: grid;
  gap: 12px;
}

.cdo-legal-footer-inner {
  width: min(100%, 920px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.cdo-legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cdo-footer-button {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-border, #1d2c8c1a);
  background: #fff;
  color: var(--color-primary, #1d2c8c);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 900;
}

.cdo-footer-button.is-important {
  color: #fff;
  background: var(--color-accent, #e3062b);
  border-color: transparent;
}

.cdo-delivery-panel {
  border: 1px solid var(--color-border, #1d2c8c1a);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: 0 8px 22px #1d2c8c0d;
}

.cdo-delivery-head {
  display: grid;
  gap: 3px;
}

.cdo-delivery-head strong {
  color: var(--color-primary, #1d2c8c);
  font-size: 0.96rem;
}

.cdo-delivery-head span {
  color: var(--color-muted, #667085);
  font-size: 0.8rem;
  line-height: 1.35;
}

.cdo-delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cdo-delivery-grid label {
  min-width: 0;
  color: var(--color-muted, #667085);
  font-size: 0.74rem;
  font-weight: 800;
  display: grid;
  gap: 5px;
}

.cdo-delivery-grid input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--color-border, #1d2c8c1a);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--color-text, #16213d);
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
}

.cdo-delivery-status {
  border: 1px solid var(--color-border, #1d2c8c1a);
  border-radius: 12px;
  padding: 10px;
  color: var(--color-muted, #667085);
  background: #f8fafc;
  font-size: 0.82rem;
  line-height: 1.4;
}

.cdo-delivery-status.is-loading {
  color: var(--color-primary, #1d2c8c);
  background: #1d2c8c0a;
}

.cdo-delivery-status.is-ok {
  color: #146c2e;
  background: #168a3a12;
  border-color: #168a3a33;
}

.cdo-delivery-status.is-error {
  color: var(--color-accent, #e3062b);
  background: #e3062b0d;
  border-color: #e3062b33;
}

.cdo-delivery-status small {
  display: block;
  margin-top: 4px;
  color: inherit;
  line-height: 1.35;
}

.cdo-delivery-cost-row {
  border-top: 1px solid #00000012;
  margin-top: 8px;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cdo-delivery-cost-row + .cdo-delivery-cost-row {
  margin-top: 0;
}

.cdo-delivery-cost-row.is-total {
  font-size: 1rem;
}

@media (min-width: 720px) {
  .cdo-modal-backdrop {
    align-items: center;
  }
}

@media (max-width: 430px) {
  .cdo-plan-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 82%);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .cdo-plan-card {
    scroll-snap-align: start;
  }

  .cdo-delivery-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  html,
  body,
  #root {
    background: #fff !important;
  }

  .app-shell {
    background: #fff !important;
    width: min(calc(100% - 64px), 1440px) !important;
    max-width: 1440px;
    margin-inline: auto;
  }

  .app-header {
    padding-inline: clamp(28px, 4vw, 64px);
  }

  .app-main {
    padding-inline: clamp(28px, 4vw, 64px);
  }

  .bottom-nav {
    width: min(calc(100% - 64px), 1440px) !important;
  }
}
