/* ================================
   ORDER SUMMARY – TABLE MODE
   ================================ */

/* CARD */
#orderSummary .order-summary {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* HEADER */
#orderSummary h2 {
    margin: 0;
    padding: 14px;
    background: linear-gradient(135deg,#2563eb,#1e40af);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

/* CONTENT */
#orderSummary .summary-container {
    padding: 16px;
    font-size: 13px;
}

/* PRODUCT TITLE */
#orderSummary .product-name {
    display: block;
    font-weight: 700;
    color: #2563eb;
}

#orderSummary .product-group {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

/* ===== TABLE LAYOUT FIX ===== */
#orderSummary .summary-container .clearfix {
    display: table !important;
    width: 100%;
    margin-bottom: 8px;
    table-layout: fixed;
}

/* LEFT CELL */
#orderSummary .summary-container .pull-left {
    display: table-cell !important;
    width: 70%;
    float: none !important;
    vertical-align: top;
    color: #334155;
    line-height: 1.4;
    padding-right: 10px;
    word-break: break-word;
}

/* RIGHT CELL */
#orderSummary .summary-container .pull-right {
    display: table-cell !important;
    width: 30%;
    float: none !important;
    vertical-align: top;
    text-align: right;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

/* DIVIDER */
#orderSummary .summary-totals {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

/* TOTAL */
#orderSummary .total-due-today {
    margin-top: 14px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
    text-align: center;
}

#orderSummary .total-due-today .amt {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #2563eb;
}

/* BUTTON */
#btnCompleteProductConfig {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg,#2563eb,#1e40af);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(37,99,235,.35);
}

/* MOBILE */
@media (max-width: 991px) {
    #orderSummary {
        margin-top: 20px !important;
    }
}


/* ======================================================
   WHMCS Custom Layout (Desktop + Mobile)
   Namespace: whmcs-
   Colors: #427acf / white
====================================================== */

:root {
    --whmcs-blue: #427acf;
    --whmcs-white: #ffffff;
    --whmcs-header-height: 60px;
    --whmcs-sidebar-width: 240px;
}

/* ================= HEADER ================= */

.whmcs-fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: var(--whmcs-header-height);
    background: var(--whmcs-white);
    border-bottom: 1px solid rgba(0,0,0,.08);
    z-index: 10000;
}

.whmcs-header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 12px;
}

/* Logo */
.whmcs-logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.whmcs-logo img {
    max-height: 38px;
    max-width: 150px;
}

/* Top Nav */
.whmcs-top-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.whmcs-top-nav a {
    color: var(--whmcs-blue);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.whmcs-top-nav .btn {
    background: var(--whmcs-blue);
    color: var(--whmcs-white);
    padding: 6px 12px;
    border-radius: 4px;
}

/* ================= SIDEBAR ================= */

.whmcs-sidebar {
    position: fixed;
    top: var(--whmcs-header-height);
    left: 0;
    width: var(--whmcs-sidebar-width);
    height: calc(100vh - var(--whmcs-header-height));
    background: var(--whmcs-blue);
    z-index: 9999;
    overflow-y: auto;
}

.whmcs-sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.whmcs-sidebar-item > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--whmcs-white);
    text-decoration: none;
    font-weight: 500;
}

.whmcs-sidebar-item > a:hover {
    background: rgba(255,255,255,.15);
}

.whmcs-submenu {
    display: none;
    background: rgba(255,255,255,.1);
}

.whmcs-sidebar-item.has-children:hover .whmcs-submenu {
    display: block;
}

.whmcs-submenu a {
    display: block;
    padding: 10px 34px;
    color: var(--whmcs-white);
}

/* ================= CONTENT OFFSET ================= */

#main-body {
    margin-top: var(--whmcs-header-height);
    margin-left: var(--whmcs-sidebar-width);
}

/* ================= MOBILE ================= */

.whmcs-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.whmcs-sidebar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--whmcs-blue);
    margin: 4px 0;
}

/* Overlay */
.whmcs-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9998;
    display: none;
}

/* ============ MOBILE BREAKPOINT ============ */
@media (max-width: 1080px) {

    /* Header: clean & compact */
    .whmcs-header-inner {
        justify-content: space-between;
    }

    .whmcs-top-nav {
        gap: 10px;
    }

    .whmcs-top-nav li:not(:last-child) {
        display: none; /* hide language + notifications */
    }

    /* Show hamburger */
    .whmcs-sidebar-toggle {
        display: block;
    }

    /* Sidebar becomes drawer */
    .whmcs-sidebar {
        transform: translateX(-100%);
        transition: transform .3s ease;
    }

    .whmcs-sidebar.active {
        transform: translateX(0);
    }

    /* Overlay */
    .whmcs-sidebar-overlay.active {
        display: block;
    }

    /* Content full width */
    #main-body {
        margin-left: 0;
    }
}

/* ================= WHMCS FIXES ================= */

/* Prevent breadcrumb hiding under header */
.breadcrumb {
    margin-top: 8px;
}

/* Prevent widgets touching header */
.container-fluid,
.container {
    padding-top: 8px;
}

/* ===============================
   Sidebar Balance Box
================================ */

.whmcs-sidebar-balance {
    list-style: none;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.25);
}

.whmcs-balance-box {
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.whmcs-balance-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.whmcs-balance-amount {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}
/* Top Up Button inside balance box */
.whmcs-balance-topup-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;

    background: #ffffff;
    color: #427acf;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    border-radius: 4px;
    transition: all 0.2s ease;
}

.whmcs-balance-topup-btn:hover {
    background: rgba(255,255,255,0.9);
    color: #2f5fb3;
}
/* ===============================
   DESKTOP: Hide ONLY custom sidebar
================================ */
@media (min-width: 1081px) {

    body.hide-custom-sidebar .whmcs-sidebar {
        display: none !important;
    }

    body.hide-custom-sidebar #main-body {
        margin-left: 0 !important;
    }
}
/* ===============================
   FIX: Hamburger icon collapsed
================================ */
.whmcs-sidebar-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
}

.whmcs-sidebar-toggle span {
    display: block !important;
    width: 24px;
    height: 2px;
    background-color: #427acf;
    margin: 5px 0;
    border-radius: 2px;
}
