.sbwai-wrap.sbh-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 12px 34px;
    font: inherit;
    color: #22324a;
    box-sizing: border-box;
}

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

.sbwai-wrap .sbh-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1d6fd6 0%, #4e9af4 52%, #ff5fa2 100%);
    border-radius: 28px;
    padding: 30px 24px;
    box-shadow: 0 16px 42px rgba(29, 111, 214, 0.22);
    color: #ffffff;
}

.sbwai-wrap .sbh-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -60px;
    top: -80px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    pointer-events: none;
}

.sbwai-hero-content {
    position: relative;
    z-index: 1;
}

.sbwai-wrap .sbh-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 7vw, 3.4rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.sbwai-wrap .sbh-hero p {
    max-width: 720px;
    margin: 14px 0 0;
    color: #ffffff;
    font-size: clamp(1rem, 3.4vw, 1.28rem);
    line-height: 1.45;
    font-weight: 650;
}

.sbwai-wrap .sbh-intro-card {
    margin: 18px 0;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #cfe7ff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(20, 51, 90, 0.08);
    font-weight: 650;
}

.sbwai-wrap .sbh-intro-card p {
    margin: 0;
    color: #22324a;
    line-height: 1.55;
}

.sbwai-grid,
.sbwai-phrase-grid,
.sbwai-button-grid,
.sbwai-map-links,
.sbwai-location-list {
    display: grid;
    gap: 14px;
}

.sbwai-grid-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 18px;
}

.sbwai-wrap .sbh-tool-card {
    display: flex;
    flex-direction: column;
    min-height: 238px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #cfe7ff;
    box-shadow: 0 12px 34px rgba(20, 51, 90, 0.08);
}

.sbwai-wrap .sbh-tool-card h2,
.sbwai-phrase-section h2 {
    margin: 0 0 10px;
    color: #14335a;
    font-size: 1.35rem;
    line-height: 1.18;
    font-weight: 900;
}

.sbwai-wrap .sbh-tool-card p,
.sbwai-phrase-section p {
    margin: 0 0 12px;
    color: #52647d;
    line-height: 1.5;
}

.sbwai-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 0 14px;
    border-radius: 18px;
    background: #eef7ff;
    border: 1px solid #cfe7ff;
    font-size: 1.55rem;
}

.sbwai-note {
    padding: 10px 12px;
    border-radius: 16px;
    background: #fff1f7;
    border: 1px solid #ffd0e4;
    color: #b61c63 !important;
    font-weight: 800;
}

.sbwai-wrap .sbh-open-button {
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d6fd6, #ff5fa2);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(29, 111, 214, 0.2);
    cursor: pointer;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    transition: filter 0.18s ease, transform 0.18s ease;
}

.sbwai-wrap .sbh-open-button:hover,
.sbwai-wrap .sbh-open-button:focus {
    color: #ffffff;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.sbwai-wrap .sbh-open-button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}


.sbwai-status {
    min-height: 24px;
    margin-top: 12px;
    color: #52647d;
    font-weight: 800;
}

.sbwai-status[data-type="success"] {
    color: #1d6fd6;
}

.sbwai-status[data-type="error"] {
    color: #b61c63;
}

.sbwai-result-card,
.sbwai-error-card,
.sbwai-privacy-card,
.sbwai-phrase-section {
    margin-top: 18px;
}

.sbwai-result-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sbwai-status-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff1f7;
    border: 1px solid #ffd0e4;
    color: #b61c63;
    font-weight: 900;
    white-space: nowrap;
}

.sbwai-location-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 16px;
}

.sbwai-location-list div {
    padding: 14px;
    border-radius: 18px;
    background: #eef7ff;
    border: 1px solid #cfe7ff;
}

.sbwai-location-list dt {
    margin: 0 0 5px;
    color: #52647d;
    font-weight: 800;
}

.sbwai-location-list dd {
    margin: 0;
    color: #14335a;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.sbwai-map-note {
    margin: 0 0 16px !important;
}

.sbwai-map-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.sbwai-map-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #eef7ff;
    border: 1px solid #cfe7ff;
    color: #1d6fd6;
    font-weight: 900;
    text-decoration: none;
    text-align: center;
}

.sbwai-map-links a:hover,
.sbwai-map-links a:focus {
    color: #ff5fa2;
    text-decoration: none;
}

.sbwai-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sbwai-phrase-section {
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #cfe7ff;
    box-shadow: 0 12px 34px rgba(20, 51, 90, 0.08);
}

.sbwai-phrase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sbwai-wrap .sbwai-phrase-card {
    min-height: 0;
}

.sbwai-phrase-en {
    margin-bottom: 4px !important;
    color: #14335a !important;
    font-weight: 900;
}

.sbwai-phrase-es {
    color: #b61c63 !important;
    font-weight: 850;
}

.sbwai-small-button {
    min-height: 44px !important;
    padding: 10px 12px !important;
}

.sbwai-wrap [hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    .sbwai-wrap.sbh-wrap {
        padding: 18px 10px 34px;
    }

    .sbwai-wrap .sbh-hero {
        padding: 26px 20px;
        border-radius: 24px;
    }

    .sbwai-grid-main,
    .sbwai-location-list,
    .sbwai-map-links,
    .sbwai-button-grid,
    .sbwai-phrase-grid {
        grid-template-columns: 1fr;
    }

    .sbwai-wrap .sbh-tool-card {
        min-height: auto;
    }

    .sbwai-result-top {
        display: block;
    }

    .sbwai-status-badge {
        margin-top: 4px;
    }
}
