/* TEMU brand theme override - loaded after designs.min.css */
:root {
    /* TEMU orange. Text and the CTA use the darker stops so white/orange text keeps WCAG AA contrast. */
    --brand: #ea580c;
    --brand-rgb: 234, 88, 12;
    --brand-dark: #c2410c;
    --brand-light: #fb7701;
    --brand-deep: #9a3412;
    --pg-ink: #1e293b;
    --pg-muted: #64748b;
    --pg-border: #dde3ec;
}

/* Arial reshaped to Inter's metrics, so text doesn't reflow when the web font swaps in (the page's main CLS source). */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial'), local('ArialMT');
    ascent-override: 90.44%;
    descent-override: 22.52%;
    line-gap-override: 0%;
    size-adjust: 107.12%;
}

body {
    background-color: #f4f6fb;
    font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Flat design system: no shadows anywhere - structure and state come from borders and outlines.
   These reset the shadows MDB and SweetAlert2 add by default (buttons, pressed/checked states, dialogs). */
.btn,
.btn:hover,
.btn:focus,
.btn:active,
.btn-check:checked + .btn,
.btn-check:active + .btn,
.btn-check:focus + .btn,
.card,
.modal-content,
.swal2-popup,
.swal2-styled,
.swal2-styled:focus {
    box-shadow: none !important;
}

.swal2-popup,
.modal-content {
    border: 1px solid var(--pg-border);
}

.swal2-styled:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* MDB paints a spreading ink "ripple" on buttons when pressed — it reads as a shadow. */
.ripple-wave {
    display: none !important;
}

/* ---------- Preloader ---------- */
/* Fixed overlay, so showing/removing it never moves page content. The failsafe animation
   hides it after 8s even if the hide script never runs (CDN outage, JS error). */
#pg-preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 45%, var(--brand-deep) 100%);
    transition: opacity 0.4s ease, visibility 0.4s ease;
    animation: pg-preloader-failsafe 0s linear 8s forwards;
}

#pg-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pg-preloader-inner {
    text-align: center;
}

.pg-preloader-mark {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
}

.pg-preloader-mark::before,
.pg-preloader-mark::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.pg-preloader-mark::before {
    inset: 0;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    animation: pg-spin 0.8s linear infinite;
}

.pg-preloader-mark::after {
    inset: 22px;
    background: #fff;
    outline: none;
    animation: pg-pulse 1.2s ease-in-out infinite;
}

.pg-preloader-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

@keyframes pg-spin {
    to { transform: rotate(360deg); }
}

@keyframes pg-pulse {
    0%, 100% { transform: scale(0.85); opacity: 0.85; }
    50% { transform: scale(1); opacity: 1; }
}

@keyframes pg-preloader-failsafe {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pg-preloader-mark::before { animation-duration: 2.4s; }
    .pg-preloader-mark::after { animation: none; }
}

/* ---------- Hero band ---------- */
.pg-hero {
    position: relative;
    overflow: hidden;
    padding: 1.75rem 0 6.5rem;
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 45%, var(--brand-deep) 100%);
}

.pg-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(700px 320px at 12% -10%, rgba(255, 255, 255, 0.18), transparent 60%),
        radial-gradient(600px 300px at 90% 110%, rgba(253, 186, 116, 0.35), transparent 60%);
}

.pg-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.pg-hero #background-anime {
    position: absolute !important;
    inset: 0;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    background: none !important;
}

.pg-hero-inner {
    position: relative;
    z-index: 2;
}

.pg-hero-copy {
    margin-top: 2rem;
}

.pg-hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

/* Reserve icon width before Font Awesome loads so centred text beside it doesn't shift. */
.pg-hero-pill > i,
.pg-card .submit-button > i {
    display: inline-block;
    width: 1em;
    text-align: center;
}

.pg-hero-title {
    color: #fff;
    font-weight: 800;
    font-size: 2.1rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.pg-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Content / card ---------- */
.pg-content {
    position: relative;
    z-index: 2;
    margin-top: -4.25rem;
    padding-bottom: 3.5rem;
}

.pg-card {
    position: relative;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--pg-border);
    border-radius: 1.25rem;
    box-shadow: none !important;
}

.pg-card > .pg-footer {
    border-bottom-left-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
}

.pg-card-badge {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
    color: #fff;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.pg-card .card-body {
    padding-top: 3.25rem !important;
}

.pg-intro {
    color: var(--pg-muted);
    font-size: 0.925rem;
    line-height: 1.6;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Sections ---------- */
.pg-section {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: calc(100% - 1.5rem);
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0.85rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #edf1f6;
}

.pg-section-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(var(--brand-rgb), 0.08);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.pg-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pg-ink);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.pg-section-desc {
    font-size: 0.8rem;
    color: var(--pg-muted);
    line-height: 1.4;
}

.pg-submit-note {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
}

.pg-recaptcha-note {
    margin-top: 0.35rem;
    font-size: 0.72rem;
}

.pg-recaptcha-note a {
    color: inherit;
    text-decoration: underline;
}

/* Badge stays visible; only its default drop shadow is swapped for a border to fit the flat design. */
.grecaptcha-badge {
    box-shadow: none !important;
    border: 1px solid var(--pg-border);
}

/* ---------- Labels ---------- */
.pg-card .form-label,
.pg-card .form-label.text-primary,
.pg-card label.fw-bold.text-primary {
    padding-top: 0 !important;
    margin-bottom: 0.35rem;
    font-weight: 600 !important;
    font-size: 0.85rem;
    color: var(--pg-ink) !important;
}

.pg-card .form-label .fa-tag,
.pg-card label.fw-bold > .fa-tag {
    display: none;
}

.pg-card .form-label .forNonChinaCountry {
    color: #94a3b8;
}

/* ---------- Inputs ---------- */
.pg-card .form-control.border-primary,
.pg-card .border-primary {
    border: 1px solid var(--pg-border) !important;
    box-shadow: none !important;
}

.pg-card .form-control {
    border-radius: 0.6rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    color: var(--pg-ink);
    background-color: #fbfcfe;
    outline: 1px solid transparent;
    outline-offset: 0;
    transition: border-color 0.15s ease, outline-color 0.15s ease, background-color 0.15s ease;
}

.pg-card .form-control:focus {
    border-color: var(--brand) !important;
    box-shadow: none !important;
    outline: 1px solid var(--brand) !important;
    background-color: #fff;
}

.pg-card .form-control:hover:not(:focus):not([readonly]) {
    border-color: #c5cfdd !important;
}

.pg-card .form-group .form-label {
    transition: color 0.15s ease;
}

.pg-card .form-group:focus-within .form-label {
    color: var(--brand) !important;
}

.pg-card .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.pg-card .form-group > .form-control {
    margin-bottom: 0 !important;
}

.pg-card .form-group > br {
    display: none;
}

.pg-card .form-group > label {
    align-self: flex-start;
}

.pg-card .form-group > .error-message {
    order: 3;
    margin-top: 0.4rem;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
}

/* An empty error slot must take no space and not count as :visible to jQuery. */
.pg-card .form-group > .error-message:empty {
    display: none;
}

.pg-card .form-group > .btn-group {
    order: 2;
}

.pg-card .form-control.is-invalid,
.pg-card .form-control.is-invalid:hover {
    border-color: #ef4444 !important;
    background-color: #fffafa;
}

.pg-card .form-control.is-invalid:focus {
    outline-color: #ef4444 !important;
}

.pg-card .form-group:has(.is-invalid) .form-label {
    color: #b91c1c !important;
}

.pg-card .form-control[readonly] {
    background-color: #eef1f6;
    color: var(--pg-muted);
    cursor: not-allowed;
}

/* ---------- Required / optional indicators ---------- */
/* Fixed 15px box in every state - only the inner mark changes, so labels never reflow (no CLS). */
.pg-req-dot {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 0.35rem;
    border-radius: 50%;
    vertical-align: -3px;
    outline: none;
    transition: background-color 0.2s ease;
}

.pg-req-dot::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--brand);
    outline: none;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.pg-req-dot.is-done,
.pg-card .form-group.is-complete .pg-req-dot {
    background-color: #10b981;
    outline-color: transparent;
}

.pg-req-dot.is-done::before,
.pg-card .form-group.is-complete .pg-req-dot::before {
    opacity: 0;
    transform: scale(0.4);
}

.pg-req-dot.is-done::after,
.pg-card .form-group.is-complete .pg-req-dot::after {
    content: "\f00c";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.5rem;
    color: #fff;
}

.pg-card .form-group:has(.is-invalid) .pg-req-dot::before {
    background-color: #ef4444;
    outline-color: transparent;
}

.pg-optional {
    margin-left: 0.5rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background-color: #f1f5f9;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

/* Required accent is a real 3px left border. Selectors include .border-primary (on every
   generated input) so they outrank the hover rule and the accent colour survives hover. */
.pg-card .form-group.pg-required .form-control.border-primary {
    border-left: 3px solid rgba(var(--brand-rgb), 0.55) !important;
}

.pg-card .form-group.pg-required .form-control.border-primary:focus {
    border-left-color: var(--brand) !important;
}

.pg-card .form-group.pg-required.is-complete .form-control.border-primary {
    border-left-color: #10b981 !important;
}

/* Success colours only while the field is focused - at rest a completed field keeps just the thin green accent. */
.pg-card .form-group.pg-required.is-complete .form-control.border-primary:focus {
    border-color: #10b981 !important;
    outline-color: #10b981 !important;
}

.pg-card .form-group.pg-required.is-complete:focus-within .form-label {
    color: #059669 !important;
}

.pg-card .form-group.pg-required .form-control.border-primary.is-invalid {
    border-color: #ef4444 !important;
}

.pg-card .form-group.pg-required .form-control.border-primary.is-invalid:focus {
    outline-color: #ef4444 !important;
}

.pg-legend {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.1rem;
    margin-top: 0.6rem;
    width: 100%;
}

.pg-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    font-size: 0.8rem;
    color: var(--pg-muted);
}

.pg-legend-item .pg-req-dot {
    margin-left: 0;
    margin-right: 0.3rem;
}

/* ---------- Status radio segmented control ---------- */
.pg-card .btn-group.w-100 {
    display: flex;
    gap: 0.75rem;
    box-shadow: none !important;
}

.pg-card .btn-group.w-100 > .btn-primary-outline {
    flex: 1;
    margin-left: 0 !important;
    border-radius: 0.6rem !important;
    border: 1.5px solid var(--pg-border);
    background-color: #fbfcfe;
    color: var(--pg-ink);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    /* Same padding in both states; the check icon sits inside the left padding (below), so selecting
       an option never changes how its text wraps — it used to push "Pending Approval" to 2 lines. */
    position: relative;
    padding: 0.75rem 1.9rem;
    box-shadow: none !important;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.pg-card .btn-group.w-100 > .btn-primary-outline:hover {
    border-color: rgba(var(--brand-rgb), 0.45);
    background-color: rgba(var(--brand-rgb), 0.04);
}

.pg-card .btn-check:checked + .btn-primary-outline {
    background-color: rgba(var(--brand-rgb), 0.08) !important;
    border-color: var(--brand) !important;
    color: var(--brand-dark) !important;
    outline: none;
}

.pg-card .btn-check:focus-visible + .btn-primary-outline {
    outline: 2px solid var(--brand);
    outline-offset: 0;
}

.pg-card .btn-check:checked + .btn-primary-outline::before {
    content: "\f058";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* ---------- Submit button ---------- */
.pg-card .submit-button {
    border: none;
    border-radius: 0.75rem;
    padding: 0.95rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    background-image: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-deep) 100%) !important;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none !important;
    transition: filter 0.15s ease, outline-color 0.15s ease;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.pg-card .submit-button:hover {
    filter: brightness(0.92);
}

.pg-card .submit-button:focus-visible {
    outline-color: var(--brand);
}

/* ---------- Footer ---------- */
.pg-footer {
    background-color: #f8fafc;
    border-top: 1px solid var(--pg-border);
    padding: 1rem 1.5rem;
}

.pg-footer-text {
    color: var(--pg-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.pg-footer-link {
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.pg-footer-link:hover {
    text-decoration: underline;
}

.text-primary {
    color: var(--brand-dark) !important;
}

.btn-primary,
.badge-primary {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
}

.border-primary {
    border-color: var(--brand) !important;
}

/* width/height attributes on the <img> give the browser the aspect ratio up front; width:auto keeps it. */
/* DMSMatrix is the centre of attraction: sized by width (height follows the attribute-given
   aspect ratio, so no layout shift), well above the partner logos, capped to its column. */
.pg-brand-logo {
    width: 300px;
    height: auto;
    max-width: 100%;
}

.pg-partner-logo {
    height: 28px;
    width: auto;
    max-width: 100%;
    display: block;
}

.temu-logo-tile {
    display: block;
    height: 52px;
    width: auto;
    border-radius: 14px;
}

@media (max-width: 575.98px) {
    /* Phones: option groups stack full-width, so each label gets the whole row and stays on one line
       (side by side, a ~150px pill forced "Pending Approval" to wrap). */
    .pg-card .btn-group.w-100 {
        flex-direction: column;
        gap: 0.6rem;
    }

    .pg-card .btn-group.w-100 > .btn-primary-outline {
        flex: 0 0 auto;
        width: 100%;
    }

    .temu-logo-tile {
        height: 42px;
    }

    .pg-brand-logo {
        width: 230px;
    }

    .pg-partner-logo {
        height: 22px;
    }

    .pg-hero {
        padding: 1.5rem 0 6rem;
    }

    .pg-content {
        margin-top: -3rem;
    }

    .pg-hero-title {
        font-size: 1.4rem;
    }

    .pg-hero-subtitle {
        font-size: 0.85rem;
    }
}

/* ---------- TEMU-specific ---------- */
.pg-logo-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
}

.pg-lockup-x {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
}

/* The shared field helpers render "Label<span class='chinese-text'>/ …" with no space before the slash. */
.pg-card label .chinese-text.show::before {
    content: "\00a0";
}

::selection {
    background-color: var(--brand);
    color: #fff;
}

/* designs.min.css colours the switch track purple; brand it. */
.switch-box input[type="checkbox"]:checked + .switch {
    background-color: var(--brand) !important;
}

/* Country dropdown is select2: the visible control is .select2-selection, not the hidden <select>,
   so the input states (required accent, focus, complete, invalid) are drawn on it here. */
.pg-card .select2-container .select2-selection--single {
    position: relative;
    height: 47px !important;
    border: 1px solid var(--pg-border) !important;
    border-radius: 0.6rem !important;
    background-color: #fbfcfe;
    color: var(--pg-ink) !important;
    font-weight: 400 !important;
    box-shadow: none !important;
    outline: 1px solid transparent;
    transition: border-color 0.15s ease, outline-color 0.15s ease;
}

.pg-card .select2-container .select2-selection--single::after {
    content: "\f078";
    position: absolute;
    right: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65rem;
    color: var(--pg-muted);
}

.pg-card .select2-container .select2-selection__rendered {
    color: var(--pg-ink) !important;
    font-weight: 400 !important;
    font-size: 0.95rem;
    line-height: 45px !important;
    padding-left: 0.9rem !important;
    padding-right: 2.2rem !important;
}

.pg-card .select2-container .select2-selection__placeholder {
    color: #94a3b8;
}

.pg-card .select2-container:hover .select2-selection--single {
    border-color: #c5cfdd !important;
}

.pg-card .select2-container--focus .select2-selection--single,
.pg-card .select2-container--open .select2-selection--single {
    border-color: var(--brand) !important;
    outline-color: var(--brand);
    background-color: #fff;
}

.pg-card .form-group.pg-required .select2-selection--single {
    border-left: 3px solid rgba(var(--brand-rgb), 0.55) !important;
}

.pg-card .form-group.pg-required .select2-container--focus .select2-selection--single,
.pg-card .form-group.pg-required .select2-container--open .select2-selection--single {
    border-left-color: var(--brand) !important;
}

.pg-card .form-group.pg-required.is-complete .select2-selection--single {
    border-left-color: #10b981 !important;
}

.pg-card .form-group.pg-required.is-complete .select2-container--focus .select2-selection--single,
.pg-card .form-group.pg-required.is-complete .select2-container--open .select2-selection--single {
    border-color: #10b981 !important;
    outline-color: #10b981;
}

.pg-card .form-group:has(select.is-invalid) .select2-selection--single {
    border-color: #ef4444 !important;
    background-color: #fffafa;
}

.pg-card .form-group:has(select.is-invalid) .form-label {
    color: #b91c1c !important;
}

/* ---------- select2 dropdown panel ---------- */
/* Appended to <body>, outside .pg-card. A detached, rounded, bordered panel (no shadow) sitting 6px off the field. */
.select2-container--default .select2-dropdown {
    border: 1px solid var(--pg-border) !important;
    border-radius: 0.75rem !important;
    background-color: #fff;
    overflow: hidden;
    box-shadow: none !important;
}

.select2-container--default .select2-dropdown--below {
    margin-top: 6px;
}

.select2-container--default .select2-dropdown--above {
    margin-top: -6px;
}

.select2-container--default .select2-search--dropdown {
    position: relative;
    padding: 0.6rem 0.6rem 0.35rem;
}

.select2-container--default .select2-search--dropdown::before {
    content: "\f002";
    position: absolute;
    left: 1.4rem;
    top: calc(50% + 0.13rem);
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    color: #94a3b8;
    pointer-events: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    height: 38px;
    padding: 0 0.75rem 0 2.1rem;
    border: 1px solid var(--pg-border);
    border-radius: 0.5rem !important;
    background-color: #fbfcfe;
    color: var(--pg-ink);
    font-family: inherit;
    font-size: 0.9rem;
    /* !important: designs.min.css forces outline:none on this field. */
    outline: 1px solid transparent !important;
    transition: border-color 0.15s ease, outline-color 0.15s ease;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--brand);
    outline-color: var(--brand) !important;
    background-color: #fff;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 264px;
    padding: 0.25rem 0.4rem 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.select2-container--default .select2-results__option {
    margin: 1px 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.45rem;
    color: var(--pg-ink);
    font-size: 0.9rem;
    line-height: 1.35;
}

/* Hover/keyboard highlight: a light brand tint (like the selected status pill), not a solid fill. */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: rgba(var(--brand-rgb), 0.08) !important;
    color: var(--brand-dark) !important;
}

/* designs.min.css hides the chosen option (display:none), so reopening the list showed it missing.
   Show it, tinted, with a check mark. (Not [aria-selected] — in select2 4.1 that marks the hovered row.) */
.select2-container--default .select2-results__option--selectable.select2-results__option--selected {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(var(--brand-rgb), 0.08) !important;
    color: var(--brand-dark) !important;
    font-weight: 600;
}

.select2-container--default .select2-results__option--selectable.select2-results__option--selected::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--brand);
}

.select2-container--default .select2-results__message {
    padding: 0.75rem;
    color: var(--pg-muted);
    font-size: 0.85rem;
    text-align: center;
}

.pg-card .select2-container--open .select2-selection--single::after {
    transform: translateY(-50%) rotate(180deg);
}

.pg-card .select2-container .select2-selection--single::after {
    transition: transform 0.15s ease;
}

/* ---------- DMS connector platform tiles ---------- */
.pg-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.75rem;
}

.pg-platform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--pg-border);
    border-radius: 0.6rem;
    background-color: #fbfcfe;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pg-platform:hover {
    border-color: rgba(var(--brand-rgb), 0.45);
}

.pg-platform:has(input:checked) {
    border-color: var(--brand);
    background-color: rgba(var(--brand-rgb), 0.06);
}

.pg-platform:has(input:focus-visible) {
    outline: 2px solid var(--brand);
}

.pg-platform-name {
    display: flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--pg-ink);
}

.pg-platform-name i {
    width: 1.1em;
    margin-right: 0.35rem;
    color: var(--pg-muted);
    transition: color 0.15s ease;
}

.pg-platform:has(input:checked) .pg-platform-name i {
    color: var(--brand);
}

.pg-platform .switch-box {
    flex: 0 0 auto;
    line-height: 0;
}

@media (max-width: 575.98px) {
    .pg-logo-lockup {
        gap: 0.75rem;
    }
}
