/* Reviews: photos, order and filters, the photo viewer and the review form's photo picker (inc/reviews.php,
   assets/reviews.js). Shared first; the Atölye "Kanvas" layout below it. */

/* ---------- Shared ---------- */
.sr-rv-tools{display:grid;gap:16px;min-width:0;margin:0 0 16px}
.sr-rv-strip{display:grid;gap:10px;min-width:0}
.sr-rv-strip__title{margin:0;color:var(--sr-ink);font-size:14px;font-weight:600;line-height:20px}
.sr-rv-strip__title span{margin-left:4px;color:var(--sr-muted);font-weight:400}
.sr-rv-strip__list{display:flex;gap:8px;min-width:0;padding:2px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
.sr-rv-strip__list::-webkit-scrollbar{display:none}
:is(.sr-rv-strip__item,.sr-rv-photos__item){flex:none;display:block;overflow:hidden;border-radius:10px;background:var(--sr-surface);cursor:zoom-in}
.sr-rv-strip__item{width:88px;height:88px}
:is(.sr-rv-strip__item,.sr-rv-photos__item) img{display:block;width:100%!important;height:100%!important;margin:0!important;object-fit:cover;border-radius:0!important;transition:transform .35s ease}
:is(.sr-rv-strip__item,.sr-rv-photos__item):hover img{transform:scale(1.05)}
:is(.sr-rv-strip__item,.sr-rv-photos__item):focus-visible{outline:2px solid var(--sr-ink);outline-offset:2px}
.sr-rv-photos{order:2;display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.sr-rv-photos__item{width:64px;height:64px}

.sr-rv-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;min-width:0}
.sr-rv-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.sr-rv-chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 14px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--sr-line);color:var(--sr-ink);font-size:13px;font-weight:500;line-height:1;text-decoration:none!important;white-space:nowrap;transition:background-color .15s,box-shadow .15s,color .15s}
.sr-rv-chip span[aria-hidden]{margin-left:1px}
.sr-rv-chip__n{color:var(--sr-muted);font-weight:400;font-variant-numeric:tabular-nums}
a.sr-rv-chip:hover{box-shadow:inset 0 0 0 1px var(--sr-ink)}
.sr-rv-chip.is-on{background:var(--sr-ink);color:var(--sr-canvas);box-shadow:none}
.sr-rv-chip.is-on .sr-rv-chip__n{color:inherit;opacity:.72}
.sr-rv-chip.is-empty{opacity:.45;cursor:default}
.sr-rv-clear{padding:0 4px;color:var(--sr-ink);font-size:13px;text-decoration:underline;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,currentColor 40%,transparent);white-space:nowrap}
.sr-rv-sort{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}
.sr-rv-sort>label{margin:0!important;color:var(--sr-muted);font-size:13px;font-weight:400;white-space:nowrap}
.sr-rv-sort__field{position:relative;display:inline-flex}
.sr-rv-sort__field::after{content:"";position:absolute;right:12px;top:50%;width:14px;height:14px;margin-top:-7px;background:currentColor;-webkit-mask:var(--ak-ico-chevron,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")) center/14px no-repeat;mask:var(--ak-ico-chevron,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")) center/14px no-repeat;pointer-events:none}
.sr-rv-sort select{min-height:36px;height:36px;margin:0;padding:0 34px 0 14px;border:0;border-radius:999px;background:var(--sr-canvas);box-shadow:inset 0 0 0 1px var(--sr-line);color:var(--sr-ink);font:600 13px/1 var(--sr-body-font,inherit);-webkit-appearance:none;appearance:none;cursor:pointer}
.sr-rv-sort select:hover{box-shadow:inset 0 0 0 1px var(--sr-ink)}
.sr-rv-sort select:focus-visible{outline:2px solid var(--sr-ink);outline-offset:2px}
.sr-rv-sort__go{min-height:36px;padding:0 14px!important;border:0;border-radius:999px!important;background:var(--sr-ink)!important;color:var(--sr-canvas)!important;font-size:13px;font-weight:600;cursor:pointer}
.has-rv-js .sr-rv-sort__go{display:none}
.sr-rv-how{position:relative}
.sr-rv-how>summary{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--sr-line);color:var(--sr-muted);font:italic 600 13px/1 Georgia,serif;list-style:none;cursor:pointer}
.sr-rv-how>summary::-webkit-details-marker{display:none}
.sr-rv-how>summary:hover,.sr-rv-how[open]>summary{color:var(--sr-ink);box-shadow:inset 0 0 0 1px var(--sr-ink)}
.sr-rv-how>p{position:absolute;right:0;top:calc(100% + 8px);z-index:6;width:min(320px,calc(100vw - 32px));margin:0;padding:12px 14px;border-radius:12px;background:var(--sr-canvas);box-shadow:0 12px 32px rgb(0 0 0/.12),inset 0 0 0 1px var(--sr-line);color:var(--sr-ink);font-size:13px;line-height:1.5}
.sr-rv-none{margin:0;color:var(--sr-muted);font-size:14px}
.sr-rv-none a{color:var(--sr-ink);text-decoration:underline;text-underline-offset:3px}
.sr-rv-more{display:inline-flex;align-items:center;justify-self:start;min-height:40px;margin-top:16px;padding:0 18px;border:0;border-radius:999px;background:transparent;box-shadow:inset 0 0 0 1px var(--sr-line);color:var(--sr-ink);font-size:13px;font-weight:600;cursor:pointer}
.sr-rv-more:hover{box-shadow:inset 0 0 0 1px var(--sr-ink)}
.sr-pdp-reviews[aria-busy="true"] :is(ol.commentlist,.sr-rv-bar){opacity:.55;transition:opacity .2s}

/* The photo viewer: WooCommerce's full-screen gallery with the review as its caption, or the small dialog */
.sr-rv-pswp .pswp__caption__center{max-width:680px;color:var(--sr-muted,inherit);text-align:left;font-size:14px;line-height:1.5}
.sr-rv-pswp .sr-rv-cap__head{color:var(--sr-ink,inherit)}
.sr-rv-cap__head{display:block;margin-bottom:4px;font-weight:600;letter-spacing:.02em}
.sr-rv-cap__text{display:block;opacity:.85}
.sr-rv-viewer{width:min(960px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:0;border-radius:16px;background:#111;color:#fff;overflow:hidden}
.sr-rv-viewer::backdrop{background:rgb(0 0 0/.82)}
.sr-rv-viewer__figure{display:grid;margin:0}
.sr-rv-viewer__figure img{display:block;width:100%;max-height:calc(100vh - 160px);object-fit:contain;background:#111}
.sr-rv-viewer__caption{padding:14px 18px;font-size:14px;line-height:1.5}
.sr-rv-viewer__close,.sr-rv-viewer__nav{position:absolute;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:rgb(0 0 0/.55);color:#fff;cursor:pointer}
.sr-rv-viewer__close{top:10px;right:10px}
.sr-rv-viewer__close::before{content:"×";font-size:26px;line-height:1}
.sr-rv-viewer__nav{top:calc(50% - 60px)}
.sr-rv-viewer__nav--prev{left:10px}
.sr-rv-viewer__nav--next{right:10px}
.sr-rv-viewer__nav--prev::before{content:"‹";font-size:30px;line-height:1}
.sr-rv-viewer__nav--next::before{content:"›";font-size:30px;line-height:1}

/* The review form's photo picker (the field is StoreRuler's; without JavaScript it is a plain file input) */
#review_form #respond .sr-review-photos{display:grid;gap:8px;margin:0}
#review_form #respond .sr-review-photos__label span{color:var(--sr-muted);font-weight:400}
#review_form #respond .sr-review-photos.is-enhanced input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0;overflow:hidden;clip-path:inset(50%)}
#review_form #respond .sr-review-photos .sr-rv-drop{display:flex;flex-wrap:wrap;gap:8px;padding:10px;border:1px dashed color-mix(in srgb,var(--sr-ink) 22%,transparent);border-radius:14px;background:var(--sr-canvas);transition:border-color .15s,background-color .15s}
#review_form #respond .sr-review-photos .sr-rv-drop.is-over{border-color:var(--sr-ink);background:var(--sr-surface)}
#review_form #respond .sr-review-photos .sr-rv-drop__list{display:contents;margin:0;padding:0;list-style:none}
#review_form #respond .sr-review-photos .sr-rv-drop__item{position:relative;width:88px;height:88px;margin:0;overflow:hidden;border-radius:10px;background:var(--sr-surface)}
#review_form #respond .sr-review-photos .sr-rv-drop__item img{display:block;width:100%;height:100%;object-fit:cover}
#review_form #respond .sr-review-photos .sr-rv-drop__remove{position:absolute;top:6px;right:6px;width:28px;height:28px;min-height:0;padding:0;border:0;border-radius:50%;background:rgb(0 0 0/.62);cursor:pointer}
#review_form #respond .sr-review-photos .sr-rv-drop__remove::before{content:"";position:absolute;inset:6px;background:#fff;-webkit-mask:var(--ak-ico-close,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E")) center/16px no-repeat;mask:var(--ak-ico-close,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E")) center/16px no-repeat}
#review_form #respond .sr-review-photos .sr-rv-drop__remove::after{content:"";position:absolute;inset:-8px} /* a 44px hit area */
#review_form #respond .sr-review-photos .sr-rv-drop__remove:hover{background:#000}
#review_form #respond .sr-review-photos .sr-rv-drop__add{display:grid;place-items:center;align-content:center;gap:6px;width:88px;height:88px;margin:0;border-radius:10px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sr-ink) 14%,transparent);color:var(--sr-ink);font:600 12px/1.25 var(--sr-body-font,inherit);text-align:center;cursor:pointer;transition:box-shadow .15s}
#review_form #respond .sr-review-photos .sr-rv-drop__add:hover{box-shadow:inset 0 0 0 1px var(--sr-ink)}
#review_form #respond .sr-review-photos .sr-rv-drop__add[hidden]{display:none}
#review_form #respond .sr-review-photos .sr-rv-drop__plus{width:20px;height:20px;background:currentColor;-webkit-mask:var(--ak-ico-plus,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")) center/20px no-repeat;mask:var(--ak-ico-plus,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")) center/20px no-repeat}
#review_form #respond .sr-review-photos input[type="file"]:focus-visible~.sr-rv-drop .sr-rv-drop__add{outline:2px solid var(--sr-ink);outline-offset:2px}
#review_form #respond :is(.sr-review-photos__rules,.sr-review-photos__notice){margin:0;color:var(--sr-muted);font-size:13px;line-height:1.5}
#review_form #respond .sr-review-photos__notice{padding:10px 12px;border-radius:10px;background:var(--sr-surface);color:var(--sr-ink)}
#review_form #respond .sr-rv-drop__error{margin:0;color:var(--sr-sale,#b42318);font-size:13px;font-weight:500}

/* ---------- Atölye ("Kanvas"): the strip and the bar span the row above the score card and the reviews ---------- */
.sr-kit-atolye.single-product .sr-pdp-reviews__list>.sr-rv-tools{grid-column:1/-1;grid-row:2;margin:0}
.sr-kit-atolye.single-product .sr-pdp-reviews:has(.sr-rv-tools) .sr-pdp-reviews__card{grid-row:3}
.sr-kit-atolye.single-product .sr-pdp-reviews:has(.sr-rv-tools) #reviews #comments ol.commentlist{grid-row:3}
.sr-kit-atolye.single-product .sr-pdp-reviews #reviews #comments ol.commentlist[hidden]{display:none}
.sr-kit-atolye.single-product .sr-rv-tools{gap:20px}
.sr-kit-atolye.single-product .sr-rv-strip{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:20px;padding:0 0 20px;border-bottom:1px solid var(--ak-hair)}
.sr-kit-atolye.single-product .sr-rv-strip__title{color:var(--sr-ink);font:600 12px/18px var(--sr-body-font);letter-spacing:.06em;text-transform:uppercase}
.sr-kit-atolye.single-product .sr-rv-strip__item{width:72px;height:72px;border-radius:var(--ak-r-tag,8px)}
.sr-kit-atolye.single-product .sr-rv-chip{min-height:var(--ak-ctl-sm,40px);padding:0 16px;box-shadow:var(--ak-ring);font:500 13px/1 var(--sr-body-font)}
.sr-kit-atolye.single-product a.sr-rv-chip:hover{box-shadow:var(--ak-ring-ink)}
.sr-kit-atolye.single-product .sr-rv-chip.is-on{box-shadow:none}
.sr-kit-atolye.single-product .sr-rv-sort select{min-height:var(--ak-ctl-sm,40px);height:var(--ak-ctl-sm,40px);box-shadow:var(--ak-ring)}
.sr-kit-atolye.single-product .sr-rv-sort select:hover{box-shadow:var(--ak-ring-ink)}
.sr-kit-atolye.single-product .sr-rv-how>summary{width:var(--ak-ctl-sm,40px);height:var(--ak-ctl-sm,40px);box-shadow:var(--ak-ring)}
.sr-kit-atolye.single-product .sr-rv-more{min-height:var(--ak-ctl-sm,40px);box-shadow:var(--ak-ring);margin:0;justify-self:center}
.sr-kit-atolye.single-product #reviews #comments ol.commentlist li.review .sr-rv-photos{order:2;margin:14px 0 0}
.sr-kit-atolye.single-product #reviews #comments ol.commentlist li.review .sr-rv-photos__item{width:56px;height:56px;border-radius:var(--ak-r-tag,8px)}
/* the longer lists: "Show more reviews" only once all loaded reviews are open (phones scroll them sideways) */
@media (min-width:1024px){.sr-kit-atolye.single-product .sr-pdp-reviews:not(.is-all) .sr-rv-more{display:none}}
@media (max-width:1023px){
  .sr-kit-atolye.single-product .sr-pdp-reviews:has(.sr-rv-tools) .sr-pdp-reviews__card{grid-row:2}
  .sr-kit-atolye.single-product .sr-pdp-reviews__list>.sr-rv-tools{grid-row:3}
  .sr-kit-atolye.single-product .sr-pdp-reviews:has(.sr-rv-tools) #reviews #comments ol.commentlist{grid-row:4}
  .sr-kit-atolye.single-product .sr-pdp-reviews #reviews #comments ol.commentlist{width:auto} /* WooCommerce's width:100% kept the sideways list 32px short of the right edge */
  .sr-kit-atolye.single-product .sr-rv-tools{gap:14px}
  .sr-kit-atolye.single-product .sr-rv-strip{grid-template-columns:minmax(0,1fr);gap:10px;padding:0 0 14px}
  .sr-kit-atolye.single-product .sr-rv-strip__list{margin-inline:calc(var(--ak-edge,16px) * -1);padding-inline:var(--ak-edge,16px)}
  .sr-kit-atolye.single-product .sr-rv-strip__item{width:76px;height:76px}
  .sr-kit-atolye.single-product .sr-rv-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .sr-kit-atolye.single-product .sr-rv-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(var(--ak-edge,16px) * -1);padding:1px var(--ak-edge,16px)}
  .sr-kit-atolye.single-product .sr-rv-chips::-webkit-scrollbar{display:none}
  .sr-kit-atolye.single-product .sr-rv-chip{flex:none;min-height:36px}
  .sr-kit-atolye.single-product .sr-rv-sort{justify-content:flex-start}
  .sr-kit-atolye.single-product .sr-rv-sort select{min-height:36px;height:36px}
  .sr-kit-atolye.single-product .sr-rv-how>summary{width:36px;height:36px}
  .sr-kit-atolye.single-product .sr-rv-how>p{right:auto;left:auto}
  .sr-kit-atolye.single-product .sr-rv-more{grid-column:1/-1}
}

/* The review form: large tappable stars (32px in 48px cells), the text and the photo picker in one readable column */
body.sr-kit-atolye #review_form .comment-form{max-width:760px}
body.sr-kit-atolye #review_form p.stars{margin-left:-8px}
body.sr-kit-atolye #review_form p.stars a{width:48px;height:48px}
body.sr-kit-atolye #review_form p.stars a::before{content:""!important;width:32px;height:32px;-webkit-mask-size:32px;mask-size:32px} /* WooCommerce's icon-font glyphs (selected states) never show through the drawn star */
@media (min-width:1024px){body.sr-kit-atolye #review_form p.stars a{width:48px;height:48px}}
body.sr-kit-atolye #review_form #respond .sr-review-photos .sr-rv-drop{border-color:var(--ak-field-line);border-radius:var(--ak-r-field,12px)}
body.sr-kit-atolye #review_form #respond .sr-review-photos :is(.sr-rv-drop__item,.sr-rv-drop__add){border-radius:var(--ak-r-tag,8px)}
body.sr-kit-atolye #review_form #respond .sr-review-photos .sr-rv-drop__add{box-shadow:var(--ak-ring)}
body.sr-kit-atolye #review_form #respond .sr-review-photos .sr-rv-drop__add:hover{box-shadow:var(--ak-ring-ink)}
body.sr-kit-atolye #review_form #respond .sr-review-photos__notice{border-radius:var(--ak-r-field,12px);background:var(--sr-field2,var(--sr-surface))}
@media (min-width:700px){body.sr-kit-atolye #review_form .comment-form>.sr-review-photos{grid-column:1/-1}}
