/* Customer and professional portals: the login and sign-up tabs, the account-type chooser, the
   "add access" page, the experience pills in the header and sidebars, and the customer portal
   pages under /account (.cx).

   Both portals use the Serden evergreen and pale sage palette; the icons and labels tell the
   portals apart. Tokens match public-pages.css and account.css. Auth cards build on .sd-auth
   from public-pages.css. */

/* ------------------------------------------------------------ portal accents */

.sd-auth-card--customer,
.sd-choice--customer,
.cx,
.sd-auth-card--professional,
.sd-choice--professional {
    --portal-accent: var(--serden-evergreen);
    --portal-accent-hover: var(--serden-evergreen-hover);
    --portal-soft: var(--serden-sage);
    --portal-ink: var(--serden-evergreen);
}

.sd-auth-card--portal {
    position: relative;
    overflow: hidden;
}

.sd-auth-card--portal::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background-color: var(--portal-accent);
}

.sd-auth-card--portal .sd-kicker {
    color: var(--portal-ink);
}

/* ------------------------------------------------------------ portal tabs */

.sd-auth .sd-portal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 28px;
    padding: 6px;
    border: 1px solid var(--pp-line);
    border-radius: 14px;
    background-color: var(--pp-tint);
}

.sd-auth .sd-portal-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    color: var(--pp-muted);
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.sd-auth .sd-portal-tabs a:hover {
    background-color: #fff;
    color: var(--pp-ink);
}

.sd-auth .sd-portal-tabs a.is-active {
    background-color: #fff;
    color: var(--portal-ink);
    box-shadow: 0 1px 2px rgba(16, 35, 27, .08), 0 4px 12px rgba(16, 35, 27, .06);
}

.sd-auth .sd-portal-tabs a:focus-visible {
    outline: 3px solid var(--pp-green);
    outline-offset: 2px;
}

/* ------------------------------------------------------------ notes and lists */

.sd-auth .sd-portal-note {
    display: flex;
    gap: 10px;
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background-color: var(--pp-tint);
    font-size: 13.5px;
    line-height: 1.55;
}

.sd-auth .sd-portal-note i {
    margin-top: 3px;
    color: var(--pp-green-mid);
}

.sd-auth .sd-portal-note a {
    color: var(--pp-green);
    font-weight: 600;
}

.sd-auth .sd-notice {
    display: flex;
    gap: 10px;
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 12px;
    background-color: var(--portal-soft);
    color: var(--portal-ink);
    font-size: 14px;
    font-weight: 500;
}

.sd-auth .sd-notice i {
    margin-top: 3px;
}

.sd-auth .sd-benefits {
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.sd-auth .sd-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--pp-ink);
}

.sd-auth .sd-benefits i {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background-color: var(--portal-soft);
    color: var(--portal-ink);
}

.sd-auth .sd-next {
    margin: 0 0 24px;
    padding: 16px 18px;
    border: 1px solid var(--pp-line);
    border-radius: 14px;
}

.sd-auth .sd-next-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--pp-ink);
}

.sd-auth .sd-next ol {
    margin: 0;
    padding-left: 20px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--pp-muted);
}

.sd-auth .alert-info i {
    margin-right: 6px;
}

/* ------------------------------------------------------------ account-type chooser */

.sd-auth-card.sd-auth-card--choice {
    max-width: 900px;
}

.sd-auth .sd-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sd-auth .sd-choice {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 1.5px solid var(--pp-line);
    border-radius: 18px;
    background-color: #fff;
    color: var(--pp-ink);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.sd-auth .sd-choice:hover,
.sd-auth .sd-choice:focus-visible {
    border-color: var(--portal-accent);
    box-shadow: 0 12px 30px rgba(16, 35, 27, .1);
    transform: translateY(-2px);
    color: var(--pp-ink);
}

.sd-auth .sd-choice:focus-visible {
    outline: 3px solid var(--pp-green);
    outline-offset: 2px;
}

.sd-auth .sd-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    border-radius: 14px;
    background-color: var(--portal-soft);
    color: var(--portal-ink);
    font-size: 20px;
}

.sd-auth .sd-choice-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--portal-ink);
}

.sd-auth .sd-choice-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.sd-auth .sd-choice-list {
    display: grid;
    gap: 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--pp-muted);
}

.sd-auth .sd-choice-list li::before {
    content: "\f00c";
    margin-right: 8px;
    font-family: "Font Awesome 5 Free";
    font-size: 11px;
    font-weight: 900;
    color: var(--portal-accent);
}

.sd-auth .sd-choice-meta {
    margin-top: auto;
    padding-top: 10px;
    font-size: 13px;
    color: var(--pp-muted);
}

.sd-auth .sd-choice-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 16px;
    border-radius: 12px;
    background-color: var(--portal-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    justify-content: center;
}

/* ------------------------------------------------------------ experience pills */

.xp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.xp-pill--customer,
.xp-pill--professional {
    background-color: var(--serden-sage);
    color: var(--serden-evergreen);
}

.xp-pill--admin {
    background-color: #ecebfb;
    color: #3d3a8f;
}

/* ------------------------------------------------------------ header account menu */

.user-dropdown .xp-menu {
    min-width: 270px;
    padding: 8px;
    border: 1px solid var(--serden-stone);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(16, 35, 27, .14);
}

.user-dropdown .xp-menu-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 12px;
    border-bottom: 1px solid #e6ece9;
    margin-bottom: 6px;
}

.user-dropdown .xp-menu-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #10231B;
}

.user-dropdown .xp-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14.5px;
    color: #10231B;
}

.user-dropdown .xp-menu .dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--serden-text-secondary);
}

.user-dropdown .xp-menu .dropdown-item:hover,
.user-dropdown .xp-menu .dropdown-item:focus {
    background-color: var(--serden-sage);
}

.user-dropdown .xp-menu .xp-switch {
    margin: 6px 0;
    border: 1px dashed #c7d5ce;
    font-weight: 600;
}

.user-dropdown .xp-menu .xp-switch--customer i {
    color: var(--serden-evergreen);
}

.user-dropdown .xp-menu .xp-switch--professional i {
    color: #153A2B;
}

.user-dropdown .xp-menu-label {
    padding: 8px 12px 4px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a9c94;
}

/* ------------------------------------------------------------ small screens */

@media (max-width: 720px) {
    .sd-auth .sd-choice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sd-auth .sd-portal-tabs a {
        flex-direction: column;
        gap: 4px;
        padding: 10px 6px;
        font-size: 13px;
        white-space: normal;
    }

    .sd-auth-card.sd-auth-card--portal,
    .sd-auth-card.sd-auth-card--choice {
        padding: 30px 20px;
    }

    .sd-auth .sd-choice {
        padding: 20px;
    }
}

/* ==========================================================================
   Customer portal (/account). Namespaced under .cx because main.css and
   default.css style h1-h3, p, a, label and inputs globally.
   ========================================================================== */

.cx {
    --cx-green: var(--serden-evergreen);
    --cx-ink: #10231B;
    --cx-muted: var(--serden-text-secondary);
    --cx-tint: var(--serden-ivory);
    --cx-line: var(--serden-stone);
    --cx-line-strong: #c7d5ce;
    --cx-radius: 12px;
    --cx-card-radius: 20px;
    --cx-shadow: 0 1px 2px rgba(16, 35, 27, .05), 0 8px 24px rgba(16, 35, 27, .06);

    min-height: 100vh;
    padding: 140px 0 96px;
    background-color: var(--cx-tint);
    color: var(--cx-ink);
    font-family: "Poppins", sans-serif;
    overflow-x: clip;
}

.cx *,
.cx *::before,
.cx *::after {
    box-sizing: border-box;
}

.cx h1,
.cx h2,
.cx h3 {
    margin: 0;
    font-family: inherit;
    color: var(--cx-ink);
    letter-spacing: -.01em;
}

.cx p {
    margin: 0;
    color: var(--cx-muted);
}

.cx a {
    color: var(--cx-green);
}

.cx label {
    padding-left: 0;
}

.cx-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------------------------ header */

.cx-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 20px;
}

.cx-head h1 {
    margin-top: 12px;
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
    line-height: 1.15;
}

.cx-lead {
    max-width: 640px;
    margin-top: 8px !important;
    font-size: 16px;
    line-height: 1.55;
}

.cx-switch,
.cx-addpro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.cx .cx-switch {
    border: 1.5px solid var(--cx-green);
    background-color: #fff;
    color: var(--cx-green);
}

.cx .cx-switch:hover {
    background-color: var(--cx-green);
    color: #fff;
}

.cx .cx-addpro {
    border: 1px dashed var(--cx-line-strong);
    background-color: #fff;
    color: var(--cx-muted);
    white-space: normal;
}

.cx .cx-addpro:hover {
    border-color: var(--cx-green);
    color: var(--cx-green);
}

/* ------------------------------------------------------------ section nav */

.cx-nav {
    display: flex;
    gap: 6px;
    margin: 0 -20px 24px;
    padding: 0 20px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cx-nav::-webkit-scrollbar {
    display: none;
}

.cx .cx-nav a {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--cx-line);
    border-radius: 999px;
    background-color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--cx-muted);
    text-decoration: none;
}

.cx .cx-nav a:hover {
    color: var(--cx-ink);
    border-color: var(--cx-line-strong);
}

.cx .cx-nav a.is-active {
    border-color: var(--portal-accent);
    background-color: var(--portal-accent);
    color: #fff;
}

.cx .cx-nav a:focus-visible,
.cx a:focus-visible,
.cx button:focus-visible {
    outline: 3px solid var(--portal-accent);
    outline-offset: 2px;
}

/* ------------------------------------------------------------ alerts */

.cx-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.5;
}

.cx-alert p {
    flex: 1 1 280px;
    color: inherit;
}

.cx-alert a {
    color: inherit;
    font-weight: 700;
}

.cx-alert--info {
    background-color: #e9f1fb;
    color: #1d4f86;
}

.cx-alert--notice {
    background-color: var(--portal-soft);
    color: var(--portal-ink);
}

.cx-alert--success {
    background-color: #e5f3eb;
    color: #1f6b43;
}

.cx-alert--error {
    background-color: #fdecea;
    color: #9b2119;
}

.cx-alert--action form {
    margin: 0;
}

/* ------------------------------------------------------------ quick actions */

.cx-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.cx .cx-action {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    padding: 16px 18px;
    border: 1px solid var(--cx-line);
    border-radius: 16px;
    background-color: #fff;
    color: var(--cx-ink);
    text-decoration: none;
    box-shadow: var(--cx-shadow);
    transition: border-color .15s ease, transform .15s ease;
}

.cx .cx-action:hover {
    border-color: var(--portal-accent);
    transform: translateY(-1px);
    color: var(--cx-ink);
}

.cx-action-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background-color: var(--portal-soft);
    color: var(--portal-ink);
    font-size: 19px;
}

.cx-action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cx-action-text strong {
    font-size: 16px;
    font-weight: 600;
}

.cx-action-text small {
    font-size: 13.5px;
    color: var(--cx-muted);
}

.cx .cx-action--primary {
    border-color: var(--portal-accent);
    background-color: var(--portal-accent);
    color: #fff;
}

.cx .cx-action--primary:hover {
    color: #fff;
}

.cx-action--primary .cx-action-icon {
    background-color: rgba(255, 255, 255, .2);
    color: #fff;
}

.cx-action--primary .cx-action-text small {
    color: rgba(255, 255, 255, .88);
}

/* ------------------------------------------------------------ cards and grids */

.cx-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.cx-grid--detail {
    grid-template-columns: minmax(0, 1fr) 340px;
}

.cx-stack {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.cx-card {
    min-width: 0;
    padding: 22px 24px;
    border: 1px solid var(--cx-line);
    border-radius: var(--cx-card-radius);
    background-color: #fff;
    box-shadow: var(--cx-shadow);
}

.cx-card--wide {
    grid-column: 1 / -1;
}

.cx-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.cx-card-head h2 {
    font-size: 19px;
    font-weight: 700;
}

.cx .cx-card-link {
    font-size: 14.5px;
    font-weight: 600;
}

.cx-count {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 9px;
    border-radius: 999px;
    background-color: var(--cx-tint);
    font-size: 13px;
    font-weight: 600;
    color: var(--cx-muted);
    vertical-align: middle;
}

.cx-subhead {
    margin: 24px 0 12px !important;
    padding-top: 20px;
    border-top: 1px solid var(--cx-line);
    font-size: 16px !important;
    font-weight: 700;
}

.cx-back {
    margin-bottom: 14px !important;
}

.cx-back a {
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
}

/* ------------------------------------------------------------ empty states */

.cx-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 12px;
    text-align: center;
}

.cx-empty > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--portal-soft);
    color: var(--portal-ink);
    font-size: 22px;
}

.cx-empty h3 {
    font-size: 17px;
    font-weight: 600;
}

.cx-empty p {
    max-width: 420px;
    font-size: 14.5px;
    line-height: 1.55;
}

.cx-empty--compact {
    padding: 16px 8px;
}

.cx-empty--compact > i {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

/* ------------------------------------------------------------ buttons */

.cx .cx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.cx .cx-btn--sm {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 14px;
}

.cx .cx-btn--primary {
    background-color: var(--portal-accent);
    border-color: var(--portal-accent);
    color: #fff;
}

.cx .cx-btn--primary:hover {
    background-color: var(--portal-accent-hover);
    border-color: var(--portal-accent-hover);
    color: #fff;
}

.cx .cx-btn--outline {
    background-color: #fff;
    border-color: var(--cx-line-strong);
    color: var(--cx-ink);
}

.cx .cx-btn--outline:hover {
    border-color: var(--cx-green);
    color: var(--cx-green);
}

.cx .cx-btn--ghost {
    background-color: transparent;
    color: var(--cx-muted);
}

.cx .cx-btn--ghost:hover {
    background-color: var(--cx-tint);
    color: var(--cx-ink);
}

.cx-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.cx-toolbar--plain {
    justify-content: flex-start;
    margin-bottom: 20px;
}

.cx-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background-color: var(--cx-tint);
}

.cx .cx-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cx-muted);
    text-decoration: none;
}

.cx .cx-tabs a span {
    font-size: 12.5px;
    color: inherit;
    opacity: .75;
}

.cx .cx-tabs a.is-active {
    background-color: #fff;
    color: var(--cx-ink);
    box-shadow: 0 1px 2px rgba(16, 35, 27, .08);
}

.cx-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    font-size: 14.5px;
}

.cx-pager a {
    font-weight: 600;
    text-decoration: none;
}

/* ------------------------------------------------------------ quote requests */

.cx-quote-list {
    display: grid;
    gap: 10px;
}

.cx .cx-quote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--cx-line);
    border-radius: 14px;
    color: var(--cx-ink);
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.cx .cx-quote:hover {
    border-color: var(--portal-accent);
    background-color: var(--serden-ivory);
    color: var(--cx-ink);
}

.cx-quote-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cx-quote-pro {
    font-size: 16px;
    font-weight: 600;
}

.cx-quote-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 13px;
    color: var(--cx-muted);
}

.cx-quote-responses i {
    margin-right: 4px;
}

.cx-quote-summary {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
    color: var(--cx-muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cx-quote-side {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
}

.cx-quote-arrow {
    color: var(--cx-line-strong);
}

.cx-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.cx-status--waiting {
    background-color: #fff4dd;
    color: #8a5300;
}

.cx-status--active {
    background-color: #e9f1fb;
    color: #1d4f86;
}

.cx-status--success {
    background-color: #e5f3eb;
    color: #1f6b43;
}

.cx-status--closed {
    background-color: #eef1f0;
    color: #536A60;
}

.cx-statuscard h2 {
    margin-top: 12px !important;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.cx-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.cx-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 30px;
    font-size: 13px;
    color: var(--cx-muted);
    counter-increment: step;
}

.cx-steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--cx-line-strong);
    border-radius: 50%;
    background-color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.cx-steps li.is-done::before {
    content: "\f00c";
    border-color: var(--portal-accent);
    background-color: var(--portal-accent);
    color: #fff;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 10px;
}

.cx-steps strong {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cx-ink);
}

.cx-docs {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cx-docs li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--cx-line);
    border-radius: 14px;
}

.cx-doc-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: var(--serden-sage);
    color: var(--cx-green);
}

.cx-doc-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    font-size: 13.5px;
    color: var(--cx-muted);
}

.cx-doc-text strong {
    font-size: 15px;
    color: var(--cx-ink);
}

.cx-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background-color: var(--cx-tint);
    font-size: 13px;
    font-weight: 600;
    color: var(--cx-muted);
}

.cx-request-text {
    margin-bottom: 16px !important;
    font-size: 15px;
    line-height: 1.6;
    color: var(--cx-ink) !important;
    white-space: pre-line;
}

.cx-details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.cx-details div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    font-size: 14.5px;
}

.cx-details dt {
    font-weight: 500;
    color: var(--cx-muted);
}

.cx-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--cx-ink);
}

.cx-procard h2 {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cx-muted);
}

.cx-procard-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--cx-ink) !important;
}

.cx-procard-meta {
    margin-top: 6px !important;
    font-size: 14px;
}

.cx-procard-meta i {
    margin-right: 6px;
}

.cx-procard-actions {
    display: grid;
    gap: 10px;
    margin: 18px 0 12px;
}

/* ------------------------------------------------------------ companies */

.cx-pro-list,
.cx-pro-grid {
    display: grid;
    gap: 12px;
}

.cx-pro-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.cx-pro {
    display: flex;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--cx-line);
    border-radius: 14px;
    background-color: #fff;
}

.cx-pro-logo {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 1px solid var(--cx-line);
    border-radius: 14px;
    background-color: var(--cx-tint);
    font-size: 17px;
    font-weight: 700;
    color: var(--cx-green);
}

.cx-pro-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cx-pro-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cx-pro-name {
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.3;
}

.cx-pro-name a {
    color: var(--cx-ink) !important;
    text-decoration: none;
}

.cx-pro-name a:hover {
    color: var(--cx-green) !important;
    text-decoration: underline;
}

.cx-pro-meta,
.cx-pro-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    font-size: 13px;
}

.cx-pro-meta i {
    margin-right: 4px;
}

.cx-stars {
    color: #e2a33a;
    letter-spacing: 1px;
}

.cx-pro-note {
    font-size: 13px;
    font-style: italic;
}

.cx-pro-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cx-saved-flag {
    font-size: 13px;
    font-weight: 600;
    color: var(--portal-ink);
}

.cx-muted {
    color: var(--cx-muted);
}

.cx-small {
    font-size: 13px;
}

/* ------------------------------------------------------------ reviews and posts */

.cx-reviews,
.cx-posts {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cx-review {
    padding: 16px 18px;
    border: 1px solid var(--cx-line);
    border-radius: 14px;
}

.cx-review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cx-review-head h3 {
    font-size: 16px;
    font-weight: 600;
}

.cx-review-head h3 a {
    color: var(--cx-ink);
}

.cx-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 6px !important;
    font-size: 13.5px;
}

.cx-review-text {
    margin-top: 10px !important;
    font-size: 15px;
    line-height: 1.6;
    color: var(--cx-ink) !important;
}

.cx-review-reply {
    margin-top: 12px;
    padding: 12px 14px;
    border-left: 3px solid var(--cx-green);
    border-radius: 0 12px 12px 0;
    background-color: var(--cx-tint);
    font-size: 14.5px;
}

.cx-review-reply-by {
    margin-bottom: 4px !important;
    font-size: 13px;
    font-weight: 600;
}

.cx .cx-posts a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--cx-line);
    border-radius: 14px;
    color: var(--cx-ink);
    text-decoration: none;
}

.cx .cx-posts a:hover {
    border-color: var(--portal-accent);
}

.cx-posts strong {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.cx-posts q,
.cx-posts span {
    font-size: 13.5px;
    color: var(--cx-muted);
}

/* ------------------------------------------------------------ forms */

.cx-form {
    display: grid;
    gap: 14px;
}

.cx-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.cx-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cx-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--cx-ink);
}

.cx-optional {
    font-weight: 400;
    color: var(--cx-muted);
}

.cx .cx-input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--cx-line-strong);
    border-radius: var(--cx-radius);
    background-color: #fff;
    font-family: inherit;
    font-size: 16px;
    color: var(--cx-ink);
}

.cx .cx-input:focus {
    border-color: var(--cx-green);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(21, 58, 43, .16);
}

.cx-hint {
    font-size: 13px;
    line-height: 1.5;
}

.cx-form-actions {
    display: flex;
    gap: 10px;
}

.cx-types {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cx-type {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 16px;
    border: 1px solid var(--cx-line);
    border-radius: 14px;
}

.cx-type-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 18px;
}

.cx-type--customer .cx-type-icon,
.cx-type--professional .cx-type-icon {
    background-color: var(--serden-sage);
    color: var(--serden-evergreen);
}

.cx-type-text {
    display: flex;
    flex: 1 1 240px;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    color: var(--cx-muted);
}

.cx-type-text strong {
    font-size: 15.5px;
    color: var(--cx-ink);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 991px) {
    .cx-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cx-grid,
    .cx-grid--detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cx {
        padding-top: 112px;
    }

    .cx-shell {
        padding: 0 16px;
    }

    .cx-nav {
        margin: 0 -16px 20px;
        padding: 0 16px 4px;
    }

    .cx-head {
        align-items: flex-start;
    }

    .cx .cx-addpro {
        display: none;
    }

    .cx-card {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .cx-actions {
        gap: 10px;
    }

    .cx .cx-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: 0;
        padding: 14px;
    }

    .cx-action-text strong {
        font-size: 15px;
    }

    .cx .cx-quote {
        align-items: flex-start;
    }

    .cx-quote-side {
        flex-direction: column;
        align-items: flex-end;
    }

    .cx-quote-arrow {
        display: none;
    }

    .cx-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 16px;
    }

    .cx-details div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .cx-field-row {
        grid-template-columns: 1fr;
    }

    .cx-pro-grid {
        grid-template-columns: 1fr;
    }

    .cx-docs li {
        flex-wrap: wrap;
    }
}

/* ------------------------------------------------------------ professional sidebar */

.sidebar .sidebar-experience {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: -4px 12px 6px;
    padding: 5px 8px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .1);
    font-family: "Poppins", sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    color: #fff;
}

.sidebar .sidebar-experience i {
    color: #E2793A;
}

.sidebar .sidebar-nav-link {
    padding-top: 8px;
    padding-bottom: 8px;
}

.sidebar .sidebar-switch {
    margin-top: 4px;
    border: 1px dashed rgba(255, 255, 255, .35);
}

.sidebar .sidebar-switch i {
    color: #E2793A;
}

/* ------------------------------------------------------------ /myaccount: accounts on this login */

.acct .acct-types {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.acct .acct-types li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 14px 16px;
    border: 1px solid var(--acct-line);
    border-radius: 14px;
}

.acct .acct-types .acct-hint {
    flex: 1 1 220px;
    margin: 0;
}

.acct .acct-types .acct-push {
    margin-left: auto;
}

.acct .acct-kicker .xp-pill {
    letter-spacing: normal;
    text-transform: none;
}

/* ------------------------------------------------------------ My Requests and service addresses */

.cx-request-kind {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--cx-green);
}

.cx-request-pros {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--cx-muted);
}

.cx-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cx-request-pros-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cx-request-pros-list > li {
    padding: 16px;
    border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius);
    background: #fff;
}

.cx-request-pro {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.cx-request-pro .cx-procard-name {
    margin: 0;
}

.cx-request-pros-list .cx-procard-actions {
    margin-top: 10px;
}

.cx-request-pros-list .cx-docs {
    margin-top: 12px;
}

.cx-files {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.cx-files a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
    color: var(--cx-green);
}

.cx-request-note {
    margin: 12px 0 0;
    font-size: 13px;
}

.cx-history {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0 0 0 16px;
    border-left: 2px solid var(--cx-line);
    list-style: none;
    font-size: 14px;
}

.cx-history li span {
    display: block;
    font-size: 12.5px;
    color: var(--cx-muted);
}

.cx-addresses {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cx-addresses > li {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius);
    background: #fff;
}

.cx-addresses > li.is-default {
    border-color: var(--cx-green);
    background: var(--serden-sage);
}

.cx-address {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    color: var(--cx-muted);
}

.cx-address strong {
    font-size: 15px;
    color: var(--cx-ink);
}

.cx-address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
}

.cx-linkbtn {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--cx-green);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.cx-linkbtn--danger {
    color: #b3261e;
}

.cx-address-form {
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius);
    background: var(--cx-tint);
}

.cx-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 12px;
}

.cx-field--wide {
    grid-column: 1 / -1;
}

.cx-field > span {
    font-size: 14px;
    font-weight: 600;
    color: var(--cx-ink);
}

.cx-field > span small {
    font-weight: 400;
    color: var(--cx-muted);
}

.cx-check {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 14px;
    font-size: 14.5px;
}

.cx-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--cx-green);
}

.cx-claim .cx-empty form {
    margin-top: 6px;
}

@media (max-width: 640px) {
    .cx-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
