.swbrreg-box {
    box-sizing: border-box;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    padding: 18px;
    margin: 0 0 24px;
    background: #f8fbff;
    color: #152235;
    clear: both;
}

.swbrreg-box *,
.swbrreg-box *::before,
.swbrreg-box *::after {
    box-sizing: border-box;
}

.swbrreg-box__header h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
}

.swbrreg-box__header p {
    margin: 0 0 14px;
    color: #53657d;
}

.swbrreg-type {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.swbrreg-type__option {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    margin: 0 !important;
    background: #fff !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    min-height: 46px;
}

.swbrreg-type__option input[type="radio"] {
    margin: 0 !important;
    flex: 0 0 auto;
}

.swbrreg-type__option span {
    display: inline-block !important;
}

.swbrreg-type__option.is-selected {
    border-color: #244d7f !important;
    box-shadow: 0 0 0 1px #244d7f inset !important;
}

.swbrreg-business-panel[hidden],
.swbrreg-selected[hidden] {
    display: none !important;
}

.swbrreg-business-panel {
    border-top: 1px solid #d9e2ef;
    padding-top: 14px;
}

.swbrreg-business-panel__intro {
    display: grid;
    gap: 3px;
    margin-bottom: 12px;
}

.swbrreg-business-panel__intro span {
    color: #53657d;
    font-size: 14px;
}

.swbrreg-search label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.swbrreg-search__row {
    display: flex !important;
    gap: 10px;
    align-items: stretch;
}

.swbrreg-search__row input {
    flex: 1 1 auto;
    min-width: 0;
}

.swbrreg-search__row .button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.swbrreg-status {
    margin-top: 10px;
    font-size: 14px;
}

.swbrreg-status.is-error {
    color: #a4262c;
}

.swbrreg-status.is-success {
    color: #0f6b3f;
}

.swbrreg-status.is-loading {
    color: #244d7f;
}

.swbrreg-result-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.swbrreg-result,
.swbrreg-selected__card {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.swbrreg-result__main,
.swbrreg-selected__card > div:first-child {
    display: grid;
    gap: 3px;
}

.swbrreg-muted {
    display: block;
    color: #5d6f86;
    font-size: 13px;
}

.swbrreg-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.swbrreg-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: #edf4ff;
    color: #244d7f;
    font-size: 12px;
    font-weight: 700;
}

.swbrreg-pill--warning {
    background: #fff4e5;
    color: #8a4b00;
}

.swbrreg-selected {
    margin-top: 14px;
}

.swbrreg-selected__label {
    color: #53657d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.swbrreg-block-warning {
    margin: 0 0 18px;
}

@media (max-width: 640px) {
    .swbrreg-type,
    .swbrreg-search__row,
    .swbrreg-result,
    .swbrreg-selected__card {
        display: grid !important;
    }

    .swbrreg-search__row .button,
    .swbrreg-result .button,
    .swbrreg-selected__card .button {
        width: 100%;
    }
}

.swbrreg-registration-panel[hidden] {
    display: none !important;
}

.swbrreg-registration-panel {
    border-top: 1px solid #d9e2ef;
    padding-top: 14px;
}

.swbrreg-type--locked {
    grid-template-columns: minmax(0, 1fr);
}

/* v0.1.20 - account registration visual polish */
.swbrreg-registration {
    --swbrreg-blue: #315be8;
    --swbrreg-blue-dark: #2443b5;
    --swbrreg-blue-soft: #eef3ff;
    --swbrreg-border: #dfe7f3;
    --swbrreg-text: #18263a;
    --swbrreg-muted: #62748a;
    --swbrreg-success: #117546;
    --swbrreg-success-soft: #effbf5;
    --swbrreg-success-border: #bfe8cf;
    background: #ffffff !important;
    border: 1px solid var(--swbrreg-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 34px rgba(15, 35, 70, .08) !important;
    padding: 20px !important;
    margin: 14px 0 18px !important;
    color: var(--swbrreg-text) !important;
}

.swbrreg-registration .swbrreg-box__header {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.swbrreg-registration .swbrreg-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: var(--swbrreg-blue-soft);
    color: var(--swbrreg-blue-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    padding: 6px 9px;
    text-transform: uppercase;
}

.swbrreg-registration .swbrreg-box__header h3 {
    margin: 8px 0 0 !important;
    color: var(--swbrreg-text) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
}

.swbrreg-registration .swbrreg-box__header p,
.swbrreg-registration .swbrreg-business-panel__intro span,
.swbrreg-registration .swbrreg-muted,
.swbrreg-registration .swbrreg-selected__hint {
    color: var(--swbrreg-muted) !important;
}

.swbrreg-registration .swbrreg-box__header p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.swbrreg-registration .swbrreg-type {
    background: #f7f9fd;
    border: 1px solid var(--swbrreg-border);
    border-radius: 16px;
    padding: 5px;
    gap: 6px !important;
    margin-bottom: 18px !important;
}

.swbrreg-registration .swbrreg-type__option {
    justify-content: center !important;
    min-height: 44px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: var(--swbrreg-muted) !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    padding: 10px 12px !important;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.swbrreg-registration .swbrreg-type__option input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.swbrreg-registration .swbrreg-type__option.is-selected {
    background: #ffffff !important;
    border-color: #cad8ee !important;
    color: var(--swbrreg-blue-dark) !important;
    box-shadow: 0 6px 16px rgba(24, 50, 95, .10) !important;
}

.swbrreg-registration .swbrreg-registration-panel {
    background: #f8fbff;
    border: 1px solid var(--swbrreg-border);
    border-radius: 16px;
    padding: 16px !important;
}

.swbrreg-registration .swbrreg-business-panel__intro {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px !important;
}

.swbrreg-registration .swbrreg-business-panel__intro strong {
    display: block;
    color: var(--swbrreg-text);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 2px;
}

.swbrreg-registration .swbrreg-business-panel__intro span {
    display: block;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.swbrreg-registration .swbrreg-search label {
    color: var(--swbrreg-text) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    margin-bottom: 7px !important;
}

.swbrreg-registration .swbrreg-search__row {
    background: #ffffff;
    border: 1px solid #cad8ee;
    border-radius: 14px;
    padding: 4px;
    gap: 6px !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.swbrreg-registration .swbrreg-search__row:focus-within {
    border-color: var(--swbrreg-blue) !important;
    box-shadow: 0 0 0 3px rgba(49, 91, 232, .12) !important;
}

.swbrreg-registration .swbrreg-search__row input.input-text,
.swbrreg-registration .swbrreg-search__row input[type="text"] {
    height: 42px !important;
    min-height: 42px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 10px !important;
    color: var(--swbrreg-text) !important;
    font-size: 14px !important;
    outline: none !important;
}

.swbrreg-registration .swbrreg-search__row input::placeholder {
    color: #9aa9bb !important;
}

.swbrreg-button {
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.swbrreg-button:hover,
.swbrreg-button:focus {
    transform: translateY(-1px);
    text-decoration: none !important;
}

.swbrreg-button--primary {
    background: var(--swbrreg-blue) !important;
    border-color: var(--swbrreg-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(49, 91, 232, .22) !important;
}

.swbrreg-button--primary:hover,
.swbrreg-button--primary:focus {
    background: var(--swbrreg-blue-dark) !important;
    border-color: var(--swbrreg-blue-dark) !important;
    color: #ffffff !important;
}

.swbrreg-button--secondary {
    background: #ffffff !important;
    border-color: #cbd8ed !important;
    color: var(--swbrreg-blue-dark) !important;
    box-shadow: none !important;
}

.swbrreg-button--secondary:hover,
.swbrreg-button--secondary:focus {
    background: var(--swbrreg-blue-soft) !important;
    border-color: #9fb6e0 !important;
    color: var(--swbrreg-blue-dark) !important;
}

.swbrreg-registration .swbrreg-status {
    min-height: 0;
    margin-top: 10px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.swbrreg-registration .swbrreg-status.is-error,
.swbrreg-registration .swbrreg-status.is-loading,
.swbrreg-registration .swbrreg-status.is-success {
    border-radius: 12px;
    padding: 9px 11px;
}

.swbrreg-registration .swbrreg-status.is-error {
    background: #fff4f4;
    border: 1px solid #f0caca;
}

.swbrreg-registration .swbrreg-status.is-loading {
    background: #f1f5ff;
    border: 1px solid #cbd8ff;
}

.swbrreg-registration .swbrreg-status.is-success {
    background: var(--swbrreg-success-soft);
    border: 1px solid var(--swbrreg-success-border);
}

.swbrreg-registration .swbrreg-result-list {
    border: 1px solid var(--swbrreg-border);
    border-radius: 16px;
    background: #ffffff;
    padding: 8px;
    gap: 8px !important;
    margin-top: 12px !important;
}

.swbrreg-registration .swbrreg-result-list__title {
    color: var(--swbrreg-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 4px 4px 2px;
    text-transform: uppercase;
}

.swbrreg-registration .swbrreg-result,
.swbrreg-registration .swbrreg-selected__card {
    border-radius: 14px !important;
    padding: 14px !important;
}

.swbrreg-registration .swbrreg-result {
    border-color: transparent !important;
    background: #f8fbff !important;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.swbrreg-registration .swbrreg-result:hover,
.swbrreg-registration .swbrreg-result:focus-within,
.swbrreg-registration .swbrreg-result:focus {
    background: var(--swbrreg-blue-soft) !important;
    border-color: #b8caef !important;
    outline: none !important;
}

.swbrreg-registration .swbrreg-result__main strong,
.swbrreg-registration .swbrreg-selected__content strong {
    color: var(--swbrreg-text) !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

.swbrreg-registration .swbrreg-selected {
    margin-top: 14px !important;
}

.swbrreg-registration .swbrreg-selected__card {
    background: var(--swbrreg-success-soft) !important;
    border: 1px solid var(--swbrreg-success-border) !important;
    box-shadow: 0 8px 22px rgba(15, 117, 70, .08) !important;
}

.swbrreg-registration .swbrreg-selected__content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.swbrreg-registration .swbrreg-selected__top {
    display: flex;
    align-items: center;
    gap: 7px;
}

.swbrreg-registration .swbrreg-selected__label {
    color: var(--swbrreg-success) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .06em !important;
}

.swbrreg-registration .swbrreg-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--swbrreg-success);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.swbrreg-registration .swbrreg-selected__hint {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
}

.swbrreg-registration .swbrreg-pill {
    background: #eaf1ff !important;
    color: var(--swbrreg-blue-dark) !important;
}

.swbrreg-registration .swbrreg-pill--warning {
    background: #fff4e5 !important;
    color: #8a4b00 !important;
}

@media (max-width: 700px) {
    .swbrreg-registration {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .swbrreg-registration .swbrreg-search__row,
    .swbrreg-registration .swbrreg-result,
    .swbrreg-registration .swbrreg-selected__card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .swbrreg-registration .swbrreg-button,
    .swbrreg-registration .swbrreg-search__row .swbrreg-button,
    .swbrreg-registration .swbrreg-result .swbrreg-button,
    .swbrreg-registration .swbrreg-selected__card .swbrreg-button {
        width: 100% !important;
    }
}

/* v0.1.20 - registration result overflow and compact MVA pills */
.swbrreg-registration,
.swbrreg-registration .swbrreg-registration-panel,
.swbrreg-registration .swbrreg-reg-results {
    position: relative;
    z-index: 20;
}

.swbrreg-registration .swbrreg-reg-results {
    margin-bottom: 18px;
}

.swbrreg-registration .swbrreg-result-list {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    box-shadow: 0 14px 34px rgba(15, 35, 70, .10) !important;
}

.swbrreg-registration .swbrreg-result-list::after {
    content: '';
    display: block;
    height: 2px;
}

.swbrreg-registration .swbrreg-result-list::-webkit-scrollbar {
    width: 9px;
}

.swbrreg-registration .swbrreg-result-list::-webkit-scrollbar-thumb {
    background: #c7d5eb;
    border: 2px solid #ffffff;
    border-radius: 999px;
}

.swbrreg-registration .swbrreg-result-list::-webkit-scrollbar-track {
    background: #f6f9fe;
    border-radius: 999px;
}

.swbrreg-registration .swbrreg-result__heading,
.swbrreg-registration .swbrreg-selected__heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.swbrreg-registration .swbrreg-result__heading strong,
.swbrreg-registration .swbrreg-selected__heading strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.swbrreg-registration .swbrreg-pill--mva {
    margin-top: 0 !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    flex: 0 0 auto;
}

.swbrreg-registration .swbrreg-result__heading .swbrreg-pill--warning,
.swbrreg-registration .swbrreg-selected__heading .swbrreg-pill--warning {
    flex-basis: 100%;
    width: fit-content;
}

.swbrreg-registration .swbrreg-result .swbrreg-button {
    align-self: center;
}

.swbrreg-registration .swbrreg-result {
    min-height: 0;
}

.swbrreg-registration + * {
    position: relative;
    z-index: 1;
}

@media (max-height: 820px) {
    .swbrreg-registration .swbrreg-result-list {
        max-height: 300px;
    }
}

@media (max-width: 700px) {
    .swbrreg-registration .swbrreg-result-list {
        max-height: 300px;
    }

    .swbrreg-registration .swbrreg-result__heading,
    .swbrreg-registration .swbrreg-selected__heading {
        align-items: flex-start;
    }

    .swbrreg-registration .swbrreg-pill--mva {
        margin-top: 1px !important;
    }
}

/* v0.1.21 - account registration field manager */
.swbrreg-registration .swbrreg-registration-fields {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.swbrreg-registration .swbrreg-field-section {
    background: #ffffff !important;
    border: 1px solid #dbe7f7 !important;
    border-radius: 16px !important;
    padding: 14px !important;
    box-shadow: 0 8px 22px rgba(15, 35, 70, .05) !important;
}

.swbrreg-registration .swbrreg-field-section[hidden] {
    display: none !important;
}

.swbrreg-registration .swbrreg-field-section__title {
    color: var(--swbrreg-blue-dark) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    margin: 0 0 10px !important;
    text-transform: uppercase !important;
}

.swbrreg-registration .swbrreg-field-grid {
    display: grid !important;
    gap: 10px !important;
}

.swbrreg-registration .swbrreg-field-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.swbrreg-registration .swbrreg-managed-field {
    margin: 0 0 10px !important;
    padding: 0 !important;
}

.swbrreg-registration .swbrreg-managed-field:last-child,
.swbrreg-registration .swbrreg-field-grid + .swbrreg-managed-field:last-child {
    margin-bottom: 0 !important;
}

.swbrreg-registration .swbrreg-managed-field label {
    display: block !important;
    color: var(--swbrreg-blue-dark) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    margin: 0 0 5px !important;
}

.swbrreg-registration .swbrreg-managed-field input,
.swbrreg-registration .swbrreg-managed-field select {
    width: 100% !important;
    min-height: 42px !important;
    border: 1px solid #c9daf2 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #10233f !important;
    padding: 9px 11px !important;
    box-shadow: none !important;
}

.swbrreg-registration .swbrreg-managed-field input:focus,
.swbrreg-registration .swbrreg-managed-field select:focus {
    border-color: var(--swbrreg-blue) !important;
    box-shadow: 0 0 0 3px rgba(47, 92, 255, .12) !important;
    outline: 0 !important;
}

.swbrreg-registration .swbrreg-autofill-field input[readonly] {
    background: #f8fbff !important;
    cursor: default;
}

@media (max-width: 700px) {
    .swbrreg-registration .swbrreg-field-grid--2 {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* v0.1.22 - complete registration box/account field embedding */
.swbrreg-registration .swbrreg-account-fields {
    margin: 0 0 14px !important;
}

.swbrreg-registration .swbrreg-account-fields p,
.swbrreg-registration .swbrreg-account-fields .form-row,
.swbrreg-registration .swbrreg-account-fields .woocommerce-form-row {
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.swbrreg-registration .swbrreg-account-fields p:last-child,
.swbrreg-registration .swbrreg-account-fields .form-row:last-child,
.swbrreg-registration .swbrreg-account-fields .woocommerce-form-row:last-child {
    margin-bottom: 0 !important;
}

.swbrreg-registration .swbrreg-account-fields label {
    display: block !important;
    color: var(--swbrreg-blue-dark) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    margin: 0 0 5px !important;
}

.swbrreg-registration .swbrreg-account-fields input[type="text"],
.swbrreg-registration .swbrreg-account-fields input[type="email"],
.swbrreg-registration .swbrreg-account-fields input[type="password"] {
    width: 100% !important;
    min-height: 42px !important;
    border: 1px solid #c9daf2 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #10233f !important;
    padding: 9px 11px !important;
    box-shadow: none !important;
}

.swbrreg-registration .swbrreg-account-fields input[type="text"]:focus,
.swbrreg-registration .swbrreg-account-fields input[type="email"]:focus,
.swbrreg-registration .swbrreg-account-fields input[type="password"]:focus {
    border-color: var(--swbrreg-blue) !important;
    box-shadow: 0 0 0 3px rgba(47, 92, 255, .12) !important;
    outline: 0 !important;
}

.swbrreg-registration .swbrreg-account-fields .woocommerce-password-strength,
.swbrreg-registration .swbrreg-account-fields .woocommerce-password-hint,
.swbrreg-registration .swbrreg-account-fields small,
.swbrreg-registration .swbrreg-account-fields em,
.swbrreg-registration .swbrreg-account-fields .description {
    color: var(--swbrreg-muted) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.swbrreg-registration .swbrreg-type-section {
    margin: 0 0 14px !important;
}

.swbrreg-registration .swbrreg-type-section .swbrreg-type {
    margin-bottom: 0 !important;
}

.swbrreg-registration.is-business .swbrreg-registration-panel {
    margin-top: 0 !important;
}
