@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap");

/* XHosting Standard Cart RTL fixes. Kept minimal to preserve WHMCS styling. */

#order-standard_cart,
#order-standard_cart input,
#order-standard_cart textarea,
#order-standard_cart select,
#order-standard_cart button,
#order-standard_cart .btn,
#order-standard_cart .dropdown-menu,
#order-standard_cart .modal,
#order-standard_cart .popover,
#order-standard_cart .tooltip,
#order-standard_cart table {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

#order-standard_cart {
    direction: rtl;
    text-align: right;
    color: #243244;
    line-height: 1.7;
}

#order-standard_cart input,
#order-standard_cart textarea,
#order-standard_cart select {
    direction: rtl;
    text-align: right;
}

#order-standard_cart input[type="email"],
#order-standard_cart input[type="url"],
#order-standard_cart input[type="tel"],
#order-standard_cart input[name*="domain"],
#order-standard_cart input[id*="domain"],
#order-standard_cart .products .product header span,
#order-standard_cart .domain-name,
#order-standard_cart .domain {
    direction: ltr;
    text-align: left;
}

#order-standard_cart .cart-sidebar {
    float: right;
}

#order-standard_cart .cart-body {
    float: left;
}

#order-standard_cart .secondary-cart-body {
    float: right;
}

#order-standard_cart .secondary-cart-sidebar {
    float: left;
}

#order-standard_cart label,
#order-standard_cart p.domain-renewal-desc,
.service-renewals .div-renewal-period-label {
    margin-right: 0;
    margin-left: 10px;
}

#order-standard_cart label .iradio_square-blue,
#order-standard_cart .domain-selection-options .option .iradio_square-blue,
#order-standard_cart .domain-suggestions .icheckbox_square-green {
    margin-right: 0;
    margin-left: 8px;
}

#order-standard_cart .products .product header .qty {
    float: left;
}

#order-standard_cart .products .product div.product-desc {
    float: right;
}

#order-standard_cart .products .product footer {
    float: left;
}

#order-standard_cart .order-summary h2,
#order-standard_cart .order-summary .product-name,
#order-standard_cart .order-summary .product-group,
#order-standard_cart .domain-selection-options .option {
    text-align: right;
}

#order-standard_cart .summary-totals .pull-left {
    float: right !important;
}

#order-standard_cart .summary-totals .pull-right {
    float: left !important;
}

#order-standard_cart .dropdown-menu {
    text-align: right;
}

#order-standard_cart .caret {
    margin-right: 4px;
    margin-left: 0;
}

#order-standard_cart .fa-chevron-right,
#order-standard_cart .fa-angle-right,
#order-standard_cart .fa-arrow-right,
#order-standard_cart .fa-caret-right {
    transform: scaleX(-1);
}

#order-standard_cart table th,
#order-standard_cart table td,
#order-standard_cart .table th,
#order-standard_cart .table td {
    text-align: right;
}

#order-standard_cart .modal-header .close {
    float: left;
}

#order-standard_cart .modal-footer {
    text-align: left;
}

#order-standard_cart .panel,
#order-standard_cart .products .product,
#order-standard_cart .order-summary,
#order-standard_cart .view-cart-items,
#order-standard_cart .empty-cart,
#order-standard_cart .domain-selection-options .option,
#order-standard_cart .sub-heading {
    border-color: #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

#order-standard_cart .panel > .panel-heading,
#order-standard_cart .sub-heading,
#order-standard_cart .order-summary h2 {
    background: #f8fafc;
    border-color: #e8edf3;
    color: #26384d;
    font-weight: 700;
}

#order-standard_cart .products .product {
    background: #fff;
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
    border: 1px solid #e1e8f0;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

#order-standard_cart .products .product:hover {
    transform: translateY(-3px);
    border-color: #bde8db;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

#order-standard_cart .products .product::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #16a085, #0f6f91);
}

#order-standard_cart .products .product header {
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    padding: 18px 20px;
}

#order-standard_cart .products .product header span {
    color: #0f5878;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0;
}

#order-standard_cart .products .product div.product-desc {
    color: #4b5d73;
    line-height: 1.8;
    padding: 18px 20px;
}

#order-standard_cart .products .product div.product-desc ul,
#order-standard_cart .products .product div.product-desc ol {
    margin: 12px 0 0;
    padding-right: 0;
    list-style: none;
}

#order-standard_cart .products .product div.product-desc li {
    position: relative;
    margin-bottom: 7px;
    padding-right: 20px;
}

#order-standard_cart .products .product div.product-desc li::before {
    content: "";
    position: absolute;
    right: 3px;
    top: 6px;
    width: 6px;
    height: 11px;
    border: solid #16a085;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#order-standard_cart .products .product footer {
    background: #fff;
    border-top: 1px solid #edf1f5;
    padding: 18px 20px;
}

#order-standard_cart .products .product .price,
#order-standard_cart .products .product .product-pricing,
#order-standard_cart .products .product footer .price {
    color: #0f5878;
    font-size: 22px;
    font-weight: 800;
}

#order-standard_cart .products .product .btn,
#order-standard_cart .products .product footer .btn {
    min-width: 132px;
    padding: 9px 16px;
    box-shadow: 0 8px 18px rgba(15, 143, 124, 0.18);
}

#order-standard_cart .btn {
    border-radius: 8px;
    font-weight: 600;
}

#order-standard_cart .btn-primary,
#order-standard_cart .btn-success,
#order-standard_cart .btn-checkout {
    border-color: #0f8f7c;
    background: #0f8f7c;
    color: #fff;
}

#order-standard_cart .btn-primary:hover,
#order-standard_cart .btn-primary:focus,
#order-standard_cart .btn-success:hover,
#order-standard_cart .btn-success:focus,
#order-standard_cart .btn-checkout:hover,
#order-standard_cart .btn-checkout:focus {
    border-color: #0b7464;
    background: #0b7464;
    color: #fff;
}

#order-standard_cart .form-control,
#order-standard_cart .field,
#order-standard_cart select {
    border-color: #dbe3ec;
    border-radius: 8px;
    box-shadow: none;
    min-height: 38px;
}

#order-standard_cart .form-control:focus,
#order-standard_cart .field:focus,
#order-standard_cart select:focus {
    border-color: #16a085;
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.12);
}

#order-standard_cart .order-summary {
    background: #fff;
    overflow: hidden;
    position: sticky;
    top: 18px;
}

#order-standard_cart .order-summary .summary-container {
    border-color: #edf1f5;
}

#order-standard_cart .summary-totals {
    border-color: #edf1f5;
}

#order-standard_cart .view-cart-items {
    background: #fff;
    overflow: hidden;
}

#order-standard_cart .view-cart-items-header {
    background: #f8fafc;
    border-color: #e8edf3;
}

#order-standard_cart .domain-selection-options .option {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    border-radius: 12px;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

#order-standard_cart .domain-selection-options .option:hover {
    border-color: #bde8db;
    background: #f4fffb;
    box-shadow: 0 10px 24px rgba(15, 143, 124, 0.08);
}

#order-standard_cart .domain-selection-options .option-selected {
    border-color: rgba(15, 143, 124, 0.45);
    background: var(--xh-warm);
}

#order-standard_cart .domain-selection-options .option label {
    display: flex;
    align-items: center;
    min-height: 28px;
    margin: 0;
    color: var(--xh-ink);
    font-weight: 700;
}

#order-standard_cart .domain-input-group {
    margin: 16px 0;
}

#order-standard_cart .domain-input-group .input-group,
#order-standard_cart .domain-input-group .input-group-lg {
    display: flex;
    width: 100%;
}

#order-standard_cart .domain-input-group .form-control {
    height: 46px;
    border-radius: 0 10px 10px 0;
}

#order-standard_cart .domain-input-group .input-group-btn .btn,
#order-standard_cart .domain-input-group button.btn {
    height: 46px;
    border-radius: 10px 0 0 10px;
}

#order-standard_cart .cart-sidebar .panel-sidebar,
#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .secondary-cart-sidebar .panel-sidebar,
#order-standard_cart .secondary-cart-sidebar .panel {
    border-radius: 10px;
    overflow: hidden;
}

#order-standard_cart .prepend-icon .field,
#order-standard_cart .prepend-icon input {
    padding-right: 40px;
}

#order-standard_cart .prepend-icon .field-icon {
    right: 12px;
    left: auto;
    color: #9aa7b5;
}

@media only screen and (max-width: 1199px) {
    #order-standard_cart .cart-body {
        float: none;
    }
}

@media only screen and (max-width: 991px) {
    #order-standard_cart .secondary-cart-body,
    #order-standard_cart .secondary-cart-sidebar {
        float: none;
    }
}

@media only screen and (max-width: 767px) {
    #order-standard_cart .products .product div.product-desc,
    #order-standard_cart .products .product footer {
        float: none;
        width: 100%;
        text-align: right;
    }
}

/* Polished full-width order flow */

#order-standard_cart {
    --xh-primary: #0f8f7c;
    --xh-primary-dark: #087064;
    --xh-ink: #1f2f43;
    --xh-muted: #66758a;
    --xh-border: #dde7f0;
    --xh-soft: #f7fafc;
    --xh-warm: #f4fbf8;
    max-width: 1360px;
    margin: 0 auto;
}

#order-standard_cart > .row {
    margin-right: -10px;
    margin-left: -10px;
}

#order-standard_cart .cart-sidebar,
#order-standard_cart .sidebar-collapsed {
    display: none !important;
}

#order-standard_cart .cart-body {
    float: none !important;
    width: 100% !important;
    padding-right: 10px;
    padding-left: 10px;
}

#order-standard_cart .header-lined {
    margin: 0 0 22px;
    padding: 22px 24px;
    border: 1px solid var(--xh-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

#order-standard_cart .header-lined h1,
#order-standard_cart .header-lined .font-size-36 {
    margin: 0;
    color: var(--xh-ink);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
}

#order-standard_cart .header-lined p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--xh-muted);
    font-size: 14px;
}

#order-standard_cart .products {
    margin-top: 8px;
}

#order-standard_cart .products .row {
    display: flex;
    flex-wrap: wrap;
}

#order-standard_cart .products .row::before,
#order-standard_cart .products .row::after {
    display: none;
}

#order-standard_cart .products .row > [class*="col-"] {
    display: flex;
}

#order-standard_cart .products .product {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    width: 100%;
    min-height: 100%;
    margin-bottom: 22px;
    border-radius: 14px;
    border-color: var(--xh-border);
}

#order-standard_cart .products .product::before {
    background: var(--xh-primary);
}

#order-standard_cart .products .product header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 62px;
    padding: 18px 22px;
    background: var(--xh-soft);
}

#order-standard_cart .products .product header span {
    direction: rtl;
    text-align: right;
    color: #0c526f;
    font-size: 19px;
}

#order-standard_cart .products .product header .qty {
    flex: 0 0 auto;
    margin-right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 143, 124, 0.1);
    color: var(--xh-primary-dark);
    font-size: 12px;
    font-style: normal;
}

#order-standard_cart .products .product div.product-desc {
    float: none;
    flex: 1 1 58%;
    width: auto;
    min-width: 0;
    padding: 20px 22px;
    font-size: 13px;
}

#order-standard_cart .products .product div.product-desc p {
    margin-bottom: 12px;
    color: var(--xh-muted);
}

#order-standard_cart .products .product div.product-desc li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-right: 22px;
    color: #42526a;
}

#order-standard_cart .products .product span.feature-value {
    order: 2;
    direction: ltr;
    unicode-bidi: plaintext;
    color: var(--xh-ink);
    font-weight: 800;
}

#order-standard_cart .products .product footer {
    float: none;
    display: flex;
    flex: 0 0 34%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    padding: 22px;
    border-top: 0;
    border-right: 1px solid #edf2f7;
    background: linear-gradient(180deg, #ffffff 0%, var(--xh-warm) 100%);
    text-align: center;
}

#order-standard_cart .products .product .product-pricing {
    width: 100%;
    margin-bottom: 16px;
    color: var(--xh-muted);
    font-size: 13px;
}

#order-standard_cart .products .product footer .price {
    display: block;
    margin: 4px 0;
    color: #0b607f;
    font-size: 30px;
    line-height: 1.25;
}

#order-standard_cart .products .product div.product-pricing span.price,
#order-standard_cart .products .product footer div.product-pricing span.price {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
}

#order-standard_cart .products .product footer small {
    display: block;
    margin-top: 6px;
    color: var(--xh-muted);
}

#order-standard_cart .products .product .btn-order-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    max-width: 190px;
    min-height: 42px;
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
}

#order-standard_cart .products .product .btn-order-now i {
    margin: 0;
    color: #fff;
    opacity: 0.95;
}

#order-standard_cart .products .product .btn-order-now:hover,
#order-standard_cart .products .product .btn-order-now:focus {
    color: #fff;
    transform: translateY(-1px);
}

#order-standard_cart .secondary-cart-body {
    width: 66%;
    padding-right: 10px;
    padding-left: 10px;
}

#order-standard_cart .secondary-cart-sidebar {
    width: 34%;
    padding-right: 10px;
    padding-left: 10px;
}

#order-standard_cart .product-info,
#order-standard_cart .field-container,
#order-standard_cart .product-configurable-options,
#order-standard_cart #productAddonsContainer,
#order-standard_cart .alert.info-text-sm {
    border: 1px solid var(--xh-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

#order-standard_cart .field-container,
#order-standard_cart .product-configurable-options,
#order-standard_cart #productAddonsContainer {
    padding: 18px;
}

#order-standard_cart .product-info {
    padding: 18px 20px;
}

#order-standard_cart .product-info .product-title {
    color: #0c526f;
    font-size: 22px;
    font-weight: 800;
}

#order-standard_cart .sub-heading {
    height: auto;
    margin: 24px 0 16px;
    border: 0;
    text-align: right;
}

#order-standard_cart .sub-heading span,
#order-standard_cart .sub-heading-borderless span {
    top: auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 143, 124, 0.1) !important;
    color: var(--xh-primary-dark);
    font-size: 14px;
    font-weight: 800;
}

#order-standard_cart .order-summary {
    border: 1px solid var(--xh-border);
    border-bottom: 1px solid var(--xh-border);
    border-radius: 14px;
}

#order-standard_cart .order-summary h2 {
    padding: 16px 18px;
    background: #0c526f;
    color: #fff;
    font-size: 20px;
}

#order-standard_cart .summary-container {
    padding: 16px;
    background: #fff;
    font-size: 13px;
}

#order-standard_cart #btnCompleteProductConfig,
#order-standard_cart .btn-checkout,
#order-standard_cart .checkout .btn,
#order-standard_cart button[type="submit"].btn-primary {
    min-height: 44px;
    border-radius: 10px;
    box-shadow: 0 12px 22px rgba(15, 143, 124, 0.18);
}

#order-standard_cart #btnCompleteProductConfig {
    width: 100%;
}

#order-standard_cart .panel-addon {
    overflow: hidden;
    border-color: var(--xh-border);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

#order-standard_cart .panel-addon .panel-body {
    text-align: right;
}

#order-standard_cart .panel-addon .panel-price {
    background: var(--xh-soft);
    color: #0c526f;
    font-weight: 800;
}

#order-standard_cart .panel-addon .panel-add {
    background: var(--xh-primary);
}

#order-standard_cart .view-cart-items-header {
    background: #0c526f;
    border-radius: 12px 12px 0 0;
    color: #fff;
}

#order-standard_cart .view-cart-items {
    border: 1px solid var(--xh-border);
    border-bottom: 1px solid var(--xh-border);
    border-radius: 12px;
    background: #fff;
}

#order-standard_cart .view-cart-items .item {
    border-color: #edf2f7;
    padding: 16px;
    background: #fff;
}

#order-standard_cart .view-cart-items .item:nth-child(even) {
    background: #fbfdff;
}

#order-standard_cart .view-cart-items .item-title {
    color: var(--xh-ink);
    font-size: 18px;
    font-weight: 800;
}

#order-standard_cart .view-cart-items .item-group,
#order-standard_cart .view-cart-items .cycle {
    color: var(--xh-muted);
}

#order-standard_cart .view-cart-items .item-domain {
    direction: ltr;
    text-align: right;
    color: #0b607f;
    font-weight: 700;
}

#order-standard_cart .view-cart-items .item-price {
    text-align: left;
}

#order-standard_cart .view-cart-items .item-price span:first-child {
    color: #0b607f;
    font-size: 20px;
    font-weight: 800;
}

#order-standard_cart .view-cart-tabs {
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--xh-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

#order-standard_cart .view-cart-tabs .nav-tabs {
    border-bottom: 1px solid #edf2f7;
    background: var(--xh-soft);
}

#order-standard_cart .view-cart-tabs .nav-tabs > li,
#order-standard_cart .view-cart-tabs .nav-tabs > li > a {
    float: right;
}

#order-standard_cart .view-cart-tabs .nav-tabs > li > a {
    margin: 0;
    border: 0;
    color: var(--xh-muted);
    font-weight: 700;
}

#order-standard_cart .view-cart-tabs .nav-tabs > li.active > a,
#order-standard_cart .view-cart-tabs .nav-tabs > li > a.active {
    background: #fff;
    color: var(--xh-primary-dark);
}

#order-standard_cart .view-cart-tabs .tab-content {
    padding: 18px;
}

#order-standard_cart .btn-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    color: #fff !important;
}

#order-standard_cart .btn-checkout.disabled,
#order-standard_cart .btn-checkout[disabled] {
    border-color: #cbd5e1;
    background: #cbd5e1;
    color: #fff !important;
    opacity: 1;
    box-shadow: none;
}

#order-standard_cart .btn-continue-shopping {
    display: block;
    margin-top: 10px;
    color: var(--xh-primary-dark);
    font-weight: 700;
    text-align: center;
}

#order-standard_cart .total-due-today .amt {
    color: #0b607f;
    font-size: 32px;
    font-weight: 800;
}

@media only screen and (max-width: 991px) {
    #order-standard_cart {
        max-width: 100%;
    }

    #order-standard_cart .secondary-cart-body,
    #order-standard_cart .secondary-cart-sidebar {
        float: none !important;
        width: 100% !important;
    }

    #order-standard_cart .secondary-cart-sidebar {
        margin-top: 18px;
    }

    #order-standard_cart .order-summary {
        position: static;
    }
}

@media only screen and (max-width: 767px) {
    #order-standard_cart .header-lined {
        padding: 18px;
        border-radius: 12px;
    }

    #order-standard_cart .header-lined h1,
    #order-standard_cart .header-lined .font-size-36 {
        font-size: 23px;
    }

    #order-standard_cart .products .row {
        display: block;
    }

    #order-standard_cart .products .row > [class*="col-"] {
        display: block;
    }

    #order-standard_cart .products .product {
        display: block;
        border-radius: 12px;
    }

    #order-standard_cart .products .product header {
        display: block;
        min-height: 0;
        padding: 16px 18px;
    }

    #order-standard_cart .products .product header .qty {
        display: inline-block;
        margin: 10px 0 0;
    }

    #order-standard_cart .products .product div.product-desc,
    #order-standard_cart .products .product footer {
        display: block;
        width: 100%;
        padding: 18px;
    }

    #order-standard_cart .products .product footer {
        border-top: 1px solid #edf2f7;
        border-right: 0;
    }

    #order-standard_cart .products .product footer .price {
        font-size: 25px;
    }

    #order-standard_cart .products .product .btn-order-now,
    #order-standard_cart #btnCompleteProductConfig,
    #order-standard_cart .btn-checkout {
        max-width: none;
        width: 100%;
    }

    #order-standard_cart .view-cart-items-header {
        display: none;
    }

    #order-standard_cart .view-cart-items .item {
        padding: 14px;
    }

    #order-standard_cart .view-cart-items .item-price {
        margin-top: 10px;
        text-align: right;
    }

    #order-standard_cart .field-container,
    #order-standard_cart .product-configurable-options,
    #order-standard_cart #productAddonsContainer {
        padding: 14px;
    }
}
