/* OutRight Store: CRM extensions, additions for the WordPress theme.
   Load after extensions.css (listing) and extension.css (product). The static design used <button>s driven by
   JavaScript; in the theme the same controls are links and forms answered by WooCommerce, plus WooCommerce's
   own pagination, price and review markup. */

/* ---- listing: filter options, need tiles, chips and "clear" as links ---- */
a.xs-opt,a.xn,a.chip,a.xs-clear,.xp-active a{text-decoration:none}
a.xs-opt{box-sizing:border-box}
a.chip{display:inline-flex;align-items:center}
a.xs-clear{font:700 .8125rem var(--font);color:var(--brand);padding:6px 0}
a.xs-clear:hover{text-decoration:underline;text-underline-offset:3px}
.xp-active a{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:1px solid var(--line);background:var(--surface);font:700 .8125rem var(--font);color:var(--ink)}
.xp-active a::after{content:"×";font-size:1rem;line-height:1;color:var(--ink-mute)}
.xp-active a:hover{border-color:var(--ink)}
.xp-active a:focus-visible,a.xs-clear:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.xp-side.is-busy{opacity:.6;pointer-events:none}
.xp-sortform{display:contents}
.xp-sortform noscript .btn{height:46px}

/* ---- listing: WooCommerce pagination in place of "Show more" ---- */
.xp-pages:empty{display:none}
.xp-pages .woocommerce-pagination{width:100%}
.xp-pages .page-numbers{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;border:0}
.xp-pages .page-numbers li{margin:0;padding:0;border:0;float:none}
.xp-pages .page-numbers li .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 12px;border:1px solid var(--line);background:var(--surface);font:700 .9375rem var(--font);color:var(--ink);text-decoration:none;transition:border-color .2s,background-color .2s,color .2s}
.xp-pages .page-numbers li a.page-numbers:hover{border-color:var(--ink)}
.xp-pages .page-numbers li .page-numbers.current{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.xp-pages .page-numbers li .page-numbers.dots{border-color:transparent;background:none}
.xp-pages .page-numbers li a.page-numbers:focus-visible{outline:3px solid var(--brand);outline-offset:2px}

/* ---- cards: WooCommerce price markup, buttons that are links ---- */
.xc-price b .amount,.xpop-p .amount,.pd-price b .amount{font:inherit;color:inherit}
.xc-price b del,.pd-price b del,.xpop-p del{font-size:.7em;font-weight:700;color:var(--ink-mute);margin-right:6px}
.xc-price b ins,.pd-price b ins,.xpop-p ins{text-decoration:none}
.xc-price .screen-reader-text,.pd-price .screen-reader-text,.xpop-p .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.xc-buy a.btn{text-decoration:none}
.xc-buy .btn.is-busy,.pd-mini .btn.is-busy,.pd-bar .btn.is-busy{opacity:.6;pointer-events:none}
.xc-media img{display:block;width:100%;height:auto;aspect-ratio:700/384;object-fit:cover}

/* ---- product: buy form, stock, guide download link ---- */
.pd-buy form.cart{margin:0;display:grid;gap:14px}
.pd-buy .stock{margin:0;font-size:.875rem;font-weight:700;color:var(--ink-soft)}
.pd-buy .stock.out-of-stock{color:#B3261E}
.pd-mini a.btn,.pd-bar a.btn{text-decoration:none}
.pd-links a.pd-gl-dl{display:grid;place-items:center;width:44px;margin-left:10px;padding:0;border-top:0;border-left:1px solid var(--line);color:var(--brand);transition:background-color .2s,color .2s}
.pd-links a.pd-gl-dl:hover{background:var(--brand);color:#fff}
.pd-links a.pd-gl-dl svg,.pd-links a.pd-gl-dl:hover svg{color:inherit;transform:none}
.pd-glance dd a{color:var(--brand);text-decoration:none}
.pd-glance dd a:hover{text-decoration:underline;text-underline-offset:3px}
.pd-sum-text{color:var(--ink-soft);line-height:1.65}
.pd-prose figure.pd-dimg img{max-width:100%;height:auto}

/* ---- product: WooCommerce reviews (list + form) in the design's review cards ---- */
.pd-wc-reviews{min-width:0}
.pd-wc-reviews.is-empty{margin-top:20px}
.pd-wc-reviews .woocommerce-Reviews-title,.pd-wc-reviews .woocommerce-noreviews{display:none}
.pd-wc-reviews ol.commentlist{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.pd-wc-reviews ol.commentlist li{margin:0;padding:0}
.pd-wc-reviews .comment_container{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;padding:20px;background:var(--surface);border:1px solid var(--line)}
.pd-wc-reviews .comment_container img.avatar{width:44px;height:44px;object-fit:cover;display:block}
.pd-wc-reviews .comment-text{min-width:0}
.pd-wc-reviews .star-rating{position:relative;display:inline-block;width:5.4em;height:1em;line-height:1;font-size:.9375rem;overflow:hidden;color:#E0A100;font-family:inherit}
.pd-wc-reviews .star-rating::before{content:"★★★★★";position:absolute;inset:0;color:var(--line);letter-spacing:.08em}
.pd-wc-reviews .star-rating span{position:absolute;inset:0 auto 0 0;overflow:hidden;padding-top:1.5em}
.pd-wc-reviews .star-rating span::before{content:"★★★★★";position:absolute;top:0;left:0;letter-spacing:.08em}
.pd-wc-reviews .meta{margin:6px 0 0;font-size:.8125rem;font-weight:600;color:var(--ink-mute)}
.pd-wc-reviews .meta strong{font-size:1rem;font-weight:800;color:var(--ink)}
.pd-wc-reviews .meta em.woocommerce-review__verified{font-style:normal;font-size:.6875rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#1E7A4F}
.pd-wc-reviews .description{margin-top:12px;color:var(--ink-soft);line-height:1.65}
.pd-wc-reviews .description p{margin:0 0 .6em}
.pd-wc-reviews .description p:last-child{margin-bottom:0}
.pd-wc-reviews #review_form_wrapper{margin-top:16px;padding:20px;background:var(--surface);border:1px solid var(--line);scroll-margin-top:160px}
.pd-wc-reviews .comment-reply-title{display:block;font-size:1.125rem;font-weight:800;letter-spacing:-.01em;margin-bottom:10px}
.pd-wc-reviews .comment-form{display:grid;gap:12px}
.pd-wc-reviews .comment-form p{margin:0}
.pd-wc-reviews .comment-form label{display:block;font-size:.875rem;font-weight:700;color:var(--ink);margin-bottom:6px}
.pd-wc-reviews .comment-form input[type="text"],.pd-wc-reviews .comment-form input[type="email"],.pd-wc-reviews .comment-form textarea,.pd-wc-reviews .comment-form select{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid var(--line);background:var(--surface);font:600 .9375rem var(--font);color:var(--ink)}
.pd-wc-reviews .comment-form textarea{min-height:120px;resize:vertical}
.pd-wc-reviews .comment-form input:focus,.pd-wc-reviews .comment-form textarea:focus,.pd-wc-reviews .comment-form select:focus{outline:none;border-color:var(--brand)}
.pd-wc-reviews .comment-form .comment-form-cookies-consent{display:flex;align-items:flex-start;gap:8px}
.pd-wc-reviews .comment-form .comment-form-cookies-consent label{margin:0;font-weight:600;color:var(--ink-soft)}
.pd-wc-reviews .comment-form .submit{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 22px;border:0;background:var(--brand);color:var(--on-brand);font:800 .9375rem var(--font);cursor:pointer;transition:background-color .2s}
.pd-wc-reviews .comment-form .submit:hover{background:var(--brand-hover)}
.pd-wc-reviews p.stars{margin:0}
.pd-wc-reviews p.stars a{position:relative;display:inline-block;width:1.4em;height:1.4em;overflow:hidden;text-indent:-999em;text-decoration:none;color:var(--line);font-size:1.25rem}
.pd-wc-reviews p.stars a::before{content:"★";position:absolute;inset:0;text-indent:0;text-align:center}
.pd-wc-reviews p.stars:hover a,.pd-wc-reviews p.stars.selected a{color:#E0A100}
.pd-wc-reviews p.stars a:hover ~ a,.pd-wc-reviews p.stars.selected a.active ~ a{color:var(--line)}
.pd-wc-reviews .woocommerce-pagination{margin-top:14px}
.pd-wc-reviews .woocommerce-verification-required{margin:0;color:var(--ink-soft)}
