/* Durafit91 chatbot — brand: orange #FF6C0D, dark purple #221629, lime #C0FF00 */
.dfcb {
    --p: #FF6C0D;
    --p-soft: #FFF1E7;
    --dark: #221629;
    --dark-2: #3a2444;
    --lime: #C0FF00;
    --bg: #f6f3f8;
    --line: #e9e2ee;
    --muted: #6b6474;
    --ok: #1f9d55;
    --bad: #d63b3b;
    font-family: 'Rajdhani', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.35;
    color: var(--dark);
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 9990;
}
.dfcb *, .dfcb *::before, .dfcb *::after { box-sizing: border-box; }
.dfcb [hidden] { display: none !important; }
.dfcb button { font-family: inherit; cursor: pointer; }

/* Launcher */
.dfcb-launch {
    position: relative;
    width: 60px; height: 60px;
    border: 0; border-radius: 50%;
    background: linear-gradient(135deg, #ff8a3d, var(--p));
    color: var(--dark);
    display: grid; place-items: center;
    box-shadow: 0 10px 26px rgba(255, 108, 13, .45);
    transition: transform .2s ease;
    animation: dfcb-pulse 2.6s infinite;
}
.dfcb-launch:hover { transform: scale(1.07); }
.dfcb-launch:focus-visible, .dfcb button:focus-visible, .dfcb a:focus-visible, .dfcb input:focus-visible, .dfcb textarea:focus-visible {
    outline: 3px solid var(--dark); outline-offset: 2px;
}
.dfcb-badge {
    position: absolute; top: -3px; right: -3px;
    min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 11px; background: var(--dark); color: var(--lime);
    font-size: 13px; font-weight: 700; display: grid; place-items: center;
    border: 2px solid #fff;
}
.dfcb.is-open .dfcb-launch, .dfcb.is-open .dfcb-tip { display: none; }
@keyframes dfcb-pulse {
    0%   { box-shadow: 0 10px 26px rgba(255,108,13,.45), 0 0 0 0 rgba(255,108,13,.45); }
    70%  { box-shadow: 0 10px 26px rgba(255,108,13,.45), 0 0 0 16px rgba(255,108,13,0); }
    100% { box-shadow: 0 10px 26px rgba(255,108,13,.45), 0 0 0 0 rgba(255,108,13,0); }
}

/* Tooltip */
.dfcb-tip {
    position: absolute; right: 0; bottom: 74px;
    width: 220px; padding: 12px 30px 12px 14px;
    background: #fff; border-radius: 14px 14px 4px 14px;
    box-shadow: 0 10px 30px rgba(34, 22, 41, .2);
    display: flex; flex-direction: column; gap: 2px;
    font-size: 14px; animation: dfcb-rise .35s ease both;
}
.dfcb-tip strong { font-size: 16px; }
.dfcb-tip span { color: var(--muted); }
.dfcb-tip__close { position: absolute; top: 4px; right: 8px; border: 0; background: none; font-size: 20px; color: var(--muted); }

/* Panel */
.dfcb-panel {
    position: fixed; right: 20px; bottom: 20px;
    width: 410px; height: min(650px, calc(100vh - 40px)); height: min(650px, calc(100dvh - 40px));
    background: var(--bg); border-radius: 20px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 60px rgba(34, 22, 41, .35);
    animation: dfcb-pop .28s cubic-bezier(.2, .9, .3, 1.1) both;
    transform-origin: bottom right;
}
@keyframes dfcb-pop { from { opacity: 0; transform: scale(.92) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dfcb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dfcb-head {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 16px 14px 18px 16px; color: #fff; flex: none;
    background: radial-gradient(circle at 92% -20%, rgba(255,108,13,.55), transparent 55%), linear-gradient(135deg, var(--dark), var(--dark-2));
}
.dfcb-head::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--p), var(--lime));
}
.dfcb-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: none;
    background: var(--p); color: var(--dark); font-weight: 700; font-size: 20px; font-style: italic;
    display: grid; place-items: center; border: 3px solid rgba(255,255,255,.9);
}
.dfcb-head__txt { flex: 1; min-width: 0; }
.dfcb-head h2 { margin: 0; font-size: 19px; font-weight: 700; color: #fff; line-height: 1.1; }
.dfcb-head p { margin: 2px 0 0; font-size: 13px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 6px; }
.dfcb-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.25); }
.dfcb-iconbtn {
    width: 36px; height: 36px; border: 0; border-radius: 10px; flex: none;
    background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center;
    transition: background .15s;
}
.dfcb-iconbtn:hover { background: rgba(255,255,255,.24); }
.dfcb-head .dfcb-iconbtn:focus-visible { outline-color: var(--lime); }

/* Messages */
.dfcb-body {
    flex: 1; overflow-y: auto; padding: 16px 14px 8px;
    display: flex; flex-direction: column; gap: 8px;
    overscroll-behavior: contain; scroll-behavior: smooth;
}
.dfcb-body::-webkit-scrollbar { width: 6px; }
.dfcb-body::-webkit-scrollbar-thumb { background: #d6cddd; border-radius: 3px; }
.dfcb-row { display: flex; gap: 8px; align-items: flex-end; animation: dfcb-rise .3s ease both; max-width: 100%; }
.dfcb-row--user { justify-content: flex-end; }
.dfcb-av {
    width: 28px; height: 28px; border-radius: 50%; flex: none;
    background: var(--p); color: var(--dark); font-size: 12px; font-weight: 700; font-style: italic;
    display: grid; place-items: center;
}
.dfcb-row--bot + .dfcb-row--bot .dfcb-av { visibility: hidden; }
.dfcb-bubble {
    max-width: 82%; padding: 10px 14px; font-size: 16px; font-weight: 500;
    background: #fff; border-radius: 6px 18px 18px 18px;
    box-shadow: 0 1px 2px rgba(34,22,41,.08); word-wrap: break-word; white-space: pre-line;
}
.dfcb-row--user .dfcb-bubble { background: var(--dark); color: #fff; border-radius: 18px 6px 18px 18px; }
.dfcb-bubble a { color: var(--p); font-weight: 700; }
.dfcb-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.dfcb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b5a9be; animation: dfcb-bounce 1s infinite; }
.dfcb-typing i:nth-child(2) { animation-delay: .15s; }
.dfcb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dfcb-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Options */
.dfcb-opts { display: grid; gap: 8px; margin: 4px 0 6px 36px; }
.dfcb-opts--grid { grid-template-columns: 1fr 1fr; }
.dfcb-opt {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 12px; text-align: left; text-decoration: none;
    background: #fff; color: var(--dark); border: 1.5px solid var(--line); border-radius: 14px;
    font-size: 16px; font-weight: 600; line-height: 1.15;
    transition: border-color .15s, transform .15s, box-shadow .15s;
    animation: dfcb-rise .35s ease both; animation-delay: var(--d, 0ms);
}
.dfcb-opt:hover { border-color: var(--p); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,108,13,.16); }
.dfcb-opt__ic {
    flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--p-soft);
    display: grid; place-items: center; font-size: 18px;
}
.dfcb-opt__tx { flex: 1; min-width: 0; }
.dfcb-opt__go { flex: none; color: #b5a9be; font-size: 18px; }
.dfcb-opt--ext .dfcb-opt__go::before { content: '↗'; font-size: 15px; }
.dfcb-opt:not(.dfcb-opt--ext) .dfcb-opt__go::before { content: '›'; }
.dfcb-opts--grid .dfcb-opt { flex-direction: column; align-items: flex-start; gap: 6px; padding: 11px; }
.dfcb-opts--grid .dfcb-opt__go { display: none; }
.dfcb-opt--hot { background: var(--dark); color: #fff; border-color: var(--dark); }
.dfcb-opt--hot .dfcb-opt__ic { background: rgba(255,255,255,.14); }
.dfcb-opt--hot:hover { border-color: var(--lime); box-shadow: 0 6px 16px rgba(34,22,41,.3); }
.dfcb-opt--hot small { color: var(--lime); }
.dfcb-opt small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 1px; }

/* Cards (products / orders / faq / forms) */
.dfcb-card {
    margin-left: 36px; background: #fff; border-radius: 16px; padding: 14px;
    box-shadow: 0 1px 2px rgba(34,22,41,.08); animation: dfcb-rise .3s ease both;
}
.dfcb-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.dfcb-carousel {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -14px 0 36px; padding: 2px 14px 8px 0; scrollbar-width: none;
    animation: dfcb-rise .3s ease both;
}
.dfcb-carousel::-webkit-scrollbar { display: none; }
.dfcb-prod {
    flex: none; width: 178px; scroll-snap-align: start; background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(34,22,41,.1); display: flex; flex-direction: column; text-decoration: none; color: inherit;
    border: 1.5px solid transparent; transition: border-color .15s;
}
.dfcb-prod:hover { border-color: var(--p); }
.dfcb-prod__img { position: relative; aspect-ratio: 1; background: #faf8fb; display: grid; place-items: center; }
.dfcb-prod__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.dfcb-prod__tag {
    position: absolute; top: 8px; left: 8px; background: var(--lime); color: var(--dark);
    font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}
.dfcb-prod__b { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.dfcb-prod__type { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.dfcb-prod__name { font-size: 15px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.dfcb-prod__price { font-size: 18px; font-weight: 700; }
.dfcb-prod__price s { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.dfcb-prod__emi { font-size: 12.5px; color: var(--ok); font-weight: 600; }
.dfcb-prod__cta {
    margin-top: 6px; text-align: center; background: var(--p); color: var(--dark);
    font-weight: 700; font-size: 14px; padding: 7px; border-radius: 10px;
}

/* Forms */
.dfcb-field { display: block; margin-bottom: 10px; }
.dfcb-field span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.dfcb-field input, .dfcb-field textarea, .dfcb-field select {
    width: 100%; padding: 10px 12px; font: inherit; font-weight: 500; color: var(--dark);
    background: #fbf9fc; border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .15s, background .15s;
}
.dfcb-field textarea { resize: vertical; min-height: 64px; }
.dfcb-field input:focus, .dfcb-field textarea:focus, .dfcb-field select:focus { outline: 0; border-color: var(--p); background: #fff; }
.dfcb-field.is-bad input, .dfcb-field.is-bad textarea, .dfcb-field.is-bad select { border-color: var(--bad); }
.dfcb-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }
.dfcb-err { color: var(--bad); font-size: 13.5px; font-weight: 600; margin: -2px 0 8px; }
.dfcb-btn {
    width: 100%; padding: 11px; border: 0; border-radius: 12px; background: var(--p); color: var(--dark);
    font-size: 17px; font-weight: 700; transition: filter .15s, transform .15s;
}
.dfcb-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.dfcb-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.dfcb-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.dfcb-note a { color: var(--p); font-weight: 600; }

/* Order */
.dfcb-order__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.dfcb-order__no { font-weight: 700; font-size: 16px; }
.dfcb-order__date { font-size: 13px; color: var(--muted); }
.dfcb-pill { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--p-soft); color: #b84a00; white-space: nowrap; }
.dfcb-pill--ok { background: #e2f7ea; color: var(--ok); }
.dfcb-pill--bad { background: #fde8e8; color: var(--bad); }
.dfcb-order ul { margin: 10px 0; padding-left: 18px; font-size: 14.5px; font-weight: 500; }
.dfcb-steps { display: flex; margin: 14px 0 4px; }
.dfcb-step { flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); position: relative; }
.dfcb-step::before { content: ''; display: block; width: 14px; height: 14px; margin: 0 auto 4px; border-radius: 50%; background: #dcd3e2; position: relative; z-index: 1; }
.dfcb-step:not(:first-child)::after { content: ''; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: #dcd3e2; }
.dfcb-step.is-done { color: var(--dark); }
.dfcb-step.is-done::before, .dfcb-step.is-done::after { background: var(--p); }
.dfcb-order__inv { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--p); }

/* FAQ */
.dfcb-faq { background: #fff; border-radius: 14px; margin: 0 0 8px 36px; box-shadow: 0 1px 2px rgba(34,22,41,.08); overflow: hidden; animation: dfcb-rise .3s ease both; }
.dfcb-faq button {
    width: 100%; display: flex; justify-content: space-between; gap: 10px; align-items: center;
    padding: 11px 13px; border: 0; background: none; text-align: left; font-size: 15.5px; font-weight: 700; color: var(--dark);
}
.dfcb-faq button::after { content: '+'; font-size: 22px; line-height: 1; color: var(--p); flex: none; }
.dfcb-faq.is-open button::after { content: '–'; }
.dfcb-faq div { display: none; padding: 0 13px 13px; font-size: 15px; font-weight: 500; color: #4a4253; white-space: pre-line; }
.dfcb-faq.is-open div { display: block; }

/* EMI table */
.dfcb-emi { width: 100%; border-collapse: collapse; margin-top: 4px; }
.dfcb-emi td { padding: 7px 4px; border-bottom: 1px dashed var(--line); font-weight: 600; }
.dfcb-emi td:last-child { text-align: right; color: var(--p); font-size: 17px; }
.dfcb-emi tr:last-child td { border-bottom: 0; }

/* Coupons */
.dfcb-coupon { display: flex; align-items: stretch; margin: 0 0 8px 36px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(34,22,41,.08); animation: dfcb-rise .3s ease both; }
.dfcb-coupon__l { background: var(--dark); color: var(--lime); padding: 10px 12px; font-weight: 700; font-size: 17px; display: grid; place-items: center; min-width: 88px; text-align: center; line-height: 1.1; }
.dfcb-coupon__r { flex: 1; padding: 9px 12px; min-width: 0; }
.dfcb-coupon__code { font-weight: 700; letter-spacing: .06em; font-size: 16px; }
.dfcb-coupon__note { font-size: 13px; color: var(--muted); }
.dfcb-copy { border: 1.5px dashed var(--p); background: var(--p-soft); color: #b84a00; font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 8px; margin-top: 5px; }

/* Nav + input */
.dfcb-nav { display: flex; gap: 8px; padding: 6px 14px; flex: none; }
.dfcb-nav button { border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.dfcb-nav button:hover { color: var(--dark); border-color: var(--p); }
.dfcb-input { display: flex; gap: 8px; padding: 10px 14px 14px; background: var(--bg); flex: none; }
.dfcb-input input {
    flex: 1; min-width: 0; padding: 11px 16px; font: inherit; font-size: 16px; font-weight: 500;
    border: 1.5px solid var(--line); border-radius: 26px; background: #fff; color: var(--dark);
}
.dfcb-input input:focus { outline: 0; border-color: var(--p); }
.dfcb-input button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--p); color: var(--dark); display: grid; place-items: center; flex: none; }

@media (max-width: 480px) {
    .dfcb { right: 12px; bottom: 16px; font-size: 14px; }
    .dfcb-launch { width: 48px; height: 48px; }
    .dfcb-launch__ic { width: 22px; height: 22px; }
    .dfcb-badge { min-width: 18px; height: 18px; font-size: 11px; top: -2px; right: -2px; }

    /* Floating card, not full-screen — leaves breathing room at the top and bottom */
    .dfcb-panel {
        left: 12px; right: 12px;
        top: max(48px, env(safe-area-inset-top) + 14px);
        bottom: max(12px, env(safe-area-inset-bottom) + 12px);
        width: auto; height: auto;
        border-radius: 18px;
    }

    .dfcb-opts--grid { grid-template-columns: 1fr 1fr; }
    .dfcb-input { padding-bottom: max(12px, env(safe-area-inset-bottom)); }

    /* Smaller type on mobile — element font-sizes are set explicitly elsewhere, so scale each down here */
    .dfcb-head h2 { font-size: 17px; }
    .dfcb-head p { font-size: 12px; }
    .dfcb-bubble { font-size: 14px; padding: 9px 12px; }
    .dfcb-opt { font-size: 14px; padding: 8px 10px; }
    .dfcb-opt__ic { width: 30px; height: 30px; font-size: 16px; }
    .dfcb-card h3 { font-size: 15.5px; }
    .dfcb-prod { width: 156px; }
    .dfcb-prod__name { font-size: 14px; min-height: 32px; }
    .dfcb-prod__type { font-size: 11px; }
    .dfcb-prod__price { font-size: 16px; }
    .dfcb-prod__emi, .dfcb-prod__cta { font-size: 12.5px; }
    .dfcb-faq button { font-size: 14.5px; }
    .dfcb-faq div { font-size: 14px; }
    .dfcb-field span { font-size: 12.5px; }
    .dfcb-field input, .dfcb-field textarea, .dfcb-field select { font-size: 14px; }
    .dfcb-btn { font-size: 15.5px; }
    .dfcb-order__no { font-size: 15px; }
    .dfcb-input input { font-size: 16px; } /* kept at 16px so iOS Safari doesn't zoom in on focus */
}
@media (min-width: 1024px) { .dfcb { right: 60px; bottom: 40px; } }
@media (prefers-reduced-motion: reduce) {
    .dfcb *, .dfcb *::before, .dfcb *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Logo avatars */
.dfcb-avatar, .dfcb-av { background: var(--p); overflow: hidden; }
.dfcb-avatar img, .dfcb-av img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dfcb-avatar { padding: 8px; }
.dfcb-av { padding: 5px; }

/* Body is a flex column: stop overflow:hidden/auto children (carousel, faq, coupon) from collapsing to 0 height */
.dfcb-body > * { flex-shrink: 0; }

/* Landing page (mobile only): floating launcher hidden — bottom nav's Chat tab opens the widget instead */
@media (max-width: 480px) {
    body.df-landing #dfcb-launch, body.df-landing #dfcb-tip { display: none; }
}
