/* Fixed bottom video widget styles */
.getreview-widget {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Arrow hint styles */
.getreview-widget .grw-arrow-hint {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10003;
  animation: bounce 2s infinite;
}

.getreview-widget .grw-arrow {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 20px solid #e51515;
  margin-bottom: 5px;
}

.getreview-widget .grw-hint-text {
  background: #e51515;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(229, 21, 21, 0.3);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Hide arrow hint when widget is expanded or closed, or when video is big */
.getreview-widget[data-state="expanded"] .grw-arrow-hint,
.getreview-widget[data-state="closed"] .grw-arrow-hint,
.getreview-widget .grw-video.big ~ .grw-container .grw-arrow-hint,
.getreview-widget .grw-video.big + .grw-arrow-hint {
  display: none;
}

/* Show arrow hint only when video is small (not .big class) */
.getreview-widget .grw-video:not(.big) ~ .grw-container .grw-arrow-hint {
  display: flex;
}

.getreview-widget .grw-container {
  width: 100%;
  max-width: 90vw;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  background: #000;
  position: relative;
}

.getreview-widget .grw-video {
  width: 100px;
  height: 178px;
  display: block;
  aspect-ratio: 16/9;
  background: #000;
}

.getreview-widget .grw-close,
.getreview-widget .grw-toggle-mute {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10001;
}
.getreview-widget .grw-close {
  display: inline-flex;
}
.getreview-widget .grw-video.big {
  width: 100%;
  height: 88vh;
  aspect-ratio: auto;
}

.grw-toggle-mute {
  display: none;
}
.getreview-widget .grw-video.big ~ .grw-toggle-mute {
  display: inline-flex;
}

.getreview-widget .grw-close:hover,
.getreview-widget .grw-toggle-mute:hover { background: rgba(0,0,0,0.7); }

.getreview-widget .grw-toggle-mute { right: 48px; }

.getreview-widget .grw-minimized {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  cursor: pointer;
  display: none;
}

/* States */
.getreview-widget[data-state="closed"] .grw-container { display: none; }
.getreview-widget[data-state="open"] .grw-minimized { display: none; }

/*!* Big video on click *!*/
/*.getreview-widget .grw-video.big {*/
/*  position: fixed;*/
/*  left: 50%;*/
/*  top: 50%;*/
/*  transform: translate(-50%, -50%);*/
/*  width: 720px;*/
/*  max-width: 95vw;*/
/*  height: auto;*/
/*  box-shadow: 0 20px 40px rgba(0,0,0,0.35);*/
/*  border-radius: 12px;*/
/*  z-index: 10000;*/
/*}*/

/* Expanded state */
.getreview-widget[data-state="expanded"] {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}
.getreview-widget[data-state="expanded"]::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  pointer-events: none;
}
.getreview-widget[data-state="expanded"] .grw-container {
  width: 720px;
  max-width: 95vw;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.getreview-widget[data-state="expanded"] .grw-video {
  width: 100%;
  height: auto;
}
.getreview-widget[data-state="expanded"] .grw-minimized { display: none; }

/* Write button (appears 3s after .big, inside container) */
.getreview-widget .grw-container { position: relative; }
.getreview-widget .grw-container .grw-write-button {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: #e51515;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 10002;
  display: none;
}

.getreview-widget .grw-container .grw-write-button.show { display: inline-block; }