/* Auth & account pages */

.cs-auth {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.cs-auth__card {
  background: #fff;
  border: 1px solid #eee;
  padding: 2.25rem 2rem;
  border-radius: 16px;
}

.cs-auth__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: #1a1a1a;
}

.cs-auth__lead {
  color: #666;
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}

.cs-auth .mad-col {
  margin-bottom: 1rem;
}

.cs-auth label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #444;
  margin-bottom: 0.4rem;
}

.cs-auth input[type="text"],
.cs-auth input[type="email"],
.cs-auth input[type="tel"],
.cs-auth input[type="password"] {
  width: 100%;
  border: 1px solid #ddd;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: #fff;
  border-radius: 999px;
}

.cs-auth input:focus {
  outline: none;
  border-color: #3a9b43;
}

.cs-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1.25rem;
  font-size: 0.9rem;
}

.cs-auth__row a {
  color: #3a9b43;
}

.cs-auth__row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.cs-auth__submit {
  width: 100%;
  margin-top: 0.25rem;
}

.cs-auth__footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #666;
}

.cs-auth__footer a {
  color: #3a9b43;
  font-weight: 600;
}

.cs-auth__alert {
  display: none;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-radius: 12px;
}

.cs-auth__alert.is-visible {
  display: block;
}

.cs-auth__alert--error {
  background: #fff5f5;
  border-color: #f0c0c0;
  color: #a33;
}

.cs-auth__alert--success {
  background: #f3faf4;
  border-color: #b8e0bc;
  color: #2d7a34;
}

.cs-account {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
  align-items: start;
}

.cs-account__nav {
  border: 1px solid #eee;
  background: #fff;
  padding: 0.5rem 0;
}

.cs-account__nav a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: #333;
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: 0.95rem;
}

.cs-account__nav a:hover {
  background: #f8f8f8;
  color: #3a9b43;
}

.cs-account__nav a.is-active {
  border-left-color: #3a9b43;
  color: #3a9b43;
  font-weight: 600;
  background: #f6fbf7;
}

.cs-account__nav .cs-account__logout {
  color: #a33;
  margin-top: 0.5rem;
  border-top: 1px solid #eee;
}

.cs-account__panel {
  border: 1px solid #eee;
  background: #fff;
  padding: 1.75rem 1.5rem;
  min-height: 280px;
  border-radius: 16px;
}

.cs-account__panel h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  margin: 0 0 0.35rem;
}

.cs-account__panel > p.lead {
  color: #666;
  margin: 0 0 1.5rem;
}

.cs-account__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.cs-account__stat {
  border: 1px solid #eee;
  padding: 1.1rem 1rem;
  text-align: center;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.cs-account__stat strong {
  display: block;
  font-size: 1.5rem;
  color: #3a9b43;
  margin-bottom: 0.25rem;
}

.cs-account__stat span {
  font-size: 0.85rem;
  color: #666;
}

.cs-account__stat--points {
  position: relative;
  border: none;
  background: linear-gradient(145deg, #2e7d32 0%, #43a047 55%, #66bb6a 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.28);
  overflow: hidden;
}

.cs-account__stat--points::after {
  content: '';
  position: absolute;
  right: -18px;
  top: -18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.cs-account__stat--points .cs-account__stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 0.45rem;
}

.cs-account__stat--points .cs-account__stat-icon .material-icons {
  font-size: 20px;
  color: #fff;
}

.cs-account__stat--points strong {
  color: #fff;
  font-size: 1.85rem;
  line-height: 1.1;
}

.cs-account__stat--points > span {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.cs-account__stat--points:hover {
  filter: brightness(1.04);
}

.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.cs-table th,
.cs-table td {
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.cs-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}

.cs-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: #f0f0f0;
  color: #555;
}

.cs-badge--ok {
  background: #e8f6ea;
  color: #2d7a34;
}

.cs-badge--warn {
  background: #fff6e5;
  color: #9a6b00;
}

.cs-badge--muted {
  background: #f0f0f0;
  color: #888;
}

.cs-muted {
  color: #aaa;
  font-size: 0.85rem;
}

.cs-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #888;
}

.cs-empty-state {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: #666;
}

.cs-empty-state .material-icons {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 0.65rem;
}

.cs-empty-state p {
  margin: 0 0 1rem;
  line-height: 1.5;
}

.cs-empty-state .btn {
  border-radius: 999px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.cs-empty a {
  color: #3a9b43;
  font-weight: 600;
}

.cs-address-card,
.cs-invoice-card {
  border: 1px solid #e8ece8;
  padding: 0;
  margin-bottom: 0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.cs-addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.cs-address-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cs-address-card:hover {
  border-color: #cfe8d2;
  box-shadow: 0 8px 24px rgba(58, 155, 67, 0.08);
}

.cs-address-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 1rem 1rem 0;
  border-radius: 12px;
  background: #eef8ef;
  color: #3a9b43;
}

.cs-address-card__icon .material-icons {
  font-size: 22px;
}

.cs-address-card__body {
  padding: 0.85rem 1rem 0.5rem;
  flex: 1;
}

.cs-address-card__title {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1a1a1a;
}

.cs-address-card__rows p {
  margin: 0 0 0.28rem;
  color: #555;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.cs-address-card__rows p:last-child {
  margin-bottom: 0;
}

.cs-address-card__actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
  margin-top: auto;
  border-top: 1px solid #f0f0f0;
}

.cs-address-card__btn {
  flex: 1;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.45rem 0.65rem;
  border: 1px solid #dcefe0;
  border-radius: 999px;
  background: #f8fcf9;
  color: #2e7d32;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.2;
  white-space: nowrap;
}

.cs-address-card__btn > i.material-icons {
  max-height: none;
  height: auto;
  width: auto;
  line-height: 1;
  margin: 0 !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cs-address-card__btn > span {
  line-height: 1.2;
}

.cs-address-card__btn .material-icons {
  font-size: 18px;
}

.cs-address-card__btn:hover {
  background: #eef8ef;
  border-color: #b9d9bd;
}

.cs-address-card__btn--danger {
  background: #fff8f8;
  border-color: #f0d4d4;
  color: #b71c1c;
}

.cs-address-card__btn--danger:hover {
  background: #fff0f0;
  border-color: #e8bcbc;
}

.cs-account__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.cs-account__panel-head .lead {
  margin: 0;
}

.cs-account__panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  line-height: 1.2;
}

.cs-account__panel-cta > i.material-icons,
.cs-account [class*="btn"] > i.material-icons {
  max-height: none;
  height: auto;
  width: auto;
  line-height: 1;
  margin: 0 !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.cs-account__panel-cta .material-icons {
  font-size: 20px;
}

.cs-address-form-panel {
  margin-top: 0.5rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border: 1px solid #e8ece8;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafcfa 0%, #fff 100%);
}

.cs-address-form-panel .cs-address-form__title {
  margin-top: 0;
}

.cs-address-form {
  max-width: 720px;
}

.cs-btn-ghost {
  border: 1px solid #ddd !important;
  background: #fff !important;
  color: #555 !important;
}

.cs-btn-ghost:hover {
  border-color: #bbb !important;
  background: #fafafa !important;
}

.cs-account-page .cs-account {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.cs-account__nav {
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.cs-account__panel {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.cs-invoice-card {
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}

.cs-address-card h4,
.cs-invoice-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.cs-address-card p,
.cs-invoice-card p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cs-address-card__line {
  margin-bottom: 0.35rem !important;
}

.cs-address-card__meta {
  font-size: 0.82rem !important;
  color: #888 !important;
  margin-bottom: 0.75rem !important;
}

.cs-address-card .btn-mini {
  margin-top: 0.35rem;
}

.cs-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.mad-item.account-toggle .mad-item-link {
  position: relative;
}

.mad-item.account-toggle .account-name-hint {
  display: none;
}

@media (max-width: 900px) {
  .cs-account {
    grid-template-columns: 1fr;
  }

  .cs-account__nav {
    display: flex;
    flex-wrap: wrap;
    padding: 0.35rem;
    gap: 0.25rem;
  }

  .cs-account__nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.65rem 0.85rem;
  }

  .cs-account__nav a.is-active {
    border-left: none;
    border-bottom-color: #3a9b43;
  }

  .cs-account__stats {
    grid-template-columns: 1fr;
  }

  .cs-account__panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .cs-account__panel-cta {
    justify-content: center;
  }

  .cs-addresses-grid {
    grid-template-columns: 1fr;
  }

  .cs-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .cs-auth__card {
    padding: 1.5rem 1.15rem;
    border-left: none;
    border-right: none;
  }
}

/* Online card payment */
.cs-pay-secure {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 1rem;
}

.cs-card-form {
  border: 1px solid #e5e5e5;
  background: #fafcfa;
  padding: 1.25rem 1.15rem;
  margin-bottom: 0.5rem;
  border-radius: 16px;
}

.cs-card-form .mad-col {
  margin-bottom: 0.85rem;
}

.cs-card-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #444;
}

.cs-card-form input {
  width: 100%;
  border: 1px solid #ddd;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: #fff;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.cs-card-form input:focus {
  outline: none;
  border-color: #3a9b43;
}

.cs-card-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.cs-card-brands {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.cs-card-brands span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a9b43;
  border: 1px solid #cfe8d2;
  background: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

/* Checkout page layout — always stacked */
.cs-checkout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.cs-checkout__section-title {
  margin-top: 1.5rem;
}

.cs-checkout__total {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.cs-checkout-totals {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.cs-checkout-totals--after-coupon {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #ececec;
}

.cs-checkout-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: #444;
}

.cs-checkout-totals__row--discount {
  color: #c62828;
  font-weight: 600;
}

.cs-checkout-totals__row--grand {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 2px solid #222;
  font-size: 1.05rem;
  color: #111;
}

.cs-checkout-totals__row--grand strong:last-child {
  color: #3a9b43;
  font-size: 1.2rem;
}

.cs-checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #ececec;
}

.cs-checkout-item:last-child {
  border-bottom: 0;
}

.cs-checkout-item--sale {
  background: linear-gradient(90deg, rgba(198, 40, 40, 0.04), transparent 55%);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 10px;
}

.cs-checkout-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cs-checkout-item__info strong {
  font-size: 0.92rem;
  line-height: 1.35;
}

.cs-checkout-item__badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #c62828;
  background: #fdecea;
  border: 1px solid rgba(198, 40, 40, 0.18);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.cs-checkout-item__qty {
  font-size: 0.82rem;
  color: #777;
}

.cs-checkout-item__prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
}

.cs-checkout-item__old {
  font-size: 0.82rem;
  color: #a0a0a0;
  text-decoration: line-through;
}

.cs-checkout-item__current {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
}

.cs-checkout-item--sale .cs-checkout-item__current {
  color: #c62828;
}

.cs-checkout-form .mad-col {
  margin-bottom: 0.9rem;
}

.cs-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
  margin-bottom: 0.25rem;
}

.cs-address-grid__wide {
  grid-column: 1 / -1;
}

.cs-address-form {
  max-width: 540px;
}

.cs-address-form__title {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
}

.cs-address-form .cs-address-grid__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.cs-address-form .cs-address-grid__row--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.cs-address-form .cs-address-grid__row--half {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.cs-address-form .cs-address-grid__row--half > .mad-col:first-child {
  grid-column: 1;
}

.cs-address-form .mad-col {
  margin-bottom: 0.9rem;
}

.cs-address-form .cs-form-actions {
  margin-top: 0.25rem;
}

.cs-address-form .cs-form-actions .btn {
  min-width: 7rem;
}

.cs-ac-wrap {
  position: relative;
}

.cs-ac-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0.35rem;
}

.cs-ac-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  font: inherit;
  color: #222;
  cursor: pointer;
}

.cs-ac-item:hover,
.cs-ac-item.is-active {
  background: #f3faf4;
  color: #1b5e20;
}

.cs-ac-wrap input[readonly] {
  background: #f7f7f7;
}

.cs-address-form .mad-col input:disabled {
  background: #f7f7f7;
  color: #888;
}

.cs-address-hint {
  margin: 0.15rem 0 1rem;
  font-size: 0.82rem;
  color: #777;
  line-height: 1.45;
}

.cs-delivery-quote {
  margin: 0.35rem 0 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.cs-delivery-quote--loading {
  background: #f5f5f5;
  color: #666;
}

.cs-delivery-quote--ok {
  background: #f3faf4;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.cs-delivery-quote--error {
  background: #fff5f5;
  color: #b71c1c;
  border: 1px solid #ffcdd2;
}

.cs-checkout__section-title--compact {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .cs-address-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cs-address-form .cs-address-grid__row--split,
  .cs-address-form .cs-address-grid__row--half {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.cs-checkout-form .mad-col > label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #444;
}

.cs-checkout-form input[type="text"],
.cs-checkout-form input[type="email"],
.cs-checkout-form input[type="tel"],
.cs-checkout-form select {
  width: 100%;
  border: 1px solid #ddd;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  box-sizing: border-box;
  background: #fff;
}

.cs-checkout-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.cs-terms--compact {
  margin: 0 0 1rem;
}

.cs-checkout-form input[type="text"],
.cs-checkout-form input[type="email"],
.cs-checkout-form input[type="tel"] {
  width: 100%;
  max-width: 100%;
  border: 1px solid #ddd;
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
  background: #fff;
  border-radius: 999px;
  box-sizing: border-box;
}

.cs-checkout-form input[type="text"]:focus,
.cs-checkout-form input[type="email"]:focus,
.cs-checkout-form input[type="tel"]:focus {
  outline: none;
  border-color: #3a9b43;
}

.cs-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}

.cs-choice {
  position: relative;
  flex: 1 1 calc(50% - 0.35rem);
  min-width: 140px;
  cursor: pointer;
  margin: 0;
}

.cs-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cs-choice span {
  display: block;
  text-align: center;
  padding: 0.85rem 0.75rem;
  border: 2px solid #ddd;
  border-radius: 999px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  color: #333;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.cs-choice input:checked + span {
  border-color: #3a9b43;
  background: #eef8ef;
  color: #1f5c28;
}

.cs-choice input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(58, 155, 67, 0.25);
}

/* Terms checkbox — large & clear */
.cs-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 1.25rem 0 1rem;
  padding: 1rem 1.05rem;
  border: 2px solid #ddd;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}

.cs-terms input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cs-terms__box {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border: 2px solid #999;
  border-radius: 8px;
  background: #fff;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.cs-terms__box::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 3px;
  width: 7px;
  height: 13px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s;
}

.cs-terms input:checked + .cs-terms__box {
  background: #3a9b43;
  border-color: #3a9b43;
}

.cs-terms input:checked + .cs-terms__box::after {
  transform: rotate(45deg) scale(1);
}

.cs-terms input:focus-visible + .cs-terms__box {
  box-shadow: 0 0 0 3px rgba(58, 155, 67, 0.3);
}

.cs-terms:has(input:checked) {
  border-color: #3a9b43;
  background: #f3faf4;
}

.cs-terms__text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #333;
  font-weight: 500;
}

.cs-checkout__submit,
.cs-checkout-form .btn,
.cs-auth .btn,
.cs-account__panel .btn {
  border-radius: 999px !important;
}

.cs-checkout__submit {
  width: 100%;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .cs-checkout {
    max-width: 100%;
    padding: 0.75rem 0 2.5rem;
    gap: 1rem;
  }

  .cs-checkout .cs-account__panel {
    padding: 1.25rem 1rem;
    min-height: 0;
    border-radius: 14px;
  }

  .cs-checkout .cs-account__panel h2 {
    font-size: 1.35rem;
  }

  .cs-card-form {
    padding: 1rem;
  }

  .cs-card-form__row {
    grid-template-columns: 1fr;
  }

  .cs-choice {
    flex: 1 1 100%;
  }

  .cs-terms {
    padding: 0.95rem;
  }

  .cs-terms__box {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .cs-terms__box::after {
    left: 10px;
    top: 4px;
  }
}

@media (max-width: 560px) {
  .cs-auth__card {
    padding: 1.5rem 1.15rem;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
}

.cs-points-balance {
  margin: 0 0 1.5rem;
}

.cs-points-balance__card {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3faf4 0%, #fff 100%);
  border: 1px solid #d8eadb;
  min-width: 180px;
}

.cs-points-balance__label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 600;
}

.cs-points-balance__value {
  font-size: 2rem;
  line-height: 1.1;
  color: #2e7d32;
}

.cs-points-balance__hint {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #666;
  max-width: 42rem;
}

.cs-points-rewards {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.cs-points-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
}

.cs-points-reward.is-locked {
  opacity: 0.72;
}

.cs-points-reward__title {
  display: block;
  font-size: 0.98rem;
  color: #1a1a1a;
}

.cs-points-reward__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #666;
}

.cs-points-empty {
  color: #777;
  font-size: 0.95rem;
}

.cs-points-plus {
  color: #2e7d32;
  font-weight: 700;
}

.cs-points-minus {
  color: #c62828;
  font-weight: 700;
}

@media (max-width: 640px) {
  .cs-points-reward {
    flex-direction: column;
    align-items: stretch;
  }
}
