/* Ateliér Slaninková – Google reviews widget
   Všetky triedy majú prefix .asgr-, aby nekolidovali s témou. */

.asgr-widget,
.asgr-badge,
.asgr-modal {
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  color: #121212;
  box-sizing: border-box;
}

.asgr-widget *,
.asgr-badge *,
.asgr-modal * {
  box-sizing: border-box;
}

/* ----------------------------------------------------------- hviezdičky */

.asgr-stars {
  position: relative;
  display: inline-block;
  line-height: 0;
  flex: none;
}

.asgr-stars svg {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.asgr-stars--sm svg {
  width: 16px;
  height: 16px;
}

.asgr-stars__bg {
  color: #d8d8d8;
  white-space: nowrap;
}

.asgr-stars__fg {
  color: #fbbc04;
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: nowrap;
}

/* ------------------------------------------------------ hlavička widgetu */

.asgr-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 28px;
  text-align: center;
}

.asgr-header__glogo svg {
  height: 30px;
  width: auto;
  display: block;
}

.asgr-header__rating {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.asgr-header__count {
  color: #6b6b6b;
  font-size: 15px;
}

.asgr-btn {
  display: inline-block;
  background: #121212;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.asgr-btn:hover {
  opacity: 0.82;
  color: #fff;
}

/* --------------------------------------------------------------- karusel */

.asgr-carousel {
  position: relative;
}

.asgr-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}

.asgr-track::-webkit-scrollbar {
  display: none;
}

.asgr-card {
  flex: 0 0 320px;
  max-width: 85vw;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asgr-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e3e3e3;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #121212;
  padding: 0;
}

.asgr-arrow svg {
  width: 18px;
  height: 18px;
}

.asgr-arrow--prev {
  left: -10px;
}

.asgr-arrow--next {
  right: -10px;
}

.asgr-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ------------------------------------------------------- recenzia (karta) */

.asgr-review__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asgr-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
}

.asgr-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #5b6770;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}

.asgr-review__name {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.asgr-review__name span,
.asgr-review__name-link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asgr-review__name-link {
  color: inherit;
  text-decoration: none;
}

.asgr-review__name-link:hover {
  text-decoration: underline;
}

.asgr-verified {
  color: #121212;
  flex: none;
}

.asgr-verified svg {
  width: 14px;
  height: 14px;
  display: block;
}

.asgr-review__meta {
  color: #6b6b6b;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 0;
}

.asgr-review__meta .asgr-mini-glogo svg {
  height: 14px;
  width: auto;
  display: block;
  margin-top: 1px;
}

.asgr-review__text {
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-line;
  overflow: hidden;
  margin: 0;
}

.asgr-review__text--clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.asgr-review__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asgr-review__photo {
  display: block;
  line-height: 0;
}

.asgr-review__photo img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.asgr-readmore {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: #6b6b6b;
  text-decoration: underline;
  cursor: pointer;
}

/* ----------------------------------------------------- odpoveď majiteľa */

.asgr-reply {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}

.asgr-reply__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.asgr-reply__name {
  font-weight: 700;
}

.asgr-reply__tag {
  background: #e4e4e4;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #444;
}

.asgr-reply__date {
  width: 100%;
  color: #6b6b6b;
  font-size: 12.5px;
}

.asgr-reply__text {
  margin: 0;
  line-height: 1.5;
  white-space: pre-line;
  overflow: hidden;
}

.asgr-reply__text--clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* --------------------------------------------------------- plávajúci badge */

.asgr-badge {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
  padding: 12px 18px;
  border: none;
  cursor: pointer;
  font-size: 17px;
}

.asgr-badge__g svg {
  width: 26px;
  height: 26px;
  display: block;
}

.asgr-badge__rating {
  font-weight: 700;
}

.asgr-badge__count {
  color: #6b6b6b;
  font-size: 15px;
}

.asgr-badge__close {
  position: absolute;
  top: -10px;
  right: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  padding: 0;
}

.asgr-badge__close svg {
  width: 12px;
  height: 12px;
}

/* ----------------------------------------------------------------- modal */

.asgr-modal {
  position: fixed;
  inset: 0;
  /* Nad sticky header témy (niektoré témy majú vlastný vysoký z-index),
     aby fullscreen modal naozaj prekryl celú stránku aj s tlačidlom X. */
  z-index: 2147483646;
  background: #fff;
  display: none;
  flex-direction: column;
}

.asgr-modal--open {
  display: flex;
}

.asgr-modal__close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
}

.asgr-modal__close svg {
  width: 20px;
  height: 20px;
}

.asgr-modal__scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.asgr-modal__inner {
  max-width: 680px;
  margin: 0 auto;
  /* horný padding necháva miesto pre X aj pod prípadným notch/status barom */
  padding: calc(56px + env(safe-area-inset-top, 0px)) 20px
    calc(40px + env(safe-area-inset-bottom, 0px));
}

.asgr-modal__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 26px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 8px;
  text-align: center;
}

.asgr-modal__head .asgr-header__glogo svg {
  height: 38px;
}

.asgr-modal__score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asgr-modal__rating {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.asgr-modal .asgr-review {
  padding: 22px 0;
  border-bottom: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asgr-modal .asgr-review:last-child {
  border-bottom: none;
}

/* ------------------------------------------------- responzívne prepínanie */

.asgr-widget--badge-only .asgr-inline {
  display: none;
}

@media (max-width: 749px) {
  .asgr-widget--auto .asgr-inline {
    display: none;
  }
}

@media (min-width: 750px) {
  .asgr-badge--auto {
    display: none;
  }
}

.asgr-badge--hidden {
  display: none !important;
}

body.asgr-no-scroll {
  overflow: hidden !important;
}
