/*
 * Page styles: cart. Owned by the page agent for this area; loaded after
 * hostsrc.css and hostsrc-cart.css. Scope every rule to the body class
 * .hs-page-<templatefile> (see header.tpl). Order form pages load Standard
 * Cart's all.min.css after this file, so prefix those rules with "html body".
 *
 * Checkout renders through viewcart.tpl too and gets the same body class
 * (main adds hs-page-checkout there), so every rule is scoped to
 * body.hs-page-viewcart:not(.hs-page-checkout) and the .hs-cart wrapper that
 * only the cart view (hostsrc_cart/viewcart.tpl) sets.
 *
 * The page reads like hostsrc.com's summary rail: one tile per item (plan,
 * players, where it runs, paid extras, price and period), the totals in a rail
 * on the right that stays in view, one bright Checkout.
 */

/* ---- Layout -------------------------------------------------------------- */

html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .header-lined { margin-bottom: 24px; }

/* The rail stays in view with CSS, not Standard Cart's animated margin: the
   script stops when the container doesn't float. */
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart #scrollingPanelContainer { float: none; }
@media (min-width: 992px) {
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .cart-body > .row { align-items: stretch; }
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .order-summary {
    position: sticky;
    top: 24px;
    margin-top: 0 !important;
  }
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart.hs-cart-is-empty .secondary-cart-body { width: 100%; }

/* ---- Items --------------------------------------------------------------- */

html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-items {
  display: grid;
  gap: 8px;
  margin: 0;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-items .hs-item,
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-items .hs-item:nth-child(even) {
  margin: 0;
  padding: 0;
  background: var(--c-card) !important;
  border: 0 !important;
  border-radius: var(--c-radius) !important;
  overflow: hidden;
  font-size: 0.875rem;
}

html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px 24px;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-name { min-width: 0; flex: 1 1 auto; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-items .item-group {
  display: block;
  margin: 0 0 4px;
  color: var(--c-muted) !important;
  font-size: 0.875rem !important;
  font-weight: 400;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-items .item-title {
  display: block;
  margin: 0;
  color: var(--c-fg);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-variant,
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-items .item-domain {
  display: block;
  margin-top: 4px;
  color: var(--c-fg) !important;
  font-size: 0.9375rem;
  font-weight: 600;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-items .item-title.item-domain {
  margin-top: 0;
  font-family: var(--c-mono);
  font-size: 1.25rem;
}

html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-items .item-price {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-left: auto;
  padding: 0;
  text-align: right;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-items .item-price .hs-price {
  color: var(--c-fg);
  font-family: var(--c-mono);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-items .item-price .cycle,
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-items .item-price .hs-price-note {
  color: var(--c-muted) !important;
  font-size: 0.875rem;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-items .item-price .renewal { display: block; }

/* Key choices: a definition list in the site's summary style. */
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-specs {
  margin: 0;
  padding: 0 24px;
  border-top: 1px solid var(--c-border);
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-spec + .hs-spec { border-top: 1px solid var(--c-border); }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-spec dt {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--c-muted);
  font-weight: 400;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-spec dd {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 12px;
  margin: 0;
  color: var(--c-fg);
  font-weight: 600;
  text-align: right;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-spec-price {
  color: var(--c-muted);
  font-family: var(--c-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .upgrade-calc-msg {
  display: block;
  color: var(--c-muted);
  font-size: 0.8125rem;
}

/* Disclosures: every option of an item, the promo code, the tax estimate. */
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  color: var(--c-fg);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 140ms ease;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart details > summary::-webkit-details-marker { display: none; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart details > summary svg {
  flex: none;
  color: var(--c-muted);
  transition: transform 200ms ease;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart details[open] > summary svg { transform: rotate(180deg); }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart details > summary:focus-visible {
  outline: 2px solid var(--hs-ring, #8a8a8a);
  outline-offset: -2px;
}

html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-all-options { border-top: 1px solid var(--c-border); }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-all-options > summary { padding: 0 24px; color: var(--c-muted); font-weight: 500; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-all-options > summary:hover { background: var(--c-fill); color: var(--c-fg); }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-specs-quiet { padding-bottom: 4px; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-specs-quiet .hs-spec { padding: 8px 0; font-size: 0.8125rem; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-specs-quiet .hs-spec dd { font-weight: 500; }

/* Edit and Remove: plain, clear, a full touch target on phones. */
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-top: 1px solid var(--c-border);
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-actions .btn {
  min-height: 36px;
  padding: 6px 10px;
  color: var(--c-muted) !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-actions .btn:hover { color: var(--c-fg) !important; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-actions .btn-remove-from-cart:hover { color: var(--hs-danger, #f87171) !important; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-actions .btn-remove-from-cart { margin-left: auto; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-actions .item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  padding: 0;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-actions .item-qty input { width: 72px; min-height: 36px; }

@media (max-width: 767.98px) {
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-head { padding: 20px 20px 16px; }
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-specs { padding: 0 20px; }
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-all-options > summary { padding: 0 20px; }
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-actions { padding: 4px 8px; }
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-actions .btn,
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-actions .item-qty input { min-height: 44px; }
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-item-actions .btn { padding: 10px 12px; }
}

/* ---- Empty cart ---------------------------------------------------------- */

html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-empty.hs-empty {
  padding: 40px 32px !important;
  background: var(--c-card) !important;
  border-radius: var(--c-radius) !important;
  color: var(--c-muted);
  text-align: left;
}
/* The empty heading is the page's h1 (viewcart.tpl); the tile holds the way on. */
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-empty p { margin: 0; max-width: 36rem; color: var(--c-muted); text-wrap: pretty; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-empty-actions .btn { min-height: 44px; padding: 10px 20px; text-decoration: none; }
@media (max-width: 575.98px) {
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .view-cart-empty.hs-empty { padding: 32px 20px !important; }
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-empty-actions .btn { width: 100%; }
}

/* ---- The rail ------------------------------------------------------------ */

html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .order-summary { overflow: hidden; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .order-summary h2 { padding: 24px 24px 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .order-summary .summary-container { padding: 12px 24px 24px; }

html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-totals { margin: 0; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-totals > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--c-border);
  font-size: 0.875rem;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-totals > div:first-child { border-top: 0; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-totals dt { margin: 0; color: var(--c-muted); font-weight: 400; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-totals dd {
  margin: 0;
  color: var(--c-fg);
  font-family: var(--c-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-totals .recurring-charges > span { display: block; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-totals .recurring-charges .cost { color: var(--c-fg); font-weight: 600; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-totals .hs-term { color: var(--c-muted); font-family: var(--hs-font-sans, sans-serif); }

html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .total-due-today {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin: 8px 0 20px;
  padding: 16px 0 0;
  border-top: 1px solid var(--c-border);
  text-align: right;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .total-due-today > span:first-child { color: var(--c-muted); font-size: 0.875rem; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .total-due-today .hs-vat-note { color: var(--c-muted); font-size: 0.8125rem; }

html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .order-summary #checkout { gap: 8px; text-decoration: none; }

html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .express-checkout-buttons { margin-top: 12px; text-align: center; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .express-checkout-buttons .separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--c-muted);
  font-size: 0.8125rem;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .express-checkout-buttons .separator::before,
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .express-checkout-buttons .separator::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--c-border);
}

/* Promo code, tax estimate and Continue shopping: quiet tools under the
   action, never competing with it. */
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-summary-tools {
  padding: 4px 24px 12px;
  border-top: 1px solid var(--c-border);
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-disclosure + .hs-disclosure,
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-promo-applied + .hs-disclosure { border-top: 1px solid var(--c-border); }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-disclosure > summary:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(255 255 255 / 35%); }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-promo-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 12px;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-promo-form .form-control {
  flex: 1 1 15rem;
  min-width: 0;
  min-height: 44px;
  padding-left: 12px;
  font-family: var(--c-mono);
  font-size: 0.875rem;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-promo-form .form-control::placeholder { font-family: var(--hs-font-sans, sans-serif); color: var(--c-muted); opacity: 1; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-promo-form .btn { flex: 1 0 auto; min-height: 44px; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-tax-form .btn { width: 100%; min-height: 44px; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-tax-form { padding: 4px 0 12px; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-tax-form .form-group { margin-bottom: 12px; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-tax-form label { display: block; margin-bottom: 6px; }

html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-promo-applied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 0;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-promo-applied .view-cart-promotion-code {
  margin: 0;
  padding: 2px 8px;
  font-size: 0.8125rem;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-promo-applied .hs-promo-desc { flex: 1 1 8rem; color: var(--c-muted); font-size: 0.8125rem; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-promo-applied .btn { min-height: 44px; padding: 6px 0; color: var(--c-muted) !important; font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 4px; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-promo-applied .btn:hover { background: transparent; color: var(--c-fg) !important; }

html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-summary-tools .btn-continue-shopping {
  display: flex;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0;
  border-top: 1px solid var(--c-border);
  border-radius: 0;
  text-decoration: none;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-summary-tools .btn-continue-shopping:hover { text-decoration: underline; text-underline-offset: 4px; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-summary-tools .empty-cart {
  margin: 0;
  border-top: 1px solid var(--c-border);
  text-align: left;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-summary-tools .empty-cart .btn {
  justify-content: flex-start;
  min-height: 44px;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  color: var(--c-muted) !important;
  font-size: 0.875rem;
  font-weight: 600;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .hs-summary-tools .empty-cart .btn:hover { color: var(--hs-danger, #f87171) !important; }

/* ---- Messages: left-aligned, like the rest of the page. ------------------ */
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .secondary-cart-body > .alert { margin-bottom: 8px; text-align: left; }

/* ---- Remove and Empty cart confirmations: a small, plain dialog. ---------- */
@media (min-width: 576px) {
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .modal-remove-item .modal-dialog { max-width: 440px; }
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .modal-remove-item .modal-body { padding: 24px 24px 8px; color: var(--c-muted); text-align: left; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .modal-remove-item .modal-title {
  margin: 0 0 8px !important;
  color: var(--c-fg);
  text-align: left !important;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .modal-remove-item .modal-title i { display: none; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .modal-remove-item .close { min-width: 44px; min-height: 44px; margin: -12px -12px 0 0; }
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .modal-remove-item .modal-footer {
  justify-content: flex-end !important;
  gap: 8px;
  padding: 16px 24px 24px;
  border-top: 0;
}
html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart .modal-remove-item .modal-footer .btn { min-width: 88px; min-height: 44px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart details > summary,
  html body.hs-page-viewcart:not(.hs-page-checkout) #order-standard_cart.hs-cart details > summary svg { transition: none; }
}
