/* Nubryx checkout enhancements — Huraga theme */

body.order-product {
    --nubryx-blue: #5278ff;
    --nubryx-violet: #8b5cf6;
    --nubryx-border: rgba(112, 137, 255, 0.24);
    --nubryx-surface: var(--bs-card-bg, #fff);
}

body.order-product #wrapper {
    animation: nubryx-checkout-enter 0.55s ease both;
}

body.order-product #wrapper > section,
body.order-product .content-block {
    min-width: 0;
}

body.order-product .content-block > .row > .col-md-12 > .card {
    overflow: hidden;
    border: 1px solid var(--nubryx-border);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(50, 70, 130, 0.08);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

body.order-product .content-block > .row > .col-md-12 > .card:hover {
    border-color: rgba(82, 120, 255, 0.42);
    box-shadow: 0 16px 44px rgba(82, 100, 200, 0.13);
}

body.order-product .content-block > .row > .col-md-12 > .card > .card-header {
    padding: 1.5rem;
    background: linear-gradient(
        120deg,
        rgba(82, 120, 255, 0.10),
        rgba(139, 92, 246, 0.08)
    );
    border-bottom: 1px solid var(--nubryx-border);
}

body.order-product .content-block > .row > .col-md-12 > .card > .card-header h1 {
    font-weight: 750;
    letter-spacing: -0.035em;
}

body.order-product #orderbutton {
    background: transparent;
}

body.order-product #orderManager > .accordion-item {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--nubryx-border);
    border-radius: 12px;
    background: var(--nubryx-surface);
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

body.order-product #orderManager > .accordion-item:focus-within,
body.order-product #orderManager > .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: rgba(82, 120, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(82, 120, 255, 0.08);
}

body.order-product #orderManager .accordion-button {
    min-height: 58px;
    padding: 1rem 1.15rem;
    font-weight: 650;
    transition: background-color 0.22s ease, color 0.22s ease;
}

body.order-product #orderManager .accordion-button:not(.collapsed) {
    color: var(--nubryx-blue);
    background: linear-gradient(
        100deg,
        rgba(82, 120, 255, 0.10),
        rgba(139, 92, 246, 0.05)
    );
    box-shadow: none;
}

body.order-product #orderManager .accordion-button:focus {
    box-shadow: inset 0 0 0 2px rgba(82, 120, 255, 0.45);
}

body.order-product #orderManager .accordion-body {
    padding: 1.25rem;
}

body.order-product #orderManager .form-control,
body.order-product #orderManager .form-select {
    min-height: 44px;
    border-radius: 9px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.order-product #orderManager .form-control:focus,
body.order-product #orderManager .form-select:focus {
    border-color: var(--nubryx-blue);
    box-shadow: 0 0 0 3px rgba(82, 120, 255, 0.13);
}

body.order-product #orderManager .btn-primary {
    border: 0;
    border-radius: 9px;
    background: linear-gradient(110deg, var(--nubryx-blue), var(--nubryx-violet));
    box-shadow: 0 5px 14px rgba(82, 100, 220, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.order-product #orderManager .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(82, 100, 220, 0.28);
}

body.order-product #orderManager .btn-primary:active {
    transform: translateY(0);
}

@keyframes nubryx-checkout-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    body.order-product .content-block > .row > .col-md-12 > .card {
        border-radius: 13px;
    }

    body.order-product .content-block > .row > .col-md-12 > .card > .card-header {
        padding: 1.1rem;
    }

    body.order-product #orderManager .accordion-body {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.order-product #wrapper {
        animation: none;
    }

    body.order-product #orderManager *,
    body.order-product .content-block .card {
        transition: none !important;
    }
}

/* ==========================================
   Nubryx — Professional checkout refinement
   ========================================== */

body.order-product {
    --nubryx-blue: #3867f5;
    --nubryx-violet: #8157f5;
    --nubryx-line: #e4e9f5;
    --nubryx-shadow: 0 12px 34px rgba(32, 55, 110, .07);
}

/* Product configuration container */
body.order-product #orderManager {
    padding: 5px;
    border-radius: 15px;
}

/* Product configuration sections */
body.order-product #orderManager > .accordion-item {
    margin-bottom: 14px;
    border: 1px solid var(--nubryx-line);
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(32, 55, 110, .035);
    transition: border-color .25s ease, box-shadow .25s ease,
                transform .25s ease;
}

body.order-product #orderManager > .accordion-item:hover {
    border-color: rgba(56, 103, 245, .35);
    box-shadow: var(--nubryx-shadow);
}

body.order-product #orderManager .accordion-button {
    padding: 16px 20px;
    font-weight: 650;
    letter-spacing: -.01em;
}

body.order-product #orderManager .accordion-button:not(.collapsed) {
    color: var(--nubryx-blue);
    background: linear-gradient(
        105deg,
        rgba(56, 103, 245, .09),
        rgba(129, 87, 245, .045)
    );
}

/* Product name and description */
body.order-product #orderManager h1,
body.order-product #orderManager h2,
body.order-product #orderManager h3 {
    letter-spacing: -.025em;
    line-height: 1.3;
}

body.order-product #orderManager hr {
    margin: 22px 0;
    border-color: var(--nubryx-line);
    opacity: 1;
}

/* Billing cycle and form controls */
body.order-product #orderManager .form-control,
body.order-product #orderManager .form-select {
    min-height: 44px;
    border: 1px solid #dce3f2;
    border-radius: 9px;
    background-color: var(--bs-body-bg, #fff);
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.order-product #orderManager .form-control:hover,
body.order-product #orderManager .form-select:hover {
    border-color: #a9baf7;
}

body.order-product #orderManager .form-control:focus,
body.order-product #orderManager .form-select:focus {
    border-color: var(--nubryx-blue);
    box-shadow: 0 0 0 3px rgba(56, 103, 245, .12);
}

/* Domain registration tabs */
body.order-product #orderManager .nav-tabs {
    gap: 6px;
    border-bottom: 1px solid var(--nubryx-line);
}

body.order-product #orderManager .nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    transition: color .2s ease, background .2s ease,
                border-color .2s ease;
}

body.order-product #orderManager .nav-tabs .nav-link:hover {
    color: var(--nubryx-blue);
    background: rgba(56, 103, 245, .055);
}

body.order-product #orderManager .nav-tabs .nav-link.active {
    color: var(--nubryx-blue);
    font-weight: 650;
    border-color: var(--nubryx-line) var(--nubryx-line) #fff;
    background: #fff;
}

/* Primary actions: Next, continue, checkout */
body.order-product #orderManager .btn-primary {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(110deg, #3867f5, #8157f5);
    box-shadow: 0 5px 13px rgba(70, 91, 220, .20);
    font-weight: 650;
    transition: transform .2s ease, box-shadow .2s ease,
                filter .2s ease;
}

body.order-product #orderManager .btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 9px 22px rgba(70, 91, 220, .27);
}

body.order-product #orderManager .btn-primary:active {
    transform: translateY(0);
}

/* Gentle entrance for the configuration area */
body.order-product #orderManager {
    animation: nubryx-config-enter .45s ease both;
}

@keyframes nubryx-config-enter {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile spacing */
@media (max-width: 767.98px) {
    body.order-product #orderManager {
        padding: 2px;
    }

    body.order-product #orderManager .accordion-button {
        padding: 13px 14px;
    }

    body.order-product #orderManager .accordion-body {
        padding: 14px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    body.order-product #orderManager {
        animation: none;
    }

    body.order-product #orderManager *,
    body.order-product #orderManager *::before,
    body.order-product #orderManager *::after {
        transition: none !important;
        animation: none !important;
    }
}


/* =====================================================
   NUBRYX CLIENT PORTAL — COMPLETE CHECKOUT DESIGN
   Styling only: preserves FOSSBilling functionality
   ===================================================== */

body.order-product {
    --nx-primary: #3867f5;
    --nx-secondary: #8157f5;
    --nx-text: #202b45;
    --nx-muted: #68758d;
    --nx-border: #e3e9f5;
    --nx-soft: #f6f8ff;
    --nx-radius: 14px;
    --nx-shadow: 0 8px 26px rgba(35, 55, 110, .07);
}

/* Main content entrance */
body.order-product #wrapper {
    animation: nx-page-enter .45s ease both;
}

@keyframes nx-page-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main checkout and product cards */
body.order-product .content-block .card {
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    box-shadow: var(--nx-shadow);
    overflow: hidden;
    transition: border-color .22s ease, box-shadow .22s ease;
}

body.order-product .content-block .card > .card-header {
    padding: 20px 22px;
    color: var(--nx-text);
    background: linear-gradient(115deg, #fff, #f5f7ff);
    border-bottom: 1px solid var(--nx-border);
}

body.order-product .content-block .card > .card-body {
    padding: 22px;
}

/* Product selection and checkout steps */
body.order-product #orderManager {
    padding: 4px;
    border-radius: 14px;
}

body.order-product #orderManager > .accordion-item {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--nx-border);
    border-radius: 12px;
    background: var(--bs-body-bg, #fff);
    transition: border-color .22s ease, box-shadow .22s ease;
}

body.order-product #orderManager > .accordion-item:hover {
    border-color: #c5d2ff;
    box-shadow: 0 6px 20px rgba(56, 103, 245, .07);
}

body.order-product #orderManager .accordion-button {
    min-height: 54px;
    padding: 15px 18px;
    color: var(--nx-text);
    font-weight: 650;
    background: #fff;
    transition: color .2s ease, background .2s ease;
}

body.order-product #orderManager .accordion-button:not(.collapsed) {
    color: var(--nx-primary);
    background: linear-gradient(110deg, #eef3ff, #f8f5ff);
    box-shadow: none;
}

body.order-product #orderManager .accordion-button:focus {
    box-shadow: inset 0 0 0 2px rgba(56, 103, 245, .2);
}

body.order-product #orderManager .accordion-body {
    padding: 20px;
}

/* Headings and supporting text */
body.order-product #orderManager h1,
body.order-product #orderManager h2,
body.order-product #orderManager h3,
body.order-product #orderManager h4 {
    color: var(--nx-text);
    letter-spacing: -.025em;
    line-height: 1.35;
}

body.order-product #orderManager p,
body.order-product #orderManager .text-muted {
    color: var(--nx-muted);
}

body.order-product #orderManager hr {
    margin: 22px 0;
    border-color: var(--nx-border);
    opacity: 1;
}

/* Billing cycle and all form fields */
body.order-product #orderManager .form-control,
body.order-product #orderManager .form-select,
body.order-product #orderManager input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.order-product #orderManager select,
body.order-product #orderManager textarea {
    max-width: 100%;
    border: 1px solid #dce4f3;
    border-radius: 9px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.order-product #orderManager .form-control:focus,
body.order-product #orderManager .form-select:focus,
body.order-product #orderManager input:focus,
body.order-product #orderManager select:focus,
body.order-product #orderManager textarea:focus {
    border-color: var(--nx-primary);
    box-shadow: 0 0 0 3px rgba(56, 103, 245, .11);
}

/* Domain registration, transfer and own-domain navigation */
body.order-product #orderManager .nav-tabs {
    gap: 5px;
    border-bottom: 1px solid var(--nx-border);
}

body.order-product #orderManager .nav-tabs .nav-link {
    padding: 9px 13px;
    color: var(--nx-muted);
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    transition: color .2s ease, background .2s ease;
}

body.order-product #orderManager .nav-tabs .nav-link:hover {
    color: var(--nx-primary);
    background: var(--nx-soft);
}

body.order-product #orderManager .nav-tabs .nav-link.active {
    color: var(--nx-primary);
    font-weight: 650;
    background: #fff;
    border-color: var(--nx-border) var(--nx-border) #fff;
}

/* Buttons: Check, Next, Continue and other primary actions */
body.order-product #orderManager .btn-primary,
body.order-product #orderManager button[type="submit"],
body.order-product #orderManager input[type="submit"] {
    border: 0;
    border-radius: 9px;
    background: linear-gradient(110deg, var(--nx-primary), var(--nx-secondary));
    box-shadow: 0 5px 13px rgba(70, 91, 220, .17);
    font-weight: 650;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

body.order-product #orderManager .btn-primary:hover,
body.order-product #orderManager button[type="submit"]:hover,
body.order-product #orderManager input[type="submit"]:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 8px 19px rgba(70, 91, 220, .25);
}

body.order-product #orderManager .btn-primary:active,
body.order-product #orderManager button[type="submit"]:active {
    transform: translateY(0);
}

/* Payment methods and checkout summary surfaces */
body.order-product #orderManager .card,
body.order-product #orderManager .list-group-item {
    border-color: var(--nx-border);
    border-radius: 10px;
}

body.order-product #orderManager .list-group-item {
    padding: 13px 15px;
    transition: background .2s ease, border-color .2s ease;
}

body.order-product #orderManager .list-group-item:hover {
    background: var(--nx-soft);
}

/* Focus visibility for keyboard users */
body.order-product #orderManager a:focus-visible,
body.order-product #orderManager button:focus-visible {
    outline: 3px solid rgba(56, 103, 245, .35);
    outline-offset: 2px;
}

/* Responsive spacing */
@media (max-width: 767.98px) {
    body.order-product .content-block .card > .card-header,
    body.order-product .content-block .card > .card-body {
        padding: 15px;
    }

    body.order-product #orderManager .accordion-body {
        padding: 14px;
    }

    body.order-product #orderManager .accordion-button {
        padding: 13px 14px;
    }

    body.order-product #orderManager .nav-tabs {
        flex-wrap: wrap;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    body.order-product #wrapper,
    body.order-product #orderManager {
        animation: none !important;
    }

    body.order-product #orderManager *,
    body.order-product #orderManager *::before,
    body.order-product #orderManager *::after,
    body.order-product .content-block .card {
        transition: none !important;
    }
}

/* =====================================================
   Nubryx Checkout Layout
===================================================== */

.nbx-checkout-page{
    max-width:1400px;
    margin:0 auto;
    padding:16px 20px;
}

.nbx-checkout-hero{
    background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);
    border-radius:16px;
    padding:28px 36px;
    margin-bottom:20px;
    border:1px solid #e5e7eb;
}

.nbx-checkout-hero h1{
    font-size:38px;
    font-weight:700;
    margin-bottom:8px;
}

.nbx-checkout-hero p{
    font-size:17px;
    color:#6b7280;
    margin-bottom:16px;
    max-width:760px;
}

.nbx-trust-items{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.nbx-trust-items div{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:999px;
    font-size:14px;
    font-weight:600;
}

.nbx-summary-card{
    position:sticky;
    top:100px;
    border-radius:14px;
}

.nbx-summary-card h4{
    font-weight:700;
}

@media (max-width:992px){

    .nbx-summary-card{
        position:static;
        margin-top:30px;
    }

}

.nubryx-category-card{
transition:.25s;
border-radius:16px;
}

.nubryx-category-card:hover{
transform:translateY(-4px);
box-shadow:0 12px 30px rgba(0,0,0,.08)!important;
}

.nubryx-plan-card{
border-radius:12px;
transition:.2s;
}

.nubryx-plan-card:hover{
border:1px solid #2563eb;
transform:translateX(4px);
}
/* ---------- Product cards ---------- */

.nubryx-product-card{
    border:1px solid #e8edf7;
    border-radius:14px;
    transition:.25s;
    height:100%;
}

.nubryx-product-card:hover{
    transform:translateY(-4px);
    border-color:#5278ff;
    box-shadow:0 16px 40px rgba(30,60,120,.12);
}

.nubryx-product-card .badge{
    font-weight:600;
}

.nubryx-product-card h5{
    margin-bottom:12px;
}

.nubryx-product-card p{
    color:#667085;
}
/* ---------- Phase 4 Layout ---------- */

.nbx-order-shell{

    border-radius:20px;

    box-shadow:0 20px 60px rgba(0,0,0,.08);

}

.nbx-sidebar{

    position:sticky;

    top:100px;

}

#nbx-order-summary{

    background:#fff;

    border:1px solid #e7ecf5;

    border-radius:18px;

    padding:24px;

    min-height:350px;

    box-shadow:0 8px 30px rgba(0,0,0,.05);

}
/* =====================================================
   Phase 5.1 - Checkout Layout Improvements
===================================================== */

#orderManager{
    border:1px solid #e5e7eb;
    border-radius:18px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 10px 35px rgba(15,23,42,.05);
}

#orderManager .accordion-item{
    border:none;
}

#orderManager .accordion-button{
    min-height:72px;
    background:#fff;
    font-size:18px;
    font-weight:600;
    padding:20px 26px;
}

#orderManager .accordion-button:not(.collapsed){
    background:#f7fbff;
    color:#2563eb;
}

#orderManager .accordion-button:focus{
    box-shadow:none;
}

#orderManager .accordion-body{
    padding:32px;
}

.nubryx-plan-card{

    border-radius:18px;

    border:1px solid #e5e7eb;

    transition:.25s;

    overflow:hidden;

    background:#fff;

}

.nubryx-plan-card:hover{

    transform:translateY(-5px);

    box-shadow:0 18px 40px rgba(0,0,0,.08);

    border-color:#2563eb;

}

.nubryx-plan-card .card-body{

    padding:28px;

}


.btn-primary{

    border-radius:12px;

    min-height:52px;

    font-weight:600;

}


.form-control,
.form-select{

    border-radius:12px;

    min-height:48px;

}
/* Compact Checkout Header */

.nbx-checkout-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    margin-bottom:24px;
    padding-bottom:18px;
    border-bottom:1px solid #e5e7eb;
}

.nbx-checkout-header h2{
    margin:0;
    font-size:30px;
    font-weight:700;
}

.nbx-checkout-header p{
    margin-top:6px;
    color:#6b7280;
}

.nbx-checkout-badges{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.nbx-checkout-badges span{
    padding:8px 14px;
    border-radius:999px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    font-size:14px;
    font-weight:600;
}

@media(max-width:992px){

.nbx-checkout-header{

flex-direction:column;

align-items:flex-start;

}

}
