.pt-brand-matcher {
    margin-block: 1.5rem;
    position: relative;
}

.pt-brand-matcher__title {
    margin-bottom: 1.25rem;
}

.pt-brand-matcher__layout {
    align-items: flex-start;
}

.pt-brand-matcher__steps {
    margin: 0 0 1.5rem;
    overflow: visible;
}

.pt-brand-matcher .pt-brand-matcher__steps > li + li {
    margin-top: 1.25rem;
}

.pt-brand-matcher__step {
    color: var(--pt-muted, #6b7280);
    font-size: 0.875rem;
    min-height: 40px;
    position: relative;
}

.pt-brand-matcher__step--value-open {
    z-index: 20;
}

.pt-brand-matcher .pt-brand-matcher__steps > li {
    padding-left: 38px;
}

.pt-brand-matcher .pt-brand-matcher__steps > li:before {
    font-size: 14px;
    height: 28px;
    line-height: 28px;
    top: 0;
    width: 28px;
}

.pt-brand-matcher__step-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
}

.pt-brand-matcher__step-label {
    align-items: baseline;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
    line-height: 1.35;
    max-width: 100%;
}

.pt-brand-matcher__step-clear {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--bs-danger, #dc3545);
    cursor: pointer;
    display: inline;
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
    margin: 0;
    opacity: 0.55;
    padding: 0;
    position: relative;
    top: -0.05em;
    vertical-align: baseline;
}

.pt-brand-matcher__step-clear:hover,
.pt-brand-matcher__step-clear:focus-visible {
    opacity: 0.9;
}

.pt-brand-matcher__step-clear:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 2px;
}

.pt-brand-matcher__step-value {
    align-items: center;
    color: var(--pt-muted, #6b7280);
    display: inline-flex;
    font-size: 0.8125rem;
    font-weight: 400;
    gap: 0.4rem;
    line-height: 1.35;
}

.pt-brand-matcher__step-value-label {
    display: inline-block;
}

.pt-brand-matcher__step-value .pt-brand-matcher__country-flag,
.pt-brand-matcher__step-value .pt-brand-matcher__method-icon {
    flex: 0 0 auto;
}

.pt-brand-matcher__step-value-wrap {
    margin-top: 0.15rem;
    position: relative;
    width: 100%;
}

.pt-brand-matcher__step-value-trigger {
    align-items: center;
    background: var(--surface, #fff);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.375rem;
    box-sizing: border-box;
    color: var(--pt-text, #111827);
    display: flex;
    font-size: 0.8125rem;
    font-weight: 600;
    gap: 0.4rem;
    line-height: 1.35;
    min-height: 2.25rem;
    padding: 0.35rem 1.75rem 0.35rem 0.55rem;
    position: relative;
    text-align: left;
    width: 100%;
}

.pt-brand-matcher__step-value-trigger::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: '';
    height: 0.45rem;
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-65%) rotate(45deg);
    width: 0.45rem;
}

.pt-brand-matcher__step-value-trigger.is-placeholder {
    color: var(--pt-muted, #6b7280);
    font-weight: 400;
}

.pt-brand-matcher__step--value-disabled .pt-brand-matcher__step-value-trigger {
    cursor: not-allowed;
    opacity: 0.55;
}

.pt-brand-matcher__step-value-trigger:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.pt-brand-matcher__step--value-open .pt-brand-matcher__step-value-trigger {
    border-color: rgba(37, 99, 235, 0.45);
}

.pt-brand-matcher__step-value-menu {
    background: var(--surface, #fff);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    left: 0;
    margin: 0.35rem 0 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 21;
}

.pt-brand-matcher__step-value-search {
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    box-shadow: none;
    font-size: 0.8125rem;
    padding: 0.5rem 0.65rem;
}

.pt-brand-matcher__step-value-search:focus {
    box-shadow: none;
    outline: none;
}

.pt-brand-matcher__step-value-list {
    list-style: none;
    margin: 0;
    max-height: 12rem;
    overflow: auto;
    padding: 0.25rem 0;
}

.pt-brand-matcher__step-value-option {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 0.8125rem;
    gap: 0.5rem;
    line-height: 1.35;
    padding: 0.45rem 0.65rem;
}

.pt-brand-matcher__step-value-option:hover,
.pt-brand-matcher__step-value-option.is-selected {
    background: rgba(37, 99, 235, 0.08);
}

.pt-brand-matcher__step-value-more {
    color: var(--primary, #1e66ff);
    font-weight: 650;
    margin-left: 0.35rem;
    white-space: nowrap;
}

.pt-brand-matcher__step-value-list li.pt-brand-matcher__step-value-option,
.pt-brand-matcher__step-value-list li.pt-brand-matcher__step-value-empty {
    padding-left: 0.65rem;
}

.pt-brand-matcher__step-value-list li.pt-brand-matcher__step-value-option:before,
.pt-brand-matcher__step-value-list li.pt-brand-matcher__step-value-empty:before {
    content: none;
    display: none;
}

.pt-brand-matcher__step-value-empty {
    color: var(--pt-muted, #6b7280);
    font-size: 0.8125rem;
    padding: 0.45rem 0.65rem;
}

/* .pt-brand-matcher__step--active .pt-brand-matcher__step-label {
    color: var(--primary, var(--blue, #2563eb));
    font-weight: 600;
}

.pt-brand-matcher__step--active .pt-brand-matcher__step-value {
    color: var(--pt-text, #111827);
    font-weight: 600;
} */

.pt-brand-matcher__step--done .pt-brand-matcher__step-label,
.pt-brand-matcher__step--done .pt-brand-matcher__step-value {
    color: var(--pt-text, #111827);
}

/* .pt-brand-matcher__step--active {
    color: var(--primary, var(--blue, #2563eb));
    font-weight: 600;
} */

.pt-brand-matcher__step--done {
    color: var(--pt-text, #111827);
}

.pt-brand-matcher__match-count--nav {
    margin: 0.75rem 0 0;
}

.pt-brand-matcher__wizard-col {
    overflow: visible;
}

.pt-brand-matcher__panel {
    background: var(--surface, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    max-width: 22rem;
    padding: 1.25rem;
}

.pt-brand-matcher__question-badge {
    background: #111827;
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.85rem;
    text-transform: uppercase;
}

.pt-brand-matcher__panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.35rem;
}

.pt-brand-matcher__match-count,
.pt-brand-matcher__preview-count {
    color: var(--pt-muted, #6b7280);
    font-size: 0.875rem;
    margin: 0 0 1rem;
}

.pt-brand-matcher__combobox {
    margin-bottom: 1.25rem;
    position: relative;
    width: 100%;
}

.pt-brand-matcher__combobox-control {
    align-items: stretch;
    background: var(--surface, #fff);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.375rem;
    box-sizing: border-box;
    display: flex;
    gap: 0;
    overflow: hidden;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.pt-brand-matcher__combobox-control:focus-within,
.pt-brand-matcher__combobox.is-open .pt-brand-matcher__combobox-control {
    border-color: var(--primary, var(--blue, #2563eb));
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.12);
}

.pt-brand-matcher__combobox-input-wrap {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

.pt-brand-matcher__combobox-flag {
    align-items: center;
    display: flex;
    left: 0.65rem;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.pt-brand-matcher__combobox.has-country-flag .pt-brand-matcher__combobox-input,
.pt-brand-matcher__combobox.has-combobox-icon .pt-brand-matcher__combobox-input {
    padding-left: 2.5rem;
}

.pt-brand-matcher__combobox-input.form-control {
    background-color: transparent;
    border: 0;
    border-radius: 0;
    padding-inline-start: 15px;
    box-shadow: none;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.pt-brand-matcher__combobox-toggle {
    align-items: center;
    align-self: stretch;
    background: transparent;
    border: 0;
    /* border-left: 1px solid rgba(0, 0, 0, 0.12); */
    border-radius: 0;
    color: var(--pt-muted, #6b7280);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0;
}

.pt-brand-matcher__combobox-input.form-control:focus {
    background-color: transparent;
    border: 0;
    box-shadow: none;
    outline: none;
}

.pt-brand-matcher__combobox-toggle:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--pt-text, #111827);
}

.pt-brand-matcher__combobox-toggle span {
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    display: block;
    height: 0.45rem;
    margin-top: -0.15rem;
    transform: rotate(-45deg);
    width: 0.45rem;
}

.pt-brand-matcher__combobox.is-open .pt-brand-matcher__combobox-toggle span {
    margin-top: 0.15rem;
    transform: rotate(135deg);
}

.pt-brand-matcher__combobox.is-open .pt-brand-matcher__combobox-input,
.pt-brand-matcher__combobox.is-open .pt-brand-matcher__combobox-toggle {
    border-color: transparent;
}

.pt-brand-matcher__combobox-list {
    background: var(--surface, #fff);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
    list-style: none;
    margin: 0.35rem 0 0;
    max-height: 16rem;
    overflow: auto;
    padding: 0.35rem 0;
    position: absolute;
    width: 100%;
    z-index: 5;
}

.pt-brand-matcher__combobox-list li.pt-brand-matcher__combobox-option,
.pt-brand-matcher__combobox-list li.pt-brand-matcher__combobox-empty {
    cursor: pointer;
    font-size: 0.9375rem;
    line-height: 1.35;
    padding: 0.55rem 0.85rem;
}

.pt-brand-matcher__combobox-list li.pt-brand-matcher__combobox-option:before,
.pt-brand-matcher__combobox-list li.pt-brand-matcher__combobox-empty:before {
    content: none;
}

.pt-brand-matcher__combobox-option:hover,
.pt-brand-matcher__combobox-option.is-highlighted,
.pt-brand-matcher__combobox-option.is-selected {
    background: rgba(37, 99, 235, 0.08);
}

.pt-brand-matcher__combobox-list li.pt-brand-matcher__combobox-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.pt-brand-matcher__country-flag {
    border-radius: 2px;
    flex: 0 0 auto;
    height: 14px;
    object-fit: cover;
    width: 22px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pt-brand-matcher__method-icon {
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
    object-fit: contain;
}
}

.pt-brand-matcher__country-label {
    display: inline-block;
    text-align: left;
}

.pt-brand-matcher__combobox-empty {
    color: var(--pt-muted, #6b7280);
    cursor: default;
}

.pt-brand-matcher__panel-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.pt-brand-matcher__empty,
.pt-brand-matcher__preview-empty,
.pt-brand-matcher__preview-empty-item {
    color: var(--pt-muted, #6b7280);
    margin: 0;
}

.pt-brand-matcher__loading {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.72);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 2.5rem 1rem 1rem;
    position: absolute;
    z-index: 20;
}

@supports (backdrop-filter: blur(4px)) {
    .pt-brand-matcher__loading {
        backdrop-filter: blur(4px);
        background: rgba(255, 255, 255, 0.55);
    }
}

.pt-brand-matcher__loading[hidden] {
    display: none !important;
}

.pt-brand-matcher.is-loading .pt-brand-matcher__loading {
    animation: pt-brand-matcher-loading-in 0.2s ease-out;
}

.pt-brand-matcher__loading-card {
    align-items: center;
    background: var(--surface, #fff);
    border: 1px solid var(--primary-border, #e0f2fe);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem 0.85rem 0.95rem;
    position: sticky;
    top: 1.25rem;
}

.pt-brand-matcher__spinner {
    animation: pt-brand-matcher-spin 0.7s linear infinite;
    border: 3px solid var(--primary-border-light, #bae6fd);
    border-radius: 50%;
    border-top-color: var(--primary, #005ec4);
    box-sizing: border-box;
    display: block;
    flex: 0 0 auto;
    height: 1.75rem;
    width: 1.75rem;
}

.pt-brand-matcher__loading-text {
    color: var(--text, #0f172a);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}

@keyframes pt-brand-matcher-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pt-brand-matcher-loading-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pt-brand-matcher__spinner,
    .pt-brand-matcher.is-loading .pt-brand-matcher__loading {
        animation: none;
    }

    .pt-brand-matcher__spinner {
        border-color: var(--primary-border-light, #bae6fd);
        border-top-color: var(--primary, #005ec4);
        opacity: 0.9;
    }
}

.pt-brand-matcher__preview {
    background: var(--surface, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
}

.pt-brand-matcher__preview-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    text-align: center;
}

.pt-brand-matcher__brand-list {
    counter-reset: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.entry-content .pt-brand-matcher__brand-list,
.entry-content .pt-brand-matcher__brand-list > li {
    padding-left: 0;
}

.entry-content .pt-brand-matcher__brand-list > li::before {
    content: none !important;
    display: none !important;
}

.pt-brand-matcher__brand-row + .pt-brand-matcher__brand-row {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pt-brand-matcher__brand-item {
    align-items: center;
    color: inherit;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 2rem 3.5rem 1fr auto;
    padding: 0.9rem 0;
    text-decoration: none;
}

.pt-brand-matcher__brand-item:hover {
    color: inherit;
    text-decoration: none;
}

.pt-brand-matcher__brand-rank {
    align-items: center;
    background: var(--bs-gray-200);
    border-radius: 999px;
    color: #111827;
    display: inline-flex;
    font-size: 0.8125rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.pt-brand-matcher__brand-rank--top1 {
    background: #FFD700;
}

.pt-brand-matcher__brand-rank--top2 {
    background: #C0C0C0;
}

.pt-brand-matcher__brand-rank--top3 {
    background: #CD7F32;
}

.pt-brand-matcher__brand-logo {
    align-items: center;
    display: flex;
    flex: 0 0 3.25rem;
    height: 2.75rem;
    justify-content: center;
    width: 3.25rem;
}

.pt-brand-matcher__brand-logo img {
    max-height: 2.75rem;
    max-width: 3.25rem;
    object-fit: contain;
}

.pt-brand-matcher__brand-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.pt-brand-matcher__brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.pt-brand-matcher__brand-meta {
    align-items: center;
    color: var(--pt-muted, #6b7280);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.75rem;
    gap: 0.35rem 0.75rem;
    line-height: 1.35;
}

.pt-brand-matcher__brand-rating {
    color: var(--pt-text, #111827);
    font-weight: 600;
}

.pt-brand-matcher__brand-methods {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pt-brand-matcher__brand-method-icon {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    height: 20px;
    object-fit: contain;
    padding: 1px;
    width: 28px;
}

.pt-brand-matcher__brand-method-label {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    font-size: 0.6875rem;
    line-height: 1.2;
    padding: 0.15rem 0.35rem;
}

.pt-brand-matcher__brand-bonus {
    color: var(--pt-text, #111827);
    font-size: 0.8125rem;
    line-height: 1.35;
}

.pt-brand-matcher__brand-terms {
    color: var(--pt-muted, #6b7280);
    font-size: 0.6875rem;
    line-height: 1.35;
}

.pt-brand-matcher__brand-chevron {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    color: var(--pt-muted, #6b7280);
    display: inline-block;
    height: 0.55rem;
    transform: rotate(-45deg);
    width: 0.55rem;
}

@media (max-width: 991.98px) {
    .pt-brand-matcher__preview {
        position: static;
    }
}

.pt-brand-matcher__view-all {
    display: block;
    margin: 0.75rem auto 0;
    width: 100%;
}

.pt-brand-matcher--table .pt-brand-matcher__table-actions {
    text-align: center;
}

.pt-brand-matcher--table.is-loading .pt-brands-table-wrap--matcher,
.pt-brand-matcher--compact.is-loading .pt-brand-matcher__layout {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pt-brand-matcher--table .pt-brand-matcher__load-all {
    min-width: 12rem;
}

@media (max-width: 575.98px) {
    .pt-brand-matcher__brand-item {
        grid-template-columns: 1.75rem 3rem 1fr auto;
        gap: 0.6rem;
    }

    .pt-brand-matcher__panel-title {
        font-size: 1.25rem;
    }
}
