/* AUTOvybava.sk – finálna horná trust lišta
   Izolované štýly: neovplyvňujú ostatné prvky Shoptetu.
*/

.av-probar-host {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  line-height: normal !important;
}

#av-probar,
#av-probar * {
  box-sizing: border-box;
}

#av-probar {
  width: 100%;
  background: linear-gradient(100deg, #0b5da8 0%, #075099 46%, #033b73 100%);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 2px 9px rgba(0, 45, 89, .16);
}

#av-probar .avp-inner {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: 6px 18px;
  min-height: 60px;
  display: grid;
  grid-template-columns: 1.28fr .95fr 1.12fr 1.18fr .90fr 1.05fr;
  align-items: center;
}

#av-probar .avp-item {
  position: relative;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

#av-probar .avp-item + .avp-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: rgba(255, 255, 255, .27);
}

#av-probar .avp-icon {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  opacity: .98;
}

#av-probar .avp-icon:not(.avp-flag)::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* Farebná slovenská vlajka v zaoblenom obdĺžniku */
#av-probar .avp-flag {
  flex-basis: 40px;
  width: 40px;
  height: 27px;
  border-radius: 6px;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 31'%3E%3Crect width='46' height='31' rx='5' fill='%23fff'/%3E%3Cpath d='M0 10.33h46v10.34H0z' fill='%230b4ea2'/%3E%3Cpath d='M0 20.67h46V31H0z' fill='%23ee1c25'/%3E%3Cpath d='M10.2 7.3h11.5v10.2c0 5-3.6 7.3-5.75 8.4-2.15-1.1-5.75-3.4-5.75-8.4V7.3z' fill='%23ee1c25' stroke='%23fff' stroke-width='1.25'/%3E%3Cpath d='M15.95 9.2v8.2m-3.1-5.3h6.2m-5.25 2.45h4.3' stroke='%23fff' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M12.1 19.2c1.1-.9 2.2-1.1 3.85-.4 1.65-.7 2.75-.5 3.85.4-.7 2.25-2.45 3.6-3.85 4.4-1.4-.8-3.15-2.15-3.85-4.4z' fill='%230b4ea2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

/* Kalendár */
#av-probar .avp-calendar::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/g%3E%3C/svg%3E");
}

/* Recenzie / ľudia */
#av-probar .avp-users::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3.5 19c.6-3.6 2.4-5.5 5.5-5.5s4.9 1.9 5.5 5.5M16 5.7c2.3.1 3.6 1.3 3.6 3.1 0 1.6-1.1 2.7-2.8 3M16.2 14.2c2.5.3 3.9 1.8 4.3 4.8'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3.5 19c.6-3.6 2.4-5.5 5.5-5.5s4.9 1.9 5.5 5.5M16 5.7c2.3.1 3.6 1.3 3.6 3.1 0 1.6-1.1 2.7-2.8 3M16.2 14.2c2.5.3 3.9 1.8 4.3 4.8'/%3E%3C/g%3E%3C/svg%3E");
}

/* Lupa */
#av-probar .avp-search::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Štít */
#av-probar .avp-shield::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 20 6v5.5c0 5-3.1 8.3-8 10-4.9-1.7-8-5-8-10V6l8-3.5z'/%3E%3Cpath d='m8.5 12 2.1 2.1 4.9-5'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 20 6v5.5c0 5-3.1 8.3-8 10-4.9-1.7-8-5-8-10V6l8-3.5z'/%3E%3Cpath d='m8.5 12 2.1 2.1 4.9-5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Kuriér */
#av-probar .avp-truck::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

#av-probar .avp-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

#av-probar .avp-title,
#av-probar .avp-sub {
  display: block;
  margin: 0;
  padding: 0;
  color: #fff;
  white-space: nowrap;
}

#av-probar .avp-title {
  font-size: 13.8px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.1px;
}

#av-probar .avp-sub {
  font-size: 11px;
  line-height: 1.15;
  font-weight: 500;
  opacity: .93;
}

#av-probar .avp-stars {
  display: block;
  margin-top: 1px;
  color: #ffc400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0,0,0,.12);
}


/* Celý benefit je klikateľný vrátane ikony */
#av-probar a.avp-item {
  color: #fff;
  text-decoration: none !important;
  border-radius: 8px;
  transition: background-color .18s ease, transform .18s ease;
}

#av-probar a.avp-item:hover,
#av-probar a.avp-item:focus-visible {
  color: #fff;
  text-decoration: none !important;
  background: rgba(255,255,255,.09);
}

#av-probar a.avp-item:focus-visible {
  outline: 2px solid rgba(255,255,255,.75);
  outline-offset: -2px;
}

#av-probar a.avp-item:active {
  transform: translateY(1px);
}

/* Menší desktop / tablet */
@media (max-width: 1199px) {
  #av-probar .avp-inner {
    padding: 5px 8px;
    min-height: 56px;
  }
  #av-probar .avp-item {
    height: 42px;
    padding: 0 7px;
    gap: 7px;
  }
  #av-probar .avp-icon {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
  }
  #av-probar .avp-flag {
    flex-basis: 34px;
    width: 34px;
    height: 23px;
  }
  #av-probar .avp-title { font-size: 12px; }
  #av-probar .avp-sub { font-size: 10px; }
  #av-probar .avp-stars { font-size: 11px; }
}

/* Mobil: 3 × 2 – všetko ostáva čitateľné */
@media (max-width: 767px) {
  #av-probar .avp-inner {
    width: 100%;
    min-height: 0;
    padding: 4px 3px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
  }

  #av-probar .avp-item {
    min-height: 45px;
    height: auto;
    padding: 4px 3px;
    gap: 5px;
    justify-content: flex-start;
  }

  #av-probar .avp-item + .avp-item::before {
    top: 6px;
    bottom: 6px;
    background: rgba(255,255,255,.22);
  }

  #av-probar .avp-item:nth-child(4)::before {
    display: none;
  }

  #av-probar .avp-item:nth-child(n+4)::after {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    top: 0;
    height: 1px;
    background: rgba(255,255,255,.16);
  }

  #av-probar .avp-icon {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
  }

  #av-probar .avp-flag {
    flex-basis: 28px;
    width: 28px;
    height: 19px;
    border-radius: 4px;
  }

  #av-probar .avp-copy { gap: 2px; }
  #av-probar .avp-title { font-size: 10.2px; line-height: 1.08; }
  #av-probar .avp-sub { font-size: 8.7px; line-height: 1.08; white-space: normal; }
  #av-probar .avp-stars { font-size: 9.2px; letter-spacing: .35px; }
}

@media (max-width: 390px) {
  #av-probar .avp-title { font-size: 10px; }
  #av-probar .avp-sub { font-size: 8.6px; }
  #av-probar .avp-item { padding-left: 3px; padding-right: 3px; gap: 4px; }
}
