/* EU Guarantee & GARAN for OpenCart 3 | Copyright (c) 2026 Handeltheke Software */
.eulg-trigger{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  width:100%;
  min-height:54px;
  margin:12px 0 14px;
  padding:12px 16px;
  border:1px solid #dce5ef;
  border-radius:7px;
  background:#fbfdff;
  color:#173a63;
  font:500 14px/1.35 Arial,sans-serif;
  cursor:pointer;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,transform .16s ease;
  -webkit-appearance:none;
  appearance:none;
  text-align:left;
}
.eulg-trigger:hover,.eulg-trigger:focus{
  border-color:#b9cce1;
  background:#f7fbff;
  box-shadow:0 3px 12px rgba(31,74,125,.08);
  outline:none;
}
.eulg-trigger:focus-visible{box-shadow:0 0 0 3px rgba(11,94,215,.14),0 3px 12px rgba(31,74,125,.08)}
.eulg-trigger__left,.eulg-trigger__more{display:flex;align-items:center}
.eulg-trigger__left{gap:11px;min-width:0}
.eulg-trigger__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:50%;
  background:#eaf3ff;
  color:#0b67d8;
}
.eulg-trigger__icon svg{width:17px;height:17px;fill:currentColor}
.eulg-trigger__text{display:block;color:#173a63;font-weight:600;letter-spacing:.01em}
.eulg-trigger__more{gap:8px;flex:0 0 auto;color:#0b5ed7;font-weight:500;white-space:nowrap;text-decoration:none}
.eulg-trigger__more-label{border-bottom:1px solid rgba(11,94,215,.35);line-height:1.15}
.eulg-trigger:hover .eulg-trigger__more-label{border-bottom-color:#0b5ed7}
.eulg-trigger__arrow{display:inline-block;font-size:22px;font-weight:300;line-height:1;transform:translateY(-1px)}

/* StoreGo and similar two-column price rows: always occupy the complete content width. */
.pro_count + .eulg-trigger--product,
.eulg-trigger--product{clear:both}
.eulg-trigger--product .eulg-trigger__text{white-space:nowrap}

.eulg-trigger--floating{
  position:fixed;
  z-index:2147483000;
  right:18px;
  bottom:18px;
  width:auto;
  max-width:min(460px,calc(100vw - 36px));
  box-shadow:0 8px 28px rgba(0,0,0,.16)
}

.eulg-modal[hidden]{display:none!important}
.eulg-modal{
  position:fixed;
  inset:0;
  z-index:2147483640;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px
}
.eulg-modal__backdrop{position:absolute;inset:0;background:rgba(18,27,39,.58);backdrop-filter:blur(1px)}
.eulg-modal__dialog{
  position:relative;
  z-index:1;
  width:min(var(--eulg-max-width,620px),100%);
  max-height:calc(100vh - 40px);
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid rgba(20,45,75,.10);
  border-radius:10px;
  box-shadow:0 24px 80px rgba(0,0,0,.28);
  overflow:hidden;
  color:#202833;
  font-family:Arial,sans-serif
}
.eulg-modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:17px 20px;
  border-bottom:1px solid #e9edf2;
  background:#fff
}
.eulg-modal__title{font-size:20px;font-weight:700;line-height:1.25;color:#172033}
.eulg-modal__x{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#334155;
  font-size:28px;
  font-weight:300;
  line-height:1;
  padding:0;
  cursor:pointer
}
.eulg-modal__x:hover{background:#f2f5f8}
.eulg-modal__body{padding:16px 18px 18px;overflow:auto;background:#f6f8fb;text-align:center}
.eulg-notice-frame{position:relative;display:inline-block;max-width:100%;padding:8px;background:#fff;border:1px solid #e1e6ec;border-radius:5px;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.eulg-notice-image{display:block;max-width:100%;height:auto;max-height:calc(100vh - 190px);margin:0 auto;border:0;object-fit:contain;cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none}
.eulg-zoom-button{position:absolute;z-index:2;top:14px;right:14px;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:1px solid rgba(20,57,96,.18);border-radius:50%;background:rgba(255,255,255,.94);color:#0b5ed7;box-shadow:0 3px 12px rgba(15,23,42,.14);cursor:pointer;transition:background .15s ease,box-shadow .15s ease,transform .15s ease}
.eulg-zoom-button:hover,.eulg-zoom-button:focus{background:#fff;box-shadow:0 5px 16px rgba(15,23,42,.20);outline:none;transform:translateY(-1px)}
.eulg-zoom-button:focus-visible{box-shadow:0 0 0 3px rgba(11,94,215,.18),0 5px 16px rgba(15,23,42,.20)}
.eulg-zoom-button__icon{display:inline-flex;width:20px;height:20px}
.eulg-zoom-button__icon svg{display:block;width:20px;height:20px;fill:currentColor}
.eulg-modal--zoomed .eulg-modal__dialog{width:min(1180px,calc(100vw - 40px));max-width:none}
.eulg-modal--zoomed .eulg-modal__body{padding:12px}
.eulg-modal--zoomed .eulg-notice-frame{width:min(100%,1080px)}
.eulg-modal--zoomed .eulg-notice-image{width:100%;max-height:none}
.eulg-modal__footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:13px 20px;border-top:1px solid #e9edf2;background:#fff}
.eulg-more-link{margin-right:auto;color:#0b5ed7;text-decoration:none;border-bottom:1px solid rgba(11,94,215,.35)}
.eulg-more-link:hover{color:#084fad;border-bottom-color:#084fad;text-decoration:none}
.eulg-close-button{border:1px solid #cfd8e3;border-radius:6px;background:#fff;color:#253041;padding:8px 16px;cursor:pointer}
.eulg-close-button:hover{background:#f6f8fa}
.eulg-open{overflow:hidden!important}

@media(max-width:767px){
  .eulg-trigger{min-height:50px;padding:10px 12px;gap:10px}
  .eulg-trigger__icon{width:28px;height:28px;flex-basis:28px}
  .eulg-trigger__text{white-space:normal!important;font-size:13px}
  .eulg-trigger__more{font-size:12px;gap:5px}
  .eulg-trigger__arrow{font-size:19px}
  .eulg-modal{padding:8px}
  .eulg-modal__dialog{max-height:calc(100vh - 16px);border-radius:7px}
  .eulg-modal__header{padding:13px 14px}
  .eulg-modal__title{font-size:17px}
  .eulg-modal__body{padding:10px}
  .eulg-modal__footer{padding:11px 14px;flex-wrap:wrap}
  .eulg-notice-image{max-height:calc(100vh - 165px)}
  .eulg-zoom-button{top:10px;right:10px;width:36px;height:36px}
  .eulg-modal--zoomed .eulg-modal__dialog{width:calc(100vw - 16px)}
  .eulg-trigger--floating{right:10px;bottom:10px;max-width:calc(100vw - 20px)}
}

@media(max-width:430px){
  .eulg-trigger__more-label{display:none}
  .eulg-trigger__arrow{font-size:22px}
  .eulg-modal__footer{align-items:stretch}
  .eulg-more-link{width:100%;margin:0 0 4px;text-align:center;border-bottom:0;text-decoration:underline}
  .eulg-close-button{width:100%}
}

/* Separate agreement for second-hand goods in checkout – compact, neutral presentation */
.eulg-used{
  box-sizing:border-box;
  width:100%;
  margin:0 0 12px;
  padding:11px 13px;
  border:1px solid #d9dee5;
  border-radius:6px;
  background:#fff;
  box-shadow:none;
  color:#333;
  font-family:inherit;
  text-align:left!important
}
.eulg-used *{box-sizing:border-box}
.eulg-used__head{display:flex;align-items:flex-start;gap:8px}
.eulg-used__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 20px;
  width:20px;
  height:20px;
  color:#74808d;
  margin-top:0
}
.eulg-used__icon svg{width:15px;height:15px;fill:currentColor}
.eulg-used__title{margin:0 0 2px;font-size:14px;font-weight:600;line-height:1.35;color:#30363d}
.eulg-used__intro{font-size:12.5px;line-height:1.45;color:#59636e}
.eulg-used__affected{margin:7px 0 7px;padding:0;border:0;border-radius:0;background:transparent}
.eulg-used__affected-title{display:inline-block;margin:0 5px 2px 28px;font-size:11.5px;font-weight:600;color:#6c7681;text-transform:none;letter-spacing:0}
.eulg-used__affected-title:after{content:':' }
.eulg-used__products{list-style:none!important;margin:0 0 0 28px!important;padding:0!important}
.eulg-used__product{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin:0;padding:1px 0;font-size:12px;line-height:1.4;color:#59636e}
.eulg-used__product:before{content:'•';color:#9aa3ad;margin-right:1px}
.eulg-used__product-name{font-weight:600;color:#3e4650}
.eulg-used__product-model{color:#737d88}
.eulg-used__product-model:before{content:'·';margin-right:6px}
.eulg-used__product-option{display:inline;color:#59636e;font-size:12px;padding:0;background:none;border:0;border-radius:0}
.eulg-used__qty{color:#737d88;font-size:12px}
.eulg-used__consent{
  position:relative;
  display:flex!important;
  align-items:flex-start;
  gap:8px;
  width:100%;
  margin:7px 0 0!important;
  padding:5px 0!important;
  border:0;
  border-radius:0;
  background:transparent;
  cursor:pointer;
  font-weight:400!important;
  text-align:left!important
}
.eulg-used__consent input{
  position:absolute!important;
  opacity:0!important;
  width:1px!important;
  height:1px!important;
  pointer-events:none
}
.eulg-used__checkmark{
  position:relative;
  flex:0 0 18px;
  width:18px;
  height:18px;
  margin-top:1px;
  border:1.5px solid #8d98a5;
  border-radius:3px;
  background:#fff;
  transition:.15s ease
}
.eulg-used__consent input:focus + .eulg-used__checkmark{box-shadow:0 0 0 2px rgba(11,103,216,.12);border-color:#0b67d8}
.eulg-used__consent input:checked + .eulg-used__checkmark{background:#0b67d8;border-color:#0b67d8}
.eulg-used__consent input:checked + .eulg-used__checkmark:after{
  content:'';
  position:absolute;
  left:4px;
  top:1px;
  width:5px;
  height:9px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg)
}
.eulg-used__consent-text{display:block;flex:1;min-width:0;font-size:12.5px;line-height:1.45;color:#3f4852}
.eulg-used__note{margin:2px 0 0 26px;padding:0;font-size:11px;line-height:1.4;color:#7a838d}
.eulg-used__error{display:none;margin:6px 0 0 26px;font-size:11.5px;font-weight:600;color:#b42318}
.eulg-used--error{border-color:#dda7a3}
.eulg-used--error .eulg-used__checkmark{border-color:#c85b52}
.eulg-used--error .eulg-used__error{display:block}
#terms .eulg-used + .quickcheckout-content{margin-top:0}

@media(max-width:767px){
  .eulg-used{padding:10px 11px;margin-bottom:10px;border-radius:5px}
  .eulg-used__head{gap:7px}
  .eulg-used__icon{width:18px;height:18px;flex-basis:18px}
  .eulg-used__title{font-size:13.5px}
  .eulg-used__intro,.eulg-used__consent-text{font-size:12px}
  .eulg-used__affected-title,.eulg-used__products{margin-left:25px!important}
  .eulg-used__product{font-size:11.75px}
  .eulg-used__note,.eulg-used__error{margin-left:25px}
}

/* OpenCart 3 standard checkout placement */
#collapse-payment-method .panel-body > .eulg-used,
#payment-method .checkout-content > .eulg-used{margin-top:10px;margin-bottom:12px}
#collapse-payment-method .panel-body > .eulg-used + .buttons,
#payment-method .checkout-content > .eulg-used + .buttons{margin-top:0}

/* EU GARAN – optional producer durability guarantee */
.eulg-garan-trigger{
  box-sizing:border-box;display:flex;align-items:center;gap:14px;width:100%;margin:10px 0 14px;padding:10px 14px;
  border:1px solid #dce5ef;border-radius:7px;background:#fff;color:#1f2937;text-align:left;cursor:pointer;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;font:inherit
}
.eulg-garan-trigger:hover,.eulg-garan-trigger:focus{border-color:#b9cce1;background:#fbfdff;box-shadow:0 3px 12px rgba(31,74,125,.08);outline:none}
.eulg-garan-trigger__label{display:flex;align-items:center;justify-content:center;flex:0 0 150px;max-width:150px;background:#fff}
.eulg-garan-trigger__label img{display:block;max-width:100%;height:auto;max-height:64px;pointer-events:none}
.eulg-garan-trigger__text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.eulg-garan-trigger__text strong{font-size:14px;line-height:1.35;color:#173a63}
.eulg-garan-trigger__text small{font-size:12px;line-height:1.4;color:#5d6b7a}
.eulg-garan-trigger__more{flex:0 0 auto;color:#0b5ed7;font-size:13px;white-space:nowrap}

.eulg-garan-checkout{box-sizing:border-box;width:100%;margin:0 0 16px;padding:15px 16px;border:1px solid #d7e3f1;border-radius:8px;background:#fff;text-align:left!important}
.eulg-garan-checkout__title{font-size:15px;font-weight:700;line-height:1.35;color:#173a63;margin-bottom:11px}
.eulg-garan-checkout__items{display:flex;flex-direction:column;gap:10px}
.eulg-garan-checkout__item{display:flex;align-items:center;gap:13px;padding:10px;border:1px solid #e7ebf0;border-radius:7px;background:#fbfcfe}
.eulg-garan-checkout__image{display:flex;align-items:center;justify-content:center;flex:0 0 145px;max-width:145px;padding:5px;border:0;background:#fff;cursor:pointer}
.eulg-garan-checkout__image img{display:block;max-width:100%;height:auto;max-height:62px;pointer-events:none}
.eulg-garan-checkout__info{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:12px;line-height:1.4}
.eulg-garan-checkout__info strong{font-size:13px;color:#263445}
.eulg-garan-checkout__info span{color:#5d6b7a}
.eulg-garan-checkout__info a{color:#0b5ed7;text-decoration:underline}

@media(max-width:767px){
  .eulg-garan-trigger{gap:10px;padding:9px 10px;flex-wrap:wrap}
  .eulg-garan-trigger__label{flex-basis:120px;max-width:120px}
  .eulg-garan-trigger__more{width:100%;padding-left:130px}
  .eulg-garan-checkout__item{align-items:flex-start;flex-direction:column}
  .eulg-garan-checkout__image{flex-basis:auto;max-width:160px}
}
.eulg-garan-modal__links{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}.eulg-garan-modal__links .eulg-more-link{white-space:normal}
