/*
 * Product reviews - shared parts (inc/product_reviews.php): the "Schrijf een review" button and the AJAX
 * review modal. Loaded on the product page and on the Mijn account review views (fg_reviews_print_css()).
 * Tokens --color-* come from style.css.
 */

/* Shared button: site yellow / teal (overrides the global body button rule) */
button.fg-rv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; background: var(--color-7); color: var(--color-1); border: 0; border-radius: 3px; font-family: "Lato", Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; text-transform: none; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
button.fg-rv-btn:hover { background: var(--color-7_1); color: var(--color-1); }
button.fg-rv-btn:disabled { opacity: .6; cursor: default; }

/* Modal */
html.fg-rpop-open, html.fg-rpop-open body { overflow: hidden; }
.fg-rpop-overlay { position: fixed; inset: 0; z-index: 999992; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--color-16); font-family: "Lato", Arial, Helvetica, sans-serif; }
.fg-rpop-overlay[hidden] { display: none; }
.fg-rpop { position: relative; width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--color-2); }
/* Thin light scrollbar (koop style). Chrome ignores ::-webkit-scrollbar once scrollbar-* is set, so those are Firefox-only. */
@supports not selector(::-webkit-scrollbar) { .fg-rpop { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.2) transparent; } }
.fg-rpop::-webkit-scrollbar { width: 6px; }
.fg-rpop::-webkit-scrollbar-track { background: transparent; }
.fg-rpop::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 10px; }
.fg-rpop::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.3); }
.fg-rpop::-webkit-scrollbar-button { display: none; height: 0; }
.fg-rpop--loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 200px; font-size: 15px; color: var(--color-6); }
.fg-rpop__header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--color-1); color: #fff; }
.fg-rpop__header h2 { margin: 0; font-size: 19px; font-weight: bold; color: #fff; }
.fg-rpop button.fg-rpop__close, .fg-rpop-overlay button.fg-rpop__close { width: 34px; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 16px; line-height: 1; text-transform: none; cursor: pointer; }
.fg-rpop button.fg-rpop__close:hover { background: rgba(255,255,255,.3); }
.fg-rpop--loading button.fg-rpop__close { position: absolute; top: 10px; right: 10px; background: var(--color-12); color: var(--color-2); }
.fg-rpop__body { padding: 20px 24px 26px; }
@media(max-width:480px) { .fg-rpop__body { padding: 16px; } .fg-rpop-overlay { padding: 0; align-items: flex-end; } .fg-rpop { max-height: 94vh; border-radius: 6px 6px 0 0; } }
.fg-rpop__product { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 18px; background: var(--color-14); border: 1px solid var(--color-33); border-radius: 3px; }
.fg-rpop__product img { width: 46px; height: 46px; object-fit: contain; background: #fff; border: 1px solid var(--color-10); border-radius: 3px; }
.fg-rpop__product strong { display: block; font-size: 15px; color: var(--color-2); }
.fg-rpop__product span { font-size: 13px; color: var(--color-6); }

.fg-rpop__banner { padding: 10px 12px; margin-bottom: 16px; border-radius: 3px; border-left: 4px solid; font-size: 14px; line-height: 1.45; }
.fg-rpop__banner.is-guest { background: var(--color-20); border-color: var(--color-18); }
.fg-rpop__banner.is-loggedin { background: var(--color-14); border-color: var(--color-1); }
.fg-rpop__banner.is-verified { background: #e4f5ec; border-color: var(--color-31); }
.fg-rpop__banner a { color: var(--color-37); font-weight: bold; }

.fg-rpop__section { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--color-12); }
.fg-rpop__slabel { margin-bottom: 8px; font-size: 12px; font-weight: bold; letter-spacing: .6px; text-transform: uppercase; color: var(--color-1); }
.fg-rpop__field { margin-bottom: 12px; }
.fg-rpop__field label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: bold; color: var(--color-23); }
.fg-rpop__req { color: var(--color-30); }
.fg-rpop__opt { color: var(--color-22); font-weight: normal; }
.fg-rpop .fg-rpop__field input, .fg-rpop .fg-rpop__field textarea { width: 100%; box-sizing: border-box; padding: 9px 12px; background: #fff; border: 1px solid var(--color-3); border-radius: 3px; font-family: inherit; font-size: 15px; color: var(--color-2); outline: none; resize: vertical; }
.fg-rpop .fg-rpop__field input:focus, .fg-rpop .fg-rpop__field textarea:focus { border-color: var(--color-1); box-shadow: 0 0 0 2px var(--color-14); }
.fg-rpop .fg-rpop__field input:disabled { background: var(--color-13); opacity: .7; cursor: not-allowed; }
.fg-rpop .fg-rpop__field input.is-prefilled { background: #e4f5ec; border-color: rgba(25,135,84,.35); color: var(--color-31); font-weight: bold; }
.fg-rpop__hint { margin-top: 3px; font-size: 12px; color: var(--color-6); }
.fg-rpop__err { display: none; margin-top: 3px; font-size: 13px; color: var(--color-30); }
.fg-rpop__field.has-error input, .fg-rpop__field.has-error textarea { border-color: var(--color-30); }
.fg-rpop__field.has-error .fg-rpop__err { display: block; }
.fg-rpop__char { margin-top: 3px; text-align: right; font-size: 12px; color: var(--color-6); }

.fg-rpop__anon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-top: 4px; background: #fff; border: 1px solid var(--color-3); border-radius: 3px; cursor: pointer; }
.fg-rpop__anon.is-active { background: var(--color-14); border-color: var(--color-1); }
.fg-rpop__anon-text strong { display: block; font-size: 14px; color: var(--color-2); }
.fg-rpop__anon-text span { font-size: 13px; color: var(--color-6); }
.fg-rpop__toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.fg-rpop__toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.fg-rpop__slider { position: absolute; inset: 0; background: var(--color-3); border-radius: 22px; transition: background .2s; }
.fg-rpop__slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .2s; }
.fg-rpop__toggle input:checked + .fg-rpop__slider { background: var(--color-1); }
.fg-rpop__toggle input:checked + .fg-rpop__slider::before { transform: translateX(18px); }
.fg-rpop__toggle input:focus-visible + .fg-rpop__slider { outline: 2px solid var(--color-7); }

/* Star input: radios in reverse order, row-reverse makes hover fill to the left */
.fg-rpop__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.fg-rpop__stars input { position: absolute; opacity: 0; width: 0; height: 0; }
.fg-rpop .fg-rpop__stars label { margin: 0; font-size: 34px; line-height: 1; color: var(--color-24); cursor: pointer; transition: color .1s, transform .1s; }
.fg-rpop__stars label:hover, .fg-rpop__stars label:hover ~ label, .fg-rpop__stars input:checked ~ label { color: var(--color-7); }
.fg-rpop__stars label:hover { transform: scale(1.1); }
.fg-rpop__stars input:focus-visible + label { outline: 2px solid var(--color-1); outline-offset: 2px; }
.fg-rpop__star-hint { margin-top: 2px; font-size: 13px; color: var(--color-6); }
.fg-rpop__field.has-error .fg-rpop__stars label { color: #f1b0b7; }

.fg-rpop__pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:480px) { .fg-rpop__pc-grid { grid-template-columns: 1fr; } }
.fg-rpop__pc-col { padding: 10px 12px; border: 1px solid var(--color-12); border-radius: 3px; background: var(--color-32); }
.fg-rpop__pc-col h4 { margin: 0 0 8px; font-size: 14px; font-weight: bold; }
.fg-rpop__pc-col.is-pros h4 { color: var(--color-31); }
.fg-rpop__pc-col.is-cons h4 { color: var(--color-30); }
.fg-rpop__pc-item { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.fg-rpop__pc-icon { width: 14px; flex-shrink: 0; text-align: center; font-weight: 900; }
.fg-rpop__pc-icon.is-pro { color: var(--color-31); }
.fg-rpop__pc-icon.is-con { color: var(--color-30); }
.fg-rpop .fg-rpop__pc-item input { flex: 1; min-width: 0; padding: 6px 8px; background: #fff; border: 1px solid var(--color-3); border-radius: 3px; font-family: inherit; font-size: 14px; }
.fg-rpop .fg-rpop__pc-item input:focus { border-color: var(--color-1); outline: none; }
.fg-rpop button.fg-rpop__rm { width: 26px; height: 26px; padding: 0; flex-shrink: 0; background: transparent; color: var(--color-6); border: 0; font-size: 18px; line-height: 1; text-transform: none; cursor: pointer; }
.fg-rpop button.fg-rpop__rm:hover { color: var(--color-30); }
.fg-rpop button.fg-rpop__add { padding: 2px 0; background: transparent; color: var(--color-37); border: 0; font-size: 14px; font-weight: bold; text-transform: none; line-height: 22px; cursor: pointer; }
.fg-rpop button.fg-rpop__add:hover { text-decoration: underline; }

.fg-rpop__hp { position: absolute !important; left: -9999px !important; width: 0 !important; height: 0 !important; overflow: hidden !important; }
.fg-rpop__turnstile { margin: 16px 0 4px; min-height: 65px; }
.fg-rpop__form-error { margin: 8px 0; font-size: 14px; font-weight: bold; color: var(--color-30); }
.fg-rpop__form-error:empty { display: none; }
.fg-rpop button.fg-rpop__submit { width: 100%; min-height: 46px; margin-top: 8px; font-size: 17px; }
.fg-rpop__privacy { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--color-6); }
.fg-rpop__privacy a { color: var(--color-37); }
.fg-rpop__success { padding: 40px 24px 48px; text-align: center; }
.fg-rpop__sicon { font-size: 44px; margin-bottom: 8px; }
.fg-rpop__success h3 { margin: 0 0 8px; font-size: 21px; color: var(--color-1); }
.fg-rpop__success p { margin: 0; font-size: 15px; color: var(--color-23); }
