[data-pmreviews-module] .pm-review-meta { display: flex; align-items: center; flex-wrap: wrap; row-gap: 6px; }
[data-pmreviews-module] .pm-review-source { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; vertical-align: middle; }
[data-pmreviews-module] .pm-review-source img { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; display: block; }
[data-pmreviews-module] a.pm-review-source:hover { text-decoration: none; opacity: .8; }
[data-pmreviews-module] .width-100 { width: 100%; }


/* Full review / Fancybox */
[data-pmreviews-module] .pm-review-full-link {
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
[data-pmreviews-module] .pm-review-full-link:hover { text-decoration: none; }

/* Fancybox restores focus to the opener after close.
   Hide the mouse/programmatic focus ring, but keep a visible keyboard focus. */
[data-pmreviews-module] .pm-review-full-link:focus {
    outline: none !important;
    box-shadow: none !important;
}
[data-pmreviews-module] .pm-review-full-link:focus-visible {
    outline-offset: 3px;
    box-shadow: none !important;
}
[data-pmreviews-module] .pm-review-full-link__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: transform .22s ease;
}
[data-pmreviews-module] .pm-review-full-link__arrow svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
[data-pmreviews-module] .pm-review-full-link:hover .pm-review-full-link__arrow,
[data-pmreviews-module] .pm-review-full-link:focus-visible .pm-review-full-link__arrow {
    transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
    [data-pmreviews-module] .pm-review-full-link__arrow { transition: none; }
    [data-pmreviews-module] .pm-review-full-link:hover .pm-review-full-link__arrow,
    [data-pmreviews-module] .pm-review-full-link:focus-visible .pm-review-full-link__arrow { transform: none; }
}
.pm-review-modal { width: min(680px, calc(100vw - 40px)); max-width: 680px; padding: 30px 32px 32px; border-radius: 12px; background: #fff; color: #222; }
.pm-review-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,.09); }
.pm-review-modal__author { font-size: 22px; line-height: 1.25; font-weight: 600; }
.pm-review-modal__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 7px; font-size: 13px; line-height: 1.4; color: #8c8c8c; }
.pm-review-modal__dot { opacity: .7; }
.pm-review-modal__rating { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; font-size: 18px; line-height: 1; }
.pm-review-modal__rating > span { color: #f4b400; font-size: 20px; }
.pm-review-modal__source { margin-top: 18px; }
.pm-review-modal__source > a,
.pm-review-modal__source > span { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-size: 14px; }
.pm-review-modal__source img { width: 22px; height: 22px; display: block; object-fit: contain; border-radius: 4px; }
.pm-review-modal__text { margin-top: 22px; font-size: 16px; line-height: 1.65; }

/* Fancybox v3/v4/v5 inline content polish */
.fancybox__content .pm-review-modal,
.fancybox-content.pm-review-modal { margin: 0; }

/* Fallback only if Fancybox JS is unavailable */
.pm-review-fallback-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.48); }
.pm-review-fallback-box { position: relative; max-height: calc(100vh - 40px); overflow: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.pm-review-fallback-close { position: absolute; z-index: 2; top: 10px; right: 12px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.06); font-size: 25px; line-height: 32px; cursor: pointer; }
@media (max-width: 600px) {
    .pm-review-modal { width: calc(100vw - 24px); padding: 24px 20px; }
    .pm-review-modal__head { gap: 14px; }
    .pm-review-modal__author { font-size: 20px; }
    .pm-review-modal__text { font-size: 15px; }
}
