/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* Custom CSS for Nexus Theme
 *
 * This file allows you to customize the theme colors and styles for the entire Nexus template.
 *
 * To customize colors:
 * - Replace the var() references with your own hex colors or other CSS values.
 * - For example, instead of --primary: #4b5563; use --primary: #your-color;
 * - You can also override any CSS properties here.
 */

:root {
    --white: #fff;

    /* Neutral shades */
    --neutral-50: #fbf9fa;
    --neutral-100: #f4f5f7;
    --neutral-200: #e4e4e7;
    --neutral-300: #d0d5dd;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --neutral-950: #030712;

    /* Neutral shades */
    /* define own pallet with brand colors */
    --primary-50: var(--neutral-50);
    --primary-100: var(--neutral-100);
    --primary-200: var(--neutral-200);
    --primary-300: var(--neutral-300);
    --primary-400: var(--neutral-400);
    --primary-500: var(--neutral-500);
    --primary-600: var(--neutral-600);
    --primary-700: var(--neutral-700);
    --primary-800: var(--neutral-800);
    --primary-900: var(--neutral-900);
    --primary-950: var(--neutral-900);

    /* Primary colors */
    /* Use shades from comments if `primary` colors use other colors, then neutral */
    --primary: var(--neutral-900);          /* var(--primary-600) */
    --primary-lifted: var(--neutral-800);   /* var(--primary-700) */
    --primary-accented: var(--neutral-700); /* var(--primary-800) */

    /* Secondary colors */
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Success colors */
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    /* Info colors */
    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    /* Notice colors */
    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    /* Warning colors */
    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    /* Error colors */
    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    /* Grayscale colors */
    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    /* Neutral colors */
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text neutral colors */
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    /* Border neutral colors */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* Background neutral colors */
    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    /* Additional colors */
    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    /* Additional custom properties */
    /* Font sizes */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    /* Spacing */
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    /* Rounding */
    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

    /* Other */
    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* NOTE: all HSL values below converted to hex (including hsl(var(--x))
 * calls further down this file, which are now plain var(--x) references
 * since the variables themselves store hex colors). Where an
 * alpha/opacity was applied via hsl(var(--x) / N), the value has been
 * pre-computed into an 8-digit hex (#RRGGBBAA) literal.
 */
:root {
    --background: #FFFFFF;
    --foreground: #243342;
    --card: #FFFFFF;
    --card-foreground: #243342;
    --popover: #FFFFFF;
    --popover-foreground: #243342;
    --primary: #FF4400;
    --primary-foreground: #FFFFFF;
    --secondary: #2E95B8;
    --secondary-foreground: #FFFFFF;
    --muted: #F3F5F7;
    --muted-foreground: #6C8093;
    --accent: #2E95B8;
    --accent-foreground: #FFFFFF;
    --destructive: #EF4343;
    --destructive-foreground: #FFFFFF;
    --warning: #F59F0A;
    --warning-foreground: #243342;
    --border: #E0E6EB;
    --input: #E0E6EB;
    --ring: #FF4400;
    --radius: .5rem;
    --navy: #243342;
    --cyan: #00B4F0;
    --orange: #FF4400;
    --teal: #2E95B8;
    --teal-light: #73CBE8;
    --warm-bg: #FAF7F5;
    --surface: #F3F5F7;
    --surface-hover: #EAEDF0;
    --gradient-hero: linear-gradient(135deg, #243342, #394D60);
    --success: #2BAB6F;
    --success-foreground: #FFFFFF;
    --shadow-card: 0 4px 20px -4px #A3B3C24D;
    --shadow-hover: 0 8px 30px -4px #8599AD4D;
    --sidebar-background: #FFFFFF;
    --sidebar-foreground: #243342;
    --sidebar-primary: #FF4400;
    --sidebar-primary-foreground: #FFFFFF;
    --sidebar-accent: #F3F5F7;
    --sidebar-accent-foreground: #243342;
    --sidebar-border: #E0E6EB;
    --sidebar-ring: #FF4400;
    --huk-green: #2fbf71;
}


.text-primary {
    color: var(--primary) !important;
}

header.header .search {
    width: 325px;
    border: 1px solid var(--border);
}
header.header .search .btn, header.header .search .form-control {
    height: 2.5rem;
}

header.header .navbar-nav {
    margin-top: unset;
    margin-bottom: unset;
}

header.header .dropdown-menu {
    position: absolute;
    left: -2em;
    top: 1.5em;
    width: fit-content;
}

.lucide-trash2 {
    height: 1.5em;
    width: auto;
}

[style*="background-color:#ffffd2"][style*="font-size:16px"][style*="text-align:center"] {
    display: none !important;
}

.navbar-nav #Secondary_Navbar-Account > a {
  color: var(--primary);
  background: #FF44000D;
  padding: 0.3em 0.85em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #FF440040;
}

.navbar-nav #Secondary_Navbar-Account > a:hover {
  color: white;
  background-color: #FF4400E6;
  box-shadow: 0 4px 15px -3px #FF440066;
}

/* Primary menu (above breadcrumb) */
#main-menu {
    background: #fff;
    border-bottom: 1px solid #e4e7ec; /* hsl(210 20% 90%) */
    font-family: "Open Sans", system-ui, sans-serif;
}
#main-menu .navbar {
    padding: 0;
    min-height: 3.5rem;
}
#main-menu .navbar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 1200px) {
    #main-menu .navbar-nav { gap: 2rem; }
}
#main-menu .navbar-nav > li:not(#Secondary_Navbar-Account) > a:not(.btn) {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #243342; /* foreground */
    text-decoration: none;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
#main-menu .navbar-nav > li:not(#Secondary_Navbar-Account) > a:not(.btn):hover,
#main-menu .navbar-nav > li:not(#Secondary_Navbar-Account) > a:not(.btn):focus,
#main-menu .navbar-nav > li.show:not(#Secondary_Navbar-Account) > a:not(.btn) {
    color: #ff4400; /* primary */
}
/* lucide chevron-down instead of the bootstrap caret */
#main-menu .dropdown-toggle::after {
    content: "";
    border: 0;
    margin: 0;
    width: 0.875rem;
    height: 0.875rem;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
#main-menu .dropdown-menu {
    position: absolute;
    margin-top: 0;
    padding: 0.5rem;
    min-width: 12rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 8px 30px -4px rgba(120, 140, 160, 0.3);
}
#main-menu .dropdown-menu li {
    list-style: none;
}
#main-menu .dropdown-item {
    padding: 0.5rem 0.75rem;
    border-radius: calc(0.5rem - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    color: #243342;
    transition: color 0.15s, background-color 0.15s;
}
#main-menu .dropdown-item:hover,
#main-menu .dropdown-item:focus {
    color: #ff4400;
    background: #f3f5f7; /* surface / muted */
}
#main-menu .dropdown-divider {
    margin: 0.35rem 0;
    border-top-color: #e4e7ec;
}
#main-menu .navbar-toggler {
    height: 2.75rem;
    width: 2.75rem;
    margin: 0.5rem 0;
    border: 0;
    border-radius: calc(0.5rem - 2px);
    color: #243342;
}
#main-menu .navbar-toggler:hover {
    background: #f3f5f7;
}
@media (max-width: 991.98px) {
    #main-menu .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        padding-bottom: 0.5rem;
    }
    #main-menu .navbar-nav > li {
        width: 100%;
    }
    #main-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 0;
    }
}

/* Basket + account sit on the far right, keeping their existing style */
#main-menu .navbar-right {
    margin-left: auto;
    gap: 1rem;
}
#main-menu .navbar-right .dropdown-menu {
    right: 0;
    left: auto;
}
@media (max-width: 991.98px) {
    /* basket + account: one tidy row under the links, separated by a divider */
    #main-menu .navbar-nav.navbar-right {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 0.5rem;
        margin: 0;
        padding: 0 0 2rem;
        border-top: 0;
    }
    #main-menu .navbar-right > li {
        width: auto;
    }
    #main-menu .navbar-right > li > a {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }
    #main-menu .navbar-right .cart-btn {
        padding-left: 0;
    }
    #main-menu .navbar-right .dropdown-menu {
        position: absolute;
        left: 0;
        right: auto;
        box-shadow: 0 8px 30px -4px rgba(120, 140, 160, 0.3);
        border: 1px solid #e4e7ec;
    }
}

/* Logo, menu, basket and account share one line */
#main-menu .navbar-brand {
    padding: 0;
    margin: 0 2rem 0 0;
    display: flex;
    align-items: center;
}
#main-menu .logo-img {
    max-width: 400px;
    max-height: 60px;
}
#main-menu .navbar-header {
    padding: 0.5rem 0;
}
#main-menu .navbar-collapse {
    flex-grow: 1;
}
@media (max-width: 991.98px) {
    #main-menu .navbar-header {
        width: 100%;
        justify-content: space-between;
    }
    #main-menu .navbar-brand {
        margin-right: 1rem;
    }
    #main-menu .logo-img {
        max-width: calc(100vw - 6rem);
    }
}

/* Bootstrap zeroes .container padding on collapsed navbars; keep it aligned with the page container */
#main-menu .navbar > .container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Tighter spacing so everything fits on one line between 992px and 1199px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #main-menu .navbar-nav {
        gap: 1rem;
    }
    #main-menu .navbar-brand {
        margin-right: 1rem;
    }
}

/* Vertically centre the chevron on the account pill */
#main-menu #Secondary_Navbar-Account > a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
#main-menu .dropdown-toggle::after {
    vertical-align: middle;
    flex-shrink: 0;
}

/* Basket stays visible next to the hamburger on small screens */
#main-menu .hukMobileActions .navbar-toggler {
    margin: 0;
}
#main-menu .hukMobileActions {
    gap: 1rem;
}

/* Basket button: original header toolbar style */
#main-menu .cart-btn {
    position: relative;
    overflow: visible !important;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.25rem;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}
#main-menu .cart-btn:hover,
#main-menu .cart-btn:focus {
    color: #666;
    box-shadow: none;
}
#main-menu .cart-btn .badge {
    position: absolute;
    right: -10px;
    top: -11px;
    font-size: 10px;
    padding: 6px 8px;
}
#main-menu .cart-btn svg {
    display: block;
}

/* My Services list: text columns left, figures/status right; headers follow their column */
#tableServicesList thead th:nth-child(2),
#tableServicesList tbody td:nth-child(2) {
    text-align: left !important;
}
#tableServicesList thead th:nth-child(n+3),
#tableServicesList tbody td:nth-child(n+3) {
    text-align: right !important;
}
/* keep right-aligned cells flush with their header text (headers reserve 26px for the sort arrows) */
#tableServicesList tbody td:nth-child(n+3) {
    padding-right: 26px;
}

/* Hide "View More..." (and its empty footer) when there is nothing left to reveal */
.btn-view-more.disabled {
    display: none;
}
#servicesPanel .card-footer:has(.btn-view-more.disabled) {
    display: none;
}

/* Web forwarding buttons: same look as the order form buttons (huk_supreme_comparison) */
.huk-webforwarding .btn-primary,
.huk-webforwarding .btn-outline-primary {
    border-radius: var(--radius);
    padding: 0.625rem 1.25rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.huk-webforwarding .btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
}
.huk-webforwarding .btn-primary:hover,
.huk-webforwarding .btn-primary:focus {
    background-color: color-mix(in srgb, var(--primary) 90%, transparent);
    box-shadow: 0 4px 15px -3px color-mix(in srgb, var(--primary) 40%, transparent);
}
.huk-webforwarding .btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.huk-webforwarding .btn-outline-primary:hover,
.huk-webforwarding .btn-outline-primary:focus {
    background-color: var(--primary);
    color: var(--primary-foreground);
}
.huk-webforwarding .btn-default {
    background-color: var(--muted);
    color: var(--muted-foreground);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.huk-webforwarding .btn-default:hover,
.huk-webforwarding .btn-default:focus {
    background-color: var(--surface-hover);
    color: var(--foreground);
}

/* Cancel all forwarding: grey outline. The theme's `body #main-body .btn-outline-primary`
   (black) outranks the rules above, so match its specificity. */
body #main-body .huk-webforwarding .btn-outline-primary {
    background-color: transparent;
    color: var(--muted-foreground);
    border: 1px solid var(--muted-foreground);
    border-radius: var(--radius);
}
body #main-body .huk-webforwarding .btn-outline-primary:hover,
body #main-body .huk-webforwarding .btn-outline-primary:focus {
    background-color: var(--bg-inverted);
    border-color: var(--bg-inverted);
    color: #fff;
}

/* DNS management tables: stacked, labelled cards when the content area gets narrow */
.huk-dns .huk-hiddenrow td { padding: 0 !important; }
@media (max-width: 1199.98px) {
    .huk-dns .table-responsive { overflow: visible; }
    .huk-dns #DNSTable,
    .huk-dns #DNSTable tbody,
    .huk-dns #DNSTable tr,
    .huk-dns #DNSTable td {
        display: block;
        width: 100% !important;
    }
    .huk-dns #DNSTable thead,
    .huk-dns #DNSTable tr.huk-headrow {
        position: absolute;
        width: 1px !important;
        height: 1px;
        padding: 0;
        margin: -1px;
        border: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
    .huk-dns #DNSTable tr.huk-headrow th { display: block; }
    .huk-dns #DNSTable tr:not(.huk-headrow) {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--card);
    }
    .huk-dns #DNSTable td {
        padding: 0.35rem 0 !important;
        text-align: left !important;
    }
    .huk-dns #DNSTable td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--muted-foreground);
    }
    /* actions cell: no label, keep the Delete button compact */
    .huk-dns #DNSTable td:last-child .btn { width: auto; }
    /* rows that only carry hidden inputs: no empty cards */
    .huk-dns #DNSTable tr.huk-hiddenrow,
    .huk-dns #DNSTable tr.huk-spacer {
        display: none;
    }
    .huk-dns #DNSTable tr.huk-hiddenrow.errorrow {
        display: block;
        height: 0.5rem;
        padding: 0;
        background: var(--destructive);
        border-color: var(--destructive);
    }
    .huk-dns #DNSTable tr.huk-hiddenrow.errorrow td { display: none; }
}

/* Select fields: same custom chevron as the order form (huk_supreme_comparison) */
.huk-webforwarding select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%236C8093' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 11px;
}

/* Save / Back (and the web forwarding Back): one shared size and a tidy row */
.huk-webforwarding .btn-default {
    border-radius: var(--radius);
    padding: 0.625rem 1.25rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-size: 1rem;
}
.huk-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Firewall rules partial (showRules.tpl): rule tables, edit dialog */
.huk-fw .rules { width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.huk-fw .rules th { background: var(--muted); color: var(--foreground); font-weight: 600; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; }
.huk-fw .rules th.actions, .huk-fw .rules td.actions { width: 150px; text-align: center; }
.huk-fw .rules td { padding: 0.6rem 0.75rem; vertical-align: middle; border-bottom: 1px solid var(--border); }
.huk-fw .rules tr.rowone td { background: #fff; }
.huk-fw .rules tr.rowtwo td { background: var(--muted); }
.huk-fw .rules tr.spacer { display: none; }
.huk-fw .rules .ruledescription { line-height: 1.5; }
.huk-fw .rules th.comment { width: 110px; font-weight: 600; }
.huk-fw .rules td.raw { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8125rem; color: var(--muted-foreground); }
.huk-fw .rules td.actions input.icon { margin: 0.2rem; padding: 0.25rem; box-sizing: content-box; border: 0; background: transparent; box-shadow: none; border-radius: 0.25rem; cursor: pointer; opacity: 0.75; transition: opacity 0.15s, background-color 0.15s; }
.huk-fw .rules td.actions input.icon:hover { opacity: 1; background-color: var(--surface-hover); }
.huk-fw #saving.pleasewait { padding: 0.5rem 0; }

#editdialog fieldset { border: 0; padding: 0; margin: 0; }
#editdialog fieldset br { display: none; }
#editdialog label { display: block; margin: 0.9rem 0 0.25rem; font-weight: 600; }
#editdialog #editruletip { color: var(--muted-foreground); margin-bottom: 0.25rem; }
#editdialog select, #editdialog input[type="text"] { width: auto; max-width: 100%; margin-right: 0.35rem; }
#editdialog .wide { width: 100%; }
#editdialog .negselect { min-width: 6rem; }
@media (max-width: 575.98px) {
    #editdialog select, #editdialog input[type="text"] { display: block; width: 100%; margin: 0 0 0.35rem; }
    .ui-dialog { max-width: 94vw; }
}

/* Page title + tagline at the top of the content column (as in the six theme) */
.primary-content > .huk-page-header {
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.primary-content > .huk-page-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--foreground);
}
.primary-content > .huk-page-header h1 small {
    margin-left: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted-foreground);
}

/* MarketConnect SSO tile (e.g. SiteLock "Choose Domain" + Manage) */
.panel-mc-sso {
    padding: 0 0.25rem;
}
/* no top/bottom padding around the SSO tile content */
.client-home-cards div[menuitemname=SitelockLogin] > .card-body,
.client-home-cards .card-body:has(> .panel-mc-sso) {
    padding-top: 0;
    padding-bottom: 0;
}
.panel-mc-sso .row {
    align-items: center;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}
.panel-mc-sso .col-sm-6 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.panel-mc-sso img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    margin: 0 auto;
}
@media (min-width: 576px) {
    /* logo column hugs the icon, the form takes the remaining width */
    .panel-mc-sso .col-sm-6:first-child {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        padding-right: 1rem;
    }
    .panel-mc-sso .col-sm-6:last-child {
        flex: 1 1 0;
        width: auto;
        max-width: 100%;
        min-width: 0;
    }
}
.panel-mc-sso form {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-foreground);
}
.panel-mc-sso .form-control {
    margin: 0.35rem 0 0;
    height: 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: #fff;
    color: var(--foreground);
    font-size: 0.9rem;
    font-weight: 400;
}
.panel-mc-sso select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%236C8093' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 11px;
}
.panel-mc-sso .form-control:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 15%, transparent);
}
.panel-mc-sso .btn-service-sso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    width: 100%;
    margin-top: 0.75rem;
    min-height: 2.75rem;
    padding: 0.625rem 1.25rem;
    border: 0;
    border-radius: var(--radius);
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.panel-mc-sso .btn-service-sso:hover,
.panel-mc-sso .btn-service-sso:focus {
    background-color: color-mix(in srgb, var(--primary) 90%, transparent);
    box-shadow: 0 4px 15px -3px color-mix(in srgb, var(--primary) 40%, transparent);
}
.panel-mc-sso .login-feedback:empty {
    display: none;
}
.panel-mc-sso small {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-align: center;
}
@media (max-width: 575.98px) {
    .panel-mc-sso .col-sm-6:first-child {
        margin-bottom: 0.75rem;
    }
}

/* Recent Support Tickets tile: no top/bottom padding around the body content */
#ticketsPanel > .card-body {
    padding-top: 0;
    padding-bottom: 0;
}
#ticketsPanel > .card-body > p:last-child {
    margin-bottom: 0;
}

/* Order form: with the Categories panel removed (hook_hideCartCategories.php) the sidebar
   column is empty. Close it and let the page body use the full width. */
#order-standard_cart .cart-sidebar:not(:has(.card)) {
    display: none !important;
}
#order-standard_cart .cart-sidebar:not(:has(.card)) ~ .cart-body {
    width: 100% !important;
    float: none !important;
    flex: 1 1 auto;
}

/* Order form product / addon cards: clip the header and body to the card's rounded corners */
body #order-standard_cart .products .product {
    overflow: hidden;
}

/* Support tickets list (our own template, and the SupportPal one on dev):
   first column left, the rest right; headers follow their column */
#tableTicketsList thead th:nth-child(1),
#tableTicketsList tbody td:nth-child(1),
body.huk-page-supporttickets .dataTables_wrapper table.table-list thead th:nth-child(1),
body.huk-page-supporttickets .dataTables_wrapper table.table-list tbody td:nth-child(1) {
    text-align: left !important;
}
#tableTicketsList thead th:nth-child(n+2),
#tableTicketsList tbody td:nth-child(n+2),
body.huk-page-supporttickets .dataTables_wrapper table.table-list thead th:nth-child(n+2),
body.huk-page-supporttickets .dataTables_wrapper table.table-list tbody td:nth-child(n+2) {
    text-align: right !important;
    /* 26px is what sortable headers reserve for the sort arrows; use it on every
       right-aligned header and cell so entries line up with their header text */
    padding-right: 26px;
}

/* Payment method form: billing address picker as selectable address cards */
.huk-address-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.huk-address-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.huk-address-card:hover {
    border-color: var(--muted-foreground);
}
.huk-address-card:has(.checked),
.huk-address-card:has(input:checked) {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 5%, #fff);
    box-shadow: 0 0 0 1px var(--primary);
}
.huk-address-card .iradio_square-blue {
    flex-shrink: 0;
    margin: 0.1rem 0 0;
}
.huk-address-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    line-height: 1.45;
}
.huk-address-text .name {
    font-weight: 600;
    color: var(--foreground);
}
.huk-address-lines {
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

/* Payment method form: buttons in the order form's visual identity
   (Save = "Checkout" look, Cancel / Add a new address = "Continue Shopping" look) */
body .huk-payform .btn-primary,
body #modalBillingAddress .btn-primary,
body .huk-payform .btn-default,
body #modalBillingAddress .btn-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 2.75rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body .huk-payform .btn-primary,
body #modalBillingAddress .btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
}
body .huk-payform .btn-primary:hover,
body .huk-payform .btn-primary:focus,
body #modalBillingAddress .btn-primary:hover,
body #modalBillingAddress .btn-primary:focus {
    background-color: color-mix(in srgb, var(--primary) 90%, transparent);
    color: var(--primary-foreground);
    box-shadow: 0 4px 15px -3px color-mix(in srgb, var(--primary) 40%, transparent);
}
body .huk-payform .btn-default,
body #modalBillingAddress .btn-default {
    background-color: color-mix(in srgb, var(--muted) 30%, transparent);
    color: var(--foreground);
    border: 1px solid var(--border);
}
body .huk-payform .btn-default:hover,
body .huk-payform .btn-default:focus,
body #modalBillingAddress .btn-default:hover,
body #modalBillingAddress .btn-default:focus {
    background-color: var(--background);
    color: var(--foreground);
    border-color: var(--border);
    box-shadow: none;
}
body .huk-payform .submit-container .btn + .btn {
    margin-left: 0.5rem;
}

/* "Where do I find this?" - a small text link, not a button */
body .huk-payform #cvvWhereLink {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    background: transparent !important;
    border: 0;
    color: var(--muted-foreground);
    text-decoration: underline;
    box-shadow: none;
}
body .huk-payform #cvvWhereLink:hover,
body .huk-payform #cvvWhereLink:focus {
    background: transparent !important;
    color: var(--primary) !important;
}
