/* Shared Zimbuyer storefront interaction refinements. */

#tvcmsdesktop-user-info {
    width: 100%;
}

#tvcmsdesktop-user-info .zb-account-entry {
    display: flex !important;
    width: 100%;
    min-height: 66px;
    padding: 10px 12px !important;
    align-items: center;
    border: 1px solid #cde6d5 !important;
    border-radius: 12px;
    background: #f7fbf8;
    color: #172b4d !important;
    line-height: 1.2 !important;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#tvcmsdesktop-user-info .zb-account-entry:hover,
#tvcmsdesktop-user-info .zb-account-entry:focus-visible {
    border-color: #22a06b !important;
    background: #f0f9f3;
    box-shadow: 0 4px 14px rgba(34, 160, 107, 0.14);
    color: #172b4d !important;
    outline: none;
    transform: translateY(-1px);
}

#tvcmsdesktop-user-info .zb-account-entry-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cde6d5;
    border-radius: 50%;
    background: #fff;
}

#tvcmsdesktop-user-info .zb-account-entry-icon i {
    width: auto !important;
    margin: 0 !important;
    color: #22a06b !important;
    font-size: 22px !important;
    line-height: 1;
}

#tvcmsdesktop-user-info .zb-account-entry-copy {
    display: flex !important;
    min-width: 0;
    margin: 0 10px;
    flex: 1 1 auto;
    flex-direction: column;
}

#tvcmsdesktop-user-info .zb-account-entry-copy small {
    margin-bottom: 3px;
    color: #6b778c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

#tvcmsdesktop-user-info .zb-account-entry-copy strong {
    overflow: hidden;
    color: #173b2a;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tvcmsdesktop-user-info .zb-account-entry-arrow {
    width: auto !important;
    margin: 0 !important;
    flex: 0 0 auto;
    color: #5e6c84 !important;
    font-size: 18px !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(12, 102, 228, 0.28);
    outline-offset: 2px;
}

@media (max-width: 1199px) {
    #tvcmsdesktop-user-info .zb-account-entry {
        min-height: 58px;
    }
}

/* Support-panel rules live here as the final theme layer to avoid legacy overrides. */
#left-column .tvcmscustomer-services .zb-zimmy-support-link,
#right-column .tvcmscustomer-services .zb-zimmy-support-link,
#left-column .tvcmscustomer-services .zb-whatsapp-support-link,
#right-column .tvcmscustomer-services .zb-whatsapp-support-link {
    display: flex !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    min-height: 72px;
    height: auto !important;
    margin: 0 !important;
    padding: 12px !important;
    align-items: center;
    border-radius: 10px !important;
    text-align: left !important;
    white-space: normal !important;
}

#left-column .tvcmscustomer-services button.zb-zimmy-support-link,
#right-column .tvcmscustomer-services button.zb-zimmy-support-link {
    appearance: none;
    position: relative;
    overflow: hidden;
    border: 1px solid #c9d8ff !important;
    background:
        radial-gradient(circle at 90% 5%, rgba(101, 84, 192, 0.16), transparent 36%),
        linear-gradient(145deg, #f6f8ff 0%, #eef4ff 100%) !important;
    font: inherit;
}

#left-column .tvcmscustomer-services button.zb-zimmy-support-link:hover,
#right-column .tvcmscustomer-services button.zb-zimmy-support-link:hover {
    border-color: #6554c0 !important;
    box-shadow: 0 8px 22px rgba(101, 84, 192, 0.18);
    transform: translateY(-1px);
}

#left-column .tvcmscustomer-services .zb-whatsapp-support-link,
#right-column .tvcmscustomer-services .zb-whatsapp-support-link {
    border: 1px solid #c7ead2 !important;
    background:
        radial-gradient(circle at 92% 8%, rgba(37, 211, 102, 0.13), transparent 38%),
        linear-gradient(145deg, #f5fcf7 0%, #ecf9f0 100%) !important;
}

#left-column .tvcmscustomer-services .zb-whatsapp-support-link:hover,
#right-column .tvcmscustomer-services .zb-whatsapp-support-link:hover {
    border-color: #1fa855 !important;
    box-shadow: 0 8px 22px rgba(31, 168, 85, 0.16);
    transform: translateY(-1px);
}

#left-column .tvcmscustomer-services .zb-zimmy-support-icon,
#right-column .tvcmscustomer-services .zb-zimmy-support-icon {
    display: inline-flex !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 12px 0 0 !important;
    flex: 0 0 42px !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    position: relative;
    background: linear-gradient(145deg, #0c66e4, #6554c0) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700;
    line-height: 1 !important;
    box-shadow: 0 5px 14px rgba(71, 72, 190, 0.25);
}

#left-column .tvcmscustomer-services .zb-zimmy-support-icon > span,
#right-column .tvcmscustomer-services .zb-zimmy-support-icon > span {
    color: inherit;
}

#left-column .tvcmscustomer-services .zb-zimmy-support-icon > i,
#right-column .tvcmscustomer-services .zb-zimmy-support-icon > i {
    position: absolute;
    top: -6px;
    right: -5px;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ffab00;
    color: #172b4d;
    font-size: 10px;
    font-style: normal;
    line-height: 14px;
    text-align: center;
}

#left-column .tvcmscustomer-services .tvservices-content-box,
#right-column .tvcmscustomer-services .tvservices-content-box {
    min-width: 0;
    flex: 1 1 auto;
}

#left-column .tvcmscustomer-services .tvservices-title,
#right-column .tvcmscustomer-services .tvservices-title,
#left-column .tvcmscustomer-services .tvservice-dec,
#right-column .tvcmscustomer-services .tvservice-dec {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

#left-column .tvcmscustomer-services .zb-support-availability,
#right-column .tvcmscustomer-services .zb-support-availability {
    display: flex;
    width: 100%;
    margin: 0 0 10px;
    padding: 0 4px;
    align-items: center;
    gap: 7px;
    color: #5e6c84;
    font-size: 12px;
}

#left-column .tvcmscustomer-services .zb-support-availability-dot,
#right-column .tvcmscustomer-services .zb-support-availability-dot {
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #22a06b;
}

.tvcmscustomer-services .zb-support-channel-badge {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 5px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.tvcmscustomer-services .zb-support-channel-badge--ai {
    background: #e9e5ff;
    color: #403294;
}

.tvcmscustomer-services .zb-support-channel-badge--human {
    background: #dff5e6;
    color: #146b38;
}

.tvcmscustomer-services .zb-zimmy-support-arrow {
    color: #6554c0 !important;
}

.tvcmscustomer-services .zb-whatsapp-support-arrow {
    color: #1fa855 !important;
}

/* Protected WhatsApp handoff page. */
.zb-whatsapp-handoff {
    position: relative;
    max-width: 760px;
    margin: 12px auto 32px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid #ccebd6;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(37, 211, 102, 0.16), transparent 34%),
        linear-gradient(160deg, #fff 0%, #f5fcf7 100%);
    box-shadow: 0 18px 50px rgba(22, 74, 43, 0.11);
}

.zb-whatsapp-handoff::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #25d366, #128c7e);
    content: "";
}

.zb-whatsapp-handoff-hero {
    display: flex;
    align-items: center;
    gap: 22px;
}

.zb-whatsapp-handoff-mark {
    position: relative;
    display: flex;
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(145deg, #25d366, #128c7e);
    box-shadow: 0 12px 26px rgba(18, 140, 126, 0.24);
}

.zb-whatsapp-handoff-bubble {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.zb-whatsapp-handoff-status {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #22a06b;
}

.zb-whatsapp-handoff-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #dff5e6;
    color: #146b38;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zb-whatsapp-handoff h2 {
    margin: 0 0 8px;
    color: #173b2a;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.15;
}

.zb-whatsapp-handoff-hero p {
    max-width: 560px;
    margin: 0;
    color: #52655a;
    font-size: 15px;
    line-height: 1.55;
}

.zb-whatsapp-handoff-account {
    display: flex;
    margin: 26px 0 18px;
    padding: 14px 16px;
    align-items: center;
    gap: 12px;
    border: 1px solid #d8eadf;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.zb-whatsapp-handoff-check {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #22a06b;
    color: #fff;
    font-weight: 800;
}

.zb-whatsapp-handoff-account span:last-child {
    display: flex;
    flex-direction: column;
}

.zb-whatsapp-handoff-account small {
    color: #6b778c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zb-whatsapp-handoff-account strong {
    color: #173b2a;
    font-size: 16px;
}

.zb-whatsapp-handoff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.zb-whatsapp-handoff-grid > div {
    display: grid;
    grid-template-columns: 34px 1fr;
    padding: 16px;
    border: 1px solid #e1ebe4;
    border-radius: 14px;
    background: #fff;
}

.zb-whatsapp-handoff-grid > div > span {
    grid-row: 1 / 3;
    font-size: 22px;
}

.zb-whatsapp-handoff-grid strong {
    color: #173b2a;
    font-size: 14px;
}

.zb-whatsapp-handoff-grid small {
    margin-top: 3px;
    color: #6b778c;
    line-height: 1.4;
}

.zb-whatsapp-handoff-security {
    display: flex;
    margin: 18px 0 24px;
    padding: 14px 16px;
    gap: 11px;
    border-radius: 12px;
    background: #f4f5f7;
    color: #44546f;
}

.zb-whatsapp-handoff-security p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.zb-whatsapp-handoff-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.zb-whatsapp-handoff-primary {
    display: inline-flex;
    min-height: 50px;
    padding: 12px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 20px rgba(18, 140, 126, 0.23);
    color: #fff;
    font-weight: 750;
}

.zb-whatsapp-handoff-primary:hover,
.zb-whatsapp-handoff-primary:focus {
    color: #fff;
    filter: brightness(0.97);
    transform: translateY(-1px);
}

.zb-whatsapp-handoff-secondary {
    color: #52655a;
    font-size: 13px;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 575px) {
    .zb-whatsapp-handoff {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .zb-whatsapp-handoff-hero {
        align-items: flex-start;
        gap: 14px;
    }

    .zb-whatsapp-handoff-mark {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 18px;
    }

    .zb-whatsapp-handoff-grid {
        grid-template-columns: 1fr;
    }

    .zb-whatsapp-handoff-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .zb-whatsapp-handoff-primary {
        width: 100%;
    }

    .zb-whatsapp-handoff-secondary {
        text-align: center;
    }
}
