/* WhatsApp Chat Widget — modern refresh
   Shared across all brands (iWatchRepair / iPad Repair / MacBookFix) and every
   base layout. Restyle only — markup hooks and JS toggle classes (.hide/.show,
   .blantershow-chat, .close-chat, .blanter-msg) are preserved.
   Colours below are WhatsApp brand colours (not site design tokens), kept here
   in the dedicated widget stylesheet and centralised as custom properties. */
:root {
    --wa-green: #25d366;
    --wa-green-d: #1dbf5b;
    --wa-green-dd: #17a74e;
    --wa-teal: #00a884;
    --wa-teal-d: #017561;
    --wa-panel-bg: #ffffff;
    --wa-chat-bg: #efeae2;
    --wa-bubble: #ffffff;
    --wa-text: #111b21;
    --wa-text-muted: #667781;
    --wa-radius: 18px;
    --wa-fab-size: 60px;
    --wa-shadow: 0 16px 44px rgba(11, 20, 26, 0.18), 0 3px 10px rgba(11, 20, 26, 0.08);
}

/* ============================ Panel ============================ */
#whatsapp-chat {
    box-sizing: border-box;
    outline: none;
    position: fixed;
    width: 360px;
    max-width: calc(100vw - 32px);
    bottom: 96px;
    right: 24px;
    border-radius: var(--wa-radius);
    box-shadow: var(--wa-shadow);
    overflow: hidden;
    z-index: 1002;
    background: var(--wa-panel-bg);
    transform-origin: bottom right;
}

div#whatsapp-chat.hide {
    display: none;
}

div#whatsapp-chat.show {
    display: block;
    animation: wa-pop 0.34s cubic-bezier(0.18, 0.89, 0.32, 1.27) both;
}

@keyframes wa-pop {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================ Header ============================ */
.header-chat {
    position: relative;
    padding: 16px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--wa-teal) 0%, var(--wa-teal-d) 100%);
}

.head-home {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    background-image: url("../img/whatsapp-avatar.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* low-res favicon avatar replaced by the WhatsApp glyph above */
.info-avatar img {
    display: none;
}

/* online presence dot */
.info-avatar::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--wa-green);
    border: 2px solid var(--wa-teal-d);
}

.whatsapp-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    padding: 0;
}

.header-chat p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.header-chat p small {
    font-size: 12.5px;
    opacity: 0.85;
}

.header-chat h3 {
    margin: 0 0 10px;
}

a.close-chat {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

a.close-chat:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(90deg);
}

/* ============================ Chat body ============================ */
.whatsapp-chat-body {
    padding: 22px 18px 18px 14px;
    background-color: var(--wa-chat-bg);
    position: relative;
}

.whatsapp-chat-body::before {
    display: block;
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
    opacity: 0.06;
    background-image: url("https://elfsight.com/assets/chats/patterns/whatsapp.png");
}

.whatsapp-message-container,
.dAbFpq {
    display: flex;
    z-index: 1;
}

/* message bubble */
.whatsapp-message,
.kAZgZq {
    padding: 8px 12px 8px 14px;
    background-color: var(--wa-bubble);
    border-radius: 0 12px 12px 12px;
    position: relative;
    transition: all 0.3s ease 0s;
    opacity: 0;
    transform-origin: center top 0;
    z-index: 2;
    box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.13);
    margin-top: 4px;
    margin-left: -54px;
    max-width: calc(100% - 66px);
}

.kAZgZq::before {
    position: absolute;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAmCAMAAADp2asXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACQUExURUxpccPDw9ra2m9vbwAAAAAAADExMf///wAAABoaGk9PT7q6uqurqwsLCycnJz4+PtDQ0JycnIyMjPf3915eXvz8/E9PT/39/RMTE4CAgAAAAJqamv////////r6+u/v7yUlJeXl5f///5ycnOXl5XNzc/Hx8f///xUVFf///+zs7P///+bm5gAAAM7Ozv///2fVensAAAAvdFJOUwCow1cBCCnqAhNAnY0WIDW2f2/hSeo99g1lBYT87vDXG8/6d8oL4sgM5szrkgl660OiZwAAAHRJREFUKM/ty7cSggAABNFVUQFzwizmjPz/39k4YuFWtm55bw7eHR6ny63+alnswT3/rIDzUSC7CrAziPYCJCsB+gbVkgDtVIDh+DsE9OTBpCtAbSBAZSEQNgWIygJ0RgJMDWYNAdYbAeKtAHODlkHIv997AkLqIVOXVU84AAAAAElFTkSuQmCC");
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    top: 0;
    left: -12px;
    width: 12px;
    height: 19px;
}

.bMIBDo {
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    color: var(--wa-teal);
}

.iSpIQi {
    font-size: 14px;
    line-height: 19px;
    margin-top: 4px;
    color: var(--wa-text);
}

.cqCDVm {
    text-align: right;
    margin-top: 4px;
    font-size: 12px;
    line-height: 16px;
    color: rgba(17, 17, 17, 0.45);
    margin-right: -8px;
    margin-bottom: -4px;
}

/* typing-dots bubble */
.eJJEeC {
    background-color: #fff;
    width: 52.5px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    opacity: 0;
    transition: all 0.1s ease 0s;
    z-index: 1;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.hFENyl {
    position: relative;
    display: flex;
}

.ixsrax,
.dRvxoz {
    height: 5px;
    width: 5px;
    margin: 0 2px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    animation-duration: 1.2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    top: 0;
}

.ixsrax {
    background-color: #9e9da2;
    animation-name: ZpjSY;
}

.dRvxoz {
    background-color: #b6b5ba;
    animation-name: hPhMsj;
}

@keyframes ZpjSY {
    0% { background-color: #b6b5ba; }
    15% { background-color: #111; }
    25% { background-color: #b6b5ba; }
}

@keyframes hPhMsj {
    15% { background-color: #b6b5ba; }
    25% { background-color: #111; }
    35% { background-color: #b6b5ba; }
}

@keyframes iUMejp {
    25% { background-color: #b6b5ba; }
    35% { background-color: #111; }
    45% { background-color: #b6b5ba; }
}

/* ============================ Footer / Start chat ============================ */
.start-chat .blanter-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 12px 16px 16px;
    background: var(--wa-panel-bg);
}

.start-chat .blanter-msg a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: 999px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-green-dd) 100%);
    box-shadow: 0 8px 18px -6px rgba(37, 211, 102, 0.6);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.start-chat .blanter-msg a:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.7);
}

.start-chat .blanter-msg a:active {
    transform: scale(0.98);
}

.start-chat .blanter-msg a i {
    font-size: 18px;
}

/* ============================ Floating launcher (FAB) ============================ */
a.blantershow-chat {
    display: inline-block;
    padding: 0;
    background: transparent;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    z-index: 98;
}

/* retire the dated banner image in favour of a clean circular FAB everywhere */
a.blantershow-chat img.mobile-except {
    display: none !important;
}

a.blantershow-chat div.mobile-only {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    width: var(--wa-fab-size);
    height: var(--wa-fab-size);
    margin: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-green-dd) 100%);
    box-shadow: 0 10px 24px -4px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.blantershow-chat div.mobile-only i {
    font-size: 30px;
    line-height: 1;
    margin: 0;
}

a.blantershow-chat:hover div.mobile-only {
    transform: scale(1.06);
    box-shadow: 0 14px 32px -4px rgba(37, 211, 102, 0.65), 0 6px 14px rgba(0, 0, 0, 0.18);
}

a.blantershow-chat:active div.mobile-only {
    transform: scale(0.95);
}

/* radar "ping" ring — pulsing box-shadow so it never affects layout/scroll */
a.blantershow-chat div.mobile-only::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: -1;
    animation: wa-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes wa-ping {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================ Legacy multi-contact mode (unused by current
   markup, retained so the alternate widget mode + JS keep working) ============ */
a.informasi {
    padding: 20px;
    display: block;
    overflow: hidden;
    animation-name: showhide;
    animation-duration: 0.5s;
}

a.informasi:hover {
    background: #f1f1f1;
}

.info-chat span {
    display: block;
}

#get-label,
span.chat-label {
    font-size: 12px;
    color: #888;
}

#get-nama,
span.chat-nama {
    margin: 5px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

#get-label,
#get-nama {
    color: #fff;
}

span.my-number {
    display: none;
}

textarea#chat-input {
    border: none;
    font-family: "Arial", sans-serif;
    width: 100%;
    height: 20px;
    outline: none;
    resize: none;
    padding: 10px;
    font-size: 14px;
}

a#send-it {
    width: 30px;
    font-weight: 700;
    padding: 10px 10px 0;
    background: #eee;
    border-radius: 10px;
}

a#send-it svg {
    fill: #a6a6a6;
    height: 24px;
    width: 24px;
}

.first-msg {
    background: transparent;
    padding: 30px;
    text-align: center;
}

.first-msg span {
    background: #e2e2e2;
    color: #333;
    font-size: 14.2px;
    line-height: 1.7;
    border-radius: 10px;
    padding: 15px 20px;
    display: inline-block;
}

#get-number {
    display: none;
}

@keyframes showhide {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
}

/* ============================ Responsive ============================ */
@media screen and (max-width: 480px) {
    #whatsapp-chat {
        width: auto;
        left: 16px;
        right: 16px;
        bottom: 90px;
    }
}

/* ============================ Reduced motion ============================ */
@media (prefers-reduced-motion: reduce) {
    div#whatsapp-chat.show {
        animation: none;
    }
    a.blantershow-chat div.mobile-only::before {
        animation: none;
        opacity: 0;
    }
}
