/* NIBWOZ design tokens loaded inside the Nexus Cart Shadow DOM. */
@font-face {
    font-family: "Nibwoz Manrope";
    src: url("../../../nibwoz/fonts/manrope-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:host,
:root {
    --font-sans: "Nibwoz Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-inter: "Nibwoz Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --default-font-family: var(--font-sans);

    --vl-primary: #004fac;
    --vl-primary-lifted: #0b63c7;
    --vl-primary-accented: #003f8a;
    --vl-secondary: #334155;
    --vl-secondary-lifted: #475569;
    --vl-secondary-accented: #1e293b;
    --vl-success: #3a9544;
    --vl-success-lifted: #4aaa55;
    --vl-success-accented: #2d7736;
    --vl-info: #1677d2;
    --vl-info-lifted: #eaf4ff;
    --vl-info-accented: #0e5ea9;
    --vl-notice: #7f8c8d;
    --vl-notice-lifted: #eef1f2;
    --vl-notice-accented: #647172;
    --vl-warning: #d97706;
    --vl-warning-lifted: #fff7e6;
    --vl-warning-accented: #b45309;
    --vl-error: #c83d4d;
    --vl-error-lifted: #fff0f2;
    --vl-error-accented: #a92737;
    --vl-grayscale: #64748b;
    --vl-grayscale-lifted: #94a3b8;
    --vl-grayscale-accented: #475569;
    --vl-neutral: #64748b;
    --vl-neutral-lifted: #f1f5f9;
    --vl-neutral-accented: #334155;

    --vl-text-inverted: #ffffff;
    --vl-text-muted: #64748b;
    --vl-text-lifted: #475569;
    --vl-text-accented: #06162f;
    --vl-text: #334155;
    --vl-border-muted: #edf1f5;
    --vl-border: #d8e0e8;
    --vl-border-lifted: #c4ced9;
    --vl-border-accented: #004fac;
    --vl-bg: #ffffff;
    --vl-bg-muted: #f8fafc;
    --vl-bg-lifted: #f1f5f9;
    --vl-bg-accented: #eaf3ff;
    --vl-bg-inverted: #06162f;

    --vl-text-xs: 0.6875rem;
    --vl-text-sm: 0.75rem;
    --vl-text-md: 0.8125rem;
    --vl-text-lg: 0.875rem;
    --vl-outline-sm: 1px;
    --vl-outline-md: 2px;
    --vl-outline-lg: 3px;
    --vl-rounding-sm: 7px;
    --vl-rounding-md: 9px;
    --vl-rounding-lg: 12px;
    --vl-letter-spacing: 0;
    --vl-disabled-opacity: 0.55;
}

:host,
:host *,
:root,
:root * {
    font-family: "Nibwoz Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
    font-weight: 400;
}

button {
    min-height: 42px;
    border-radius: 9px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
}

input,
select,
textarea {
    border-radius: 9px;
}

/* Join an adjacent domain name and TLD selector without changing their values. */
input + select,
select + input {
    margin-left: -1px;
}

input:has(+ select) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

input + select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* The search keeps the SLD and TLD values required by WHMCS, but reads as one field. */
input:focus,
select:focus,
textarea:focus {
    outline-color: rgba(0, 79, 172, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    button {
        transition-duration: 0.01ms;
    }

    button:hover:not(:disabled) {
        transform: none;
    }
}

/*
 * Cart composition overrides.
 * Keep these rules semantic and isolated from main.min.js so a future Nexus
 * update only requires reviewing this file and the small viewcart.tpl override.
 */
:host {
    color: #334155;
    font-size: 13px;
    font-family: "Nibwoz Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

:host div,
:host span,
:host p,
:host a,
:host h1,
:host h2,
:host h3,
:host h4,
:host h5,
:host h6,
:host button,
:host input,
:host select,
:host textarea {
    font-family: "Nibwoz Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

:host .text-5xl,
:host .text-4xl,
:host .text-3xl {
    font-size: 20px !important;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

:host .text-2xl,
:host .text-xl {
    font-size: 16px !important;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

:host .text-lg,
:host .text-large {
    font-size: 14px !important;
    line-height: 1.5;
}

:host .text-base,
:host .text-medium {
    font-size: 13px !important;
    line-height: 1.5;
}

:host [class~="md:w-3/5"],
:host [class~="md:w-2/5"] {
    overflow: hidden;
    border: 1px solid #e1e7ee !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(6, 22, 47, 0.065) !important;
}

:host [class~="md:w-3/5"] {
    padding: 26px 28px !important;
    background: #ffffff !important;
}

:host [class~="md:w-2/5"] {
    padding: 26px 28px !important;
    background: #f8fafc !important;
}

:host [class~="md:w-3/5"] > *,
:host [class~="md:w-2/5"] > * {
    width: 100%;
}

:host .rounded-large,
:host .rounded-medium {
    border-color: #e1e7ee;
}

:host .rounded-large {
    border-radius: 12px !important;
}

:host .rounded-medium {
    border-radius: 9px !important;
}

:host .bg-muted {
    background-color: #f8fafc;
}

:host .bg-accented {
    background-color: #eef5fd;
}

:host hr,
:host [role="separator"] {
    border-color: #e5ebf1;
}

:host input,
:host select,
:host textarea {
    height: 42px !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-color: #d8e0e8 !important;
    background: transparent !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

:host input::placeholder,
:host textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

:host button {
    height: 42px !important;
    min-height: 42px !important;
    padding-top: 0 !important;
    padding-right: 18px !important;
    padding-bottom: 0 !important;
    padding-left: 18px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

:host button[class~="bg-primary"] {
    border-color: #004fac !important;
    background: #004fac !important;
    color: #fff !important;
    box-shadow: 0 7px 16px rgba(0, 79, 172, 0.16) !important;
}

:host button[class~="bg-primary"]:hover:not(:disabled) {
    border-color: #003f8a !important;
    background: #003f8a !important;
    box-shadow: 0 9px 20px rgba(0, 79, 172, 0.22) !important;
}

:host button:disabled:not([class~="bg-transparent"]) {
    border: 1px solid #d8e0e8 !important;
    background: #edf1f5 !important;
    color: #64748b !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

:host button[class*="p-3"][class*="gap-0"] {
    width: 42px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

:host button[class*="variant-ghost"],
:host button[class*="text-muted"] {
    box-shadow: none;
}

:host [class~="gap-8"] {
    gap: 24px;
}

:host [class~="gap-xl"] {
    gap: 20px;
}

:host [class~="gap-lg"] {
    gap: 16px;
}

:host [class~="my-20"] {
    margin-top: 32px !important;
    margin-bottom: 32px !important;
}

/* Domain module: normalize the search control without coupling to translations. */
:host([data-app="domain-module"]) [class~="md:pl-4"][class~="md:pr-4"] {
    padding-top: 24px !important;
    padding-bottom: 30px !important;
}

:host [class~="bg-accented"][class~="rounded-4xl"] {
    gap: 12px !important;
    padding: 20px !important;
    border: 1px solid #dbe8f7 !important;
    border-radius: 20px !important;
    background: #eef5fd !important;
}

:host [class~="bg-accented"][class~="rounded-4xl"] button[class~="invisible"],
:host [class~="bg-accented"][class~="rounded-4xl"] [class~="lg:flex-nowrap"]:empty {
    display: none !important;
}

:host [class~="bg-accented"][class~="rounded-4xl"] > [class~="justify-between"]:has(a[class~="underline"]) {
    justify-content: flex-end !important;
}

:host [class~="outline-8"][class~="rounded-large"] {
    min-height: 60px !important;
    padding: 8px 8px 8px 16px !important;
    border: 1px solid #d8e0e8 !important;
    border-radius: 12px !important;
    outline: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 9px 24px rgba(6, 22, 47, 0.075) !important;
}

:host [class~="outline-8"][class~="rounded-large"]:focus-within {
    border-color: #8eb9e8 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(0, 79, 172, 0.1), 0 9px 24px rgba(6, 22, 47, 0.075) !important;
}

:host [class~="outline-8"][class~="rounded-large"] input {
    min-width: 0 !important;
    padding-right: 12px !important;
    padding-left: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

:host [class~="outline-8"][class~="rounded-large"] button {
    flex: 0 0 auto;
    margin: 0 !important;
    white-space: nowrap;
}

:host [class~="bg-accented"][class~="rounded-4xl"] a[class~="underline"] {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 !important;
    border: 0;
    color: #004fac !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

:host [class~="bg-accented"][class~="rounded-4xl"] [class~="gap-xs"]:has(> a[class~="underline"]) {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #b9d3ef;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(6, 22, 47, 0.05);
}

:host [class~="bg-accented"][class~="rounded-4xl"] [class~="gap-xs"]:has(> a[class~="underline"]):hover {
    border-color: #86b7e8;
    background: #f8fbff;
}

:host [class~="bg-accented"][class~="rounded-4xl"] [class~="gap-xs"]:has(> a[class~="underline"]) *,
:host [class~="bg-accented"][class~="rounded-4xl"] a[class~="underline"] * {
    color: #004fac !important;
}

:host [class~="bg-accented"][class~="rounded-4xl"] a[class~="underline"]:hover,
:host [class~="bg-accented"][class~="rounded-4xl"] a[class~="underline"]:focus {
    border-color: transparent;
    color: #003f8a !important;
}

/* Keep the two promotional cards level and away from the module edge. */
:host [class~="lg:flex-nowrap"] {
    align-items: stretch !important;
}

:host [class~="lg:flex-nowrap"] > [class~="border-transparent"] {
    min-width: 0;
    height: 100%;
}

/* Coupon/tax controls are tabs, not action buttons. */
:host .border-b.border-default.w-full {
    gap: 8px !important;
    padding: 0 8px;
}

:host .border-b.border-default.w-full > button {
    height: 40px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    box-shadow: none !important;
    transform: none !important;
}

:host .border-b.border-default.w-full > button:hover:not(:disabled) {
    background: #eef5fd !important;
    color: #004fac !important;
}

:host .border-b.border-default.w-full > button.border-primary {
    border-bottom-color: #004fac !important;
    background: transparent !important;
    color: #004fac !important;
}

@media (max-width: 767.98px) {
    :host [class~="md:w-3/5"],
    :host [class~="md:w-2/5"] {
        padding: 20px !important;
        border-radius: 12px !important;
    }

    :host .text-5xl,
    :host .text-4xl,
    :host .text-3xl {
        font-size: 19px !important;
    }

    :host [class~="bg-accented"][class~="rounded-4xl"] {
        gap: 10px !important;
        padding: 14px !important;
        border-radius: 16px !important;
    }

    :host [class~="outline-8"][class~="rounded-large"] {
        min-height: 56px !important;
        padding: 6px 6px 6px 12px !important;
    }

    :host([data-app="domain-module"]) [class~="md:pl-4"][class~="md:pr-4"] {
        padding-top: 18px !important;
        padding-bottom: 22px !important;
    }
}
