.cp-us,
.cp-us-dialog {
    --cp-us-blue: #0d47a1;
    --cp-us-blue-dark: #082f6b;
    --cp-us-blue-soft: #eef5ff;
    --cp-us-gold: #d9a928;
    --cp-us-ink: #17243a;
    --cp-us-muted: #617089;
    --cp-us-line: #d7e3f5;
    color: var(--cp-us-ink);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.cp-us {
    width: min(100%, 1120px);
    margin: 24px auto;
    overflow: hidden;
    border: 1px solid var(--cp-us-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(14, 57, 119, .12);
}

.cp-us__hero {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: clamp(24px, 4vw, 42px);
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(217, 169, 40, .25), transparent 28%),
        linear-gradient(125deg, var(--cp-us-blue-dark), #1264c2);
}

.cp-us__hero-icon {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 18px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font-size: 30px;
}

.cp-us__hero p,
.cp-us-dialog__heading p {
    margin: 0 0 3px;
    color: var(--cp-us-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.cp-us__hero h2,
.cp-us-dialog__heading h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.12;
}

.cp-us__hero span:not(.dashicons) {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
}

.cp-us__body,
.cp-us-dialog__body {
    padding: clamp(20px, 4vw, 38px);
}

.cp-us__form {
    margin: 0;
}

.cp-us__form > label {
    display: block;
    margin-bottom: 9px;
    color: var(--cp-us-ink);
    font-size: 15px;
    font-weight: 800;
}

.cp-us__input-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cp-us__input-row > .dashicons-search {
    position: absolute;
    left: 17px;
    z-index: 1;
    color: var(--cp-us-blue);
    pointer-events: none;
}

.cp-us__input-row input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 12px 48px;
    border: 1px solid #b9cae4;
    border-radius: 14px;
    color: var(--cp-us-ink);
    background: #fff;
    box-shadow: none;
    font: inherit;
    font-size: 16px;
}

.cp-us__input-row input[type="search"]:focus {
    border-color: var(--cp-us-blue);
    outline: 3px solid rgba(18, 100, 194, .16);
}

.cp-us__clear {
    position: absolute;
    right: 132px;
    display: grid;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #4c5e79;
    background: transparent;
    cursor: pointer;
}

.cp-us__clear:hover {
    color: var(--cp-us-blue);
    background: var(--cp-us-blue-soft);
}

.cp-us__submit {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--cp-us-blue);
    border-radius: 14px;
    color: #fff;
    background: var(--cp-us-blue);
    box-shadow: 0 8px 18px rgba(13, 71, 161, .18);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.cp-us__submit:hover {
    border-color: var(--cp-us-blue-dark);
    background: var(--cp-us-blue-dark);
}

.cp-us__submit:disabled {
    cursor: wait;
    opacity: .72;
}

.cp-us__hint {
    margin: 8px 0 0;
    color: var(--cp-us-muted);
    font-size: 13px;
}

.cp-us__suggestions,
.cp-us__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
}

.cp-us__suggestions > span {
    color: var(--cp-us-muted);
    font-size: 13px;
    font-weight: 700;
}

.cp-us__suggestions button,
.cp-us__filters button {
    min-height: 36px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--cp-us-line);
    border-radius: 999px;
    color: var(--cp-us-blue-dark);
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.cp-us__suggestions button:hover,
.cp-us__filters button:hover,
.cp-us__filters button.is-active {
    border-color: var(--cp-us-blue);
    color: #fff;
    background: var(--cp-us-blue);
}

.cp-us__status {
    min-height: 22px;
    margin: 20px 0 10px;
    color: var(--cp-us-muted);
    font-size: 14px;
}

.cp-us__status[data-state="loading"]::before {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid #b8ccec;
    border-top-color: var(--cp-us-blue);
    border-radius: 50%;
    content: "";
    vertical-align: -2px;
    animation: cp-us-spin .7s linear infinite;
}

.cp-us__status[data-state="error"] {
    color: #9b2c2c;
}

.cp-us__results {
    display: grid;
    gap: 22px;
}

.cp-us-group__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.cp-us-group__heading h3 {
    margin: 0;
    color: var(--cp-us-blue-dark);
    font-size: 16px;
}

.cp-us-group__heading > span {
    display: grid;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    place-items: center;
    border-radius: 999px;
    color: var(--cp-us-blue-dark);
    background: #f5e9bd;
    font-size: 12px;
    font-weight: 800;
}

.cp-us-group__list {
    display: grid;
    gap: 8px;
}

.cp-us-result {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    gap: 13px;
    align-items: center;
    min-height: 74px;
    padding: 12px;
    border: 1px solid var(--cp-us-line);
    border-radius: 15px;
    color: var(--cp-us-ink);
    background: #fff;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.cp-us-result:hover {
    border-color: #89aee2;
    color: var(--cp-us-ink);
    box-shadow: 0 9px 24px rgba(14, 57, 119, .1);
    transform: translateY(-1px);
}

.cp-us-result__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    color: var(--cp-us-blue);
    background: var(--cp-us-blue-soft);
}

.cp-us-result__copy {
    display: block;
    min-width: 0;
}

.cp-us-result__eyebrow,
.cp-us-result__title,
.cp-us-result__description {
    display: block;
}

.cp-us-result__eyebrow {
    margin-bottom: 2px;
    color: var(--cp-us-blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.cp-us-result__title {
    overflow: hidden;
    color: var(--cp-us-ink);
    font-size: 15px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-us-result__description {
    overflow: hidden;
    margin-top: 3px;
    color: var(--cp-us-muted);
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-us-result > .dashicons {
    color: var(--cp-us-gold);
}

.cp-us__empty {
    display: grid;
    justify-items: center;
    padding: 34px 20px;
    border: 1px dashed #b9cae4;
    border-radius: 17px;
    text-align: center;
    background: #f8fbff;
}

.cp-us__empty .dashicons {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    color: var(--cp-us-blue);
    font-size: 36px;
}

.cp-us__empty strong {
    font-size: 16px;
}

.cp-us__empty p {
    margin: 5px 0 0;
    color: var(--cp-us-muted);
    font-size: 14px;
}

.cp-us__empty--error {
    border-color: #e9b3b3;
    background: #fff7f7;
}

.cp-us__empty--error .dashicons {
    color: #b42318;
}

.cp-us-menu {
    display: inline-flex;
}

.cp-us-menu__button {
    display: inline-flex;
    min-height: 46px;
    padding: 0 13px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.cp-us-menu__button:hover {
    color: #092b5d;
    background: #fff;
}

.cp-us-dialog {
    width: min(860px, calc(100vw - 32px));
    max-width: 860px;
    max-height: min(820px, calc(100vh - 40px));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(5, 28, 67, .35);
}

.cp-us-dialog::backdrop {
    background: rgba(4, 19, 44, .64);
    backdrop-filter: blur(3px);
}

.cp-us-dialog__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    color: #fff;
    background: linear-gradient(120deg, var(--cp-us-blue-dark), #1264c2);
}

.cp-us-dialog__heading h2 {
    font-size: clamp(22px, 3vw, 30px);
}

.cp-us-dialog__close {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    cursor: pointer;
}

.cp-us-dialog__close svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.cp-us-dialog__close:hover {
    color: var(--cp-us-blue-dark);
    background: #fff;
}

.cp-us-dialog__body {
    max-height: calc(100vh - 130px);
    overflow: auto;
    overscroll-behavior: contain;
}

.cp-us :focus-visible,
.cp-us-dialog :focus-visible,
.cp-us-menu__button:focus-visible {
    outline: 3px solid #f0c84b;
    outline-offset: 3px;
}

@supports (height: 100dvh) {
    .cp-us-dialog {
        max-height: calc(100dvh - 40px);
    }

    .cp-us-dialog__body {
        max-height: calc(100dvh - 130px);
    }
}

@keyframes cp-us-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1080px) {
    .cp-site-nav .cp-us-menu {
        display: flex;
        width: 100%;
    }

    .cp-site-nav .cp-us-menu__button {
        width: 100%;
        border-color: #bcd0e6;
        color: #082f6b;
        background: #edf5ff;
    }

    .cp-site-nav .cp-us-menu__button:hover,
    .cp-site-nav .cp-us-menu__button:focus-visible {
        border-color: #0d47a1;
        color: #fff;
        background: #0d47a1;
    }
}

@media (max-width: 700px) {
    .cp-us {
        margin: 14px auto;
        border-radius: 18px;
    }

    .cp-us__hero {
        align-items: flex-start;
    }

    .cp-us__hero-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 25px;
    }

    .cp-us__input-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .cp-us__input-row input[type="search"] {
        padding-right: 48px;
    }

    .cp-us__clear {
        top: 7px;
        right: 7px;
    }

    .cp-us__submit {
        width: 100%;
    }

    .cp-us-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        border-radius: 18px;
    }

    .cp-us-dialog__heading {
        padding: 18px;
    }

    .cp-us-dialog__body {
        max-height: calc(100vh - 104px);
        padding: 18px;
    }

    .cp-us-result {
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        gap: 10px;
        min-height: 70px;
        padding: 10px;
    }

    .cp-us-result__icon {
        width: 40px;
        height: 40px;
    }
}

@supports (height: 100dvh) {
    @media (max-width: 700px) {
        .cp-us-dialog {
            max-height: calc(100dvh - 16px);
        }

        .cp-us-dialog__body {
            max-height: calc(100dvh - 104px);
            padding-bottom: max(18px, env(safe-area-inset-bottom));
        }
    }
}

@media (max-width: 430px) {
    .cp-us__hero {
        gap: 12px;
        padding: 20px 17px;
    }

    .cp-us__hero span:not(.dashicons) {
        font-size: 13px;
    }

    .cp-us__body {
        padding: 17px;
    }

    .cp-us__suggestions,
    .cp-us__filters {
        gap: 6px;
    }

    .cp-us-result__description {
        white-space: normal;
    }

    .cp-us-dialog__heading p {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-us-result,
    .cp-us__status[data-state="loading"]::before {
        transition: none;
        animation-duration: .01ms;
        animation-iteration-count: 1;
    }
}

@media (forced-colors: active) {
    .cp-us,
    .cp-us-dialog,
    .cp-us-result,
    .cp-us__input-row input[type="search"] {
        border: 1px solid CanvasText;
    }
}
