/**
 * ECLISSE Slovakia, s.r.o. – Odstúpenie od zmluvy
 * Withdrawal page in three steps, order detail box, buttons in "Moje objednávky", footer link.
 * Colours meet WCAG 2.1 AA (text 4.5:1); keyboard focus is always visible.
 */
.wd{--wd-accent:#1d56a2;--wd-accent-soft:#e8eff8;--wd-text:#232323;--wd-muted:#6b7280;--wd-line:#e3e6ea;--wd-bg:#f6f7f9;--wd-error:#c62828;--wd-ok:#2e7d32;
  max-width:1040px;margin:0 auto;padding:8px 0 48px;color:var(--wd-text)}
.wd *{box-sizing:border-box}
.wd-hero{text-align:center;margin:8px auto 24px;max-width:620px}
.wd-hero__icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:12px;background:var(--wd-accent-soft);color:var(--wd-accent);margin-bottom:12px}
.wd-hero__icon .material-icons{font-size:26px}
.wd-hero__title{font-size:1.75rem;line-height:1.25;font-weight:700;margin:0 0 8px;text-transform:none;color:var(--wd-text)}
.wd-hero__lead{color:var(--wd-muted);margin:0;font-size:1rem;line-height:1.5}

.wd-steps{display:flex;justify-content:center;list-style:none;margin:0 auto 28px;padding:0;max-width:520px;counter-reset:none}
.wd-steps__item{flex:1 1 0;position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:.8125rem;color:var(--wd-muted)}
.wd-steps__item+.wd-steps__item::before{content:"";position:absolute;top:13px;right:50%;width:100%;height:2px;background:var(--wd-line);z-index:0}
.wd-steps__item.is-done+.wd-steps__item::before,.wd-steps__item.is-done+.wd-steps__item.is-current::before{background:var(--wd-accent)}
.wd-steps__dot{position:relative;z-index:1;width:28px;height:28px;border-radius:50%;border:2px solid var(--wd-line);background:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.8125rem;color:var(--wd-muted)}
.wd-steps__item.is-current{color:var(--wd-text);font-weight:600}
.wd-steps__item.is-current .wd-steps__dot{border-color:var(--wd-accent);color:var(--wd-accent)}
.wd-steps__item.is-done .wd-steps__dot{border-color:var(--wd-accent);background:var(--wd-accent);color:#fff}

.wd-main.is-loading{opacity:.5;pointer-events:none;transition:opacity .15s}
.wd-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.wd-col,.wd-side{display:flex;flex-direction:column;gap:16px;min-width:0}
.wd-card{background:#fff;border:1px solid var(--wd-line);border-radius:10px;padding:24px}
.wd-card--soft{background:var(--wd-bg)}
.wd-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--wd-line);margin-bottom:4px}
.wd-card__title{font-size:1.125rem;line-height:1.35;font-weight:700;margin:0 0 16px;text-transform:none;color:var(--wd-text)}
.wd-card__head .wd-card__title{margin-bottom:4px}
.wd-card__head p{margin:0}
.wd-sticky{position:sticky;top:90px}
.wd-muted{color:var(--wd-muted)}
.wd-small{font-size:.8125rem;line-height:1.45}
.wd-center{text-align:center}
.wd-note{margin:0;color:var(--wd-muted)}

.wd-field{margin-bottom:18px}
.wd-field:last-child{margin-bottom:0}
.wd-field label,.wd-label{display:block;font-weight:600;font-size:.875rem;margin:0 0 6px;color:var(--wd-text)}
.wd-field label .wd-muted{font-weight:400}
.wd .form-control{min-height:46px;border:1px solid #cfd4da;border-radius:6px;padding:10px 12px;font-size:1rem;background:#fff;color:var(--wd-text);box-shadow:none}
.wd textarea.form-control{min-height:88px;resize:vertical}
.wd .form-control:focus{border-color:var(--wd-accent);outline:2px solid var(--wd-accent-soft);outline-offset:0}
.wd .form-control.is-invalid{border-color:var(--wd-error)}
.wd .form-control.is-valid{border-color:var(--wd-ok)}
.wd-field__hint{margin:6px 0 0;font-size:.8125rem;line-height:1.45;color:var(--wd-muted)}
.wd-field__error{display:none;margin:6px 0 0;font-size:.8125rem;color:var(--wd-error)}
.wd-field__error.is-shown{display:block}
.wd-static{margin:0;min-height:24px;font-size:1rem;word-break:break-all}
.wd-file{padding:9px 12px}
.wd-alert{border-radius:6px;padding:12px 14px;margin:0 0 16px;font-size:.9375rem}
.wd-alert--error{background:#fdecea;color:#8e1c1c}
.wd-alert--warn{background:#fff6e0;color:#6b4a00}
.wd .wd-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 22px;border-radius:6px;font-weight:700;font-size:.9375rem;text-transform:none;letter-spacing:0}
.wd .wd-btn--block{width:100%}
.wd .wd-btn.is-busy{opacity:.7;cursor:progress}
.wd .wd-btn .material-icons{font-size:20px}
.wd-login{margin:14px 0 0}
.wd-how{list-style:none;counter-reset:wd;margin:0 0 16px;padding:0}
.wd-how li{counter-increment:wd;position:relative;padding-left:36px;margin-bottom:12px;line-height:1.45}
.wd-how li::before{content:counter(wd);position:absolute;left:0;top:-1px;width:24px;height:24px;border-radius:50%;background:var(--wd-accent-soft);color:var(--wd-accent);font-weight:700;font-size:.8125rem;display:flex;align-items:center;justify-content:center}
.wd-side .wd-small{margin:0 0 10px}
.wd-side .wd-small:last-child{margin-bottom:0}

/* orders list (logged in) */
.wd-orders{list-style:none;margin:0;padding:0}
.wd-orders__item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--wd-line)}
.wd-orders__item:first-child{border-top:0;padding-top:0}
.wd-orders__info{display:flex;flex-direction:column;gap:2px}

/* step 2 lines */
.wd-lines{list-style:none;margin:0;padding:0}
.wd-line{display:grid;grid-template-columns:22px 56px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--wd-line)}
.wd-line:first-child{border-top:0}
.wd-line.is-off .wd-line__img,.wd-line.is-off .wd-line__text{opacity:.55}
.wd-line.is-excluded{grid-template-columns:22px 56px minmax(0,1fr)}
.wd-line.is-excluded .wd-line__img,.wd-line.is-excluded .wd-line__name{opacity:.6}
.wd-check{width:20px;height:20px;margin:0;accent-color:var(--wd-accent);cursor:pointer}
.wd-check--off{display:block;border:2px solid var(--wd-line);border-radius:4px;background:var(--wd-bg);cursor:not-allowed}
.wd-line__img{width:56px;height:56px;border:1px solid var(--wd-line);border-radius:6px;overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center}
.wd-line__img img{width:100%;height:100%;object-fit:contain}
.wd-line__text{display:flex;flex-direction:column;gap:2px;margin:0;font-weight:400;cursor:pointer;min-width:0}
.wd-line.is-excluded .wd-line__text{cursor:default}
.wd-line__name{font-weight:600;font-size:.9375rem;line-height:1.35;overflow-wrap:anywhere}
.wd-line__note{font-size:.8125rem;color:#6b4a00}
.wd-qty{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.wd-qty__btn{width:36px;height:36px;border:1px solid #cfd4da;border-radius:6px;background:#fff;font-size:1.125rem;line-height:1;color:var(--wd-text);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.wd-qty__btn:hover:not(:disabled){border-color:var(--wd-accent);color:var(--wd-accent)}
.wd-qty__btn:disabled{opacity:.35;cursor:default}
.wd .wd-qty__input{width:52px;min-height:36px;height:36px;text-align:center;padding:4px;-moz-appearance:textfield}
.wd-qty__input::-webkit-outer-spin-button,.wd-qty__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.wd-switch{display:inline-flex;align-items:center;gap:10px;margin:0;font-weight:600;font-size:.875rem;cursor:pointer;white-space:nowrap;user-select:none}
.wd-switch input{position:absolute;opacity:0;width:1px;height:1px}
.wd-switch__track{position:relative;width:40px;height:22px;border-radius:11px;background:#cfd4da;transition:background .15s;flex:none}
.wd-switch__track::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.wd-switch input:checked+.wd-switch__track{background:var(--wd-accent)}
.wd-switch input:checked+.wd-switch__track::after{transform:translateX(18px)}
.wd-switch input:focus-visible+.wd-switch__track{outline:2px solid var(--wd-accent);outline-offset:2px}

/* declaration */
.wd-declaration{margin:0 0 16px;line-height:1.55;font-size:.9375rem}
.wd-count{display:flex;align-items:baseline;gap:8px;background:var(--wd-bg);border-radius:6px;padding:12px 14px;margin:0 0 14px}
.wd-count__num{font-size:1.375rem;color:var(--wd-accent)}
.wd-count__error{margin:-6px 0 12px}
.wd-back{display:inline-block;margin:12px 0 14px;color:var(--wd-muted);text-decoration:underline}
.wd-back:hover{color:var(--wd-accent)}

/* receipt */
.wd-receipt{max-width:640px;margin:0 auto;text-align:center;padding:32px 24px}
.wd-receipt__icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:#e7f4e8;color:var(--wd-ok);margin-bottom:12px}
.wd-receipt__icon .material-icons{font-size:30px}
.wd-receipt__title{font-size:1.375rem;font-weight:700;margin:0 0 20px;text-transform:none;outline:none}
.wd-receipt__facts{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--wd-line);border:1px solid var(--wd-line);border-radius:8px;overflow:hidden;margin:0 0 20px;text-align:left}
.wd-receipt__facts>div{background:#fff;padding:12px 14px}
.wd-receipt__facts dt{font-weight:400;font-size:.8125rem;color:var(--wd-muted);margin:0 0 2px}
.wd-receipt__facts dd{margin:0;overflow-wrap:anywhere}
.wd-receipt p{margin:0 0 14px}

@media (max-width:991px){
  .wd-layout{grid-template-columns:minmax(0,1fr)}
  .wd-sticky{position:static}
}
@media (max-width:575px){
  .wd{padding-bottom:32px}
  .wd-hero__title{font-size:1.5rem}
  .wd-hero__lead{font-size:.9375rem}
  .wd-card{padding:18px 16px}
  .wd-card__head{flex-direction:column;gap:12px}
  .wd-line{grid-template-columns:22px 48px minmax(0,1fr);row-gap:10px}
  .wd-line__img{width:48px;height:48px}
  .wd-qty{grid-column:3}
  .wd-qty__btn{width:40px;height:40px}
  .wd .wd-qty__input{height:40px}
  .wd-orders__item{flex-direction:column;align-items:stretch}
  .wd .wd-btn{width:100%}
  .wd-receipt{padding:24px 16px}
  .wd-receipt__facts{grid-template-columns:1fr}
}

/* theme overrides on the withdrawal page: the theme right-aligns every <label>, wraps the page in a card
   and gives headings a top margin; inputs are width:100% */
#module-eclwithdrawal-page #content.page-content{background:none;border:0;box-shadow:none;padding:0;margin:0}
.wd,.wd label{text-align:left}
.wd .wd-hero,.wd .wd-steps,.wd .wd-center,.wd .wd-receipt{text-align:center}
.wd h1,.wd h2{margin-top:0}
.wd .wd-qty .wd-qty__input{width:56px!important;min-width:0;max-width:56px;flex:none;padding:4px}
.wd .wd-switch{text-align:left}
@media (max-width:575px){
  .wd-steps__label{font-size:.75rem;line-height:1.3}
  .wd-qty{flex-wrap:nowrap}
}

/* accessibility (WCAG 2.1 AA): theme grey text is 4.29:1, links in muted text need more than colour, visible keyboard focus */
.wd p,.wd .wd-static,.wd .wd-declaration,.wd li{color:var(--wd-text)}
.wd .wd-muted,.wd .wd-field__hint,.wd .wd-note,.wd .wd-hero__lead{color:var(--wd-muted)}
.wd a{text-decoration:underline}
.wd a.btn{text-decoration:none}
.wd :focus-visible{outline:2px solid var(--wd-accent);outline-offset:2px}
.wd .wd-step-title:focus{outline:none}
.wd-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* order detail box */
.wd-order-box{border:1px solid #e3e6ea;border-radius:8px;padding:16px 18px;margin:16px 0;background:#f6f7f9}
.wd-order-box__title{font-weight:700;margin:0 0 6px}
.wd-order-box p{margin:0 0 10px}
.wd-order-box .btn{text-transform:none}

/* "Moje objednávky" */
.wd-badge{display:inline-block;margin:4px 0;padding:2px 8px;border-radius:10px;background:#e8eff8;color:#143d73;font-size:.75rem;font-weight:600}
.wd-history-btn{display:block;margin-top:6px;text-transform:none;white-space:normal}

/* footer link outside a link list (no JavaScript or no list found) */
.wd-footer-link{padding:8px 15px}
