/* Scoped to the Google reviews badge. Touch controls remain visible. */
.mdsmgr-widget {
  position: fixed; bottom: 24px; z-index: 110; display: flex;
  width: 224px; max-width: calc(100vw - 32px);
  border: 1px solid #ededed; border-radius: 12px; background: #f5f5f5;
  color: #202124; box-shadow: 0 12px 28px rgba(0,0,0,.22);
  font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.3;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.mdsmgr-widget.mdsmgr-pending { visibility: hidden; }
.mdsmgr-widget.mdsmgr-pos-left { left: 20px; right: auto; }
.mdsmgr-widget.mdsmgr-pos-right { right: 20px; left: auto; }
.mdsmgr-widget__link {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%;
  box-sizing: border-box; padding: 17px 18px 18px;
  color: #202124; text-decoration: none; border-radius: inherit;
}
.mdsmgr-widget__link:hover, .mdsmgr-widget__link:focus { color: #202124; text-decoration: none; }
.mdsmgr-widget:hover, .mdsmgr-widget:focus-within {
  border-color: #d4dce7; box-shadow: 0 6px 12px rgba(30,41,59,.06), 0 16px 36px rgba(30,41,59,.17);
}
.mdsmgr-widget__link:focus-visible, .mdsmgr-widget__close:focus-visible { outline: 3px solid #1a73e8; outline-offset: 3px; }
.mdsmgr-widget__logo { display: flex; flex: 0 0 34px; align-items: center; justify-content: center; }
.mdsmgr-widget__logo svg { display: block; width: 34px; height: 34px; }
.mdsmgr-widget__content { display: flex; flex-direction: column; align-items: center; width: 100%; }
.mdsmgr-widget__source { color: #5f6368; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.mdsmgr-widget__line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 0; }
.mdsmgr-widget__score { color: #202124; font-size: 27px; font-weight: 700; line-height: 1.1; letter-spacing: -.7px; }
.mdsmgr-widget__out-of { color: #5f6368; font-size: 12px; font-weight: 400; margin-left: 2px; letter-spacing: 0; }
.mdsmgr-widget__stars { position: relative; display: inline-block; font-size: 27px; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.mdsmgr-widget__stars-base { color: #e1e5eb; }
.mdsmgr-widget__stars-fill { position: absolute; left: 0; top: 0; display: block; overflow: hidden; color: #fbbc04; white-space: nowrap; }
.mdsmgr-widget__count { display: block; margin-top: 10px; color: #777; font-size: 16px; font-weight: 600; }
.mdsmgr-widget__close {
  position: absolute; top: 4px; right: 4px; z-index: 1; display: flex;
  align-items: center; justify-content: center; width: 28px; height: 28px;
  padding: 6px; border: 0; border-radius: 50%; background: #f5f6f8;
  color: #5f6368; cursor: pointer; opacity: 1;
  transition: opacity .16s ease, background-color .16s ease;
}
.mdsmgr-widget__close:hover { background: #e8eaed; color: #202124; }
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .mdsmgr-widget__close { opacity: 0; pointer-events: none; }
  .mdsmgr-widget:hover .mdsmgr-widget__close,
  .mdsmgr-widget:focus-within .mdsmgr-widget__close { opacity: 1; pointer-events: auto; }
}
@media (max-width: 767px) {
  .mdsmgr-widget { bottom: 84px; width: 196px; border-radius: 12px; }
  .mdsmgr-widget.mdsmgr-pos-left { left: 11px; }
  .mdsmgr-widget.mdsmgr-pos-right { right: 11px; }
  .mdsmgr-widget__link { gap: 6px; padding: 14px 16px; }
  .mdsmgr-widget__logo { flex-basis: 30px; }
  .mdsmgr-widget__logo svg { width: 28px; height: 28px; }
  .mdsmgr-widget__score { font-size: 23px; }
  .mdsmgr-widget__stars { font-size: 23px; }
  .mdsmgr-widget__count { font-size: 14px; margin-top: 8px; }
  .mdsmgr-widget__close { width: 36px; height: 36px; }
  .mdsmgr-widget.mdsmgr-hide-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mdsmgr-widget, .mdsmgr-widget__close { transition: none; }
}
/* Native modal: top layer, Escape handling and keyboard focus containment. */
.mdsmgr-dialog:not([open]) { display:none; }
.mdsmgr-dialog { box-sizing:border-box; width:560px; max-width:calc(100vw - 24px); max-height:85vh; max-height:85dvh; padding:0; border:1px solid #e2e6ec; border-radius:18px; background:#fff; color:#202124; box-shadow:0 24px 80px #0004; font:14px/1.5 Arial,Helvetica,sans-serif; }
.mdsmgr-dialog[open] { display:flex; flex-direction:column; }
.mdsmgr-dialog::backdrop { background:rgba(20,30,45,.48); }
.mdsmgr-dialog *, .mdsmgr-dialog *::before, .mdsmgr-dialog *::after { box-sizing:border-box; }
.mdsmgr-dialog [hidden] { display:none!important; }
.mdsmgr-dialog__header { display:flex; justify-content:space-between; align-items:center; padding:20px 24px; border-bottom:1px solid #e7ebef; flex-shrink:0; }
.mdsmgr-dialog h2 { margin:0 0 3px; font-size:22px; font-weight:700; color:#202124; }
.mdsmgr-dialog__header p { margin:0; color:#5f6368; }
.mdsmgr-dialog__header strong { font-size:21px; color:#202124; }
.mdsmgr-dialog__close { width:40px; height:40px; border:0; border-radius:50%; background:#f1f3f5; color:#444; font-size:26px; cursor:pointer; flex-shrink:0; }
.mdsmgr-dialog__body { overflow-y:auto; overscroll-behavior:contain; padding:18px 24px; min-height:0; }
.mdsmgr-dialog__intro,.mdsmgr-dialog__status { color:#62676e; font-size:12px; margin:0 0 14px; }
.mdsmgr-dialog__tools { display:flex; gap:12px; margin-bottom:12px; }
.mdsmgr-dialog__tools label { flex:1; min-width:0; font-size:12px; font-weight:600; }
.mdsmgr-dialog select { width:100%; height:40px; margin-top:4px; padding:6px; border:1px solid #d9dfe7; border-radius:7px; background:white; color:#202124; font-size:13px; }
.mdsmgr-review { border:1px solid #e0e4e9; border-radius:10px; padding:16px; margin-bottom:12px; background:#fff; overflow-wrap:anywhere; }
.mdsmgr-review header { display:flex; flex-direction:column; gap:2px; }
.mdsmgr-review header strong { font-size:14px; color:#202124; }
.mdsmgr-review header span { font-size:11px; color:#72777e; }
.mdsmgr-review__stars { color:#b57900; font-size:19px; margin:7px 0; letter-spacing:1px; }
.mdsmgr-review__comment { white-space:pre-wrap; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; margin:0; font-size:14px; line-height:1.55; }
.mdsmgr-review__comment--expanded { display:block; overflow:visible; }
.mdsmgr-review__more { border:0; background:none; color:#1462b9; padding:8px 0; font-size:13px; cursor:pointer; text-decoration:underline; }
.mdsmgr-review__empty { color:#72777e; font-style:italic; }
.mdsmgr-review__reply { margin-top:12px; padding:10px 12px; background:#f6f7f9; border-radius:6px; font-size:12px; }
.mdsmgr-review__reply summary { cursor:pointer; font-weight:600; }
.mdsmgr-review__reply p { white-space:pre-wrap; margin:8px 0 0; }
.mdsmgr-dialog__load { width:100%; padding:11px; border:1px solid #ced9e8; border-radius:8px; background:#f5f8fc; color:#155da8; cursor:pointer; }
.mdsmgr-dialog__footer { padding:14px 24px; text-align:center; border-top:1px solid #e7ebef; flex-shrink:0; }
.mdsmgr-dialog__footer a { color:#155da8; text-decoration:underline; font-weight:600; }
.mdsmgr-dialog :focus-visible { outline:3px solid #1a73e8; outline-offset:2px; }
@media(max-width:600px) { .mdsmgr-dialog { max-height:90vh; max-height:90dvh; border-radius:12px; } .mdsmgr-dialog__body { padding:14px; } .mdsmgr-dialog__header,.mdsmgr-dialog__footer { padding:14px 16px; } }
