
/* =========================================================
   SMSGATEWAYHUB — Hero WhatsApp Tester (replaces .sp-phone-inner cards)
   Scoped prefix: sghwa-   |  Only extends existing .sp-phone, layout untouched
   ========================================================= */
.sp-phone.sghwa-phone {
    width: 292px;
    height: 572px;
}
.sp-phone.sghwa-phone .sp-phone-notch { height: 17px; width: 80px; }
.sghwa-screen {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #efeae2;
    font-family: Roboto, "Plus Jakarta Sans", Arial, sans-serif;
    text-align: left;
}
/* header */
.sghwa-head {
    background: #075e54;
    color: #fff;
    padding: 30px 12px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.sghwa-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #f97316;
    font-weight: 800;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}
.sghwa-who { flex: 1; min-width: 0; line-height: 1.2; }
.sghwa-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.sghwa-tick {
    width: 13px; height: 13px; border-radius: 50%;
    background: #25d366; color: #fff;
    font-size: 8px; display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sghwa-status {
    font-size: 9.5px;
    color: #b7f0d8;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sghwa-status i {
    width: 6px; height: 6px; border-radius: 50%;
    background: #25d366; display: inline-block; flex-shrink: 0;
    animation: sghwaPulse 1.6s ease-in-out infinite;
}
.sghwa-status.is-typing { color: #fde68a; font-weight: 600; }
.sghwa-reset {
    background: transparent;
    border: 0;
    color: #d1fae5;
    width: 26px; height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.sghwa-reset:hover { background: rgba(255,255,255,.12); }
.sghwa-reset svg { width: 14px; height: 14px; }

/* body */
.sghwa-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 9px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background-color: #efeae2;
    background-image: radial-gradient(rgba(7, 94, 84, .07) 1px, transparent 1px);
    background-size: 12px 12px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}
.sghwa-body::-webkit-scrollbar { width: 3px; }
.sghwa-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 3px; }
.sghwa-sys {
    align-self: center;
    background: #fff7d1;
    color: #6b5d2b;
    font-size: 8.5px;
    padding: 3px 8px;
    border-radius: 6px;
    text-align: center;
    max-width: 92%;
    line-height: 1.35;
    box-shadow: 0 1px 1px rgba(0,0,0,.06);
}
.sghwa-day {
    align-self: center;
    background: #fff;
    color: #54656f;
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .4px;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 1px 1px rgba(0,0,0,.06);
}
.sghwa-row { display: flex; flex-direction: column; align-items: flex-start; animation: sghwaIn .25s ease both; }
.sghwa-row.is-user { align-items: flex-end; }
.sghwa-bubble {
    max-width: 88%;
    background: #fff;
    color: #111b21;
    font-size: 11px;
    line-height: 1.45;
    padding: 6px 8px 4px;
    border-radius: 0 9px 9px 9px;
    box-shadow: 0 1px 1px rgba(0,0,0,.09);
    word-wrap: break-word;
}
.sghwa-row.is-user .sghwa-bubble {
    background: #d9fdd3;
    border-radius: 9px 0 9px 9px;
}
.sghwa-bubble b { font-weight: 700; }
.sghwa-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    font-size: 8px;
    color: #8696a0;
    margin-top: 2px;
}
.sghwa-meta .sghwa-read { color: #53bdeb; font-weight: 700; letter-spacing: -2px; }
.sghwa-links {
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px solid #e9edef;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sghwa-links a {
    font-size: 10.5px;
    font-weight: 600;
    color: #027eb5 !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.3;
}
.sghwa-links a:hover { text-decoration: underline !important; }
.sghwa-btns {
    margin-top: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 88%;
}
.sghwa-btns.is-single { grid-template-columns: 1fr; }
.sghwa-btn {
    background: #fff;
    color: #008069;
    border: 0;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 5px;
    line-height: 1.25;
    cursor: pointer;
    box-shadow: 0 1px 1px rgba(0,0,0,.09);
    transition: background .15s, transform .15s;
    font-family: inherit;
    text-align: center;
}
.sghwa-btn:hover { background: #f0fdf9; transform: translateY(-1px); }
.sghwa-btn:disabled { opacity: .55; cursor: default; transform: none; }
.sghwa-btn.is-wide { grid-column: 1 / -1; }
.sghwa-typing {
    background: #fff;
    border-radius: 0 9px 9px 9px;
    padding: 8px 10px;
    display: inline-flex;
    gap: 3px;
    box-shadow: 0 1px 1px rgba(0,0,0,.09);
}
.sghwa-typing span {
    width: 5px; height: 5px; border-radius: 50%; background: #8696a0;
    animation: sghwaDot 1.1s infinite ease-in-out;
}
.sghwa-typing span:nth-child(2) { animation-delay: .15s; }
.sghwa-typing span:nth-child(3) { animation-delay: .3s; }

/* input */
.sghwa-input {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 8px 14px;
    background: #f0f2f5;
    flex-shrink: 0;
    margin: 0;
}
.sghwa-input input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    border-radius: 18px;
    padding: 7px 11px;
    font-size: 11px;
    color: #111b21;
    background: #fff;
    font-family: inherit;
    box-shadow: none;
    height: auto;
    margin: 0;
}
.sghwa-input input::placeholder { color: #8696a0; }
.sghwa-send {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 0;
    background: #00a884;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.sghwa-send:hover { background: #008069; }
.sghwa-send svg { width: 14px; height: 14px; margin-left: 2px; }

/* bell moved to bottom-left corner so it never covers the input bar or the stats strip */
.sghwa-scene .sp-bell-wrap { left: -14%; bottom: 24px; }
/* floating pills nudged outward so they never sit on top of chat text */
.sghwa-scene .sp-pill-delivery { left: -48%; bottom: 30%; }
.sghwa-scene .sp-pill-uptime { right: -40%; }

@keyframes sghwaIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sghwaDot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-3px); opacity: 1; } }
@keyframes sghwaPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* tablet / mobile — phone stays usable instead of shrinking to 140–170px */
@media (max-width: 991px) {
    .sp-hero-right.sghwa-right { min-height: 660px; }
}
@media (max-width: 768px) {
    .sp-hero-right.sghwa-right { min-height: 0; padding: 40px 0 104px; }
    .sp-phone.sghwa-phone { width: 280px; height: 548px; padding: 8px; }
    .sp-phone.sghwa-phone .sghwa-screen { border-radius: 32px; }
    /* pills on the 4 corners, bell fully below the phone */
    .sghwa-scene .sp-pill-dlt { left: -14%; right: auto; top: -24px; bottom: auto; }
    .sghwa-scene .sp-shield { right: -10%; left: auto; top: -28px; bottom: auto; }
    .sghwa-scene .sp-pill-delivery { left: -14%; right: auto; bottom: -22px; top: auto; }
    .sghwa-scene .sp-pill-uptime { right: -14%; left: auto; bottom: -22px; top: auto; }
    .sghwa-scene .sp-bell-wrap { left: 50%; width: 64px; height: 64px; bottom: -82px; }
    .sghwa-scene .sp-bell-circle svg { width: 64px; height: 64px; }
}
@media (max-width: 480px) {
    .sp-hero-right.sghwa-right { min-height: 0; padding: 34px 0 78px; }
    .sp-phone.sghwa-phone { width: min(272px, calc(100vw - 72px)); height: 530px; }
    /* mobile: pills sit on the 4 corners, outside the chat area */
    .sghwa-scene .sp-pill { font-size: 10px; padding: 6px 11px; }
    .sghwa-scene .sp-pill-dlt { left: -5%; right: auto; top: -22px; bottom: auto; }
    .sghwa-scene .sp-shield { right: -4%; left: auto; top: -24px; bottom: auto; width: 40px; height: 40px; font-size: 18px; }
    .sghwa-scene .sp-pill-delivery { left: -5%; right: auto; bottom: -20px; top: auto; }
    .sghwa-scene .sp-pill-uptime { right: -5%; left: auto; bottom: -20px; top: auto; }
    .sghwa-scene .sp-bell-wrap { width: 56px; height: 56px; bottom: -64px; }
    .sghwa-scene .sp-bell-circle svg { width: 56px; height: 56px; }
    .sghwa-btn { font-size: 10.5px; padding: 7px 5px; }
    .sghwa-bubble { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .sghwa-row, .sghwa-typing span, .sghwa-status i { animation: none; }
}
/* Talk to Expert — phone number card */
.sghwa-num {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    padding: 6px 7px;
}
.sghwa-num-ico { font-size: 13px; line-height: 1; }
.sghwa-num-txt {
    flex: 1 0 calc(100% - 26px);
    min-width: 0;
    font-size: 14px;
    font-weight: 800;
    color: #065f46;
    letter-spacing: .2px;
    white-space: nowrap;
    user-select: all;
}
.sghwa-num-btn {
    border: 0;
    border-radius: 6px;
    background: #00a884;
    color: #fff !important;
    font-size: 9.5px;
    font-weight: 700;
    flex: 1 1 0;
    text-align: center;
    padding: 6px 7px;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    font-family: inherit;
}
.sghwa-num-btn.is-copy { background: #fff; color: #008069 !important; border: 1px solid #a7f3d0; }
.sghwa-num-btn:hover { filter: brightness(.95); }
    