/* =========================================================================
   DEALSTOPR - LANGUAGE BUTTON + DROPDOWN + WELCOME POPUP  (assets/js/lang.js)
   ========================================================================= */

/* Gol flag */
.dsr-flag { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: inline-flex; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.dsr-flag svg { width: 100%; height: 100%; display: block; }
.dsr-flag-lg { width: 40px; height: 40px; }

/* ---------- Header button ---------- */
.dsr-lang { position: relative; display: inline-flex; font-family: Arial, Helvetica, sans-serif; }
.dsr-lang-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px;
    border: 1px solid #e6e6e6; border-radius: 999px; background: #fff; color: #111;
    font: 700 14px/1 Arial, Helvetica, sans-serif; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.dsr-lang-btn:hover, .dsr-lang.is-open .dsr-lang-btn { border-color: #FF5F00; box-shadow: 0 0 0 3px #FFF1E8; }
.dsr-lang-btn:focus-visible { outline: 2px solid #FF5F00; outline-offset: 2px; }
.dsr-lang-chev { width: 10px; height: 10px; transition: transform .2s ease; }
.dsr-lang.is-open .dsr-lang-chev { transform: rotate(180deg); }

/* ---------- Dropdown ---------- */
.dsr-lang-panel {
    box-sizing: border-box;
    display: none; position: absolute; right: 0; top: calc(100% + 10px); z-index: 1000; width: 560px; max-width: calc(100vw - 32px); max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: thin;
    background: #fff; border-radius: 16px; padding: 16px; text-align: left;
    box-shadow: 0 18px 50px rgba(17, 17, 17, .16), 0 0 0 1px rgba(0, 0, 0, .05);
}
.dsr-lang.is-open .dsr-lang-panel { display: block; animation: dsrLangIn .16s ease; }
@keyframes dsrLangIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dsr-lang-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.dsr-lang-head strong { display: block; font-size: 16px; color: #111; }
.dsr-lang-head small { display: block; color: #888; font-size: 12px; margin-top: 3px; line-height: 1.4; }
.dsr-lang-x { flex-shrink: 0; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f4f4f4; color: #555; font-size: 18px; line-height: 1; cursor: pointer; }
.dsr-lang-x:hover { background: #eee; color: #111; }
.dsr-lang-sec { margin: 16px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #999; }
.dsr-lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.dsr-lang-item {
    position: relative; display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; padding: 8px 28px 8px 8px;
    border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; font-family: inherit;
}
.dsr-lang-item:hover { background: #F7F6F4; }
.dsr-lang-item:focus-visible { outline: 2px solid #FF5F00; outline-offset: 1px; }
.dsr-lang-item .dsr-flag { width: 28px; height: 28px; }
.dsr-lang-txt { min-width: 0; }
.dsr-lang-txt b { display: block; font-size: 13.5px; line-height: 1.2; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsr-lang-txt span { display: block; font-size: 12px; color: #888; margin-top: 2px; }
.dsr-lang-check { display: none; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; background: #FF5F00; color: #fff; font-size: 11px; align-items: center; justify-content: center; }
.dsr-lang-item.is-on { background: #FFF1E8; border-color: #ffd2b8; }
.dsr-lang-item.is-on .dsr-lang-check { display: flex; }
.dsr-lang-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f0f0; font-size: 12px; color: #888; }

/* ---------- Mobile/tablet: dropdown neeche se sheet (JS isay <body> mein le jata hai) ---------- */
html.dsr-sheet-open, html.dsr-sheet-open body { overflow: hidden; }
.dsr-lang-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(17, 17, 17, .45); }
.dsr-lang-panel.is-sheet {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 10001;
    box-sizing: border-box; width: auto; max-width: none; max-height: 85vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    border-radius: 18px 18px 0 0; padding: 16px 16px 22px; font-family: Arial, Helvetica, sans-serif;
    animation: dsrSheetIn .2s ease;
}
@keyframes dsrSheetIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.dsr-lang-panel.is-sheet .dsr-lang-head { position: sticky; top: -16px; z-index: 1; background: #fff; margin: -16px -16px 0; padding: 16px 16px 8px; }
.dsr-lang-panel.is-sheet .dsr-lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Welcome popup (pehli dafa) ---------- */
html.dsr-wl-open, html.dsr-wl-open body { overflow: hidden; }
.dsr-welcome {
    position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(17, 17, 17, .55); font-family: Arial, Helvetica, sans-serif; color: #111;
    opacity: 0; transition: opacity .2s ease;
}
.dsr-welcome.is-in { opacity: 1; }
.dsr-wl {
    position: relative; width: 100%; max-width: 780px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin;
    background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
    transform: translateY(12px) scale(.98); transition: transform .22s ease;
}
.dsr-welcome.is-in .dsr-wl { transform: none; }
.dsr-wl-top { position: relative; overflow: hidden; padding: 20px 24px 16px; background: linear-gradient(120deg, #FFE7D6 0%, #FFC7A3 60%, #FF9A5C 130%); }
.dsr-wl-top::after { content: ""; position: absolute; right: -30px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.dsr-wl-badge { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 800; color: #c94a00; }
.dsr-wl-badge i { width: 22px; height: 22px; border-radius: 50%; background: #FF5F00; color: #fff; font-style: normal; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.dsr-wl-top h2 { position: relative; z-index: 1; margin: 10px 0 4px; font-size: 24px; font-weight: 800; line-height: 1.2; color: #111; font-family: Arial, Helvetica, sans-serif; }
.dsr-wl-top p { position: relative; z-index: 1; margin: 0; font-size: 14px; color: #4a2a12; }
.dsr-wl-x { position: absolute; right: 16px; top: 16px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 20px; line-height: 1; color: #333; cursor: pointer; }
.dsr-wl-x:hover { background: #fff; color: #111; }
.dsr-wl-body { padding: 16px 24px 4px; }
.dsr-wl-label { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #999; }
.dsr-wl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dsr-wl-item {
    position: relative; display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px 13px;
    border: 1px solid #ececec; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; font-family: inherit;
    transition: border-color .15s ease, background .15s ease;
}
.dsr-wl-item:hover { border-color: #ffc6a3; background: #FFFAF6; }
.dsr-wl-item:focus-visible { outline: 2px solid #FF5F00; outline-offset: 2px; }
.dsr-wl-item .dsr-flag { width: 28px; height: 28px; }
.dsr-wl-txt { min-width: 0; }
.dsr-wl-txt b { display: block; font-size: 13.5px; line-height: 1.2; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsr-wl-txt span { display: block; margin-top: 2px; font-size: 11.5px; color: #888; }
.dsr-wl-item.is-on { border-color: #FF5F00; background: #FFF1E8; box-shadow: 0 0 0 2px #FFE1CC; }
.dsr-wl-item.is-on::after { content: "✓"; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: #FF5F00; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.dsr-wl-tag { position: absolute; right: 8px; bottom: 4px; font-size: 9px; font-weight: 800; letter-spacing: .06em; color: #999; }
.dsr-wl-item.is-on .dsr-wl-tag { color: #FF5F00; }
.dsr-wl-sug { color: #1e7e45 !important; }
.dsr-wl-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px 18px; }
.dsr-wl-foot small { max-width: 300px; font-size: 12px; line-height: 1.5; color: #888; }
.dsr-wl-go {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; flex-shrink: 0;
    border: 0; border-radius: 12px; background: #FF5F00; color: #fff; font: 700 15px Arial, Helvetica, sans-serif; cursor: pointer; white-space: nowrap;
}
.dsr-wl-go:hover { background: #d94f00; }
.dsr-wl-go:focus-visible { outline: 3px solid #FFC7A3; outline-offset: 2px; }
.dsr-wl-go .dsr-flag { width: 22px; height: 22px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }

/* ---------- Google Translate ki apni patti/tooltips chhupao ---------- */
.goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: transparent !important; box-shadow: none !important; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
}
/* Popup + dropdown: chhoti screens */
@media (max-width: 860px) {
    .dsr-wl { max-width: 640px; }
    .dsr-wl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Kam unchai wali screen (laptop 768px ya kam): aur compact */
@media (max-height: 700px) and (min-width: 701px) {
    .dsr-wl-top { padding: 14px 24px 12px; }
    .dsr-wl-top h2 { font-size: 21px; margin: 8px 0 2px; }
    .dsr-wl-top p { font-size: 13px; }
    .dsr-wl-body { padding-top: 12px; }
    .dsr-wl-label { margin-bottom: 8px; }
    .dsr-wl-item { padding: 7px 10px 11px; }
    .dsr-wl-item .dsr-flag { width: 24px; height: 24px; }
    .dsr-wl-foot { padding: 10px 24px 14px; }
    .dsr-wl-go { height: 42px; }
}
/* Popup: tablet / mobile */
@media (max-width: 700px) {
    .dsr-wl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dsr-wl-top { padding: 22px 18px 18px; }
    .dsr-wl-top h2 { font-size: 22px; padding-right: 30px; }
    .dsr-wl-top p { font-size: 14px; }
    .dsr-wl-body { padding: 16px 16px 4px; }
    .dsr-wl-foot { flex-direction: column-reverse; align-items: stretch; text-align: center; padding: 14px 16px 18px; gap: 10px; }
    .dsr-wl-foot small { max-width: none; }
    .dsr-wl-go { width: 100%; }
}
@media (max-width: 480px) {
    .dsr-welcome { align-items: flex-end; padding: 0; }
    .dsr-wl { max-width: none; max-height: 92vh; border-radius: 22px 22px 0 0; }
    .dsr-welcome .dsr-wl { transform: translateY(30px); }
    .dsr-welcome.is-in .dsr-wl { transform: none; }
    .dsr-wl-item { padding: 9px 10px 13px; gap: 8px; }
    .dsr-wl-item .dsr-flag { width: 26px; height: 26px; }
    .dsr-wl-txt b { font-size: 13px; }
    .dsr-wl-top { padding: 16px 16px 12px; }
    .dsr-wl-top h2 { font-size: 20px; margin: 8px 0 2px; }
    .dsr-wl-top p { font-size: 13px; }
    .dsr-wl-body { padding-top: 12px; }
    .dsr-wl-label { margin-bottom: 8px; }
    .dsr-wl-grid { gap: 6px; }
    .dsr-wl-foot { padding: 10px 16px 14px; }
}
@media (max-width: 340px) { .dsr-wl-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .dsr-lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .dsr-lang-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dsr-welcome, .dsr-wl, .dsr-lang-chev { transition: none; } .dsr-lang.is-open .dsr-lang-panel, .dsr-lang-panel.is-sheet { animation: none; } }
@media (min-width: 560px) { .dsr-lang-panel.is-sheet .dsr-lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }




/* =========================================================================
   TRANSLATE HONE PAR LAYOUT (German/French alfaaz lambe hote hain)
   Sirf jab Google Translate laga ho (html.translated-ltr). English site par asar nahi.
   ========================================================================= */

/* 1. Lambe alfaaz toot kar agli line par (bahar na niklein) */
html.translated-ltr body { overflow-wrap: break-word; }
html.translated-ltr h1, html.translated-ltr h2, html.translated-ltr h3,
html.translated-ltr p, html.translated-ltr li, html.translated-ltr summary { overflow-wrap: anywhere; hyphens: auto; }

/* 2. Text wale buttons: 2 lines mein ja sakein, kate nahi
      (chhote icon buttons jaise x, teer, dots, flag ko nahi chhuta) */
html.translated-ltr .hv-v-btn, html.translated-ltr .hv-btn, html.translated-ltr .hv-slide-btn,
html.translated-ltr .ev-btn-deal, html.translated-ltr .ev-more, html.translated-ltr .hv-modal-go,
html.translated-ltr .ev-modal-go, html.translated-ltr .coupon-action, html.translated-ltr .newsletter-btn,
html.translated-ltr .view-all-link, html.translated-ltr .hv-chip {
    height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px;
    white-space: normal; line-height: 1.25; text-align: center;
}

/* 3. Header menu: lambe naam chhote font mein, ek line mein */
html.translated-ltr .nav-menu-links { gap: 18px; }
html.translated-ltr .nav-menu-links > a { white-space: nowrap; font-size: clamp(13px, 1.05vw, 15px); }

/* 4. Coupon cards: title max 3 lines, button neeche chipka rahe */
html.translated-ltr .hv-v h3, html.translated-ltr .ev-coupon-title, html.translated-ltr .coupon-offer-title {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
html.translated-ltr .hv-v-btn, html.translated-ltr .ev-btn { margin-top: auto; }

/* 5. Banner ki bari heading translate hone par thori chhoti, taake fit aaye */
html.translated-ltr .hv-slide-text h1 { font-size: clamp(36px, 6vw, 72px); }
html.translated-ltr .hv-slide-text h1 small { font-size: clamp(18px, 3vw, 38px); }
html.translated-ltr .hv-intro-title, html.translated-ltr .hv-center > h2, html.translated-ltr .hv-vhead h2 { font-size: clamp(22px, 3.2vw, 38px); }