.dc-direct-contact,
.dc-direct-contact * {
    box-sizing: border-box;
}

.dc-direct-contact {
    position: fixed;
    z-index: 99999;
    bottom: 22px;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
}

.dc-widget-right { right: 22px; }
.dc-widget-left { left: 22px; }

.dc-floating-button {
    border: 0;
    background: var(--dc-primary, #0ea5e9);
    color: #fff;
    min-width: 64px;
    height: 64px;
    border-radius: 999px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 16px 34px rgba(14, 165, 233, .35);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.dc-phone-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dc-panel {
    position: absolute;
    bottom: 78px;
    width: min(360px, calc(100vw - 34px));
    background: #fff;
    color: #0f172a;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
    overflow: hidden;
    border: 1px solid rgba(15,23,42,.08);
}

.dc-widget-right .dc-panel { right: 0; }
.dc-widget-left .dc-panel { left: 0; }

.dc-panel-header {
    background: linear-gradient(135deg, var(--dc-primary, #0ea5e9), #2563eb);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dc-panel-title {
    font-size: 15px;
    line-height: 1.8;
}

.dc-panel-close {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 28px;
}

.dc-panel-body {
    padding: 18px;
}

.dc-loading,
.dc-form-intro,
.dc-message,
.dc-call-subtitle {
    font-size: 13px;
    line-height: 1.9;
    color: #475569;
}

.dc-call-form label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    color: #334155;
    font-weight: 700;
}

.dc-call-form label span {
    color: #ef4444;
}

.dc-call-form input {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 11px 12px;
    margin-top: 6px;
    outline: none;
    font-size: 14px;
    background: #f8fafc;
}

.dc-call-form input:focus {
    border-color: var(--dc-primary, #0ea5e9);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

.dc-submit,
.dc-mute-button,
.dc-end-button {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 800;
}

.dc-submit,
.dc-mute-button {
    background: var(--dc-primary, #0ea5e9);
    color: #fff;
}

.dc-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.dc-end-button {
    background: #fee2e2;
    color: #b91c1c;
}

.dc-call-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.dc-call-screen {
    text-align: center;
}

.dc-call-screen h3 {
    margin: 12px 0 4px;
    font-size: 18px;
    color: #0f172a;
}

.dc-pulse {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, .12);
    position: relative;
}

.dc-pulse:before,
.dc-pulse:after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(14,165,233,.45);
    border-radius: 999px;
    animation: dcPulse 1.6s infinite;
}

.dc-pulse:after {
    animation-delay: .8s;
}

.dc-pulse span {
    width: 52px;
    height: 52px;
    background: var(--dc-primary, #0ea5e9);
    border-radius: 999px;
    box-shadow: 0 12px 25px rgba(14,165,233,.32);
}

@keyframes dcPulse {
    from { transform: scale(.9); opacity: .8; }
    to { transform: scale(1.55); opacity: 0; }
}

.dc-message {
    margin-top: 12px;
    min-height: 20px;
}

.dc-message.is-error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 8px 10px;
}

.dc-message.is-success,
.dc-success-box {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 12px;
    line-height: 1.9;
}

.dc-success-box p {
    margin: 6px 0 0;
}

@media (max-width: 480px) {
    .dc-direct-contact { right: 12px; left: 12px; bottom: 14px; }
    .dc-widget-left, .dc-widget-right { right: 12px; left: 12px; }
    .dc-panel { width: 100%; bottom: 76px; right: 0 !important; left: 0 !important; }
    .dc-floating-button { width: 100%; justify-content: center; }
}

/* v1.1 queue + compact circular call button */
.dc-floating-button {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    gap: 0 !important;
}

.dc-floating-text {
    display: none !important;
}

.dc-phone-icon {
    width: 56px !important;
    height: 56px !important;
    background: transparent !important;
    font-size: 25px;
}

.dc-keep-open {
    margin: 12px 0 16px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 13px;
    line-height: 1.8;
    font-weight: 700;
}

.dc-incoming-call {
    text-align: right;
}

.dc-incoming-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dc-incoming-row h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #0f172a;
}

.dc-incoming-row p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #475569;
}

.dc-shake-phone {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dc-primary, #0ea5e9);
    color: #fff;
    font-size: 30px;
    box-shadow: 0 14px 28px rgba(14,165,233,.28);
    animation: dcShakePhone .75s infinite;
    position: relative;
}

.dc-shake-phone:after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(14,165,233,.28);
    border-radius: inherit;
    animation: dcPulse 1.4s infinite;
}

@keyframes dcShakePhone {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(-9deg); }
    30% { transform: rotate(9deg); }
    45% { transform: rotate(-7deg); }
    60% { transform: rotate(7deg); }
    75% { transform: rotate(-3deg); }
}

.dc-incoming-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.dc-answer-incoming,
.dc-reject-incoming {
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 800;
}

.dc-answer-incoming {
    background: #16a34a;
    color: #fff;
}

.dc-reject-incoming {
    background: #fee2e2;
    color: #b91c1c;
}

.dc-ended-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #166534;
    font-size: 34px;
    font-weight: 900;
}

@media (max-width: 480px) {
    .dc-direct-contact {
        left: auto !important;
        right: 12px !important;
        bottom: 14px !important;
        width: auto !important;
    }
    .dc-widget-left {
        left: 12px !important;
        right: auto !important;
    }
    .dc-widget-right {
        right: 12px !important;
        left: auto !important;
    }
    .dc-panel {
        width: min(360px, calc(100vw - 24px)) !important;
        bottom: 72px !important;
        right: 0 !important;
        left: auto !important;
    }
    .dc-widget-left .dc-panel {
        left: 0 !important;
        right: auto !important;
    }
    .dc-floating-button {
        width: 54px !important;
        min-width: 54px !important;
        height: 54px !important;
    }
    .dc-phone-icon {
        width: 54px !important;
        height: 54px !important;
    }
}


/* v1.2 online label + offline fallback box + configurable spacing */
.dc-direct-contact {
    bottom: var(--dc-offset-bottom, 22px) !important;
    width: auto !important;
}

.dc-widget-right {
    right: var(--dc-offset-side, 22px) !important;
    left: auto !important;
}

.dc-widget-left {
    left: var(--dc-offset-side, 22px) !important;
    right: auto !important;
}

.dc-online-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
}

.dc-floating-button {
    flex: 0 0 auto !important;
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.dc-floating-label {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
    cursor: pointer;
    white-space: nowrap;
}

.dc-floating-label:hover {
    color: var(--dc-primary, #0ea5e9);
}

.dc-phone-icon {
    width: 54px !important;
    height: 54px !important;
    font-size: 24px !important;
}

.dc-direct-contact.is-offline .dc-online-trigger {
    display: none !important;
}

.dc-direct-contact.has-online .dc-offline-box {
    display: none !important;
}

.dc-offline-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: min(360px, calc(100vw - 24px));
    text-decoration: none;
    color: #0f172a;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--dc-offline-border-start, #0ea5e9), var(--dc-offline-border-end, #22c55e)) border-box;
    border: 2px solid transparent;
    border-radius: 18px;
    padding: var(--dc-offline-padding, 12px);
    font-size: var(--dc-offline-font-size, 14px);
    font-weight: 800;
    line-height: 1.7;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .16);
}

.dc-offline-box strong {
    direction: ltr;
    unicode-bidi: plaintext;
    color: var(--dc-primary, #0ea5e9);
}

.dc-offline-box em {
    font-style: normal;
    background: var(--dc-primary, #0ea5e9);
    color: #fff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .9em;
}

@media (max-width: 480px) {
    .dc-direct-contact {
        width: auto !important;
        bottom: var(--dc-offset-bottom, 14px) !important;
    }

    .dc-widget-right {
        right: var(--dc-offset-side, 12px) !important;
        left: auto !important;
    }

    .dc-widget-left {
        left: var(--dc-offset-side, 12px) !important;
        right: auto !important;
    }

    .dc-online-trigger {
        gap: 7px;
    }

    .dc-floating-label {
        max-width: calc(100vw - 88px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dc-offline-box {
        max-width: calc(100vw - 24px);
        flex-wrap: wrap;
    }

    .dc-panel {
        width: min(360px, calc(100vw - 24px)) !important;
    }
}

/* v1.3.0: compact quick-contact menu and chat room */
.dc-direct-contact {
    bottom: var(--dc-offset-bottom, 22px) !important;
}
.dc-widget-right { right: var(--dc-offset-side, 22px) !important; }
.dc-widget-left { left: var(--dc-offset-side, 22px) !important; }
.dc-launcher-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.dc-launcher-button {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(145deg, #5369a6, #35457f);
    color: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .28), inset 0 1px 0 rgba(255,255,255,.18);
    transition: transform .18s ease, box-shadow .18s ease;
}
.dc-launcher-button:hover { transform: translateY(-2px); }
.dc-launcher-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.dc-launcher-icon svg { width: 34px; height: 34px; }
.dc-launcher-icon-close { display: none; font-size: 42px; line-height: 1; font-weight: 300; }
.dc-direct-contact.is-open .dc-launcher-icon-headset { display: none; }
.dc-direct-contact.is-open .dc-launcher-icon-close { display: inline-flex; }
.dc-launcher-label {
    border: 0;
    color: #fff;
    background: rgba(15, 23, 42, .86);
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15,23,42,.18);
}
.dc-toolbox-menu {
    position: absolute;
    bottom: 78px;
    width: min(310px, calc(100vw - 34px));
    background: #1f2937;
    color: #f8fafc;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .35);
    padding: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
}
.dc-widget-right .dc-toolbox-menu { right: 0; transform-origin: right bottom; }
.dc-widget-left .dc-toolbox-menu { left: 0; transform-origin: left bottom; }
.dc-toolbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 10px;
    color: #fff;
    font: 800 15px/1.4 Tahoma, Arial, sans-serif;
    opacity: .96;
}
.dc-hr { height: 1px; background: rgba(255,255,255,.1); margin: 0 4px 6px; }
.dc-toolbox-items { max-height: 50vh; overflow: auto; padding: 4px; }
.dc-toolbox-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-align: right;
}
.dc-toolbox-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.dc-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
}
.dc-item-icon svg { width: 21px; height: 21px; }
.dc-panel {
    bottom: 78px !important;
}
.dc-chat-room {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dc-chat-status {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 7px;
}
.dc-chat-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(34,197,94,.14);
}
.dc-chat-ended-label {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 4px 9px;
}
.dc-chat-messages {
    height: 285px;
    overflow: auto;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
}
.dc-chat-empty-front {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    padding: 38px 8px;
}
.dc-msg { display: flex; margin: 8px 0; }
.dc-msg.is-guest { justify-content: flex-start; }
.dc-msg.is-agent { justify-content: flex-end; }
.dc-msg-bubble {
    max-width: 78%;
    border-radius: 16px;
    padding: 9px 11px;
    box-shadow: 0 4px 16px rgba(15,23,42,.06);
}
.dc-msg.is-guest .dc-msg-bubble {
    background: var(--dc-primary, #0ea5e9);
    color: #fff;
    border-bottom-right-radius: 5px;
}
.dc-msg.is-agent .dc-msg-bubble {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 5px;
}
.dc-msg-text { white-space: pre-wrap; line-height: 1.9; font-size: 13px; }
.dc-msg-time { margin-top: 4px; font-size: 10px; opacity: .72; }
.dc-chat-typing {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 5px 10px;
}
.dc-chat-send-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
}
.dc-chat-input {
    resize: none;
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 10px 12px;
    background: #fff;
    font-size: 13px;
    outline: none;
}
.dc-chat-input:focus { border-color: var(--dc-primary, #0ea5e9); box-shadow: 0 0 0 3px rgba(14,165,233,.12); }
.dc-chat-send {
    border: 0;
    background: var(--dc-primary, #0ea5e9);
    color: #fff;
    border-radius: 14px;
    padding: 11px 13px;
    font-weight: 800;
    cursor: pointer;
}
.dc-chat-actions {
    display: flex;
    gap: 8px;
}
.dc-chat-end,
.dc-chat-restart {
    flex: 1;
    border: 0;
    border-radius: 13px;
    padding: 10px;
    cursor: pointer;
    font-weight: 800;
}
.dc-chat-end { background: #fee2e2; color: #b91c1c; }
.dc-chat-restart { background: #e0f2fe; color: #075985; }
@media (max-width: 480px) {
    .dc-launcher-button { width: 58px; height: 58px; }
    .dc-launcher-label { font-size: 12px; padding: 8px 11px; }
    .dc-toolbox-menu, .dc-panel { width: min(340px, calc(100vw - 24px)); }
    .dc-chat-messages { height: 250px; }
}


/* v1.5.0: polished UI, Yekan Bakh font, secure form states */
.dc-direct-contact,
.dc-direct-contact * {
    font-family: "Yekan Bakh", "YekanBakh", "Vazirmatn", Tahoma, Arial, sans-serif !important;
}
.dc-launcher-button {
    width: 62px;
    height: 62px;
    background: radial-gradient(circle at 32% 24%, #6f82c7 0%, #3f5595 48%, #253563 100%);
    box-shadow: 0 18px 42px rgba(34, 48, 91, .32), inset 0 1px 0 rgba(255,255,255,.22);
}
.dc-launcher-label {
    border-radius: 10px !important;
    background: rgba(17, 24, 39, .92);
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.1px;
}
.dc-toolbox-menu,
.dc-panel {
    animation: dcSoftPop .22s ease both;
}
.dc-toolbox-menu[hidden],
.dc-panel[hidden] {
    display: none !important;
}
@keyframes dcSoftPop {
    from { opacity: 0; transform: translateY(10px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dc-toolbox-menu {
    background: linear-gradient(180deg, #172033 0%, #111827 100%);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 22px 70px rgba(2, 6, 23, .42);
}
.dc-toolbox-header {
    font-weight: 800 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    letter-spacing: -.2px;
}
.dc-online-agents {
    padding: 4px 8px 8px;
}
.dc-online-agents-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.78);
    margin-bottom: 8px;
}
.dc-online-agents-list {
    display: flex;
    gap: 8px;
    overflow: auto;
    padding-bottom: 2px;
}
.dc-online-agent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    padding: 4px 8px 4px 5px;
    color: #fff;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
}
.dc-online-agent img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(34,197,94,.9);
}
.dc-toolbox-item {
    border-radius: 16px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.6;
    transition: background .18s ease, transform .18s ease;
}
.dc-toolbox-item:hover {
    transform: translateX(-2px);
    background: rgba(255,255,255,.10);
}
.dc-item-icon {
    background: rgba(99, 102, 241, .22);
    border: 1px solid rgba(255,255,255,.08);
}
.dc-panel {
    width: min(390px, calc(100vw - 34px));
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 26px 80px rgba(15,23,42,.22);
}
.dc-panel-header {
    background: linear-gradient(135deg, #334155, #1e3a8a);
    padding: 15px 17px;
}
.dc-panel-title {
    font-size: 14px;
    font-weight: 800;
}
.dc-panel-body {
    padding: 16px;
    background: linear-gradient(180deg, #fff, #f8fafc);
}
.dc-call-form label {
    font-size: 12px;
    font-weight: 750;
    color: #334155;
    margin-bottom: 10px;
}
.dc-call-form input {
    min-height: 43px;
    border-radius: 13px;
    border: 1px solid #d9e2ef;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
}
.dc-call-form input:invalid {
    box-shadow: none;
}
.dc-submit,
.dc-chat-send,
.dc-answer-incoming {
    background: linear-gradient(135deg, var(--dc-primary, #0ea5e9), #2563eb);
    box-shadow: 0 10px 20px rgba(37, 99, 235, .18);
}
.dc-chat-messages {
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.dc-msg-bubble {
    font-size: 13px;
}
.dc-msg.is-guest .dc-msg-bubble {
    background: linear-gradient(135deg, var(--dc-primary, #0ea5e9), #2563eb);
}
.dc-msg.is-agent .dc-msg-bubble {
    background: #fff;
}
.dc-chat-agent-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eef6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.6;
}
.dc-chat-agent-card img,
.dc-incoming-avatar {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 5px 14px rgba(15,23,42,.16);
}
.dc-incoming-row {
    align-items: center;
}
.dc-chat-restart[hidden] {
    display: none !important;
}
.dc-chat-actions .dc-chat-end {
    flex: 1 1 100%;
}
@media (max-width: 480px) {
    .dc-launcher-label { max-width: calc(100vw - 96px); }
    .dc-panel, .dc-toolbox-menu { width: min(360px, calc(100vw - 24px)); }
}

/* v1.5.0: call duration, feedback and audio states */
.dc-call-duration {
    margin: 10px auto 12px;
    padding: 8px 12px;
    border-radius: 14px;
    background: #eef6ff;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.dc-call-feedback {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    text-align: center;
}
.dc-rating-title {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}
.dc-rating-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    direction: ltr;
}
.dc-rating-stars button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: #fff;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: transform .18s ease, color .18s ease, background .18s ease;
}
.dc-rating-stars button:hover,
.dc-rating-stars button.is-selected {
    color: #f59e0b;
    background: #fffbeb;
    transform: translateY(-1px);
}
.dc-review-toggle,
.dc-close-after-feedback {
    border: 0;
    background: transparent;
    color: var(--dc-primary, #0ea5e9);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.dc-review-text {
    width: 100%;
    resize: vertical;
    min-height: 78px;
    border-radius: 14px;
    border: 1px solid #d9e2ef;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.8;
}
.dc-feedback-submit {
    border: 0;
    border-radius: 14px;
    min-height: 42px;
    color: #fff;
    cursor: pointer;
}
.dc-call-subtitle[aria-hidden="true"] {
    display: none;
}

/* v1.6.0: strict audio-state UX, mobile-safe placement and validation tooltip */
.dc-call-form label {
    position: relative;
}
.dc-call-form input.dc-input-error {
    border-color: #ef4444 !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12) !important;
}
.dc-field-tooltip {
    position: relative;
    margin-top: 7px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff1f2, #fff7ed);
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
    box-shadow: 0 10px 24px rgba(185, 28, 28, .10);
    animation: dcTooltipIn .18s ease both;
}
.dc-field-tooltip:before {
    content: '';
    position: absolute;
    top: -6px;
    right: 18px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: #fff1f2;
    border-top: 1px solid #fecaca;
    border-left: 1px solid #fecaca;
}
@keyframes dcTooltipIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.dc-call-screen h3 {
    direction: rtl;
    unicode-bidi: plaintext;
}
.dc-direct-contact .dc-launcher-wrap,
.dc-direct-contact .dc-toolbox-menu,
.dc-direct-contact .dc-panel {
    max-width: calc(100vw - 18px) !important;
}
@supports (bottom: env(safe-area-inset-bottom)) {
    .dc-direct-contact {
        bottom: calc(var(--dc-offset-bottom, 22px) + env(safe-area-inset-bottom)) !important;
    }
}
@media (max-width: 480px) {
    .dc-direct-contact {
        position: fixed !important;
        top: auto !important;
        width: auto !important;
        max-width: calc(100vw - 16px) !important;
        margin: 0 !important;
        transform: none !important;
        bottom: calc(var(--dc-offset-bottom, 12px) + env(safe-area-inset-bottom, 0px)) !important;
        overflow: visible !important;
    }
    .dc-widget-right {
        right: max(8px, var(--dc-offset-side, 10px)) !important;
        left: auto !important;
    }
    .dc-widget-left {
        left: max(8px, var(--dc-offset-side, 10px)) !important;
        right: auto !important;
    }
    .dc-launcher-wrap {
        max-width: calc(100vw - 16px) !important;
        gap: 8px !important;
    }
    .dc-launcher-button {
        width: 56px !important;
        min-width: 56px !important;
        height: 56px !important;
        flex: 0 0 56px !important;
    }
    .dc-launcher-label {
        max-width: calc(100vw - 88px) !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .dc-widget-right .dc-toolbox-menu,
    .dc-widget-right .dc-panel {
        right: 0 !important;
        left: auto !important;
    }
    .dc-widget-left .dc-toolbox-menu,
    .dc-widget-left .dc-panel {
        left: 0 !important;
        right: auto !important;
    }
    .dc-toolbox-menu,
    .dc-panel {
        width: min(360px, calc(100vw - 16px)) !important;
        bottom: 68px !important;
    }
    .dc-panel-body {
        max-height: min(72vh, 620px) !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}
@media (max-width: 360px) {
    .dc-toolbox-menu,
    .dc-panel {
        width: calc(100vw - 14px) !important;
    }
    .dc-launcher-label {
        max-width: calc(100vw - 82px) !important;
    }
}
