/**
 * Domain search form (cart.php?a=add&domain=register) — shared by nexus-modern and twenty-one-modern.
 *
 * The stock form positions the search button absolutely over a fixed 592px textarea (AI / advanced
 * search) and squeezes the input group on phones, so the pieces overlap and do not adapt. Here the
 * box is a wrapping flex container: nothing is absolutely positioned, so nothing can sit on top of
 * anything else, at any width.
 */
body #order-standard_cart .domain-checker-container .input-group-box {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
}

/* simple search: input grows, button keeps its size */
body #order-standard_cart .domain-checker-container .input-group-box .form-control {
    flex: 1 1 220px;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
}

body #order-standard_cart .domain-checker-container .input-group-box .input-group-btn {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}

body #order-standard_cart .domain-checker-container .domain-check-availability {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

/* advanced / AI search: textarea on top, options and the button on one wrapping row below */
body #order-standard_cart .domain-checker-container.domain-checker-advanced textarea {
    order: 1;
    flex: 1 1 100%;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 112px;
    min-height: 96px;
    margin: 0;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.5;
    color: #111827;
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
    resize: none;
}

body #order-standard_cart .domain-checker-container.domain-checker-advanced .multiselect-native-select,
body #order-standard_cart .domain-checker-container.domain-checker-advanced > .input-group-box > select {
    position: relative;
    order: 2;
    flex: 0 0 auto;
    margin: 0;
}

body #order-standard_cart .domain-checker-container.domain-checker-advanced .multiselect-native-select .btn-group {
    display: block;
}

body #order-standard_cart .domain-checker-container.domain-checker-advanced .multiselect {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 14px;
    font-size: 14px;
    text-align: left;
    color: #111827;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: none;
}

body #order-standard_cart .domain-checker-container.domain-checker-advanced .multiselect-container {
    max-width: calc(100vw - 48px);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1060;
}

body #order-standard_cart .domain-checker-container.domain-checker-advanced label {
    order: 3;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

body #order-standard_cart .domain-checker-container.domain-checker-advanced label input[type="checkbox"] {
    margin: 0;
}

body #order-standard_cart .domain-checker-container.domain-checker-advanced #btnCheckAvailability {
    position: static;
    order: 4;
    margin-left: auto;
}

/* the options menu must not be cut off by the rounded hero while it is open */
body #order-standard_cart .domain-checker-container:has(.btn-group.open, .btn-group.show) {
    overflow: visible;
}

body #order-standard_cart .domain-checker-container:has(.btn-group.open, .btn-group.show)::before,
body #order-standard_cart .domain-checker-container:has(.btn-group.open, .btn-group.show)::after {
    border-radius: inherit;
}

body #order-standard_cart .domain-checker-container:has(.btn-group.open, .btn-group.show)::before {
    width: 100%;
    animation: none;
}

/* tablets and phones: full-width column, big touch targets */
@media (max-width: 991.98px) {
    body #order-standard_cart .domain-checker-container .domain-checker-bg .row {
        margin-right: 0;
        margin-left: 0;
    }

    body #order-standard_cart .domain-checker-container .domain-checker-bg .row > [class*="col-"] {
        float: none;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (max-width: 767.98px) {
    body #order-standard_cart .domain-checker-container .domain-checker-bg {
        padding-right: 0;
        padding-left: 0;
    }

    body #order-standard_cart .domain-checker-container .input-group-box {
        padding: 8px;
        border-radius: 16px;
    }

    body #order-standard_cart .domain-checker-container .input-group-box .form-control {
        flex: 1 1 100%;
        min-height: 48px;
        border-radius: 10px !important;
    }

    body #order-standard_cart .domain-checker-container .input-group-box .input-group-btn {
        flex: 1 1 100%;
    }

    body #order-standard_cart .domain-checker-container .domain-check-availability,
    body #order-standard_cart .domain-checker-container .input-group-box .input-group-btn .btn {
        width: 100%;
        height: 48px;
        border-radius: 10px !important;
    }

    body #order-standard_cart .domain-checker-container.domain-checker-advanced textarea {
        height: 104px;
    }

    body #order-standard_cart .domain-checker-container.domain-checker-advanced .multiselect-native-select,
    body #order-standard_cart .domain-checker-container.domain-checker-advanced > .input-group-box > select {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    body #order-standard_cart .domain-checker-container.domain-checker-advanced label {
        flex: 1 1 100%;
        padding: 2px 6px;
    }

    body #order-standard_cart .domain-checker-container.domain-checker-advanced #btnCheckAvailability {
        flex: 1 1 100%;
        margin-left: 0;
    }

    /* result rows: keep the price and the add button from overflowing */
    body #order-standard_cart .domain-checker-result-headline .domain-price {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
}

/* "Hubungi kami" (contact support) buttons: always a visible, tappable button */
body #order-standard_cart .domain-contact-support {
    cursor: pointer;
    touch-action: manipulation;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    background: var(--primary, #2563eb);
    border: 1px solid var(--primary, #2563eb);
    border-radius: 999px;
}

body #order-standard_cart .domain-contact-support:hover,
body #order-standard_cart .domain-contact-support:focus {
    color: #fff;
    background: var(--primary-lifted, #1d4ed8);
    border-color: var(--primary-lifted, #1d4ed8);
}

body #order-standard_cart .domain-contact-support.w-hidden {
    display: none;
}

/* Suggested domains: the "Hubungi kami untuk Pembelian" button sits next to Order on every row, desktop and mobile alike */
body #order-standard_cart .suggested-domains .domain-suggestion .actions .domain-contact-support,
body #order-standard_cart .suggested-domains .domain-suggestion .actions .domain-contact-support.w-hidden {
    display: inline-block;
    margin-left: 8px;
    padding: 7px 16px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    body #order-standard_cart .suggested-domains .domain-suggestion .actions .domain-contact-support,
    body #order-standard_cart .suggested-domains .domain-suggestion .actions .domain-contact-support.w-hidden {
        display: block;
        width: 100%;
        margin: 8px 0 0;
        border-radius: 12px;
    }
}

/* =====================================================================
   Order form "Farmedia Cart" - store design (Farmedia style).
   CSS only: markup, ids, links and the order-form JS are identical to standard_cart.
   Accent colour = two variables, change them here to recolour buttons / price accents.
   ===================================================================== */
body.fm-app #order-standard_cart.fm-cart {
    --fmc-a: #2cbf6e;            /* button gradient start */
    --fmc-b: #178a4a;            /* button gradient end   */
    --fmc-glow: rgba(31, 163, 90, .34);
    --fmc-blue: #3f6fcf;         /* titles + category pills */
    --fmc-blue-soft: #eef3fc;
    --fmc-line: #e5e7eb;
}

/* ---------- layout: categories bar on top, products below ---------- */
body.fm-app #order-standard_cart.fm-cart > .row { display: flex; flex-direction: column; flex-wrap: nowrap; margin-left: 0; margin-right: 0; }
body.fm-app #order-standard_cart.fm-cart > .row > .cart-sidebar,
body.fm-app #order-standard_cart.fm-cart > .row > .cart-body { float: none; width: 100%; max-width: 100%; flex: 0 0 auto; padding-left: 0; padding-right: 0; display: block !important; }
/* the body wrapper dissolves so the page title can sit ABOVE the categories card (reference order: title, categories, products) */
body.fm-app #order-standard_cart.fm-cart > .row > .cart-sidebar { order: 1; margin: 0; }
body.fm-app #order-standard_cart.fm-cart > .row > .cart-body { display: contents !important; }
body.fm-app #order-standard_cart.fm-cart > .row > .cart-body > * { order: 2; width: 100%; max-width: 100%; }
body.fm-app #order-standard_cart.fm-cart > .row > .cart-body > .header-lined,
body.fm-app #order-standard_cart.fm-cart > .row > .cart-body > .alert { order: 0; }

/* ---------- page header block ---------- */
body.fm-app #order-standard_cart.fm-cart .header-lined { margin: 0 0 26px; padding: 34px 36px 42px; background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fc 100%); border: 0; border-radius: 24px; }
body.fm-app #order-standard_cart.fm-cart .header-lined h1,
body.fm-app #order-standard_cart.fm-cart .header-lined .font-size-36 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.3rem) !important; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--fmc-blue); }
body.fm-app #order-standard_cart.fm-cart .header-lined p { margin: 0; max-width: 780px; font-size: 1.05rem; line-height: 1.6; color: #6b7280; }

/* ---------- categories card + pills (one row, clipped at the edge, swipe / scroll) ---------- */
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar { display: block !important; margin: 0 0 26px; border: 1px solid #e8edf5; border-radius: 22px; background: #fff; box-shadow: none; overflow: hidden; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-header { padding: 18px 26px 0; background: transparent; border: 0; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-title,
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .panel-title { margin: 0; font-size: .92rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-minimise { font-size: .7rem; color: #9ca3af; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 14px; margin: 0 24px 0 26px; padding: 12px 0 22px; border: 0;
    overflow-x: auto; position: relative; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none;
}
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; padding-bottom: 16px; }
}
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item {
    flex: 0 0 auto; width: auto; display: inline-flex; align-items: center; margin: 0; min-height: 0; padding: 11px 24px; white-space: nowrap; scroll-snap-align: start;
    background: var(--fmc-blue-soft); border: 0 !important; border-radius: 999px !important; box-shadow: none; transform: none;
    font-size: 1rem; font-weight: 500; color: var(--fmc-blue); transition: background-color .15s, color .15s;
}
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item::before { content: none !important; display: none !important; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item .sidebar-menu-item-wrapper { display: inline-flex; align-items: center; gap: 8px; width: auto; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item .sidebar-menu-item-icon-wrapper { margin: 0; width: auto; height: auto; background: transparent; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item:hover { background: #dfe8f9; color: #2f5bb5; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item.active,
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item.active:hover { background: var(--fmc-blue); color: #fff; font-weight: 600; box-shadow: none; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item .badge { margin-left: 6px; background: #fff; color: var(--fmc-blue); }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-body { padding: 12px 26px 20px; font-size: .9rem; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-body select { height: 46px; border-radius: 14px; }

/* the select copies are hidden visually - the pills do the same job */
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card.d-md-none,
body.fm-app #order-standard_cart.fm-cart .sidebar-collapsed { display: none !important; }

/* ---------- product grid ---------- */
body.fm-app #order-standard_cart.fm-cart .products { margin: 0; }
body.fm-app #order-standard_cart.fm-cart .products .row-eq-height { display: flex; flex-wrap: nowrap; gap: 46px; margin: 0 0 30px; }
body.fm-app #order-standard_cart.fm-cart .products .row-eq-height > [class*="col-"] { display: flex; flex: 1 1 0; min-width: 0; max-width: none; width: auto; padding: 0; }

/* ---------- product card ---------- */
body.fm-app #order-standard_cart.fm-cart .products .product {
    position: static; display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); grid-template-areas: "head head" "desc foot"; grid-template-rows: auto 1fr;
    width: 100%; margin: 0; padding: 0; background: #fff; border: 1px solid #dfe3e8; border-radius: 6px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
    overflow: hidden; transform: none; transition: box-shadow .15s;
}
body.fm-app #order-standard_cart.fm-cart .products .product::before { content: none; display: none; }
body.fm-app #order-standard_cart.fm-cart .products .product:hover { transform: none; border-color: #dfe3e8; box-shadow: 0 10px 28px rgba(15, 23, 42, .1); }
body.fm-app #order-standard_cart.fm-cart .products .product header {
    grid-area: head; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 22px 28px 20px;
    background: #f7f7f7; border: 0; border-bottom: 1px solid var(--fmc-line); border-radius: 0;
}
body.fm-app #order-standard_cart.fm-cart .products .product header span { font-size: 1.85rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: #2b2b2b; }
body.fm-app #order-standard_cart.fm-cart .products .product header .qty { float: none; flex: 0 0 auto; font-size: .72rem; font-weight: 600; font-style: normal; color: #4b5563; background: #fff; border: 1px solid var(--fmc-line); padding: 3px 10px; border-radius: 999px; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc { grid-area: desc; float: none; width: auto; margin: 0; padding: 16px 12px 36px 20px; font-size: .9rem; line-height: 1.9; color: #3a3f4b; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc p { margin: 0; font-size: .9rem; line-height: 1.9; color: #3a3f4b; overflow-wrap: break-word; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc ul { list-style: none; margin: 0; padding: 0; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc li { padding: 0; border: 0; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc li::before { content: none; }
body.fm-app #order-standard_cart.fm-cart .products .product span.feature-value { font-weight: 700; color: #1f2937; }
body.fm-app #order-standard_cart.fm-cart .products .product footer {
    grid-area: foot; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 18px; float: none; width: auto;
    margin: 30px 0 0; padding: 30px 14px 36px; background: transparent; border: 0; border-top: 1px solid var(--fmc-line); text-align: center;
}
body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing { margin: 0; font-size: 1rem; line-height: 1.55; color: #667085; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing span.price { display: inline; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; color: #0b1630; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing span.price + br { display: none; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing small { font-size: .76rem; color: #667085; }
body.fm-app #order-standard_cart.fm-cart .products .product footer .btn-order-now,
body.fm-app #order-standard_cart.fm-cart .products .product footer .btn-order-now:focus {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em; width: auto; max-width: 100%; margin: 0; padding: .95em 1.9em;
    font-size: 1.05rem !important; font-weight: 800; line-height: 1.2; white-space: nowrap; color: #fff !important; border: 0 !important; border-radius: 999px !important;
    background: linear-gradient(135deg, var(--fmc-a) 0%, var(--fmc-b) 100%) !important; box-shadow: 0 14px 30px var(--fmc-glow) !important; transition: transform .15s, filter .15s;
}
body.fm-app #order-standard_cart.fm-cart .products .product footer .btn-order-now:hover { background: linear-gradient(135deg, var(--fmc-a) 0%, var(--fmc-b) 100%) !important; filter: brightness(1.06); transform: translateY(-1px); }

/* ---------- phones: same card, still two columns (like the reference), one card per row ---------- */
@media (max-width: 767.98px) {
    body.fm-app #order-standard_cart.fm-cart .header-lined { padding: 26px 22px 32px; margin-bottom: 20px; border-radius: 22px; }
    body.fm-app #order-standard_cart.fm-cart .header-lined p { font-size: 1rem; }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar { margin-bottom: 18px; border-radius: 20px; }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-header { padding: 16px 18px 0; }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group { margin: 0 16px 0 18px; gap: 12px; padding: 12px 0 18px; }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item { padding: 10px 20px; font-size: .95rem; }
    body.fm-app #order-standard_cart.fm-cart .products .row-eq-height { flex-direction: column; gap: 0; margin-bottom: 0; }
    body.fm-app #order-standard_cart.fm-cart .products .row-eq-height > [class*="col-"] { flex: 0 0 auto; margin-bottom: 22px; }
    body.fm-app #order-standard_cart.fm-cart .products .product header { padding: 18px 20px 16px; }
    body.fm-app #order-standard_cart.fm-cart .products .product header span { font-size: 1.6rem; }
    body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc { padding: 14px 8px 28px 16px; font-size: .84rem; line-height: 1.85; }
    body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc p { font-size: .84rem; line-height: 1.85; }
    body.fm-app #order-standard_cart.fm-cart .products .product footer { margin-top: 22px; padding: 22px 8px 26px; gap: 14px; }
    body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing { font-size: .92rem; }
    body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing span.price { font-size: 1.2rem; }
    body.fm-app #order-standard_cart.fm-cart .products .product footer .btn-order-now { font-size: .95rem !important; padding: .9em 1.3em; }
}

/* ---------- categories: win over the member-area tablet/phone menu rules (they use !important) ---------- */
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar:has(.list-group),
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar {
    background: #fff !important; border: 1px solid #e8edf5 !important; box-shadow: none !important; overflow: hidden !important; margin: 0 0 22px !important; border-radius: 22px;
}
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar:has(.list-group) .card-header,
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .card-header { padding: 18px 26px 0; background: transparent; border: 0; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar:has(.list-group) .collapsable-card-body { background: transparent; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group {
    flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; gap: 14px; margin: 0 24px 0 26px; padding: 12px 0 22px;
}
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item {
    min-height: 0; padding: 11px 24px; background: #eef3fc; border: 0 !important; border-radius: 999px !important; color: var(--fmc-blue); font-size: 1rem; font-weight: 500;
}
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item.active,
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item.active:hover { background: var(--fmc-blue); color: #fff; font-weight: 600; }
/* WHMCS own icons are hidden (pills carry the icons added by common.tpl instead) */
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item > i:not(.fm-pill-ico),
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item .sidebar-menu-item-icon-wrapper,
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item .sidebar-menu-item-icon { display: none !important; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .card-minimise { display: inline-block !important; }
@media (max-width: 767.98px) {
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar,
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar:has(.list-group) { margin-bottom: 18px !important; border-radius: 20px; }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .card-header { padding: 16px 18px 0; }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group { margin: 0 16px 0 18px; gap: 12px; padding: 12px 0 18px; }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item { padding: 10px 20px; font-size: .95rem; }
}

/* =====================================================================
   Proportions: compact (nothing oversized)
   ===================================================================== */
body.fm-app #order-standard_cart.fm-cart .header-lined { padding: 24px 28px 28px; margin-bottom: 18px; border-radius: 20px; }
body.fm-app #order-standard_cart.fm-cart .header-lined h1,
body.fm-app #order-standard_cart.fm-cart .header-lined .font-size-36 { font-size: 1.6rem !important; margin-bottom: 4px; }
body.fm-app #order-standard_cart.fm-cart .header-lined p { font-size: .92rem; line-height: 1.55; }

body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar,
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar:has(.list-group) { margin-bottom: 18px !important; border-radius: 18px; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .card-header { padding: 14px 22px 0; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-title,
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .panel-title { font-size: .72rem; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group { gap: 10px; margin: 0 20px 0 22px; padding: 10px 0 16px; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item { padding: 8px 18px; font-size: .84rem; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-body { padding: 10px 22px 16px; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-body select { height: 40px; font-size: .85rem; }

body.fm-app #order-standard_cart.fm-cart .products .row-eq-height { gap: 28px; margin-bottom: 20px; }
body.fm-app #order-standard_cart.fm-cart .products .product header { padding: 16px 22px 14px; }
body.fm-app #order-standard_cart.fm-cart .products .product header span { font-size: 1.35rem; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc { padding: 12px 10px 24px 18px; font-size: .78rem; line-height: 1.8; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc p { font-size: .78rem; line-height: 1.8; }
body.fm-app #order-standard_cart.fm-cart .products .product footer { margin-top: 22px; padding: 22px 12px 26px; gap: 14px; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing { font-size: .84rem; line-height: 1.5; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing span.price { font-size: 1.2rem; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing small { font-size: .7rem; }
body.fm-app #order-standard_cart.fm-cart .products .product footer .btn-order-now,
body.fm-app #order-standard_cart.fm-cart .products .product footer .btn-order-now:focus { font-size: .88rem !important; padding: .8em 1.6em; box-shadow: 0 10px 22px var(--fmc-glow) !important; }

@media (max-width: 767.98px) {
    body.fm-app #order-standard_cart.fm-cart .header-lined { padding: 20px 18px 22px; margin-bottom: 14px; border-radius: 18px; }
    body.fm-app #order-standard_cart.fm-cart .header-lined h1,
    body.fm-app #order-standard_cart.fm-cart .header-lined .font-size-36 { font-size: 1.3rem !important; }
    body.fm-app #order-standard_cart.fm-cart .header-lined p { font-size: .82rem; }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar,
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar:has(.list-group) { margin-bottom: 14px !important; border-radius: 16px; }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .card-header { padding: 12px 16px 0; }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group { gap: 8px; margin: 0 14px 0 16px; padding: 8px 0 14px; }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item { padding: 7px 15px; font-size: .78rem; }
    body.fm-app #order-standard_cart.fm-cart .products .row-eq-height > [class*="col-"] { margin-bottom: 16px; }
    body.fm-app #order-standard_cart.fm-cart .products .product header { padding: 14px 16px 12px; }
    body.fm-app #order-standard_cart.fm-cart .products .product header span { font-size: 1.2rem; }
    body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc { padding: 10px 6px 20px 14px; font-size: .72rem; line-height: 1.75; }
    body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc p { font-size: .72rem; line-height: 1.75; }
    body.fm-app #order-standard_cart.fm-cart .products .product footer { margin-top: 18px; padding: 18px 6px 22px; gap: 12px; }
    body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing { font-size: .76rem; }
    body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing span.price { font-size: 1rem; }
    body.fm-app #order-standard_cart.fm-cart .products .product footer .btn-order-now { font-size: .76rem !important; padding: .8em 1.2em; }
}

/* =====================================================================
   Page panel: everything sits in one white rounded panel with a limited width
   (cards are ~520px wide instead of stretching over the whole screen)
   ===================================================================== */
body.fm-app #order-standard_cart.fm-cart {
    max-width: 1140px; margin: 0 auto; padding: 34px 38px 38px; background: #fff; border-radius: 28px; box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}
body.fm-app #order-standard_cart.fm-cart .header-lined { padding: 22px 26px 26px; }
body.fm-app #order-standard_cart.fm-cart .header-lined h1,
body.fm-app #order-standard_cart.fm-cart .header-lined .font-size-36 { font-size: 1.5rem !important; }
body.fm-app #order-standard_cart.fm-cart .header-lined p { font-size: .88rem; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item { font-size: .8rem; padding: 7px 16px; }
body.fm-app #order-standard_cart.fm-cart .products .row-eq-height { gap: 26px; }
body.fm-app #order-standard_cart.fm-cart .products .product header span { font-size: 1.3rem; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc,
body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc p { font-size: .76rem; line-height: 1.75; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing { font-size: .8rem; }
body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing span.price { font-size: 1.1rem; }
@media (max-width: 767.98px) {
    body.fm-app #order-standard_cart.fm-cart { padding: 18px 14px 22px; border-radius: 24px; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
    body.fm-app #order-standard_cart.fm-cart .header-lined { padding: 18px 16px 20px; }
    body.fm-app #order-standard_cart.fm-cart .header-lined h1,
    body.fm-app #order-standard_cart.fm-cart .header-lined .font-size-36 { font-size: 1.25rem !important; }
}

/* =====================================================================
   Tablet + small phones
   ===================================================================== */
/* tablet and below: one card per row (two columns of ~310px made the feature list unreadable) */
@media (max-width: 991.98px) {
    body.fm-app #order-standard_cart.fm-cart .products .row-eq-height { flex-direction: column; gap: 0; margin-bottom: 0; }
    body.fm-app #order-standard_cart.fm-cart .products .row-eq-height > [class*="col-"] { flex: 0 0 auto; margin-bottom: 18px; }
    body.fm-app #order-standard_cart.fm-cart { padding: 26px 26px 30px; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc,
    body.fm-app #order-standard_cart.fm-cart .products .product div.product-desc p { font-size: .82rem; line-height: 1.8; }
    body.fm-app #order-standard_cart.fm-cart .products .product header span { font-size: 1.4rem; }
    body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing span.price { font-size: 1.25rem; }
    body.fm-app #order-standard_cart.fm-cart .products .product footer .btn-order-now { font-size: .92rem !important; }
}
/* small phones: the narrow price column shows price, cycle and setup fee as a clean stack */
@media (max-width: 575.98px) {
    body.fm-app #order-standard_cart.fm-cart { padding: 14px 10px 18px; border-radius: 22px; }
    body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing span.price { display: block; font-size: 1.05rem; line-height: 1.3; }
    body.fm-app #order-standard_cart.fm-cart .products .product div.product-pricing span.price + br { display: none; }
    body.fm-app #order-standard_cart.fm-cart .products .product footer { padding-left: 4px; padding-right: 4px; }
    body.fm-app #order-standard_cart.fm-cart .products .product footer .btn-order-now { padding: .75em 1.1em; max-width: 100%; }
    body.fm-app #order-standard_cart.fm-cart .header-lined { padding: 16px 14px 18px; }
}

/* =====================================================================
   Swipe affordance for the category rows (phones / small tablets)
   - soft fade on the side that still has hidden pills (classes set by the small script in common.tpl)
   - small arrow hint in the card header while the row is scrollable
   ===================================================================== */
@media (max-width: 767.98px) {
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group.fm-can-right:not(.fm-can-left) {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group.fm-can-left:not(.fm-can-right) {
        -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
    }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group.fm-can-left.fm-can-right {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 40px), transparent);
    }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .card-header { position: relative; }
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar[data-fm-scroll="1"] .card-header::after {
        content: "\2039  \203A"; position: absolute; right: 44px; top: 13px; font-size: 1rem; line-height: 1; letter-spacing: .15em;
        color: var(--fmc-blue); opacity: .8; pointer-events: none; animation: fmcSwipeNudge 1.8s ease-in-out infinite;
    }
}
@keyframes fmcSwipeNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar[data-fm-scroll="1"] .card-header::after { animation: none; }
}

/* =====================================================================
   Show / hide (the chevron in each card header) - driven by the .minimised class the WHMCS script toggles,
   so it works at every width even though the member-area theme forces these bodies open with !important.
   ===================================================================== */
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar:has(.card-minimise.minimised) .collapsable-card-body { display: none !important; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar:not(:has(.card-minimise.minimised)) .list-group.collapsable-card-body { display: flex !important; height: auto !important; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar:not(:has(.card-minimise.minimised)) .collapsable-card-body:not(.list-group) { display: block !important; height: auto !important; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar:has(.card-minimise.minimised) .card-header { padding-bottom: 14px; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar:has(.card-minimise.minimised)[data-fm-scroll="1"] .card-header::after { display: none; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .card-header { cursor: pointer; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .card-minimise { transition: transform .2s; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .card-minimise.minimised { transform: rotate(180deg); }

/* =====================================================================
   Checkout - top intro row ("Silahkan lengkapi data..." + Sudah Terdaftar? / Buat Akun Baru)
   The stock markup floats the buttons right and gives the text overflow:hidden, which squeezes the text
   into a sliver on narrow screens. Flex row that wraps instead; buttons keep their ids / hidden states.
   ===================================================================== */
body.fm-app #order-standard_cart.fm-cart .already-registered { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin: 0 0 20px; padding: 14px 18px; background: #f6f8fc; border: 1px solid #e8edf5; border-radius: 16px; }
body.fm-app #order-standard_cart.fm-cart .already-registered::before,
body.fm-app #order-standard_cart.fm-cart .already-registered::after { display: none; }
body.fm-app #order-standard_cart.fm-cart .already-registered > p { order: 1; flex: 1 1 260px; min-width: 0; margin: 0; overflow: visible; font-size: .9rem; line-height: 1.55; color: #4b5563; }
body.fm-app #order-standard_cart.fm-cart .already-registered > .pull-right { order: 2; float: none; flex: 0 0 auto; margin: 0; }
body.fm-app #order-standard_cart.fm-cart .already-registered .btn { border-radius: 999px; padding: 9px 20px; font-size: .85rem; font-weight: 700; }
@media (max-width: 575.98px) {
    body.fm-app #order-standard_cart.fm-cart .already-registered { padding: 14px; }
    body.fm-app #order-standard_cart.fm-cart .already-registered > .pull-right { flex: 1 1 100%; }
    body.fm-app #order-standard_cart.fm-cart .already-registered .btn { width: 100%; }
}

/* the member-area theme gives every .btn an explicit display, which beat the order form's .w-hidden:
   both "Sudah Terdaftar?" and "Buat Akun Baru" showed at once. Restore it with enough specificity but WITHOUT !important:
   the order-form script reveals these elements with jQuery show()/fadeIn()/slideDown() (an inline display), which must keep winning,
   otherwise the domain search results (#DomainSearchResults, #primaryLookupResult) and the swapped login/signup button never appear. */
body.fm-app #order-standard_cart.fm-cart .w-hidden,
body.fm-app #order-standard_cart.fm-cart .btn.w-hidden,
body.fm-app #order-standard_cart.fm-cart a.btn.w-hidden { display: none; }

/* a card that is alone in its row (odd number of products) keeps the half width of its neighbours -
   instead of stretching over the whole panel. Two columns = (50% - half the gap) each; gap is 26px (see grid rule above). */
@media (min-width: 992px) {
    body.fm-app #order-standard_cart.fm-cart .products .row-eq-height > [class*="col-"] { flex: 0 0 calc(50% - 13px); max-width: calc(50% - 13px); }
}

/* ---------- dynamic icons on the category pills and panel titles (added by the script in common.tpl from each label) ---------- */
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item .fm-pill-ico { flex: none; margin-right: 10px; font-size: .9em; line-height: 1; opacity: .9; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .panel-title .fm-title-ico { margin-right: 10px; font-size: .95em; opacity: .75; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item.active .fm-pill-ico { opacity: 1; }
@media (max-width: 575.98px) {
    body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .list-group-item .fm-pill-ico { margin-right: 8px; }
}
/* Font Awesome solid/brand glyphs need their own weight; the pills use 500, which made solid icons fall back to a thin outline */
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .fm-pill-ico.fas,
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .fm-title-ico.fas { font-weight: 900; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .fm-pill-ico.fab { font-weight: 400; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .fm-pill-ico { color: inherit; opacity: .9; }
body.fm-app #order-standard_cart.fm-cart .cart-sidebar .card-sidebar .fm-pill-ico { margin-right: 9px; }
