/* ==================================================================
 * HostRomeo — Store / cart (WHMCS "standard_cart" order form)
 * The order form templates live outside this theme, so everything here
 * is CSS scoped to #order-standard_cart. Uses tokens from billing.css.
 * ================================================================== */

#order-standard_cart {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    color: var(--hr-body);
}

/* ---------- Page heading ---------- */
#order-standard_cart .header-lined {
    border: 0 !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
}
#order-standard_cart .header-lined h1,
#order-standard_cart .header-lined .font-size-36 {
    font-family: inherit !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
    color: var(--hr-text) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
#order-standard_cart .header-lined p { color: var(--hr-muted); margin-top: 6px; }

/* ---------- Sidebar (categories / actions / currency) ---------- */
#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .sidebar-collapsed .panel {
    border: 1px solid var(--hr-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
    overflow: hidden;
    background: #fff !important;
    margin-bottom: 16px !important;
}
#order-standard_cart .cart-sidebar .panel-heading,
#order-standard_cart .sidebar-collapsed .panel-heading {
    background: #fff !important;
    border-bottom: 1px solid var(--hr-line-soft) !important;
    padding: 14px 18px !important;
}
#order-standard_cart .cart-sidebar .panel-title,
#order-standard_cart .sidebar-collapsed .panel-title {
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: var(--hr-muted) !important;
}
#order-standard_cart .cart-sidebar .panel-title > i:first-child,
#order-standard_cart .sidebar-collapsed .panel-title > i:first-child { color: var(--hr-purple); margin-right: 4px; }
#order-standard_cart .cart-sidebar .list-group { padding: 6px !important; margin: 0 !important; }
#order-standard_cart .cart-sidebar .list-group-item {
    border: 0 !important;
    border-radius: 10px !important;
    margin: 1px 0 !important;
    padding: 10px 12px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: var(--hr-body) !important;
    background: transparent !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
}
#order-standard_cart .cart-sidebar .list-group-item:hover { background: #faf8ff !important; color: var(--hr-purple) !important; padding-left: 12px !important; }
#order-standard_cart .cart-sidebar .list-group-item.active,
#order-standard_cart .cart-sidebar .list-group-item.active:hover { background: #f3edff !important; color: var(--hr-purple) !important; }
#order-standard_cart .cart-sidebar .list-group-item i { color: var(--hr-faint); }
#order-standard_cart .cart-sidebar .list-group-item.active i { color: var(--hr-purple); }

/* ---------- Form controls inside the store ---------- */
#order-standard_cart .form-control,
#order-standard_cart select.form-control,
#order-standard_cart input[type="text"].form-control,
#order-standard_cart input[type="email"].form-control,
#order-standard_cart input[type="password"].form-control,
#order-standard_cart input[type="tel"].form-control {
    height: 46px !important;
    border: 1px solid var(--hr-line) !important;
    border-radius: 12px !important;
    background-color: #f8fafc !important;
    box-shadow: none !important;
    color: var(--hr-text) !important;
    font-family: inherit !important;
    font-size: 14.5px !important;
    padding: 0 14px !important;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
#order-standard_cart textarea.form-control { height: auto !important; padding: 12px 14px !important; }
#order-standard_cart .form-control:focus {
    background-color: #fff !important;
    border-color: rgba(138, 63, 252, .6) !important;
    box-shadow: 0 0 0 4px rgba(138, 63, 252, .14) !important;
    outline: none !important;
}
#order-standard_cart .field-container .form-group label,
#order-standard_cart label.field-label { font-size: 13px; font-weight: 700; color: var(--hr-text); }

/* Section sub-headings ("Account Information", "Payment Details" …) */
#order-standard_cart .sub-heading {
    height: auto !important;
    margin: 30px 0 16px !important;
    border-top: 0 !important;
    text-align: left !important;
}
#order-standard_cart .sub-heading span {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    position: static !important;
    top: auto !important;
    padding: 0 !important;
    background: none !important;
    color: var(--hr-text) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: -.01em;
}
#order-standard_cart .sub-heading span::before {
    content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--hr-gradient);
}

/* ---------- Buttons ---------- */
#order-standard_cart .btn-primary,
#order-standard_cart .btn-success,
#order-standard_cart .btn-order-now,
#order-standard_cart .btn-checkout,
#order-standard_cart #btnCompleteOrder,
#order-standard_cart #btnCompleteProductConfig {
    background: var(--hr-gradient) !important;
    background-size: 160% 100% !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 10px 24px -10px rgba(138, 63, 252, .6) !important;
    transition: transform .18s ease, box-shadow .18s ease, background-position .3s ease;
}
#order-standard_cart .btn-primary:hover,
#order-standard_cart .btn-success:hover,
#order-standard_cart .btn-order-now:hover,
#order-standard_cart .btn-checkout:hover,
#order-standard_cart #btnCompleteOrder:hover {
    background-position: 100% 0 !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -12px rgba(138, 63, 252, .75) !important;
    color: #fff !important;
}
#order-standard_cart .btn.disabled,
#order-standard_cart .btn[disabled] { opacity: .45 !important; transform: none !important; box-shadow: none !important; }
#order-standard_cart .btn-default {
    border: 1px solid var(--hr-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--hr-text) !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}
#order-standard_cart .btn-default:hover { border-color: rgba(138, 63, 252, .45) !important; color: var(--hr-purple) !important; }

/* ---------- Plan cards (product group page) ---------- */
#order-standard_cart .products { margin-top: 6px; }
#order-standard_cart .products .row-eq-height { display: flex !important; flex-wrap: wrap; }
#order-standard_cart .products .row-eq-height > [class*="col-"] { display: flex !important; margin-bottom: 22px; }
#order-standard_cart .products .product {
    position: relative;
    display: flex !important;
    flex-direction: column;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid var(--hr-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#order-standard_cart .products .product::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--hr-gradient); opacity: 0; transition: opacity .2s ease;
}
#order-standard_cart .products .product:hover {
    transform: translateY(-4px);
    border-color: rgba(138, 63, 252, .35) !important;
    box-shadow: 0 28px 50px -28px rgba(138, 63, 252, .55) !important;
}
#order-standard_cart .products .product:hover::before { opacity: 1; }
#order-standard_cart .products .product header {
    background: transparent !important;
    border: 0 !important;
    padding: 26px 26px 6px !important;
    margin: 0 !important;
}
#order-standard_cart .products .product header span {
    display: block;
    font-size: 21px !important;
    font-weight: 800 !important;
    letter-spacing: -.015em;
    color: var(--hr-text) !important;
}
#order-standard_cart .products .product header .qty { font-size: 12px !important; font-weight: 600 !important; color: var(--hr-muted) !important; }
#order-standard_cart .products .product .product-desc {
    float: none !important;
    width: auto !important;
    flex: 1;
    padding: 8px 26px 18px !important;
    font-size: 14px !important;
    color: var(--hr-body) !important;
}
#order-standard_cart .products .product .product-desc p:empty,
#order-standard_cart .products .product .product-desc > br { display: none; }
#order-standard_cart .products .product .product-desc h5,
#order-standard_cart .products .product .product-desc p { font-size: 14px !important; font-weight: 500 !important; color: var(--hr-body) !important; line-height: 1.7 !important; margin: 0 !important; }
#order-standard_cart .products .product .product-desc ul { list-style: none; margin: 0 !important; padding: 0 !important; }
#order-standard_cart .products .product .product-desc ul:empty { display: none; }
#order-standard_cart .hr-features { display: grid; gap: 9px; margin: 6px 0 0 !important; padding: 0 !important; list-style: none; }
#order-standard_cart .hr-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--hr-body); line-height: 1.45; }
#order-standard_cart .hr-features li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    flex: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #ecfdf3;
    color: #067647;
    font-size: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
#order-standard_cart .hr-features li strong { color: var(--hr-text); font-weight: 700; }

#order-standard_cart .products .product footer {
    float: none !important;
    width: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 !important;
    padding: 18px 26px 24px !important;
    border-top: 1px dashed var(--hr-line) !important;
    background: #fbfcfe !important;
    text-align: left !important;
}
#order-standard_cart .products .product .product-pricing {
    margin: 0 !important;
    font-size: 12.5px !important;
    color: var(--hr-muted) !important;
    font-weight: 600;
    line-height: 1.3;
}
#order-standard_cart .products .product .product-pricing br { display: none; }
#order-standard_cart .products .product .product-pricing .price {
    display: block;
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
    line-height: 1.1;
    background: var(--hr-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    margin-bottom: 2px;
}
#order-standard_cart .products .product .btn-order-now {
    flex: none;
    height: 46px;
    padding: 0 22px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 14.5px !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
}

/* ---------- Domain step (choose / transfer / own domain) ---------- */
#order-standard_cart .domain-selection-options .option {
    background: #fff !important;
    border: 1px solid var(--hr-line) !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    margin-bottom: 12px !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
#order-standard_cart .domain-selection-options .option-selected {
    border-color: rgba(138, 63, 252, .5) !important;
    box-shadow: 0 0 0 4px rgba(138, 63, 252, .1) !important;
    background: #fdfcff !important;
}
#order-standard_cart .domain-selection-options .option label { font-weight: 700 !important; color: var(--hr-text) !important; font-size: 15px !important; }
#order-standard_cart .domain-input-group { margin-top: 12px !important; }
#order-standard_cart .domain-checker-available { color: #067647 !important; }
#order-standard_cart .domain-checker-unavailable { color: #c01048 !important; }
#order-standard_cart .suggested-domains {
    border: 1px solid var(--hr-line) !important; border-radius: 16px !important; overflow: hidden;
}
#order-standard_cart .suggested-domains .panel-heading { background: #fbfcfe !important; font-weight: 800; color: var(--hr-text); }
#order-standard_cart .domain-suggestion { border-left: 0 !important; border-right: 0 !important; }

/* ---------- Cart items ---------- */
#order-standard_cart .view-cart-items-header {
    background: var(--hr-ink) !important;
    color: rgba(255, 255, 255, .75) !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 14px 20px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 0 !important;
}
#order-standard_cart .view-cart-items {
    background: #fff !important;
    border: 1px solid var(--hr-line) !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--hr-line) !important;
    border-radius: 0 0 16px 16px !important;
    overflow: hidden;
    margin-bottom: 18px;
}
#order-standard_cart .view-cart-items .item {
    padding: 18px 20px !important;
    border-bottom: 1px solid var(--hr-line-soft) !important;
    background: #fff !important;
    transition: background-color .15s ease;
}
#order-standard_cart .view-cart-items .item:last-child { border-bottom: 0 !important; }
#order-standard_cart .view-cart-items .item:hover { background: #fdfcff !important; }
#order-standard_cart .view-cart-items .item-title { font-size: 16px !important; font-weight: 800 !important; color: var(--hr-text) !important; }
#order-standard_cart .view-cart-items .item-group { font-size: 12.5px !important; color: var(--hr-muted) !important; font-weight: 600; }
#order-standard_cart .view-cart-items .item-domain { color: var(--hr-purple) !important; font-weight: 700; font-size: 13.5px !important; }
#order-standard_cart .view-cart-items small { color: var(--hr-muted) !important; }
#order-standard_cart .view-cart-items .item-price span:first-child { font-size: 17px !important; font-weight: 800 !important; color: var(--hr-text) !important; }
#order-standard_cart .view-cart-items .item-price .cycle { font-size: 12.5px !important; color: var(--hr-muted) !important; }
#order-standard_cart .view-cart-items .btn-remove-from-cart {
    width: 34px; height: 34px; padding: 0 !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    border-radius: 50% !important; color: var(--hr-faint) !important; background: transparent !important; border: 0 !important;
}
#order-standard_cart .view-cart-items .btn-remove-from-cart:hover { background: #fff1f3 !important; color: #c01048 !important; }
#order-standard_cart .view-cart-items .btn-link.btn-xs,
#order-standard_cart .view-cart-items a.btn-link { color: var(--hr-purple) !important; font-weight: 600; }

/* Empty cart */
#order-standard_cart .view-cart-empty {
    padding: 52px 20px 46px !important;
    text-align: center !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--hr-text) !important;
    border: 0 !important;
}
#order-standard_cart .view-cart-empty::before {
    content: "\f290";
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; margin: 0 auto 16px;
    border-radius: 22px;
    background: #f3edff; color: var(--hr-purple);
    font-size: 28px;
}
#order-standard_cart .view-cart-empty::after {
    content: "Romeo is waiting to find your perfect match. Pick a plan or a domain to get started.";
    display: block; max-width: 380px; margin: 8px auto 0;
    font-size: 14px; font-weight: 500; color: var(--hr-muted); line-height: 1.6;
}
#order-standard_cart .empty-cart { text-align: right; margin-bottom: 18px; }
#order-standard_cart .empty-cart .btn { color: var(--hr-muted) !important; font-weight: 600; }
#order-standard_cart .empty-cart .btn:hover { color: #c01048 !important; }

/* Promo code / taxes tabs */
#order-standard_cart .view-cart-tabs { margin-top: 0 !important; }
#order-standard_cart .view-cart-tabs .nav-tabs {
    display: inline-flex !important;
    gap: 4px;
    padding: 4px !important;
    margin: 0 0 12px !important;
    background: var(--hr-line-soft) !important;
    border: 0 !important;
    border-radius: 999px !important;
}
#order-standard_cart .view-cart-tabs .nav-tabs > li { margin: 0 !important; float: none !important; }
#order-standard_cart .view-cart-tabs .nav-tabs > li > a,
#order-standard_cart .view-cart-tabs .nav-tabs .nav-link {
    border: 0 !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--hr-muted) !important;
    background: transparent !important;
}
#order-standard_cart .view-cart-tabs .nav-tabs > li.active > a,
#order-standard_cart .view-cart-tabs .nav-tabs .nav-link.active {
    background: #fff !important;
    color: var(--hr-purple) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12) !important;
}
#order-standard_cart .view-cart-tabs .tab-content {
    background: #fff !important;
    border: 1px solid var(--hr-line) !important;
    border-radius: 16px !important;
    padding: 18px !important;
}
#order-standard_cart .view-cart-tabs .tab-content .form-group { margin-bottom: 12px !important; }

/* ---------- Order summary (cart + configure + checkout) ---------- */
#order-standard_cart .order-summary {
    position: relative;
    overflow: hidden;
    background: var(--hr-ink) !important;
    border: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 60px -28px rgba(14, 16, 25, .65) !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, .72) !important;
}
#order-standard_cart .order-summary::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hr-gradient); z-index: 1;
}
#order-standard_cart .order-summary::after {
    content: ""; position: absolute; right: -120px; top: -150px; width: 300px; height: 300px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 46, 147, .38), rgba(138, 63, 252, .2) 55%, transparent 75%);
}
#order-standard_cart .order-summary h2,
#order-standard_cart .order-summary .font-size-30 {
    position: relative; z-index: 1;
    margin: 0 !important;
    padding: 24px 24px 6px !important;
    background: transparent !important;
    color: #fff !important;
    text-align: left !important;
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -.01em;
}
#order-standard_cart .order-summary .summary-container {
    position: relative; z-index: 1;
    background: transparent !important;
    border: 0 !important;
    padding: 10px 24px 24px !important;
    min-height: 0 !important;
    color: rgba(255, 255, 255, .72) !important;
    font-size: 14px !important;
}
#order-standard_cart .order-summary .summary-container .subtotal,
#order-standard_cart .order-summary .summary-container .bordered-totals > div,
#order-standard_cart .order-summary .summary-container .recurring-totals,
#order-standard_cart .order-summary .summary-container .clearfix {
    padding: 8px 0 !important;
    border-color: rgba(255, 255, 255, .1) !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, .72) !important;
}
#order-standard_cart .order-summary .summary-container .bordered-totals { border-color: rgba(255, 255, 255, .1) !important; }
#order-standard_cart .order-summary .summary-container span.pull-right,
#order-standard_cart .order-summary .summary-container span.float-right { color: #fff !important; font-weight: 700; }
#order-standard_cart .order-summary .product-name { color: #fff !important; font-weight: 800; font-size: 16px; }
#order-standard_cart .order-summary .product-group { color: rgba(255, 255, 255, .55) !important; }
#order-standard_cart .order-summary .total-due-today {
    margin: 16px 0 18px !important;
    padding: 18px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .12) !important;
    text-align: left !important;
}
#order-standard_cart .order-summary .total-due-today .amt {
    display: block;
    font-size: 34px !important;
    font-weight: 800 !important;
    letter-spacing: -.025em;
    color: #fff !important;
    line-height: 1.1;
}
#order-standard_cart .order-summary .total-due-today span:not(.amt) {
    font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55) !important;
}
#order-standard_cart .order-summary .text-right,
#order-standard_cart .order-summary .text-center { text-align: center !important; }
#order-standard_cart .order-summary .btn-checkout,
#order-standard_cart .order-summary #btnCompleteProductConfig {
    display: flex !important;
    align-items: center; justify-content: center; gap: 8px;
    width: 100% !important;
    height: 54px;
    padding: 0 24px !important;
    font-size: 16px !important;
    box-shadow: 0 14px 30px -12px rgba(255, 46, 147, .7) !important;
}
#order-standard_cart .order-summary .btn-checkout.disabled { opacity: .35 !important; }
#order-standard_cart .order-summary .btn-continue-shopping,
#order-standard_cart .order-summary .btn-link {
    display: inline-block; margin-top: 10px;
    color: rgba(255, 255, 255, .7) !important;
    font-weight: 600 !important; font-size: 13.5px !important;
    text-decoration: none !important;
}
#order-standard_cart .order-summary .btn-continue-shopping:hover { color: #ff9ccb !important; }
#order-standard_cart .order-summary .loader { color: #fff !important; }
#order-standard_cart .order-summary .hr-summary-secure {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, .5);
}
#order-standard_cart .order-summary .hr-summary-secure i { color: #34d399; }

/* ---------- Generic panels on configure / checkout ---------- */
#order-standard_cart .cart-body .panel:not(.panel-sidebar):not(.order-summary),
#order-standard_cart .product-info,
#order-standard_cart .already-registered {
    border: 1px solid var(--hr-line) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    background: #fff !important;
}
#order-standard_cart .product-info { padding: 18px 20px !important; }
#order-standard_cart .product-info .product-title { font-size: 18px !important; font-weight: 800 !important; color: var(--hr-text) !important; }
#order-standard_cart .already-registered { padding: 14px 18px !important; background: #fbf8ff !important; border-color: #ece3ff !important; }

/* Promo field icon */
#order-standard_cart .prepend-icon .form-control { padding-left: 42px !important; }
#order-standard_cart .prepend-icon .field-icon { left: 14px !important; top: 50% !important; transform: translateY(-50%); height: auto !important; width: auto !important; line-height: 1 !important; color: var(--hr-faint) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    #order-standard_cart .secondary-cart-sidebar { width: 100% !important; max-width: 100% !important; float: none !important; margin-top: 8px; }
}
@media (max-width: 767px) {
    #order-standard_cart .header-lined h1 { font-size: 23px !important; }
    #order-standard_cart .products .product footer { flex-direction: column; align-items: stretch; }
    #order-standard_cart .products .product .btn-order-now { justify-content: center; width: 100% !important; }
    #order-standard_cart .view-cart-tabs .nav-tabs { display: flex !important; }
    #order-standard_cart .view-cart-tabs .nav-tabs > li { flex: 1; text-align: center; }
}
