
/* ==========================================================
   FariHost Order Form — Portal Integration
   Matches FariHost Modern client area design
   ========================================================== */

body.fh-ca-shell.fh-cart-order .fh-ca-page-content,
body.fh-ca-shell.fh-cart-order .fh-ca-page-body {
    padding: 0 !important;
    background: transparent !important;
}

body.fh-ca-shell.fh-cart-order .fh-ca-main-body {
    background: #f4f6fa !important;
}

body.fh-shopping-cart.fh-cart-order .fh-main-body {
    background: #f4f6fa !important;
    padding: 0 !important;
}

body.fh-shopping-cart.fh-cart-order .fh-main-body > .container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.fh-shopping-cart.fh-cart-order .fh-main-body .main-content {
    padding: 0 !important;
}

/* Layout wrapper */
.fh-order-page,
.fh-domain-order-page {
    width: 100%;
    color: #0f172a;
}

.fh-order-wrap,
.fh-domain-order-wrap {
    width: 100%;
    max-width: none;
    padding: 24px 28px 36px;
}

body.fh-ca-shell.fh-cart-order .fh-order-wrap,
body.fh-ca-shell.fh-cart-order .fh-domain-order-wrap {
    padding: 0 0 28px;
}

.fh-order-layout {
    display: block;
    width: 100%;
}

body.fh-ca-shell .fh-order-sidebar,
body.fh-ca-shell.fh-cart-order .cart-sidebar,
.fh-order-page .fh-order-sidebar {
    display: none !important;
}

.fh-order-main,
.fh-order-page .cart-body {
    width: 100% !important;
    float: none !important;
    min-width: 0;
}

/* Order steps */
.fh-order-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.fh-order-steps__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
    transition: all .15s ease;
}

.fh-order-steps__item span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
}

.fh-order-steps__item.is-active {
    border-color: transparent;
    color: #fff !important;
    background: linear-gradient(135deg, #0061ff, #5b21b6);
    box-shadow: 0 8px 20px rgba(0, 97, 255, .22);
}

.fh-order-steps__item.is-active span {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.fh-order-steps__item:hover:not(.is-active) {
    border-color: rgba(0, 97, 255, .25);
    color: #0061ff !important;
}

/* Hero in order pages */
.fh-order-hero.fh-ca-page-hero,
.fh-order-hero.fh-domain-order-hero {
    margin-bottom: 20px;
}

.fh-order-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .88);
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Hide legacy header when portal hero is used */
.fh-order-page .header-lined:not(.fh-cart-hero) {
    display: none !important;
}

/* Two-column checkout / cart layout */
.fh-order-page .secondary-cart-body {
    width: 100% !important;
    float: none !important;
}

@media (min-width: 992px) {
    .fh-order-page .fh-order-cart-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 22px;
        align-items: start;
    }

    .fh-order-page .secondary-cart-body {
        width: 100% !important;
    }

    .fh-order-page .secondary-cart-sidebar {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        position: sticky;
        top: 20px;
    }
}

/* Product configure */
.fh-order-page .product-info {
    margin-bottom: 20px;
    padding: 20px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.fh-order-page .product-info .product-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.fh-order-page .product-info p {
    margin: 0;
    color: #64748b;
}

.fh-order-page .field-container,
.fh-order-page .product-config-container {
    margin-bottom: 18px;
    padding: 20px 22px !important;
}

/* Checkout panels */
.fh-order-page .already-registered {
    margin-bottom: 18px;
    padding: 18px 22px !important;
}

.fh-order-page .account {
    margin-bottom: 18px;
}

.fh-order-page .account .panel-heading {
    padding: 16px 20px !important;
    font-size: 16px;
    font-weight: 900;
}

.fh-order-page .account .panel-body {
    padding: 20px !important;
}

.fh-order-page .payment-methods {
    margin-bottom: 18px;
}

.fh-order-page .secure-payment-container {
    margin-top: 18px;
    padding: 18px 22px !important;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

/* Complete page */
.fh-order-page .order-confirmation {
    margin: 20px 0;
    padding: 24px !important;
    border-radius: 16px !important;
    font-size: 18px;
    font-weight: 800;
}

.fh-order-page .order-confirmation span {
    color: #0061ff;
    font-weight: 900;
}

.fh-order-complete-actions {
    margin-top: 24px;
    text-align: center;
}

.fh-order-complete-actions .btn,
#order-standard_cart .btn,
#order-standard_cart button,
#order-standard_cart input[type="submit"],
.fh-order-page .btn,
.fh-domain-order-page .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    line-height: 1.25 !important;
    vertical-align: middle;
    overflow: visible !important;
}

.fh-order-complete-actions .btn {
    min-height: 48px;
    padding: 0 28px !important;
    font-size: 15px !important;
}

/* Full-width cart on marketing shell */
body.fh-shopping-cart.fh-cart-order .fh-order-wrap,
body.fh-shopping-cart.fh-cart-order .fh-domain-order-wrap {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 24px 28px 36px;
}

body.fh-shopping-cart.fh-cart-order #order-standard_cart {
    width: 100% !important;
}

/* Addon cards grid */
.fh-order-page .addon-products .row {
    display: flex;
    flex-wrap: wrap;
}

.fh-order-page .panel-addon {
    height: 100%;
    margin-bottom: 18px;
}

/* Domain configure in product order */
.fh-order-page .domain-selection-options {
    margin-bottom: 18px;
    padding: 20px !important;
}

/* Sidebar collapsed mobile selector */
.fh-order-page .sidebar-collapsed {
    margin-bottom: 16px;
    border-radius: 14px !important;
}

/* Alerts spacing */
.fh-order-page .alert {
    margin-bottom: 16px;
}

/* Promo code row */
.fh-order-page .promo {
    margin-top: 18px;
    padding: 18px 20px !important;
}

/* Empty cart */
.fh-order-page .view-cart-empty {
    padding: 40px 24px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
}

/* Renewals toolbar */
.fh-order-toolbar {
    margin-bottom: 18px;
}

.fh-order-toolbar .form-control,
.fh-order-toolbar .domain-renewals-filter,
.fh-order-toolbar .service-renewals-filter {
    display: inline-block;
    max-width: 280px;
    border-radius: 10px;
}

.fh-order-page .domain-renewal,
.fh-order-page .service-renewal {
    margin-bottom: 16px;
    padding: 20px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

@media (max-width: 767px) {
    .fh-order-wrap,
    .fh-domain-order-wrap {
        padding: 16px 14px 28px;
    }

    .fh-order-steps__item {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        font-size: 12px;
    }
}
