/* Ring Size Guide for WooCommerce — GPLv2 or later */
.rsgw-root{--rsgw-primary:#19477f;font-family:inherit;color:#172b43}
.rsgw-root *{box-sizing:border-box}
.rsgw-open{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--rsgw-primary);border-radius:8px;background:#fff;color:var(--rsgw-primary);padding:12px 18px;font:inherit;font-weight:700;line-height:1.25;cursor:pointer;transition:background .18s,color .18s}
.rsgw-open:hover,.rsgw-open:focus-visible{background:var(--rsgw-primary);color:#fff}
.rsgw-open-icon{font-size:19px;line-height:1}
.rsgw-modal[hidden]{display:none!important}
.rsgw-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:18px}
.rsgw-backdrop{position:absolute;inset:0;background:rgba(14,26,43,.78);backdrop-filter:blur(3px)}
.rsgw-panel{position:relative;z-index:1;width:min(780px,100%);max-height:min(90vh,900px);overflow:auto;background:#fff;border-radius:20px;padding:30px 34px 26px;box-shadow:0 25px 80px rgba(0,0,0,.25);outline:none}
.rsgw-close{position:absolute;right:16px;top:15px;width:38px;height:38px;border:0;border-radius:50%;background:#f0f3f7;color:#183653;font-size:28px;line-height:1;cursor:pointer}
.rsgw-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding-right:34px;margin-bottom:25px}
.rsgw-brand{font-size:10px;letter-spacing:.2em;font-weight:800;text-transform:uppercase;color:var(--rsgw-primary);margin-bottom:6px}
.rsgw-header h2{font-size:clamp(24px,4vw,31px);line-height:1.15;margin:0 0 7px;color:#14263b}
.rsgw-header p,.rsgw-step-content>p{margin:0;color:#607187;font-size:13px;line-height:1.55}
.rsgw-steps{display:flex;gap:10px;flex-shrink:0;padding-top:4px}
.rsgw-steps>span{display:flex;align-items:center;justify-content:center;flex-direction:column;width:32px;height:32px;border-radius:50%;background:#edf1f5;color:#8290a0;font-size:13px;font-weight:800}
.rsgw-steps>span.is-active,.rsgw-steps>span.is-done{background:var(--rsgw-primary);color:#fff}
.rsgw-steps small{position:absolute;margin-top:48px;font-size:8px;font-weight:700;white-space:nowrap;color:#68788c}
.rsgw-steps>span.is-active small,.rsgw-steps>span.is-done small{color:var(--rsgw-primary)}
.rsgw-step-content[hidden]{display:none!important}
.rsgw-step-content h3{font-size:20px;margin:0 0 6px;color:#172b43}
.rsgw-calibration-choice{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 15px}
.rsgw-calibration-choice label{display:flex;align-items:center;gap:7px;border:1px solid #dce4ed;border-radius:8px;padding:10px 13px;font-size:13px;font-weight:600;cursor:pointer}
.rsgw-calibration-choice input{accent-color:var(--rsgw-primary)}
.rsgw-calibration-box,.rsgw-measure-card{border:1px solid #dce4ed;background:#f8fafc;border-radius:14px;padding:17px}
.rsgw-calibration-label,.rsgw-measure-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:12px;margin-bottom:15px;border-bottom:1px solid #dce4ed}
.rsgw-calibration-label span,.rsgw-measure-heading span{font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:800;color:#6b7d91}
.rsgw-calibration-label strong,.rsgw-measure-heading strong{font-size:17px;color:var(--rsgw-primary)}
.rsgw-card-stage{width:100%;overflow:hidden;display:flex;justify-content:center;padding:8px 0 16px}
.rsgw-card-outline{width:270px;max-width:100%;height:170px;border:2px dashed var(--rsgw-primary);border-radius:10px;display:flex;align-items:center;justify-content:center;text-align:center;padding:10px;color:var(--rsgw-primary);font-size:11px;font-weight:800;background:repeating-linear-gradient(0deg,#fff,#fff 19px,#e8edf3 20px),repeating-linear-gradient(90deg,transparent,transparent 19px,#e8edf3 20px);transition:width .08s linear}
.rsgw-range-row{margin-top:14px}
.rsgw-range-row label{display:block;font-size:12px;font-weight:700;margin-bottom:7px}
.rsgw-root input[type=range]{width:100%;accent-color:var(--rsgw-primary);cursor:pointer}
.rsgw-help{font-size:11px;line-height:1.5;color:#697b90;margin:10px 0 0}
.rsgw-tip{background:#edf4fc;border-radius:8px;padding:11px 13px;margin:16px 0;color:var(--rsgw-primary);font-size:12px;font-weight:600}
.rsgw-measure-heading{margin-bottom:12px}
.rsgw-grid{min-height:215px;border:1px solid #d6dfe8;border-radius:9px;display:flex;align-items:center;justify-content:center;overflow:hidden;background-color:#f8fafc;background-image:linear-gradient(#e1e7ee 1px,transparent 1px),linear-gradient(90deg,#e1e7ee 1px,transparent 1px);background-size:18px 18px}
.rsgw-ring-circle{width:44.4px;height:44.4px;flex:0 0 auto;border:2px solid var(--rsgw-primary);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--rsgw-primary);position:relative;background:rgba(255,255,255,.45);transition:width .1s linear,height .1s linear}
.rsgw-ring-circle:before,.rsgw-ring-circle:after{content:"";position:absolute;width:5px;height:5px;border-radius:50%;background:var(--rsgw-primary);top:50%;transform:translateY(-50%)}
.rsgw-ring-circle:before{left:-3px}.rsgw-ring-circle:after{right:-3px}
.rsgw-ring-circle span{font-size:6px;letter-spacing:.04em;font-weight:800;white-space:nowrap}
.rsgw-center-help{text-align:center;font-size:12px;color:#52677f;margin:12px 0 18px}
.rsgw-size-control{display:flex;align-items:center;gap:12px}
.rsgw-size-control>button{width:38px;height:38px;flex:0 0 38px;border:0;border-radius:8px;background:var(--rsgw-primary);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.rsgw-size-slider-wrap{flex:1;min-width:0}
.rsgw-range-labels{display:flex;justify-content:space-between;color:#718198;font-size:9px;margin-top:2px}
.rsgw-result-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.rsgw-result-cards>div{border:1px solid #dce4ed;border-radius:10px;padding:13px 10px;text-align:center;background:#fff;min-width:0}
.rsgw-result-cards span{display:block;font-size:9px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#6b7d91;margin-bottom:6px}
.rsgw-result-cards strong{display:block;font-size:18px;color:var(--rsgw-primary);overflow-wrap:anywhere}
.rsgw-final-size{display:flex;align-items:baseline;gap:12px;background:#f1f6fc;border-radius:12px;padding:20px;margin:18px 0}
.rsgw-final-size span{font-size:42px;line-height:1;font-weight:800;color:var(--rsgw-primary)}
.rsgw-final-size small{color:#62758c;font-weight:700}
.rsgw-final-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.rsgw-footer{display:flex;gap:10px;margin-top:22px}
.rsgw-footer button{min-height:44px;border-radius:8px;padding:11px 16px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.rsgw-secondary{flex:0 0 32%;border:1px solid #dce4ed;background:#f5f7fa;color:#30445c}
.rsgw-primary{flex:1;border:1px solid var(--rsgw-primary);background:var(--rsgw-primary);color:#fff}
.rsgw-footer button:focus-visible,.rsgw-close:focus-visible,.rsgw-size-control button:focus-visible{outline:3px solid #f0b429;outline-offset:2px}
@media(max-width:600px){.rsgw-modal{padding:8px}.rsgw-panel{padding:23px 15px 17px;border-radius:14px;max-height:94vh}.rsgw-header{display:block;padding-right:34px;margin-bottom:27px}.rsgw-steps{margin-top:16px;justify-content:flex-start;gap:14px}.rsgw-steps small{margin-top:47px}.rsgw-calibration-box,.rsgw-measure-card{padding:12px}.rsgw-grid{min-height:185px}.rsgw-card-outline{height:150px}.rsgw-result-cards strong{font-size:16px}.rsgw-final-cards{grid-template-columns:1fr}.rsgw-final-size span{font-size:36px}.rsgw-footer button{padding:10px 9px}.rsgw-secondary{flex-basis:30%}}
@media(prefers-reduced-motion:reduce){.rsgw-root *{transition:none!important;scroll-behavior:auto!important}}

/* Version 1.0.1: visible ruler scale for calibration */
.rsgw-card-outline{position:relative;overflow:hidden}
.rsgw-card-outline.is-ruler{height:88px!important;border-radius:3px!important;background:#fff}
.rsgw-card-outline.is-ruler [data-rsgw-card-label]{position:absolute;top:9px;left:6px;right:6px;font-size:10px;line-height:1.3}
.rsgw-ruler-ticks{display:none;position:absolute;left:0;right:0;bottom:8px;height:29px;border-top:2px solid var(--rsgw-primary)}
.rsgw-card-outline.is-ruler .rsgw-ruler-ticks{display:block}
.rsgw-ruler-ticks span{position:absolute;top:0;height:8px;border-left:1px solid var(--rsgw-primary);width:0}
.rsgw-ruler-ticks span.is-centimetre{height:17px;border-left-width:1.5px}
.rsgw-ruler-ticks span b{position:absolute;top:17px;left:-8px;font-size:9px;line-height:1;color:var(--rsgw-primary);font-weight:700}
.rsgw-ruler-ticks span:first-child b{left:0}
.rsgw-ruler-ticks span:last-child b{left:auto;right:0}
