/*
 * Lineserve store and checkout.
 *
 * Deliberately small. Page chrome — layout columns, sidebar, section
 * dividers, buttons, alerts, form controls — all comes from the
 * themetags_cart stylesheet. This file only styles what the theme has no
 * equivalent for: the plan grid, the currency bar, the checkout order
 * summary and the payment-method list.
 *
 * Everything reads the theme's own custom properties (--primary,
 * --border-color, --custom-radius ...) with fallbacks, so a theme re-skin
 * carries the store with it. Nothing here restyles a theme class or sets a
 * page background, and every rule is scoped under #order-standard_cart.
 *
 * Matches the token names in css/lineserve-cloud.css so the configurator
 * and the store stay visually identical.
 */

#order-standard_cart {
  --ls-accent: var(--primary, #1C40F2);
  --ls-accent-soft: var(--primary-light, #D1DCFE);
  --ls-heading: var(--heading-color, #1d1d1f);
  --ls-body: var(--body-color, #404040);
  --ls-border: var(--border-color, #e9eaec);
  --ls-surface: var(--gray-light, #f5f5f5);
  --ls-radius: var(--custom-radius, .75rem);
  --ls-radius-sm: 6px;
  --ls-muted: #6c757d;
  --ls-success: #28a745;
}

/* Consistent focus ring across every custom control. */
#order-standard_cart .ls-plan-cta:focus-visible,
#order-standard_cart .ls-currency-form select:focus-visible,
#order-standard_cart .ls-pay:focus-within,
#order-standard_cart .ls-disclosure > summary:focus-visible {
  outline: 2px solid var(--ls-accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Currency bar                                                        */
/* ------------------------------------------------------------------ */

#order-standard_cart .ls-currency-bar {
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius);
  background: var(--ls-surface);
  padding: 12px 16px;
  margin-bottom: 22px;
}

#order-standard_cart .ls-currency-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

#order-standard_cart .ls-currency-form label {
  margin: 0;
  font-weight: 600;
  color: var(--ls-heading);
  font-size: 14px;
}

#order-standard_cart .ls-currency-form select {
  width: auto;
  min-width: 96px;
  display: inline-block;
}

#order-standard_cart .ls-currency-note {
  flex: 1 1 260px;
  color: var(--ls-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Plan grid                                                           */
/* ------------------------------------------------------------------ */

#order-standard_cart .ls-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
  margin: 0 0 26px;
}

#order-standard_cart .ls-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius);
  background: #fff;
  padding: 22px 20px 20px;
}

#order-standard_cart .ls-plan.is-featured {
  border-color: var(--ls-accent);
  box-shadow: 0 0 0 1px var(--ls-accent);
}

#order-standard_cart .ls-plan-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--ls-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

#order-standard_cart .ls-plan-name {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ls-heading);
}

/* ---- Price ---- */

#order-standard_cart .ls-plan-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ls-border);
}

#order-standard_cart .ls-plan-price-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ls-muted);
}

#order-standard_cart .ls-plan-price-amount {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ls-heading);
}

/* A configurable product states how it is priced rather than showing a
   number it cannot know yet. Smaller, because it is a sentence. */
#order-standard_cart .ls-plan-price-amount.is-configured {
  font-size: 16px;
  font-weight: 600;
}

#order-standard_cart .ls-plan-price-term {
  font-size: 13px;
  color: var(--ls-muted);
}

#order-standard_cart .ls-plan-setup {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 12px;
  color: var(--ls-body);
  background: var(--ls-accent-soft);
  padding: 2px 8px;
  border-radius: var(--ls-radius-sm);
}

/* ---- Spec ---- */

#order-standard_cart .ls-plan-spec {
  margin: 0 0 16px;
  font-size: 13.5px;
}

#order-standard_cart .ls-plan-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--ls-border);
}

#order-standard_cart .ls-plan-spec-row:last-child { border-bottom: 0; }

#order-standard_cart .ls-plan-spec dt {
  font-weight: 400;
  color: var(--ls-muted);
}

#order-standard_cart .ls-plan-spec dd {
  margin: 0;
  font-weight: 600;
  color: var(--ls-heading);
  text-align: right;
}

/* Spec list built from the description fallback. */
#order-standard_cart .ls-plan-speclist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 13.5px;
}

#order-standard_cart .ls-plan-speclist li {
  position: relative;
  padding: 5px 0 5px 20px;
  border-bottom: 1px dashed var(--ls-border);
  color: var(--ls-body);
}

#order-standard_cart .ls-plan-speclist li:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ls-accent);
}

#order-standard_cart .ls-plan-speclist li:last-child { border-bottom: 0; }

/* The trailing <br> in the catalogue text leaves one empty item. */
#order-standard_cart .ls-plan-speclist li:empty { display: none; }
#order-standard_cart .ls-plan-speclist li:empty:before { display: none; }

#order-standard_cart .ls-plan-desc {
  font-size: 13px;
  color: var(--ls-body);
  margin-bottom: 14px;
}

#order-standard_cart .ls-plan-stock {
  font-size: 12px;
  color: var(--ls-muted);
  margin-bottom: 10px;
}

/* ---- CTA: pinned to the bottom so buttons align across cards ---- */

#order-standard_cart .ls-plan-cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* Group extras and empty state                                        */
/* ------------------------------------------------------------------ */

#order-standard_cart .ls-group-included {
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius);
  padding: 18px 20px;
  margin-bottom: 24px;
}

#order-standard_cart .ls-group-included h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ls-muted);
}

#order-standard_cart .ls-group-included ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
}

#order-standard_cart .ls-group-included li i {
  color: var(--ls-success);
  margin-right: 8px;
}

#order-standard_cart .ls-empty { margin-bottom: 24px; }

/* ------------------------------------------------------------------ */
/* Page head + step indicator (checkout and cart)                      */
/* ------------------------------------------------------------------ */

#order-standard_cart .ls-co-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--ls-border);
}

#order-standard_cart .ls-co-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--ls-heading);
}

#order-standard_cart .ls-co-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: lsstep;
  font-size: 13px;
}

#order-standard_cart .ls-co-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ls-muted);
  counter-increment: lsstep;
}

#order-standard_cart .ls-co-steps li:not(:last-child):after {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ls-border);
}

#order-standard_cart .ls-co-steps li:before {
  content: counter(lsstep);
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--ls-border);
  font-size: 11px;
  font-weight: 700;
}

#order-standard_cart .ls-co-steps li.is-done { color: var(--ls-body); }

#order-standard_cart .ls-co-steps li.is-done:before {
  content: "\2713";
  background: var(--ls-success);
  border-color: var(--ls-success);
  color: #fff;
}

#order-standard_cart .ls-co-steps li.is-current {
  color: var(--ls-heading);
  font-weight: 600;
}

#order-standard_cart .ls-co-steps li.is-current:before {
  background: var(--ls-accent);
  border-color: var(--ls-accent);
  color: #fff;
}

/* ------------------------------------------------------------------ */
/* Checkout — numbered steps                                           */
/* ------------------------------------------------------------------ */

#order-standard_cart .ls-step {
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius);
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
}

#order-standard_cart .ls-step-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

#order-standard_cart .ls-step-num {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ls-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

#order-standard_cart .ls-step-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ls-heading);
}

#order-standard_cart .ls-step-sub {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ls-muted);
  margin: 22px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ls-border);
}

#order-standard_cart .ls-step-sub small {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

#order-standard_cart .ls-step-note {
  color: var(--ls-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

#order-standard_cart .ls-field-help {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ls-muted);
}

#order-standard_cart .ls-optional {
  font-weight: 400;
  color: var(--ls-muted);
  font-size: 12.5px;
}

#order-standard_cart .ls-account-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--ls-radius-sm);
  background: var(--ls-surface);
  margin-bottom: 18px;
}

#order-standard_cart .ls-account-toggle .ls-step-note { margin: 0; }

#order-standard_cart .ls-pw-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

#order-standard_cart .ls-pw-row .password-strength-meter {
  flex: 1 1 200px;
  margin: 0;
}

#order-standard_cart .ls-pw-row .password-strength-meter p { margin: 4px 0 0; }

#order-standard_cart .ls-total-strip {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--ls-radius-sm);
  background: var(--ls-accent-soft);
  margin-bottom: 18px;
  font-size: 14px;
}

#order-standard_cart .ls-total-strip strong {
  font-size: 19px;
  color: var(--ls-heading);
}

#order-standard_cart .ls-newcard-choice {
  list-style: none;
  margin: 14px 0 10px;
  padding: 0;
}

#order-standard_cart .ls-optin {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--ls-radius-sm);
  background: var(--ls-surface);
  margin: 18px 0;
}

#order-standard_cart .ls-optin h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ls-heading);
}

#order-standard_cart .ls-optin p {
  margin: 0;
  font-size: 13px;
  color: var(--ls-muted);
}

#order-standard_cart .ls-submit { margin-top: 20px; }

#order-standard_cart .ls-tos {
  font-size: 13.5px;
  margin-bottom: 14px;
}

/* ------------------------------------------------------------------ */
/* Configure page                                                      */
/* ------------------------------------------------------------------ */

#order-standard_cart .ls-cfg-product {
  padding: 18px 20px;
  border: 1px solid var(--ls-border);
  border-left: 3px solid var(--ls-accent);
  border-radius: var(--ls-radius);
  background: #fff;
  margin-bottom: 20px;
}

#order-standard_cart .ls-cfg-product h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--ls-heading);
}

/* Spec list on the configure page — same grammar as the store card, so a
   customer sees the same shape twice. */
#order-standard_cart .ls-cfg-speclist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px 20px;
  font-size: 13.5px;
}

#order-standard_cart .ls-cfg-speclist li {
  position: relative;
  padding: 3px 0 3px 18px;
  color: var(--ls-body);
}

#order-standard_cart .ls-cfg-speclist li:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ls-accent);
}

#order-standard_cart .ls-cfg-speclist li:empty { display: none; }

/* ---- Root password: one border around input + both buttons ---- */

#order-standard_cart .ls-pw-group .form-control {
  border-right: 0;
}

#order-standard_cart .ls-pw-group .ls-pw-btn {
  background: #fff;
  border: 1px solid var(--ls-border);
  border-left: 0;
  color: var(--ls-muted);
  box-shadow: none;
}

#order-standard_cart .ls-pw-group .ls-pw-btn:hover {
  background: var(--ls-surface);
  color: var(--ls-heading);
}

#order-standard_cart .ls-pw-group .ls-pw-btn:focus-visible {
  outline: 2px solid var(--ls-accent);
  outline-offset: -2px;
}

/* A separator between copy and reveal, without a full border. */
#order-standard_cart .ls-pw-group .ls-pw-btn + .ls-pw-btn {
  border-left: 1px solid var(--ls-border);
}

/* Confirmation tick after a successful copy. */
#order-standard_cart .ls-pw-group .ls-pw-btn .fa-check { color: var(--ls-success); }

/* Billing term. Kept as a select because updateConfigurableOptions() is
   wired to it — but it should read as a decision, not a form field. */
#order-standard_cart .ls-cfg-cycle { margin: 0; }

#order-standard_cart .ls-cfg-cycle select {
  font-size: 15px;
  font-weight: 600;
  height: auto;
  padding: 10px 12px;
  color: var(--ls-heading);
}

#order-standard_cart .ls-cfg-zerobase {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--ls-radius-sm);
  background: var(--ls-accent-soft);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ls-body);
}

#order-standard_cart .ls-cfg-zerobase i {
  margin-top: 3px;
  color: var(--ls-accent);
  flex: 0 0 auto;
}

/* ---- Configurable options ---- */

#order-standard_cart .ls-cfg-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

#order-standard_cart .ls-cfg-option { min-width: 0; }

/* Quantity options carry a slider and need the full width. */
#order-standard_cart .ls-cfg-option.is-wide { grid-column: 1 / -1; }

#order-standard_cart .ls-cfg-option > label,
#order-standard_cart .ls-cfg-option-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ls-heading);
}

#order-standard_cart .ls-cfg-option-unit {
  font-weight: 400;
  color: var(--ls-muted);
  font-size: 12.5px;
}

#order-standard_cart .ls-cfg-radios {
  display: grid;
  gap: 7px;
}

#order-standard_cart .ls-cfg-radio,
#order-standard_cart .ls-cfg-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius-sm);
  font-weight: 400;
  font-size: 13.5px;
  cursor: pointer;
}

#order-standard_cart .ls-cfg-radio:hover,
#order-standard_cart .ls-cfg-check:hover { border-color: var(--ls-accent); }

#order-standard_cart .ls-cfg-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

#order-standard_cart .ls-cfg-qty .form-control-qty {
  width: 100px;
  text-align: center;
}

#order-standard_cart .ls-cfg-qty .form-control-static {
  color: var(--ls-muted);
  font-size: 13.5px;
}

/* Give the ion slider room — its grid labels collide with a tight row. */
#order-standard_cart .ls-cfg-option.is-wide .irs { margin-top: 4px; }
#order-standard_cart .ls-cfg-option.is-wide .irs-with-grid { padding-bottom: 26px; }

/* ---- Usage metrics ---- */

#order-standard_cart .ls-cfg-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
}

#order-standard_cart .ls-cfg-metrics li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--ls-border);
}

#order-standard_cart .ls-cfg-metrics li:last-child { border-bottom: 0; }

#order-standard_cart .ls-cfg-metric-name {
  font-weight: 600;
  color: var(--ls-heading);
}

#order-standard_cart .ls-cfg-metric-price { color: var(--ls-muted); }

#order-standard_cart .ls-cfg-help {
  font-size: 13px;
  color: var(--ls-muted);
  margin: 4px 0 24px;
}

/* ---- Addon cards, inherited from the theme but spaced sanely ---- */

#order-standard_cart .addon-products .panel-addon { margin-bottom: 14px; }

/* ------------------------------------------------------------------ */
/* Cart — line items                                                   */
/* ------------------------------------------------------------------ */

#order-standard_cart .ls-cart-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius);
  overflow: hidden;
  background: #fff;
}

#order-standard_cart .ls-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ls-border);
}

#order-standard_cart .ls-cart-item:last-child { border-bottom: 0; }

/* Addons and upgrade credits belong to the row above them. */
#order-standard_cart .ls-cart-item.is-child {
  background: var(--ls-surface);
  padding-left: 34px;
}

#order-standard_cart .ls-cart-item.is-credit .ls-cart-amount { color: var(--ls-success); }

#order-standard_cart .ls-cart-item-main { min-width: 0; }

#order-standard_cart .ls-cart-item .item-group {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ls-muted);
  margin-bottom: 2px;
}

#order-standard_cart .ls-cart-item .item-title {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ls-heading);
  line-height: 1.3;
}

#order-standard_cart .ls-cart-item .item-domain {
  display: block;
  font-size: 13px;
  color: var(--ls-body);
  word-break: break-all;
}

#order-standard_cart .ls-cart-spec {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--ls-muted);
}

#order-standard_cart .ls-cart-spec li { padding: 1px 0; }

#order-standard_cart .ls-cart-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 13px;
}

#order-standard_cart .ls-cart-actions a,
#order-standard_cart .ls-cart-actions .btn-remove-from-cart {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  color: var(--ls-accent);
  cursor: pointer;
}

#order-standard_cart .ls-cart-actions .btn-remove-from-cart { color: #c0392b; }

#order-standard_cart .ls-cart-item-qty {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 92px;
}

#order-standard_cart .ls-cart-item-qty label {
  margin: 0;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ls-muted);
}

#order-standard_cart .ls-cart-item-qty input { text-align: center; }

#order-standard_cart .ls-cart-item-price {
  text-align: right;
  min-width: 130px;
}

#order-standard_cart .ls-cart-amount {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ls-heading);
  white-space: nowrap;
}

#order-standard_cart .ls-cart-item-price .cycle {
  display: block;
  font-size: 12.5px;
  color: var(--ls-muted);
}

#order-standard_cart .ls-cart-note {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ls-muted);
}

#order-standard_cart .ls-cart-foot {
  text-align: right;
  margin-bottom: 22px;
}

/* Below ~600px the three columns stack; price goes back to the left so
   it does not float alone against the far edge. */
@media (max-width: 600px) {
  #order-standard_cart .ls-cart-item {
    grid-template-columns: minmax(0, 1fr);
  }
  #order-standard_cart .ls-cart-item-price { text-align: left; }
  #order-standard_cart .ls-cart-item-qty { width: 100%; max-width: 140px; }
}

/* ------------------------------------------------------------------ */
/* Cart — promo / tax disclosures and empty state                      */
/* ------------------------------------------------------------------ */

#order-standard_cart .ls-cart-extras {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

#order-standard_cart .ls-promo-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

#order-standard_cart .ls-promo-form input { flex: 1 1 180px; }

#order-standard_cart .ls-cart-empty {
  text-align: center;
  padding: 54px 20px;
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius);
  background: #fff;
}

#order-standard_cart .ls-cart-empty i {
  font-size: 34px;
  color: var(--ls-border);
  margin-bottom: 14px;
  display: block;
}

#order-standard_cart .ls-cart-empty h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ls-heading);
}

#order-standard_cart .ls-cart-empty p {
  color: var(--ls-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ------------------------------------------------------------------ */
/* Cart — summary lines                                                */
/* ------------------------------------------------------------------ */

#order-standard_cart .ls-summary-line.is-discount span:last-child { color: var(--ls-success); }

#order-standard_cart .bordered-totals {
  padding: 8px 0;
  margin: 8px 0;
  border-top: 1px solid var(--ls-border);
  border-bottom: 1px solid var(--ls-border);
}

#order-standard_cart .ls-summary-recurring {
  margin: 12px 0;
  font-size: 12.5px;
  color: var(--ls-muted);
}

#order-standard_cart .ls-summary-recurring-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11.5px;
  margin-bottom: 4px;
}

#order-standard_cart .ls-summary-recurring .cost {
  font-weight: 600;
  color: var(--ls-body);
}

#order-standard_cart .btn-continue-shopping {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 13.5px;
}

#order-standard_cart .express-checkout-buttons .separator {
  text-align: center;
  font-size: 12px;
  color: var(--ls-muted);
  margin: 8px 0;
}

/* ------------------------------------------------------------------ */
/* Checkout — order summary sidebar                                    */
/* ------------------------------------------------------------------ */

#order-standard_cart .ls-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

@media (max-width: 991px) {
  #order-standard_cart .ls-checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Summary first on small screens: what you are buying should precede
     the form that asks you to pay for it. */
  #order-standard_cart .ls-checkout-aside { order: -1; }
}

#order-standard_cart .ls-summary {
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius);
  background: #fff;
  padding: 18px 18px 20px;
  position: sticky;
  top: 20px;
}

#order-standard_cart .ls-summary h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ls-muted);
}

#order-standard_cart .ls-summary-item {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ls-border);
}

#order-standard_cart .ls-summary-item-name {
  display: block;
  font-weight: 600;
  color: var(--ls-heading);
  font-size: 14.5px;
  line-height: 1.35;
}

#order-standard_cart .ls-summary-item-domain {
  display: block;
  font-size: 12.5px;
  color: var(--ls-muted);
  word-break: break-all;
}

#order-standard_cart .ls-summary-item-price {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--ls-body);
}

#order-standard_cart .ls-summary-config {
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--ls-muted);
}

#order-standard_cart .ls-summary-config li { padding: 1px 0; }

#order-standard_cart .ls-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 3px 0;
}

#order-standard_cart .ls-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--ls-heading);
  font-weight: 700;
  color: var(--ls-heading);
}

#order-standard_cart .ls-summary-total-amount { font-size: 20px; }

/* Currency permanence. Stated where the money is committed, not in a
   sidebar accordion the customer has already scrolled past. */
#order-standard_cart .ls-currency-lock {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--ls-radius-sm);
  background: var(--ls-surface);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ls-body);
}

#order-standard_cart .ls-currency-lock strong { color: var(--ls-heading); }

#order-standard_cart .ls-summary-edit {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
}

/* ------------------------------------------------------------------ */
/* Checkout — trust block                                              */
/* ------------------------------------------------------------------ */

#order-standard_cart .ls-trust {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--ls-body);
}

#order-standard_cart .ls-trust li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 4px 0;
}

#order-standard_cart .ls-trust i {
  color: var(--ls-success);
  margin-top: 3px;
  flex: 0 0 auto;
}

#order-standard_cart .ls-fineprint {
  font-size: 11.5px;
  color: var(--ls-muted);
  line-height: 1.5;
  margin-top: 14px;
}

/* ------------------------------------------------------------------ */
/* Checkout — payment methods                                          */
/* ------------------------------------------------------------------ */

#order-standard_cart .ls-pay-list {
  display: grid;
  gap: 10px;
  margin: 0 0 6px;
}

#order-standard_cart .ls-pay {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius-sm);
  padding: 12px 14px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

#order-standard_cart .ls-pay:hover { border-color: var(--ls-accent); }

#order-standard_cart .ls-pay-name {
  color: var(--ls-heading);
  font-size: 14.5px;
}

#order-standard_cart .ls-pay-hint {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ls-muted);
}

/* ------------------------------------------------------------------ */
/* Cart — make the disabled Checkout link actually inert               */
/* ------------------------------------------------------------------ */

/* viewcart.tpl renders the Checkout CTA as an <a> carrying Bootstrap's
   .disabled when the cart is empty. On an anchor that is purely cosmetic —
   the href still navigates. This makes the styling true. */
#order-standard_cart a.btn-checkout.disabled,
#order-standard_cart a#checkout.disabled {
  pointer-events: none;
  opacity: .55;
}

/* ------------------------------------------------------------------ */
/* Progressive disclosure — optional address fields                    */
/* ------------------------------------------------------------------ */

#order-standard_cart .ls-disclosure {
  margin: 0 0 14px;
}

#order-standard_cart .ls-disclosure > summary {
  cursor: pointer;
  display: inline-block;
  font-size: 13.5px;
  color: var(--ls-accent);
  margin-bottom: 10px;
}

#order-standard_cart .ls-disclosure > summary::marker { color: var(--ls-accent); }

/* ------------------------------------------------------------------ */
/* Print: nobody prints a checkout, but the summary is worth keeping.   */
/* ------------------------------------------------------------------ */

@media print {
  #order-standard_cart .cart-sidebar,
  #order-standard_cart .ls-currency-bar,
  #order-standard_cart .ls-pay-list { display: none; }
  #order-standard_cart .ls-summary { position: static; border: 0; }
}
