/* Only hide legacy markup once the new component has actually been inserted.
   CSS also catches the old V2 when its footer script runs after our initialization. */
body.page-id-7804.dshe-ready #ds-hyundai-premium,
body.page-id-7804.dshe-ready .elementor-element-516c37d,
body.page-id-7804.dshe-ready .elementor-element-d0c63ca,
body.page-id-7804.dshe-ready .elementor-element-87399e4,
body.page-id-7804.dshe-ready .elementor-element-cfe108a,
body.page-id-7804.dshe-ready .elementor-element-6e2a4ce {display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important}
body.page-id-7804{--dshe-navy:#061d39;--dshe-ink:#10243e;--dshe-lime:#d3ec48;--dshe-muted:#607185}
body.page-id-7804 .dshe-legacy-hidden{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important}
body.page-id-7804 #dshe,body.page-id-7804 #dshe *{box-sizing:border-box}
body.page-id-7804 #dshe{width:90vw!important;max-width:90vw!important;position:relative!important;left:50%!important;transform:translateX(-50%)!important;color:var(--dshe-ink);font-family:inherit;margin:0!important;padding:0!important}
#dshe .dshe-kicker{font-size:11px;font-weight:800;letter-spacing:2.1px;text-transform:uppercase;margin:0 0 13px;color:#52718e}
#dshe .dshe-hero{position:relative;min-height:520px;overflow:hidden;isolation:isolate;border-radius:23px;background:#dce7ef}
#dshe .dshe-hero-shade{position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,rgba(239,246,251,.99) 0%,rgba(239,246,251,.93) 15%,rgba(239,246,251,.62) 22%,transparent var(--dshe-fade-end))}
#dshe .dshe-hero-copy{position:relative;z-index:1;width:min(54%,650px);min-height:520px;display:flex;flex-direction:column;justify-content:center;padding:60px 0 56px 5%}
#dshe .dshe-hero h1{font-weight:850;font-size:clamp(40px,4.2vw,72px)!important;line-height:1.035!important;letter-spacing:-2.3px!important;color:var(--dshe-ink)!important;margin:0 0 20px!important}
#dshe .dshe-hero h1 em,#dshe .dshe-story h2 em{font-style:normal;color:#7b981f}
#dshe .dshe-hero-lead{font-size:16px;line-height:1.66;max-width:390px;color:#324a62;margin:0 0 25px}
#dshe .dshe-cta-row{display:flex;flex-wrap:wrap;gap:10px}
#dshe .dshe-button{display:inline-flex;align-items:center;justify-content:center;gap:15px;min-height:48px;padding:12px 18px;border-radius:999px;font-size:13px;font-weight:750;text-decoration:none!important;transition:transform .2s,background .2s}
#dshe .dshe-button:hover{transform:translateY(-2px)}
#dshe .dshe-button-lime{background:var(--dshe-lime);color:#081b36!important}
#dshe .dshe-button-outline{background:rgba(255,255,255,.84);border:1px solid #c3cfdb;color:var(--dshe-ink)!important}
#dshe .dshe-button-dark{background:var(--dshe-navy);color:white!important}
#dshe .dshe-benefits{display:flex;flex-wrap:wrap;gap:17px;font-size:11px;font-weight:650;color:#3d5873;margin-top:38px}
#dshe .dshe-hero-sign{position:absolute;right:30px;bottom:23px;color:white;text-shadow:0 2px 12px rgba(0,0,0,.55);display:flex;flex-direction:column;text-align:right;gap:3px;font-size:13px}
#dshe .dshe-hero-sign strong{font-size:20px;letter-spacing:2px}
#dshe .dshe-catalog{padding:48px 0 54px}
#dshe .dshe-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:23px}
#dshe .dshe-head h2{color:var(--dshe-ink)!important;font-size:clamp(32px,3.5vw,52px)!important;line-height:1.09!important;letter-spacing:-1.4px!important;margin:0 0 10px!important;font-weight:820}
#dshe .dshe-head h2 span{color:#9dbc33}
#dshe .dshe-head p:not(.dshe-kicker){font-size:14px;line-height:1.7;color:var(--dshe-muted);max-width:670px;margin:0}
#dshe .dshe-total{font-size:12px;color:var(--dshe-muted);white-space:nowrap}
#dshe .dshe-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}
#dshe .dshe-filters{display:flex;gap:7px;flex-wrap:wrap;flex:1}
#dshe .dshe-filters button{appearance:none;border:1px solid #dae3eb;background:#f3f6f9;color:#31445d;border-radius:999px;padding:11px 16px;font-size:12px;font-weight:750;cursor:pointer;white-space:nowrap}
#dshe .dshe-filters button.is-active{background:var(--dshe-navy);border-color:var(--dshe-navy);color:#fff}
#dshe .dshe-search-wrap{flex:0 1 255px}
#dshe .dshe-sort-wrap{flex:0 0 154px}
#dshe .dshe-search-wrap input,#dshe .dshe-sort-wrap select{width:100%;height:43px;border:1px solid #dbe4ec;border-radius:999px;background:#fff;padding:0 16px;color:#213852;font-size:12px}
#dshe .dshe-status{margin:0 0 20px;font-size:11px;color:#7d8b9b}
#dshe .dshe-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
#dshe .dshe-card{min-width:0;display:flex;flex-direction:column;border:1px solid #e6eaf0;border-radius:15px;overflow:hidden;background:#fff;box-shadow:0 4px 20px rgba(13,30,54,.045);transition:transform .25s,box-shadow .25s}
#dshe .dshe-card:hover{transform:translateY(-5px);box-shadow:0 16px 38px rgba(13,30,54,.11)}
#dshe .dshe-card[hidden],#dshe .dshe-empty[hidden]{display:none!important}
#dshe .dshe-card-picture{display:block;position:relative;background:linear-gradient(#f8fafb,#fff);height:195px;padding:29px 12px 6px;text-decoration:none!important}
#dshe .dshe-card-overline{position:absolute;top:12px;left:14px;color:#8392a5;font-size:9px;letter-spacing:1px;font-weight:750;text-transform:uppercase}
#dshe .dshe-card-img{height:100%;width:100%;display:flex;align-items:center;justify-content:center}
#dshe .dshe-card-img img{display:block;max-width:100%;width:100%;height:100%;object-fit:contain;transition:transform .3s}
#dshe .dshe-card:hover .dshe-card-img img{transform:scale(1.06)}
#dshe .dshe-card-body{display:flex;justify-content:space-between;align-items:end;gap:8px;flex:1;padding:9px 15px 17px}
#dshe .dshe-card-category{display:block;color:#8190a1;font-size:10px;margin-bottom:5px}
#dshe .dshe-card h3{font-size:17px!important;font-weight:800!important;line-height:1.22!important;color:var(--dshe-ink)!important;margin:0 0 11px!important}
#dshe .dshe-card-price{display:flex;flex-direction:column;gap:2px}
#dshe .dshe-card-price small{font-size:10px;color:#7f8da0}
#dshe .dshe-card-price strong{font-size:14px;font-weight:800;color:var(--dshe-ink)}
#dshe .dshe-card-go{flex-shrink:0;display:inline-flex;align-items:center;gap:8px;background:var(--dshe-navy);color:#fff!important;border-radius:9px;padding:10px 11px;font-size:11px;font-weight:750;text-decoration:none!important}
#dshe .dshe-empty{text-align:center;padding:45px 15px;color:var(--dshe-muted)}
#dshe .dshe-story{position:relative;min-height:340px;border-radius:20px;overflow:hidden;background:#e7eef5 var(--dshe-story-image) no-repeat right center;background-size:cover;margin:0 0 38px}
#dshe .dshe-story:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#edf4f9 0%,rgba(237,244,249,.98) 23%,rgba(237,244,249,.82) 41%,rgba(237,244,249,.07) 72%)}
#dshe .dshe-story-copy{position:relative;max-width:490px;padding:43px 4%}
#dshe .dshe-story h2{font-size:clamp(32px,3.5vw,51px)!important;line-height:1.07!important;letter-spacing:-1.4px!important;font-weight:840!important;margin:0 0 13px!important;color:var(--dshe-ink)!important}
#dshe .dshe-story-copy>p:not(.dshe-kicker){font-size:14px;line-height:1.7;color:#3d5770;margin:0 0 18px}
#dshe :is(a,button,input,select):focus-visible{outline:3px solid #7eb4fc!important;outline-offset:3px}
#dshe .dshe-reveal{opacity:0;transform:translateY(12px)}
#dshe .dshe-reveal.dshe-entered{opacity:1;transform:none;transition:opacity .45s,transform .45s}
@media(max-width:1150px){#dshe .dshe-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}#dshe .dshe-hero-copy{width:58%}}
@media(max-width:850px){#dshe .dshe-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#dshe .dshe-hero{min-height:450px}#dshe .dshe-hero-copy{min-height:450px;width:69%}#dshe .dshe-hero-shade{background:linear-gradient(90deg,#eff6fb 0%,rgba(239,246,251,.92) 42%,rgba(239,246,251,.1) 90%)}#dshe .dshe-toolbar{align-items:stretch}#dshe .dshe-filters{flex-basis:100%}}
@media(max-width:600px){body.page-id-7804 #dshe{width:92vw!important;max-width:92vw!important}#dshe .dshe-hero{min-height:540px;background-position:64% center}#dshe .dshe-hero-shade{background:linear-gradient(180deg,#eff6fb 0%,rgba(239,246,251,.96) 36%,rgba(239,246,251,.22) 77%,transparent 100%)}#dshe .dshe-hero-copy{width:100%;min-height:0;padding:35px 22px 145px}#dshe .dshe-hero h1{font-size:38px!important;letter-spacing:-1.2px!important}#dshe .dshe-benefits{margin-top:22px;gap:9px}#dshe .dshe-hero-sign{bottom:14px;right:16px}#dshe .dshe-grid{grid-template-columns:1fr!important;gap:12px!important}#dshe .dshe-card-picture{height:220px}#dshe .dshe-catalog{padding:35px 0}#dshe .dshe-head{align-items:start;flex-direction:column}#dshe .dshe-search-wrap{flex:1 1 100%}#dshe .dshe-sort-wrap{flex:1 1 100%}#dshe .dshe-story{min-height:390px;background-position:58% center}#dshe .dshe-story:before{background:linear-gradient(180deg,#edf4f9,rgba(237,244,249,.9) 50%,transparent)}#dshe .dshe-story-copy{padding:30px 22px}}
@media(prefers-reduced-motion:reduce){#dshe .dshe-card,#dshe .dshe-card-img img,#dshe .dshe-reveal{transition:none!important;transform:none!important;opacity:1!important}}

/* v1.2: independently configurable hero slides and controls */
#dshe .dshe-hero-slides{position:absolute;inset:0;z-index:-1;overflow:hidden}
#dshe .dshe-hero-slide{position:absolute;inset:0;background-size:cover;background-position:var(--dshe-hero-pos,68%) center;opacity:0;transition:opacity .75s ease}
#dshe .dshe-hero-slide.is-active{opacity:1}
#dshe .dshe-hero-shade{z-index:0;pointer-events:none}
#dshe .dshe-hero-controls{position:absolute;z-index:3;right:22px;bottom:22px;display:flex;align-items:center;gap:12px;background:rgba(4,23,46,.65);border-radius:100px;padding:7px 10px;color:#fff;backdrop-filter:blur(8px)}
#dshe .dshe-hero-controls button{appearance:none;border:0;background:transparent;color:inherit;cursor:pointer;min-width:30px;min-height:30px;font-size:24px;line-height:1;border-radius:50%}
#dshe .dshe-hero-dots{display:flex;align-items:center;gap:7px}
#dshe .dshe-hero-dots button{width:10px;min-width:10px;height:10px;min-height:10px;padding:0;border-radius:100%;background:rgba(255,255,255,.5)}
#dshe .dshe-hero-dots button[aria-current="true"]{background:#cde932}
#dshe .dshe-hero-controls button:focus-visible{outline:2px solid #d9f56f;outline-offset:3px}
#dshe .dshe-hero[data-carousel="1"] .dshe-hero-sign{bottom:80px}
@media(max-width:600px){#dshe .dshe-hero-slide{background-position:var(--dshe-hero-pos,68%) center}#dshe .dshe-hero[data-carousel="1"] .dshe-hero-sign{bottom:75px}#dshe .dshe-hero-controls{right:12px;bottom:12px}}
@media(prefers-reduced-motion:reduce){#dshe .dshe-hero-slide{transition:none}}
