/**
 * AliHost Cart UI v2 — modern restyle for standard_cart order form
 * Brand: green #198754 / dark #146c43 / light #d1e7dd / accent red #EB1A1A
 * Pure CSS overlay: no template logic touched.
 */

#order-standard_cart {
    --ah-green: #198754;
    --ah-green-dark: #146c43;
    --ah-green-light: #d1e7dd;
    --ah-red: #EB1A1A;
    --ah-text: #212529;
    --ah-muted: #6c757d;
    --ah-border: #e5e9ec;
    --ah-card-shadow: 0 2px 14px rgba(20, 60, 40, 0.07);
    --ah-card-shadow-hover: 0 10px 30px rgba(20, 60, 40, 0.13);
    --ah-radius: 14px;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Page titles ---------- */
#order-standard_cart .header-lined h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--ah-text);
    margin-bottom: 6px;
}
#order-standard_cart .header-lined {
    border-bottom: 2px solid var(--ah-green-light);
    margin-bottom: 14px;
    padding-bottom: 10px;
}

/* ---------- Section dividers ---------- */
#order-standard_cart .sub-heading {
    height: 0;
    border-top: 2px solid var(--ah-green-light);
    text-align: center;
    margin-top: 34px;
    margin-bottom: 30px;
}
#order-standard_cart .sub-heading span {
    display: inline-block;
    position: relative;
    padding: 4px 20px;
    top: -17px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ah-green-dark);
    background: #fff;
    border: 2px solid var(--ah-green-light);
    border-radius: 999px;
}
#order-standard_cart .sub-heading-borderless span {
    color: var(--ah-green-dark);
    font-weight: 700;
}

/* ---------- Product cards (products.tpl) ---------- */
#order-standard_cart .products .product {
    background: #fff;
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius);
    box-shadow: var(--ah-card-shadow);
    padding: 0;
    margin: 0 0 26px 0;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
#order-standard_cart .products .product:hover {
    transform: translateY(-4px);
    box-shadow: var(--ah-card-shadow-hover);
    border-color: var(--ah-green);
}
#order-standard_cart .products .product header {
    background: linear-gradient(135deg, var(--ah-green-light) 0%, #f4fbf6 100%);
    border-bottom: 1px solid var(--ah-border);
    border-radius: 0;
    padding: 16px 20px;
    margin: 0;
}
#order-standard_cart .products .product header span {
    color: var(--ah-green-dark);
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: -0.3px;
}
#order-standard_cart .products .product header .qty {
    font-size: 0.75em;
    font-style: normal;
    font-weight: 600;
    color: var(--ah-green);
    background: #fff;
    border: 1px solid var(--ah-green-light);
    padding: 3px 10px;
    border-radius: 999px;
}
#order-standard_cart .products .product div.product-desc {
    float: none;
    width: 100%;
    padding: 18px 22px 6px 22px;
    font-size: 0.92em;
    color: #495057;
}
#order-standard_cart .products .product div.product-desc ul {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
}
#order-standard_cart .products .product div.product-desc ul li {
    padding: 5px 0 5px 26px;
    position: relative;
    border-bottom: 1px dashed #eef1f3;
}
#order-standard_cart .products .product div.product-desc ul li:last-child {
    border-bottom: 0;
}
#order-standard_cart .products .product div.product-desc ul li::before {
    content: "\2713";
    position: absolute;
    left: 2px;
    top: 5px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--ah-green);
    border-radius: 50%;
}
#order-standard_cart .products .product footer {
    float: none;
    width: 100%;
    margin: 0;
    padding: 6px 22px 22px 22px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: auto;
}
#order-standard_cart .products .product div.product-pricing {
    margin-bottom: 0;
    min-width: 0;
    flex: 1 1 auto;
}
#order-standard_cart .products .product div.product-pricing span.price {
    font-size: 1.45em;
    font-weight: 800;
    color: var(--ah-green-dark);
    letter-spacing: -0.5px;
}
#order-standard_cart .products .product div.product-pricing small {
    color: var(--ah-muted);
}

/* ---------- Buttons ---------- */
#order-standard_cart .btn-success,
#order-standard_cart .btn-primary {
    background: linear-gradient(135deg, var(--ah-green) 0%, var(--ah-green-dark) 100%);
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    padding: 10px 26px;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#order-standard_cart .btn-success:hover,
#order-standard_cart .btn-primary:hover,
#order-standard_cart .btn-success:focus,
#order-standard_cart .btn-primary:focus {
    background: linear-gradient(135deg, var(--ah-green-dark) 0%, #0f5a37 100%);
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(25, 135, 84, 0.35);
    color: #fff;
}
#order-standard_cart .btn-success.btn-sm,
#order-standard_cart .btn-order-now {
    padding: 9px 20px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}
#order-standard_cart .btn-lg,
#order-standard_cart #btnCompleteOrder,
#order-standard_cart .btn-checkout {
    padding: 15px 44px;
    font-size: 17px;
    border-radius: 12px;
}
#order-standard_cart .btn-default {
    border-radius: 10px;
    font-weight: 600;
    border: 1.5px solid var(--ah-border);
}
#order-standard_cart .btn-default:hover {
    border-color: var(--ah-green);
    color: var(--ah-green-dark);
}

/* ---------- Configure page: product info card ---------- */
#order-standard_cart .product-info {
    background: #fff;
    border: 1px solid var(--ah-border);
    border-left: 5px solid var(--ah-green);
    border-radius: 12px;
    box-shadow: var(--ah-card-shadow);
    padding: 20px 24px;
    margin: 0 0 26px 0;
}
#order-standard_cart .product-info .product-title {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--ah-green-dark);
    letter-spacing: -0.4px;
    margin: 0 0 6px 0;
}
#order-standard_cart .product-info p:last-child {
    margin-bottom: 0;
    color: #495057;
}

/* ---------- Forms ---------- */
#order-standard_cart .field-container {
    background: #fff;
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius);
    box-shadow: var(--ah-card-shadow);
    padding: 24px;
    margin: 0 0 10px 0;
}
#order-standard_cart label {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ah-text);
    margin-bottom: 7px;
}
#order-standard_cart .form-group {
    margin-bottom: 18px;
}
#order-standard_cart input.form-control,
#order-standard_cart select.form-control,
#order-standard_cart textarea.form-control {
    height: 46px;
    border: 1.5px solid #dbe1e6;
    border-radius: 10px;
    box-shadow: none;
    font-size: 14.5px;
    color: var(--ah-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#order-standard_cart textarea.form-control {
    height: auto;
    min-height: 110px;
    padding: 12px 14px;
}
#order-standard_cart select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23198754' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    font-weight: 600;
    color: var(--ah-green-dark);
}
#order-standard_cart input.form-control:focus,
#order-standard_cart select.form-control:focus,
#order-standard_cart textarea.form-control:focus {
    border-color: var(--ah-green);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.14);
}
#order-standard_cart input.form-control::placeholder {
    color: #adb5bd;
}
#order-standard_cart .field-help-text {
    color: var(--ah-muted);
    font-size: 12.5px;
    margin-top: 6px;
}
#order-standard_cart .form-control-qty {
    height: 46px;
    border-radius: 10px;
}

/* Billing cycle: make the select prominent */
#order-standard_cart #inputBillingcycle {
    max-width: 340px;
    background-color: var(--ah-green-light);
    border-color: #bfe6cf;
}

/* Configurable options */
#order-standard_cart .product-configurable-options {
    background: #fff;
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius);
    box-shadow: var(--ah-card-shadow);
    padding: 24px;
    margin-bottom: 10px;
}
#order-standard_cart .product-configurable-options .form-group {
    margin-bottom: 16px;
}

/* ---------- Order summary card ---------- */
#order-standard_cart .order-summary {
    background: #fff;
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius);
    box-shadow: var(--ah-card-shadow);
    overflow: hidden;
    position: sticky;
    top: 20px;
}
#order-standard_cart .order-summary h2 {
    background: linear-gradient(135deg, var(--ah-green) 0%, var(--ah-green-dark) 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 1.15em;
    padding: 16px;
    margin: 0;
    text-align: center;
    letter-spacing: 0.2px;
}
#order-standard_cart .order-summary .summary-container {
    background: #fff;
    padding: 18px 20px;
    font-size: 0.92em;
}
#order-standard_cart .order-summary .product-name {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--ah-text);
}
#order-standard_cart .order-summary .product-group {
    color: var(--ah-muted);
}
#order-standard_cart .order-summary .summary-totals {
    border-top: 1px dashed var(--ah-border);
    border-bottom: 1px dashed var(--ah-border);
}
#order-standard_cart .order-summary .total-due-today .amt {
    font-size: 2em;
    font-weight: 800;
    color: var(--ah-green-dark);
    letter-spacing: -0.5px;
}
#order-standard_cart .order-summary .recurring-charges {
    color: var(--ah-muted);
}

/* ---------- Sidebar categories ---------- */
#order-standard_cart .cart-sidebar .list-group,
#order-standard_cart .sidebar .list-group {
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius);
    overflow: hidden;
    box-shadow: var(--ah-card-shadow);
}
#order-standard_cart .cart-sidebar h3,
#order-standard_cart .sidebar-collapsed h3 {
    background: linear-gradient(135deg, var(--ah-green) 0%, var(--ah-green-dark) 100%);
    color: #fff;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    border-radius: var(--ah-radius) var(--ah-radius) 0 0;
}
#order-standard_cart .cart-sidebar .list-group-item {
    border: 0;
    border-bottom: 1px solid #f0f3f5;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: #495057;
    transition: background 0.12s ease, color 0.12s ease, padding-left 0.12s ease;
}
#order-standard_cart .cart-sidebar .list-group-item:last-child {
    border-bottom: 0;
}
#order-standard_cart .cart-sidebar .list-group-item:hover {
    background: var(--ah-green-light);
    color: var(--ah-green-dark);
    padding-left: 22px;
}
#order-standard_cart .cart-sidebar .list-group-item.active,
#order-standard_cart .cart-sidebar .list-group-item.active:hover,
#order-standard_cart .cart-sidebar .list-group-item.active:focus {
    background: #fff !important;
    color: var(--ah-green-dark) !important;
    font-weight: 700;
    border-color: #e9ecef !important;
    border-left: 3px solid var(--ah-green) !important;
}

/* ---------- View cart ---------- */
#order-standard_cart .view-cart-items-header {
    background: linear-gradient(135deg, var(--ah-green) 0%, var(--ah-green-dark) 100%);
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    font-size: 0.95em;
    padding: 12px 18px;
    border: 0;
}
#order-standard_cart .view-cart-items {
    border: 1px solid var(--ah-border);
    border-top: 0;
    border-bottom: 2px solid var(--ah-green);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--ah-card-shadow);
    margin-bottom: 24px;
}
#order-standard_cart .view-cart-items .item {
    padding: 16px 18px;
    border-bottom: 1px solid #f0f3f5;
    font-size: 0.9em;
}
#order-standard_cart .view-cart-items .item:last-child {
    border-bottom: 0;
}
#order-standard_cart .view-cart-items .item:nth-child(even) {
    background: #fbfdfc;
}
#order-standard_cart .view-cart-items .item-title {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--ah-text);
}
#order-standard_cart .view-cart-items .item-group {
    color: var(--ah-muted);
    font-size: 1em;
}
#order-standard_cart .view-cart-items .item-price {
    text-align: right;
}
#order-standard_cart .view-cart-items .item-price span {
    font-size: 1.35em;
    font-weight: 800;
    color: var(--ah-green-dark);
}
#order-standard_cart .view-cart-items .item-price .cycle {
    font-size: 0.85em;
    color: var(--ah-muted);
    font-weight: 500;
}
#order-standard_cart .view-cart-tabs .tab-content {
    background: #fff;
    border: 1px solid var(--ah-border);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--ah-card-shadow);
}
#order-standard_cart .view-cart-tabs .nav-tabs {
    border-bottom: 0;
    padding-left: 6px;
}
#order-standard_cart .view-cart-tabs .nav-tabs > li > a {
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    color: var(--ah-muted);
}
#order-standard_cart .view-cart-tabs .nav-tabs a[aria-expanded="true"],
#order-standard_cart .view-cart-tabs .nav-tabs a[aria-selected="true"] {
    background: #fff;
    color: var(--ah-green-dark);
    border-color: var(--ah-border);
}
#order-standard_cart .view-cart-promotion-code {
    border: 2px dashed #bfe6cf;
    background: var(--ah-green-light);
    border-radius: 12px;
}
#order-standard_cart .empty-cart .btn {
    background: var(--ah-green);
    border-radius: 0 0 10px 10px;
}

/* Cart totals on viewcart page */
#order-standard_cart .totals-row,
#order-standard_cart .view-cart-items + .row {
    font-size: 0.95em;
}

/* ---------- Checkout ---------- */
#order-standard_cart .account-select-container div.account {
    border-radius: 12px;
    border: 1.5px solid var(--ah-border);
    margin-bottom: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#order-standard_cart .account-select-container div.account.active {
    border-color: var(--ah-green);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.12);
}
#order-standard_cart .cc-input-container {
    background: #fff;
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius);
    box-shadow: var(--ah-card-shadow);
    padding: 22px;
}
#order-standard_cart .apply-credit-container {
    background: var(--ah-green-light);
    border: 1px solid #bfe6cf;
    border-radius: 12px;
    padding: 18px 20px;
}
#order-standard_cart .checkout-security-msg {
    border-radius: 12px;
    border: 1px solid #ffe08a;
}
#order-standard_cart .marketing-email-optin {
    background: #fff;
    border: 1px solid var(--ah-border);
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: var(--ah-card-shadow);
    margin-bottom: 20px;
}

/* Payment gateway radio list */
#order-standard_cart .gateway-checkout,
#order-standard_cart .view-cart-gateway-checkout {
    background: #fff;
    border: 1px solid var(--ah-border);
    border-radius: 12px;
    box-shadow: var(--ah-card-shadow);
}

/* ---------- Addons ---------- */
#order-standard_cart .panel-addon {
    border: 1px solid var(--ah-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--ah-card-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-size: 0.9em;
}
#order-standard_cart .panel-addon:hover {
    transform: translateY(-3px);
    box-shadow: var(--ah-card-shadow-hover);
}
#order-standard_cart .panel-addon .panel-body label {
    font-size: 1.05em;
    font-weight: 700;
    color: var(--ah-text);
}
#order-standard_cart .panel-addon .panel-price {
    background: var(--ah-green-light);
    color: var(--ah-green-dark);
    font-weight: 700;
}
#order-standard_cart .panel-addon .panel-add {
    background: linear-gradient(135deg, var(--ah-green) 0%, var(--ah-green-dark) 100%);
    padding: 8px;
    font-weight: 700;
}
#order-standard_cart .addon-promo-container {
    border-radius: 12px;
    box-shadow: var(--ah-card-shadow);
}

/* ---------- Misc polish ---------- */
#order-standard_cart .alert {
    border-radius: 12px;
    border-width: 1.5px;
}
#order-standard_cart .alert-info {
    background: var(--ah-green-light);
    border-color: #bfe6cf;
    color: var(--ah-green-dark);
}
#order-standard_cart .domain-promo-box {
    border-radius: 12px;
    box-shadow: var(--ah-card-shadow);
}
#order-standard_cart .spotlight-tld {
    border-radius: 12px;
    box-shadow: var(--ah-card-shadow);
    border: 1px solid var(--ah-border);
}
#order-standard_cart .suggested-domains .list-group-item {
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--ah-border);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    #order-standard_cart .products .product footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    #order-standard_cart .btn-order-now {
        width: 100%;
    }
    #order-standard_cart .order-summary {
        position: static;
        margin-top: 24px;
    }
    #order-standard_cart .field-container,
    #order-standard_cart .product-configurable-options {
        padding: 18px;
    }
}
@media (max-width: 575px) {
    #order-standard_cart .header-lined h1 {
        font-size: 26px;
    }
    #order-standard_cart .sub-heading span {
        font-size: 14px;
        top: -16px;
    }
}

/* ---------- Billing cycle cards ---------- */
#order-standard_cart .billing-cycle-cards .bcc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
#order-standard_cart .bcc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 2px solid #dbe1e6;
    border-radius: 12px;
    padding: 18px 12px 14px 12px;
    cursor: pointer;
    background: #fff;
    text-align: center;
    margin-bottom: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
#order-standard_cart .bcc-card:hover {
    border-color: var(--ah-green);
    transform: translateY(-2px);
    box-shadow: var(--ah-card-shadow);
}
#order-standard_cart .bcc-card.active {
    border-color: var(--ah-green);
    background: var(--ah-green-light);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.12);
}
#order-standard_cart .bcc-card .bcc-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dbe1e6;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    transition: background 0.15s ease;
}
#order-standard_cart .bcc-card.active .bcc-check {
    background: var(--ah-green);
}
#order-standard_cart .bcc-card .bcc-cycle {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--ah-green-dark);
}
#order-standard_cart .bcc-card .bcc-price {
    font-size: 13px;
    color: #495057;
}
#order-standard_cart .bcc-card.active .bcc-price {
    font-weight: 600;
    color: var(--ah-text);
}
#order-standard_cart .bcc-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

/* ---------- Remove / empty-cart modal: clean stacked layout ---------- */
#order-standard_cart .modal-remove-item .modal-content {
    border-radius: 18px;
    border: 0;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
#order-standard_cart .modal-remove-item .modal-body {
    display: block;
    text-align: center;
    padding: 42px 34px 12px;
}
#order-standard_cart .modal-remove-item .modal-body::after {
    content: "";
    display: table;
    clear: both;
}
#order-standard_cart .modal-remove-item .modal-body .float-right {
    float: right;
}
#order-standard_cart .modal-remove-item .modal-title {
    clear: both;
    margin: 0 0 14px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--ah-text);
}
#order-standard_cart .modal-remove-item .modal-title i {
    display: block;
    font-size: 46px;
    margin-bottom: 12px;
    padding-top: 0;
    color: var(--ah-red);
}
#order-standard_cart .modal-remove-item .modal-title span {
    display: block;
}
#order-standard_cart .modal-remove-item .modal-footer {
    border: 0;
    text-align: center;
    padding: 10px 34px 38px;
}
#order-standard_cart .modal-remove-item .modal-footer .btn {
    min-width: 120px;
    margin: 0 6px;
}

/* ---------- Remove (x) button: inset from edge + hover ---------- */
#order-standard_cart .view-cart-items .btn-remove-from-cart {
    color: #b6bdc4;
    padding: 7px 11px;
    margin-right: 2px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1;
    transition: color 0.15s ease, background 0.15s ease;
}
#order-standard_cart .view-cart-items .btn-remove-from-cart:hover,
#order-standard_cart .view-cart-items .btn-remove-from-cart:focus {
    color: var(--ah-red);
    background: rgba(235, 26, 26, 0.08);
    text-decoration: none;
}
