/* ==========================================================================
   HostElevate order form 3.1 — one-page Review & Checkout (.rc), domain
   configuration and brand buttons. Loaded after hostelevate-cart.css.
   ========================================================================== */

#order-standard_cart.hc {
    --rc-grad: var(--he-grad, linear-gradient(118deg, #032A1E 0%, #0E7A58 100%));
    --rc-link: var(--nx-link, #0B6B4F);
    --rc-accent: var(--nx-accent, #F59E0B);
    --rc-accent-ink: #3B2500;
    --rc-r: 16px;
}

/* brand buttons */
#order-standard_cart.hc .btn-primary,
#order-standard_cart.hc .hc-cta {
    background: var(--rc-grad) !important; border: 0 !important; color: #fff !important;
}
#order-standard_cart.hc .btn-primary:hover, #order-standard_cart.hc .hc-cta:hover { filter: brightness(1.12); }
#order-standard_cart #btnCompleteOrder,
#order-standard_cart .btn-checkout,
#order-standard_cart .btn-success,
#order-standard_cart #btnCompleteOrder:hover,
#order-standard_cart .btn-checkout:hover,
#order-standard_cart .btn-success:hover { background: var(--rc-grad) !important; border-color: transparent !important; color: #fff !important; }
#order-standard_cart #btnCompleteOrder:hover, #order-standard_cart .btn-checkout:hover, #order-standard_cart .btn-success:hover { filter: brightness(1.12); }
#order-standard_cart .hc-title { font-size: var(--nx-font-size-h1, 34px); }
#order-standard_cart .hc-head { margin: 0 0 34px; }

/* ---------- Layout ---------- */
#order-standard_cart.rc .hc-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 46px; }
#order-standard_cart.rc .hc-main { gap: 50px; }
#order-standard_cart.rc .hc-side { top: 24px; }
#order-standard_cart .rc-sec { display: grid; gap: 18px; min-width: 0; margin: 0; }
#order-standard_cart .rc-title { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -.01em; color: var(--hc-ink); }
#order-standard_cart .rc-card { border-radius: var(--rc-r); padding: 28px 30px; box-shadow: none; }
#order-standard_cart .rc-card > .hc-muted { font-size: 14px; }
#order-standard_cart .rc-account-tools { justify-content: flex-end; margin: -6px 0 -4px; }
#order-standard_cart.rc .hc-section-num { display: none; }
#order-standard_cart.rc .hc-label { text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 500; color: var(--hc-ink); margin: 14px 0 0; }
#order-standard_cart.rc .hc-field > label { font-size: 13.5px; font-weight: 500; color: var(--hc-muted); }
#order-standard_cart.rc .form-control,
#order-standard_cart.rc .field { height: 50px; border-radius: 10px; border-color: color-mix(in srgb, var(--hc-line) 70%, var(--hc-muted)); font-size: 15px; }
#order-standard_cart.rc textarea.form-control, #order-standard_cart.rc textarea.field { height: auto; min-height: 110px; padding: 14px 16px; }
#order-standard_cart.rc .form-control:focus, #order-standard_cart.rc .field:focus { border-color: var(--rc-link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc-link) 16%, transparent); }

/* ---------- Items ---------- */
#order-standard_cart .rc-items { background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: var(--rc-r); overflow: hidden; }
#order-standard_cart .rc-items-head,
#order-standard_cart .rc-item { display: grid; grid-template-columns: minmax(0, 1fr) 210px 86px; gap: 18px; align-items: start; padding: 24px 30px; }
#order-standard_cart .rc-items-head { padding-top: 22px; padding-bottom: 20px; font-size: 14.5px; color: var(--hc-muted); border-bottom: 1px solid var(--hc-line); }
#order-standard_cart .rc-item { border-bottom: 1px solid var(--hc-line); }
#order-standard_cart .rc-item-main { display: grid; gap: 4px; min-width: 0; }
#order-standard_cart .rc-item-name { font-size: 17px; font-weight: 500; color: var(--hc-ink); overflow-wrap: anywhere; }
#order-standard_cart .rc-item-sub { font-size: 13.5px; color: var(--hc-muted); }
#order-standard_cart .rc-item-domain { font-size: 14.5px; color: var(--rc-link); overflow-wrap: anywhere; }
#order-standard_cart .rc-item-opts { list-style: none; margin: 12px 0 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--hc-line); display: grid; gap: 8px; font-size: 13.5px; }
#order-standard_cart .rc-opt-label { color: var(--hc-muted); }
#order-standard_cart .rc-opt-value { color: var(--hc-ink); }
#order-standard_cart .rc-opt-price { color: var(--hc-muted); margin-left: 6px; font-size: 12.5px; }
#order-standard_cart .rc-item-price { display: grid; gap: 6px; justify-items: start; min-width: 0; }
#order-standard_cart .rc-item-price small { font-size: 12.5px; color: var(--hc-muted); }
#order-standard_cart .rc-pill {
    display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; max-width: 100%;
    border: 1px solid var(--hc-line); border-radius: 12px; background: var(--hc-card);
    font-size: 15px; font-weight: 600; color: var(--hc-ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#order-standard_cart .rc-pill-select { position: relative; padding: 0; margin: 0; }
#order-standard_cart .rc-pill-select select {
    appearance: none; -webkit-appearance: none; height: 46px; padding: 0 38px 0 16px; border: 0; background: transparent;
    font: inherit; font-weight: 600; color: var(--hc-ink); cursor: pointer; border-radius: 12px;
}
#order-standard_cart .rc-pill-select::after { content: ""; position: absolute; right: 16px; top: 50%; margin-top: -3px; border: 5px solid transparent; border-top-color: var(--hc-ink); pointer-events: none; }
#order-standard_cart .rc-item-tools { display: flex; justify-content: flex-end; gap: 6px; padding-top: 6px; }
#order-standard_cart .rc-tool {
    width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; border-radius: 10px;
    background: transparent; color: var(--hc-muted) !important; cursor: pointer; text-decoration: none;
}
#order-standard_cart .rc-tool .hc-ico { width: 20px; height: 20px; }
#order-standard_cart .rc-tool:hover { background: var(--hc-soft); color: var(--hc-ink) !important; }
#order-standard_cart .rc-tool.is-danger:hover { background: color-mix(in srgb, var(--hc-bad) 10%, var(--hc-card)); color: var(--hc-bad) !important; }
#order-standard_cart .rc-items-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 30px; }
#order-standard_cart .rc-btn-line {
    display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 18px;
    border: 1px solid var(--hc-line); border-radius: 12px; background: var(--hc-card);
    font: inherit; font-size: 14.5px; font-weight: 500; color: var(--hc-ink) !important; text-decoration: none; cursor: pointer;
}
#order-standard_cart .rc-btn-line:hover { border-color: var(--hc-line-strong); background: var(--hc-hover); }
#order-standard_cart .rc-btn-line .hc-ico { width: 16px; height: 16px; }

/* ---------- Promotion band ---------- */
#order-standard_cart .rc-band {
    position: relative; overflow: hidden; border-radius: var(--rc-r); padding: 26px 28px; background: var(--rc-grad); color: #fff;
}
#order-standard_cart .rc-band::after {
    content: ""; position: absolute; right: -60px; top: -110px; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, .32), rgba(245, 158, 11, 0) 70%); pointer-events: none;
}
#order-standard_cart .rc-band > * { position: relative; z-index: 1; }
#order-standard_cart .rc-promo-row { display: flex; gap: 14px; }
#order-standard_cart .rc-promo-input {
    flex: 1 1 auto; display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0;
    height: 52px; padding: 0 16px; border-radius: 12px; background: #fff; color: var(--hc-muted);
}
#order-standard_cart .rc-promo-input .hc-ico { color: var(--rc-link); }
#order-standard_cart .rc-promo-input input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--hc-ink); text-transform: uppercase; }
#order-standard_cart .rc-promo-input input::placeholder { text-transform: none; color: var(--hc-muted); }
#order-standard_cart .rc-band-btn {
    flex: none; height: 52px; padding: 0 26px; border: 0; border-radius: 12px;
    background: var(--rc-accent); color: var(--rc-accent-ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
#order-standard_cart .rc-band-btn:hover { filter: brightness(1.06); }
#order-standard_cart .rc-promo-applied { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
#order-standard_cart .rc-promo-applied span { flex: 1 1 auto; }
#order-standard_cart .rc-band-link { color: #fff !important; text-decoration: underline; font-weight: 600; }

/* ---------- Payment ---------- */
#order-standard_cart.rc .hc-pays { gap: 0; background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: var(--rc-r); overflow: hidden; }
#order-standard_cart.rc .hc-pays.is-grid { gap: 14px; background: transparent; border: 0; border-radius: 0; overflow: visible; }
#order-standard_cart.rc .hc-pays:not(.is-grid) .hc-pay { border: 0; border-bottom: 1px solid var(--hc-line); border-radius: 0; padding: 20px 26px; box-shadow: none; }
#order-standard_cart.rc .hc-pays:not(.is-grid) .hc-pay:last-child { border-bottom: 0; }
#order-standard_cart.rc .hc-pays:not(.is-grid) .hc-pay.is-selected,
#order-standard_cart.rc .hc-pays:not(.is-grid) .hc-pay:has(.checked) { background: color-mix(in srgb, var(--rc-link) 5%, var(--hc-card)); box-shadow: inset 3px 0 0 var(--rc-link); }
#order-standard_cart.rc .hc-pay-text strong { font-weight: 500; font-size: 15.5px; }
#order-standard_cart.rc .hc-pay-icons img { height: 28px; }
#order-standard_cart.rc .hc-credit { background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: var(--rc-r); padding: 20px 26px !important; }
#order-standard_cart.rc .hc-cc { display: grid; gap: 18px; padding: 0 !important; margin-top: 32px; }
#order-standard_cart.rc .hc-cc.w-hidden { display: none; }
#order-standard_cart.rc .rc-cc-card { display: grid; gap: 16px; }
#order-standard_cart.rc .rc-title-in { margin: 0; }
#order-standard_cart.rc .gateway-errors { border-radius: 12px; }
#order-standard_cart .rc-fraud {
    display: flex; align-items: flex-start; gap: 10px; margin: -10px 0 0; padding: 16px 18px; border-radius: 12px;
    background: color-mix(in srgb, var(--rc-accent) 12%, var(--hc-card)); color: color-mix(in srgb, var(--rc-accent) 50%, #3B2500); font-size: 13.5px; line-height: 1.5;
}
#order-standard_cart .rc-fraud .hc-ico { width: 16px; height: 16px; margin-top: 2px; }

/* ---------- Summary ---------- */
#order-standard_cart .rc-summary { gap: 0; padding: 30px 28px 26px; border-radius: var(--rc-r); box-shadow: 0 1px 2px rgba(16, 24, 20, .04); }
#order-standard_cart .rc-sum-title { margin: 0 0 22px !important; font-size: 27px !important; font-weight: 300 !important; letter-spacing: -.01em; color: var(--hc-ink); }
#order-standard_cart .rc-sum-group { display: grid; gap: 10px; margin: 0; padding: 16px 0; border-top: 1px solid var(--hc-line); }
#order-standard_cart .rc-sum-group:first-of-type { border-top: 0; padding-top: 0; }
#order-standard_cart .rc-sum-cap { font-size: 13.5px; font-weight: 400; color: var(--hc-muted); margin: 0; }
#order-standard_cart .rc-summary .hc-row dt { font-weight: 400; color: var(--hc-ink); }
#order-standard_cart .rc-summary .hc-row dd { font-weight: 500; }
#order-standard_cart .rc-sum-total { display: grid; gap: 4px; padding: 20px 0 18px; border-top: 1px solid var(--hc-line); }
#order-standard_cart .rc-sum-total > span { font-size: 14px; color: var(--hc-muted); }
#order-standard_cart .rc-sum-total strong { font-size: 34px; font-weight: 700; letter-spacing: -.015em; color: var(--hc-ink); font-variant-numeric: tabular-nums; }
#order-standard_cart .rc-summary .hc-tos { margin: 0 0 14px; }
#order-standard_cart .rc-summary .hc-cta { min-height: 58px; border-radius: 12px !important; font-size: 18px; }
#order-standard_cart .rc-summary .hc-trust, #order-standard_cart .rc-summary .hc-secure { margin-top: 14px; }

/* ---------- Domain configuration (WHMCS confdomains) ---------- */
#order-standard_cart.hc-legacy #frmConfigureDomains > p { color: var(--hc-muted); margin: 0 0 20px; }
#order-standard_cart.hc-legacy .sub-heading { margin: 28px 0 14px; border: 0; text-align: left; height: auto; }
#order-standard_cart.hc-legacy .sub-heading span {
    display: inline-flex; align-items: center; gap: 10px; padding: 0; background: transparent !important; color: var(--hc-ink) !important;
    font-size: 20px; font-weight: 500;
}
#order-standard_cart.hc-legacy .sub-heading span::before {
    content: ""; width: 34px; height: 34px; border-radius: 50%; background: var(--rc-grad); flex: none;
    -webkit-mask: none; box-shadow: inset 0 0 0 9px rgba(255, 255, 255, .0);
}
#order-standard_cart.hc-legacy .panel-addon {
    border: 1px solid var(--hc-line); border-radius: 14px; background: var(--hc-card); box-shadow: none; overflow: hidden; height: 100%;
    transition: border-color .15s ease, box-shadow .15s ease; cursor: pointer;
}
#order-standard_cart.hc-legacy .panel-addon:hover { border-color: var(--hc-line-strong); }
#order-standard_cart.hc-legacy .panel-addon-selected { border-color: var(--rc-link); box-shadow: inset 0 0 0 1px var(--rc-link); }
#order-standard_cart.hc-legacy .panel-addon .panel-price { background: transparent; color: var(--hc-muted); font-weight: 600; }
#order-standard_cart.hc-legacy .panel-addon .panel-add { background: var(--hc-soft); color: var(--hc-ink); }
#order-standard_cart.hc-legacy .panel-addon-selected .panel-add { background: var(--rc-grad); color: #fff; }
#order-standard_cart.hc-legacy .form-control, #order-standard_cart.hc-legacy .field { height: 48px; border-radius: 10px; }
#order-standard_cart.hc-legacy .btn-primary { min-height: 52px; padding: 0 30px; border-radius: 12px; font-size: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
    #order-standard_cart.rc .hc-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
    #order-standard_cart .rc-items-head, #order-standard_cart .rc-item { grid-template-columns: minmax(0, 1fr) 190px 86px; padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 991px) {
    #order-standard_cart.rc .hc-grid { grid-template-columns: minmax(0, 1fr); }
    #order-standard_cart.rc .hc-side { position: static; }
}
@media (max-width: 640px) {
    #order-standard_cart.rc .hc-main { gap: 36px; }
    #order-standard_cart .rc-title { font-size: 20px; }
    #order-standard_cart .rc-card { padding: 20px 18px; }
    #order-standard_cart .rc-items-head { display: none; }
    #order-standard_cart .rc-item { grid-template-columns: minmax(0, 1fr) auto; padding: 20px 18px; gap: 12px; }
    #order-standard_cart .rc-item-main { grid-column: 1 / -1; }
    #order-standard_cart .rc-item-tools { padding-top: 4px; }
    #order-standard_cart .rc-items-foot { padding: 16px 18px; }
    #order-standard_cart .rc-band { padding: 20px 18px; }
    #order-standard_cart .rc-promo-row { flex-wrap: wrap; }
    #order-standard_cart .rc-promo-input, #order-standard_cart .rc-band-btn { flex: 1 1 100%; }
    #order-standard_cart.rc .hc-pays:not(.is-grid) .hc-pay { padding: 16px 18px; }
}
