/* =========================================================
   Buyonix – Cart, Express Checkout & Order Tracker Styles
   ========================================================= */

.chk-page {
  padding: 22px 0 80px;
}

/* Header Stepper */
.chk-header-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 99px;
}
.chk-header-steps i {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.chk-hstep {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  color: var(--muted);
  transition: all 0.2s ease;
}
.chk-hstep span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
}
.chk-hstep.is-active {
  background: rgba(247, 147, 30, 0.14);
  color: #fff;
}
.chk-hstep.is-active span {
  background: var(--grad);
  color: #fff;
}

/* Top Bar: Breadcrumbs & Mode Tabs */
.chk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.chk-mode-tabs {
  display: flex;
  gap: 8px;
  background: rgba(17, 17, 26, 0.88);
  padding: 5px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.chk-mtab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
}
.chk-mtab svg { width: 16px; height: 16px; }
.chk-mtab.is-active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px -4px rgba(239, 65, 35, 0.55);
}

/* Free Shipping Progress Banner */
.chk-ship-banner {
  background: linear-gradient(135deg, rgba(247, 147, 30, 0.12), rgba(18, 18, 28, 0.92));
  border: 1px solid rgba(247, 147, 30, 0.35);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chk-ship-banner__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
}
.chk-ship-banner__top b { color: var(--brand); }
.chk-ship-banner__bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.chk-ship-banner__bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--grad);
  transition: width 0.35s ease;
}
.chk-ship-banner.is-unlocked {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(18, 18, 28, 0.92));
}
.chk-ship-banner.is-unlocked .chk-ship-banner__bar i {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

/* Main 2-Column Layout */
.chk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(340px, 0.85fr);
  gap: 22px;
  align-items: start;
}
.chk-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Cards */
.chk-card {
  background: rgba(17, 17, 26, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 20px;
}
.chk-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.chk-card__head > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.chk-step-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.chk-card__head h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
}
.chk-badge-secure {
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 11.5px;
  font-weight: 600;
}

/* Cart Items List */
.chk-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chk-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s;
}
.chk-item:hover { border-color: rgba(247, 147, 30, 0.35); }
.chk-item__img {
  width: 78px;
  height: 78px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  display: grid;
  place-items: center;
}
.chk-item__img img {
  max-height: 66px;
  width: auto;
  object-fit: contain;
}
.chk-item__info { min-width: 0; }
.chk-item__meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chk-item__title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  margin: 2px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chk-item__title:hover { color: var(--brand); }
.chk-item__price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.chk-item__price b { color: #fff; font-weight: 700; }
.chk-item__price s { color: var(--muted); font-size: 12px; }
.chk-item__save {
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  padding: 2px 7px;
  border-radius: 99px;
}

.chk-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.chk-item__line-total {
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--brand);
}
.chk-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chk-qty {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  overflow: hidden;
}
.chk-qty button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
}
.chk-qty button:hover { background: rgba(247, 147, 30, 0.25); }
.chk-qty button svg { width: 13px; height: 13px; }
.chk-qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}
.chk-rm-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
  display: grid;
  place-items: center;
}
.chk-rm-btn:hover { background: #ef4444; color: #fff; }
.chk-rm-btn svg { width: 14px; height: 14px; }

/* Quick Impulse Upsell Rail */
.chk-upsells {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.chk-upsells__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.chk-upsells__head b { font-size: 13px; color: var(--brand); }
.chk-upsells__head small { font-size: 11.5px; color: var(--muted); }
.chk-upsell-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.chk-upcard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.chk-upcard img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}
.chk-upcard__info {
  min-width: 0;
  flex: 1;
}
.chk-upcard__info p {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chk-upcard__info b {
  font-size: 12px;
  color: var(--brand);
}
.chk-upcard button {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(247, 147, 30, 0.16);
  border: 1px solid rgba(247, 147, 30, 0.4);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.chk-upcard button:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

/* Shipping Form Grid */
.chk-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.chk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chk-field--full { grid-column: 1 / -1; }
.chk-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #d6d6e2;
}
.chk-field label em { color: #ef4444; font-style: normal; }
.chk-field label small { color: var(--muted); font-weight: 400; }
.chk-field input, .chk-field select, .chk-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(9, 9, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chk-field input:focus, .chk-field select:focus, .chk-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.15);
  outline: none;
}

/* Payment Methods */
.chk-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chk-pay-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}
.chk-pay-option input { display: none; }
.chk-pay-option__radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  margin-top: 2px;
  position: relative;
}
.chk-pay-option.is-selected {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(247, 147, 30, 0.1), rgba(18, 18, 28, 0.9));
}
.chk-pay-option.is-selected .chk-pay-option__radio {
  border-color: var(--brand);
}
.chk-pay-option.is-selected .chk-pay-option__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--grad);
}
.chk-pay-option__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.chk-pay-option__top b { font-size: 14.5px; color: #fff; }
.chk-pay-option__body p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}
.chk-pay-tag {
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(247, 147, 30, 0.16);
  color: var(--brand);
}
.chk-pay-tag--green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.chk-pay-details {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed rgba(247, 147, 30, 0.4);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chk-pay-details span { color: var(--muted); }
.chk-pay-details small { color: #facc15; margin-top: 4px; }

/* Right Column: Sticky Order Summary */
.chk-right {
  position: sticky;
  top: 92px;
}
.chk-summary {
  background: linear-gradient(180deg, rgba(22, 22, 34, 0.95) 0%, rgba(14, 14, 22, 0.95) 100%);
  border: 1px solid rgba(247, 147, 30, 0.3);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chk-summary h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
}

/* Coupon Box */
.chk-coupon {
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chk-coupon label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.chk-coupon__row {
  display: flex;
  gap: 8px;
}
.chk-coupon__row input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(8, 8, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
}
.chk-coupon__msg {
  font-size: 12px;
  font-weight: 600;
}
.chk-coupon__msg.is-ok { color: #4ade80; }
.chk-coupon__msg.is-err { color: #f87171; }
.chk-coupon__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cpn-pill {
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(247, 147, 30, 0.12);
  border: 1px dashed rgba(247, 147, 30, 0.45);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.cpn-pill:hover {
  background: var(--grad);
  color: #fff;
  border-style: solid;
}

/* Totals Breakdown */
.chk-totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}
.chk-totals__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #c9c9d8;
}
.chk-totals__row b { color: #fff; }
.chk-totals__row--save b { color: #4ade80; }
.chk-totals__grand {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.chk-totals__grand span {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.chk-totals__grand small {
  font-size: 11.5px;
  color: var(--muted);
}
.chk-totals__grand > b {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: var(--brand);
}

.chk-submit-btn {
  font-size: 15.5px;
  padding: 15px 20px;
}

/* Guarantees */
.chk-guarantees {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.chk-guarantees > div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}
.chk-guarantees svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}
.chk-guarantees b { color: #e5e5f0; }

/* Empty Cart State */
.chk-empty {
  background: rgba(17, 17, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 46px 24px;
  text-align: center;
  max-width: 780px;
  margin: 10px auto 30px;
}
.chk-empty__ico {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(247, 147, 30, 0.14);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.chk-empty__ico svg { width: 32px; height: 32px; }
.chk-empty h2 { font-family: var(--display); font-size: 24px; margin-bottom: 8px; }
.chk-empty p { color: var(--muted); max-width: 520px; margin: 0 auto 22px; font-size: 14px; }
.chk-empty__btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.chk-empty__picks {
  text-align: left;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.chk-empty__picks h4 {
  font-size: 14px;
  color: var(--brand);
  margin-bottom: 12px;
  text-align: center;
}

/* Order Confirmed Receipt View */
.chk-success {
  max-width: 760px;
  margin: 14px auto;
}
.chk-success__card {
  background: linear-gradient(180deg, rgba(20, 26, 24, 0.94), rgba(14, 14, 22, 0.96));
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.chk-success__badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.2);
}
.chk-success__badge svg { width: 32px; height: 32px; }
.chk-success__head { text-align: center; margin-bottom: 24px; }
.chk-success__head h2 { font-family: var(--display); font-size: 26px; margin-bottom: 6px; }
.chk-success__head p { color: var(--muted); font-size: 14px; }
.chk-success__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}
.chk-success__meta div small { display: block; font-size: 11px; color: var(--muted); }
.chk-success__meta div b { font-size: 14px; color: #fff; }
.chk-success__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.chk-success__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
}
.chk-success__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* Order Tracker View */
.chk-tracker {
  max-width: 820px;
  margin: 10px auto;
}
.chk-tracker__box {
  background: rgba(17, 17, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 28px 24px;
}
.chk-tracker__head {
  text-align: center;
  margin-bottom: 20px;
}
.chk-tracker__head h2 { font-family: var(--display); font-size: 28px; margin: 4px 0 8px; }
.chk-tracker__head p { color: var(--muted); font-size: 14px; max-width: 580px; margin: 0 auto; }
.chk-tracker__form {
  display: flex;
  gap: 10px;
  max-width: 580px;
  margin: 0 auto 14px;
}
.chk-tracker__form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 13px;
  background: rgba(8, 8, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
}
.chk-tracker__demos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}

/* Tracked Order Result Card & 4-Step Timeline */
.tcard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(247, 147, 30, 0.35);
  border-radius: 18px;
  padding: 20px;
  margin-top: 16px;
}
.tcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.tcard__status {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(247, 147, 30, 0.16);
  color: var(--brand);
}
.tcard__status--delivered, .tcard__status--dispatched {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}
.tcard__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.tstep {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  opacity: 0.45;
}
.tstep.is-done {
  opacity: 1;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.09);
}
.tstep.is-current {
  opacity: 1;
  border-color: var(--brand);
  background: rgba(247, 147, 30, 0.12);
}
.tstep b { display: block; font-size: 12.5px; margin-top: 4px; }
.tstep small { font-size: 11px; color: var(--muted); }

/* Mobile Responsive */
@media (max-width: 980px) {
  .chk-layout {
    grid-template-columns: 1fr;
  }
  .chk-right {
    position: static;
  }
  .chk-upsell-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .chk-page { padding: 14px 0 90px; }
  .chk-card, .chk-summary { padding: 15px; border-radius: 16px; }
  .chk-form-grid { grid-template-columns: 1fr; }
  .chk-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .chk-item__right {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
  }
  .chk-success__meta, .tcard__timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .chk-tracker__form {
    flex-direction: column;
  }
}
