/* SeoWeb BRREG Checkout - Checkout Block fallback polish */
.swbrreg-block-orgnr-hidden {
    display: none !important;
}

.swbrreg-block-help {
    display: block;
    margin-top: 6px;
    color: #5f6b7a;
    font-size: 12px;
    line-height: 1.35;
}

.swbrreg-block-orgnr-field input {
    letter-spacing: .01em;
}

.swbrreg-block-live-status {
    display: block;
    margin-top: 7px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.35;
    border: 1px solid #d9e2ef;
    background: #f8fbff;
    color: #43546a;
}

.swbrreg-block-live-status.is-warning,
.swbrreg-block-live-status.is-checking {
    background: #fff8e6;
    border-color: #f2d58a;
    color: #7a5600;
}

.swbrreg-block-live-status.is-success {
    background: #eefaf1;
    border-color: #b7e2c1;
    color: #17612b;
}

.swbrreg-block-live-status.is-error {
    background: #fff1f1;
    border-color: #f2b7b7;
    color: #9a1b1b;
}

.swbrreg-is-valid input {
    border-color: #26833c !important;
}

.swbrreg-is-invalid input {
    border-color: #cc3333 !important;
}

.swbrreg-block-results {
    margin-top: 8px;
}

.swbrreg-block-results__title {
    margin: 0 0 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.swbrreg-block-results__list {
    display: grid;
    gap: 8px;
}

.swbrreg-block-result {
    display: block;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    cursor: pointer;
}

.swbrreg-block-result:hover,
.swbrreg-block-result:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 1px #2563eb inset;
}

.swbrreg-block-result__name {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 3px;
}

.swbrreg-block-result__meta,
.swbrreg-block-result__address {
    display: block;
    color: #53657d;
    font-size: 12px;
    line-height: 1.35;
}

.swbrreg-block-result__cta {
    display: inline-block;
    margin-top: 7px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.swbrreg-block-autofilled input,
.swbrreg-block-autofilled textarea,
.swbrreg-block-autofilled select {
    border-color: #26833c !important;
    box-shadow: 0 0 0 1px rgba(38, 131, 60, .12) inset;
}

/* v0.1.10: force theme-safe BRREG result cards and selectable light backgrounds. */
.swbrreg-block-result,
.swbrreg-block-result:visited,
.swbrreg-block-result:active {
    color: #172033 !important;
    background: var(--swbrreg-result-bg, #ffffff) !important;
    border-color: var(--swbrreg-result-border, #d9e2ef) !important;
    appearance: none;
    -webkit-appearance: none;
}

.swbrreg-result-theme-light {
    --swbrreg-result-bg: #ffffff;
    --swbrreg-result-bg-hover: #f8fbff;
    --swbrreg-result-border: #d9e2ef;
}

.swbrreg-result-theme-blue {
    --swbrreg-result-bg: #f3f8ff;
    --swbrreg-result-bg-hover: #eaf3ff;
    --swbrreg-result-border: #bfd8ff;
}

.swbrreg-result-theme-green {
    --swbrreg-result-bg: #f1fbf4;
    --swbrreg-result-bg-hover: #e8f8ed;
    --swbrreg-result-border: #bbe5c5;
}

.swbrreg-result-theme-gray {
    --swbrreg-result-bg: #f8fafc;
    --swbrreg-result-bg-hover: #f1f5f9;
    --swbrreg-result-border: #d7dee8;
}

.swbrreg-block-result:hover,
.swbrreg-block-result:focus {
    background: var(--swbrreg-result-bg-hover, #f8fbff) !important;
    color: #172033 !important;
}

/* v0.1.11: Checkout Block layout containment and compact status hardening. */
.wp-block-woocommerce-checkout,
.wc-block-checkout,
.wc-block-components-sidebar-layout,
.wc-block-components-main,
.wc-block-components-sidebar,
.wp-block-woocommerce-checkout * {
    box-sizing: border-box;
}

.wc-block-components-main,
.wc-block-checkout__main,
.wp-block-woocommerce-checkout-fields-block,
.wp-block-woocommerce-checkout-contact-information-block,
.wp-block-woocommerce-checkout-billing-address-block {
    min-width: 0;
}

.swbrreg-block-orgnr-field,
.swbrreg-block-orgnr-field *,
.swbrreg-block-live-status,
.swbrreg-block-results,
.swbrreg-block-results__list,
.swbrreg-block-result {
    max-width: 100%;
    min-width: 0;
}

.swbrreg-block-live-status {
    width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.swbrreg-block-live-status .swbrreg-status-main,
.swbrreg-block-live-status .swbrreg-status-meta {
    display: block;
}

.swbrreg-block-live-status .swbrreg-status-main {
    font-weight: 700;
}

.swbrreg-block-live-status .swbrreg-status-meta {
    margin-top: 2px;
    font-size: 11px;
    opacity: .9;
}

@media (max-width: 782px) {
    .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout,
    .wp-block-woocommerce-checkout .wc-block-checkout,
    .wc-block-components-sidebar-layout {
        display: block !important;
    }

    .wp-block-woocommerce-checkout .wc-block-components-main,
    .wp-block-woocommerce-checkout .wc-block-components-sidebar,
    .wp-block-woocommerce-checkout .wc-block-checkout__main,
    .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        clear: both !important;
        position: static !important;
        transform: none !important;
    }

    .wp-block-woocommerce-checkout .wc-block-components-sidebar,
    .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
        margin-top: 24px !important;
    }
}

/* v0.1.12: WooCommerce Checkout Block floating-label / placeholder overlap hardening. */
.swbrreg-block-orgnr-field input::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

.swbrreg-block-orgnr-field .wc-block-components-text-input label,
.swbrreg-block-orgnr-field label {
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.swbrreg-block-orgnr-field input {
    min-height: 48px;
}

.swbrreg-block-orgnr-field .wc-block-components-text-input.is-active label,
.swbrreg-block-orgnr-field .wc-block-components-text-input.has-error label {
    background: transparent;
}
