/* ============================
   GENERAL CART STYLE MATCHING CLIENT AREA
   ============================ */

.view-cart-items,
.view-cart-items *,
.cart-body,
.cart-body *,
.standard-cart .view-cart-items,
.standard-cart .view-cart-items *,
.standard-cart .cart-body,
.standard-cart .cart-body * {
    color: #e2e8f0 !important;
    /* light text for dark background */
}

/* Panel backgrounds */
.view-cart-items .panel,
.view-cart-items .panel-body,
.cart-body .panel,
.cart-body .panel-body,
.standard-cart .view-cart-items .panel,
.standard-cart .cart-body .panel {
    background: #0f172a !important;
    /* dark background */
    border: 1px solid #1e293b !important;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.1) !important;
}

/* Product titles */
.product-name,
.product-title,
.product-details h3,
.standard-cart .product .product-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Prices */
.product .price,
.order-summary .subtotal,
.order-summary .total-due,
.order-summary .price {
    color: #38bdf8 !important;
    /* neon blue */
    font-weight: 700 !important;
}

/* Buttons */
.standard-cart .btn,
.standard-cart button,
.standard-cart input[type="submit"],
.standard-cart .btn-primary {
    background: #00BFFF !important;
    color: #000 !important;
    border: 1px solid #00BFFF !important;
    border-radius: 6px !important;
    text-shadow: none !important;
    transition: 0.3s;
}

.standard-cart .btn:hover {
    background: #00E5FF !important;
    color: #000 !important;
}


/* ===============================
   CHECKOUT CREDIT CARD SECTION
   =============================== */

#order-standard_cart .credit-card-form,
#order-standard_cart .cc-input-container,
#order-standard_cart .payment-methods,
#order-standard_cart .card-details {
    border: 1px solid rgba(56, 189, 248, 0.3);
    /* blue border */
    border-radius: 10px;
    padding: 20px;
    background: #1e293b;
    /* dark background */
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Card inputs */
#order-standard_cart .credit-card-form input[type="text"],
#order-standard_cart .credit-card-form input[type="tel"],
#order-standard_cart .credit-card-form input[type="number"],
#order-standard_cart .credit-card-form input[type="password"],
#order-standard_cart .cc-input-container input,
#order-standard_cart .card-details input {
    background: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

/* Focus state */
#order-standard_cart .credit-card-form input:focus,
#order-standard_cart .cc-input-container input:focus,
#order-standard_cart .card-details input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
    outline: none;
}

/* Labels */
#order-standard_cart .credit-card-form label,
#order-standard_cart .cc-input-container label,
#order-standard_cart .card-details label {
    color: #cbd5e1 !important;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

/* Placeholder text */
#order-standard_cart .credit-card-form ::placeholder,
#order-standard_cart .cc-input-container ::placeholder,
#order-standard_cart .card-details ::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* CVV icons + small text */
#order-standard_cart .input-group-addon,
#order-standard_cart .fa-question-circle {
    color: #38bdf8 !important;
}

/* Hover border glow */
#order-standard_cart .credit-card-form:hover,
#order-standard_cart .card-details:hover {
    border-color: #38bdf8;
    transition: 0.3s;
}

/* FORCE Order Summary Background */
#orderSummary,
#orderSummary * {
    background-color: #0d1b2a !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}
/* show a simple blue indicator when WHMCS marks the element as checked */
.iradio_square-blue.checked::after,
.icheckbox_square-blue.checked::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 10px !important;
    height: 10px !important;
    background: #38bdf8 !important;
    /* only color changed — no layout/spacing tweaks */
    z-index: 2 !important;
    pointer-events: none !important;
}

/* checkbox uses small square instead of round */
.icheckbox_square-blue.checked::after {
    border-radius: 2px !important;
}

/* radio keeps round */
.iradio_square-blue.checked::after {
    border-radius: 50% !important;
}
/* MINIMAL — restore visible iCheck indicators only (no spacing/layout changes) */
.iradio_square-blue,
.icheckbox_square-blue {
    position: relative !important;
    /* needed so pseudo-element doesn't affect layout */
    background-image: none !important;
    /* keep original sprite hidden so we don't rely on paths */
    background-color: transparent !important;
}

/* Sidebar heading bar styling for "Categories" and "Actions" */
.sidebar .panel-heading,
#order-standard_cart .panel-sidebar .panel-heading,
#categories .panel-heading {
    background-color: #0ea5e9 !important;
    /* bright blue accent */
    color: #ffffff !important;
    /* white text for contrast */
    font-weight: 600 !important;
    border: none !important;
    text-transform: uppercase;
}

/* Optional subtle glow or shadow to separate from panel body */
.sidebar .panel-heading {
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

/* Keep the expand/collapse caret (arrow) visible on dark */
.sidebar .panel-heading i,
.sidebar .panel-heading .fa {
    color: #ffffff !important;
}

/* ===============================
   FIX WHMCS CHECKOUT WHITE SECTIONS
   Match Client Area Dark Theme
   =============================== */

#order-standard_cart,
#order-standard_cart * {
    background: transparent !important;
    color: #e2e8f0 !important;
}

/* Replace all white/light sections */
#order-standard_cart .products .product,
#order-standard_cart .products .product header,
#order-standard_cart .products .product div,
#order-standard_cart .panel,
#order-standard_cart .panel-body,
#order-standard_cart .view-cart-items .item,
#order-standard_cart .view-cart-tabs .tab-content,
#order-standard_cart .view-cart-tabs .nav-tabs a[aria-selected="true"],
#order-standard_cart .domain-selection-options .option,
#order-standard_cart .summary-container,
#order-standard_cart .apply-credit-container,
#order-standard_cart .cc-input-container,
#order-standard_cart .order-summary,
#order-standard_cart .order-summary h2,
#order-standard_cart .order-summary .summary-totals,
#order-standard_cart .account-select-container div.account,
#order-standard_cart .account-select-container div.account.active {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.1) !important;
}

/* Fix alternating rows and hover */
#order-standard_cart .view-cart-items .item:nth-child(even),
#order-standard_cart .products .product:nth-child(even),
#order-standard_cart .domain-selection-options .option-selected {
    background-color: #16213a !important;
}

/* Sub-headings / borders */
#order-standard_cart .sub-heading,
#order-standard_cart .sub-heading-borderless {
    border-top: 1px solid #334155 !important;
}

#order-standard_cart .sub-heading span,
#order-standard_cart .sub-heading-borderless span {
    color: #38bdf8 !important;
    background-color: #0f172a !important;
}

/* Promo code / input backgrounds */
#order-standard_cart input,
#order-standard_cart select,
#order-standard_cart textarea {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    border-radius: 6px !important;
}

#order-standard_cart input:focus,
#order-standard_cart select:focus,
#order-standard_cart textarea:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.4) !important;
}

/* Buttons */
#order-standard_cart .btn,
#order-standard_cart button,
#order-standard_cart input[type="submit"] {
    background: #00BFFF !important;
    color: #000 !important;
    border: 1px solid #00BFFF !important;
    border-radius: 6px !important;
    transition: all 0.3s ease-in-out;
}

#order-standard_cart .btn:hover {
    background: #00E5FF !important;
}

/* Fix panel addon & payment boxes */
#order-standard_cart .panel-addon .panel-body,
#order-standard_cart .view-cart-gateway-checkout {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* Order summary total styling */
#order-standard_cart .order-summary .subtotal,
#order-standard_cart .order-summary .total-due-today,
#order-standard_cart .order-summary .price {
    color: #38bdf8 !important;
    font-weight: 700 !important;
}

/* Miscellaneous adjustments */
#order-standard_cart .view-cart-items-header,
#order-standard_cart .empty-cart .btn {
    background-color: #0ea5e9 !important;
    color: #000 !important;
}

/* Force domain availability headline colors (high specificity, only color) */

/* Available (green) */
#order-standard_cart .domain-checker-available,
.domain-checker-available,
#domain-lookup-primary-results .domain-checker-available,
.domain-checker-available *,
#order-standard_cart div.domain-checker-available {
    color: #22c55e !important;
}

/* Unavailable (red) */
#order-standard_cart .domain-checker-unavailable,
.domain-checker-unavailable,
#domain-lookup-primary-results .domain-checker-unavailable,
.domain-checker-unavailable *,
#order-standard_cart div.domain-checker-unavailable {
    color: #ef4444 !important;
}

/* Invalid / error (yellow) */
#order-standard_cart .domain-checker-invalid,
.domain-checker-invalid,
#domain-lookup-primary-results .domain-checker-invalid,
.domain-checker-invalid *,
#order-standard_cart div.domain-checker-invalid {
    color: #facc15 !important;
}
/* === Featured TLD Cards === */

/* Main card container */
.featured-tld {
    background-color: #0f172a !important;
    /* default dark navy */
    border-radius: 10px !important;
    border: 1px solid #1e293b !important;
    padding: 20px !important;
    text-align: center !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for card */
.featured-tld:hover {
    background-color: #1e293b !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25) !important;
}

/* Ensure image stays natural size */
.featured-tld .img-container img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    display: inline-block !important;
    background: #0f172a !important;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.1));
}

/* Price text styling */
.featured-tld .price {
    color: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    margin-top: 10px !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    display: inline-block !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* === Individual background colors per TLD === */

/* .co.za */
.featured-tld .price.coza,
.featured-tld.coza {
    background-color: #0f766e !important;
}

.featured-tld:hover .price.coza {
    background-color: #14b8a6 !important;
}

/* .com */
.featured-tld .price.com,
.featured-tld.com {
    background-color: #1d4ed8 !important;
}

.featured-tld:hover .price.com {
    background-color: #2563eb !important;
}