.bdw-lookup { padding: 92px 0 100px; background: #fff; }
.bdw-tool { max-width: 720px; margin: 42px auto 0; }
.bdw-tool .wdc-search-form, .bdw-tool form { margin: 0 auto; }
.bdw-result { margin-top: 24px; overflow: hidden; border: 1px solid #dfe6f2; border-radius: 8px; background: #fff; box-shadow: 0 12px 34px rgba(16, 38, 80, .10); }
.bdw-result__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; color: #fff; background: #0c4fbd; }
.bdw-result__eyebrow { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
.bdw-result__header h3 { margin: 0; color: #fff; font-size: 22px; }
.bdw-result__close { width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; color: #fff; background: transparent; cursor: pointer; }
.bdw-result__close:hover { background: rgba(255,255,255,.14); }
.bdw-result__body { min-height: 110px; padding: 24px; color: #26324b; background: #fff; }
.bdw-result__body pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #26324b; }
.bdw-result__body.is-loading { display: grid; place-items: center; color: #526078; }
.bdw-result__body.is-error { color: #b42318; background: #fff4f2; }
@media (max-width: 767px) { .bdw-lookup { padding: 68px 0 76px; } .bdw-result__header, .bdw-result__body { padding: 18px; } }

/* Keep the plugin WHOIS action vertically centered in the result row. */
.bdw-tool #wdc-style #results .callout.bdc-result-row { display:grid !important; grid-template-columns:minmax(0,1fr) auto !important; align-items:center !important; column-gap:18px !important; padding:12px 14px !important; }
.bdw-tool #wdc-style #results .bdc-result-action { display:flex !important; align-items:center !important; align-self:stretch !important; margin:0 !important; }
.bdw-tool #wdc-style #results .bdc-result-action .whois-btn { position:static !important; float:none !important; margin:0 !important; transform:none !important; }
@media(max-width:575px){.bdw-tool #wdc-style #results .callout.bdc-result-row{grid-template-columns:1fr !important;row-gap:10px !important;}}

/* BeDijital 1.0.2: deterministic desktop result-row layout */
.bdw-tool #wdc-style #results .callout.bdc-result-row {
    position: relative !important;
    display: block !important;
    min-height: 70px !important;
    padding: 18px 126px 18px 18px !important;
    box-sizing: border-box !important;
}
.bdw-tool #wdc-style #results .callout.bdc-result-row .bdc-result-message {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 34px !important;
    margin: 0 !important;
    text-align: left !important;
}
.bdw-tool #wdc-style #results .callout.bdc-result-row .bdc-result-action {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
}
.bdw-tool #wdc-style #results .callout.bdc-result-row .bdc-result-action .whois-btn {
    position: static !important;
    display: inline-flex !important;
    margin: 0 !important;
    transform: none !important;
}
@media (max-width: 575px) {
    .bdw-tool #wdc-style #results .callout.bdc-result-row { padding: 16px !important; }
    .bdw-tool #wdc-style #results .callout.bdc-result-row .bdc-result-action {
        position: static !important;
        width: 100% !important;
        margin-top: 12px !important;
        transform: none !important;
    }
    .bdw-tool #wdc-style #results .callout.bdc-result-row .bdc-result-action .whois-btn { width: 100% !important; }
}

/* BeDijital 1.0.33: structured WHOIS result */
.bdw-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bdw-field { min-width: 0; padding: 15px 16px; border: 1px solid #e2e8f2; border-radius: 7px; background: #f8faff; }
.bdw-field__label { display: block; margin-bottom: 5px; color: #62708a; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bdw-field__value { color: #18243a; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.bdw-raw { margin-top: 18px; border-top: 1px solid #e5eaf2; }
.bdw-raw summary { padding: 16px 2px 0; color: #0c4fbd; font-size: 13px; font-weight: 700; cursor: pointer; }
.bdw-raw pre { margin-top: 15px !important; padding: 16px; border-radius: 6px; background: #f5f7fb; }
@media (max-width: 640px) { .bdw-fields { grid-template-columns: 1fr; } }

/* Final authority: result line remains a genuine flex row on desktop. */
.bdw-tool #wdc-style #results .callout.bdc-result-row {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    min-height: 0 !important;
    padding: 14px 16px !important;
}
.bdw-tool #wdc-style #results .callout.bdc-result-row .bdc-result-message {
    position: static !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
}
.bdw-tool #wdc-style #results .callout.bdc-result-row .bdc-result-action {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}
.bdw-tool #wdc-style #results .callout.bdc-result-row .bdc-result-action .whois-btn {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    transform: none !important;
}
@media (max-width: 575px) {
    .bdw-tool #wdc-style #results .callout.bdc-result-row { flex-direction: column !important; align-items: stretch !important; }
    .bdw-tool #wdc-style #results .callout.bdc-result-row .bdc-result-action,
    .bdw-tool #wdc-style #results .callout.bdc-result-row .bdc-result-action .whois-btn { width: 100% !important; }
}
