/* Local contrast is deliberate: Elementor and theme colors must not leak into this component. */
.ctwpml-grams.ctwpml-grams{box-sizing:border-box;background:#fff!important;color:#17242d!important;-webkit-text-fill-color:#17242d!important;font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border-radius:24px}
.ctwpml-grams.ctwpml-grams *{box-sizing:border-box;min-width:0}
.ctwpml-grams.ctwpml-grams [hidden]{display:none!important}
.ctwpml-grams.ctwpml-grams :is(h1,h2,p,span,strong,small,label,summary,div,i){color:#17242d!important;-webkit-text-fill-color:#17242d!important}
.ctwpml-grams.ctwpml-grams h1{font:700 clamp(23px,3vw,34px)/1.2 system-ui;margin:20px 0 28px;letter-spacing:-.8px}
.ctwpml-grams.ctwpml-grams.cg-page>h1{white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;max-width:100%!important}
@media(min-width:681px){.ctwpml-grams.ctwpml-grams.cg-page>h1{max-width:calc((100% - 42px)/2)!important}}
.ctwpml-grams.ctwpml-grams h2{font:700 26px/1.2 system-ui;margin:7px 0 10px;letter-spacing:-.6px}
.ctwpml-grams.ctwpml-grams p{margin:0 0 16px}
.ctwpml-grams.ctwpml-grams a,.ctwpml-grams.ctwpml-grams a:is(:hover,:focus,:active){color:#0759bb!important;-webkit-text-fill-color:#0759bb!important;text-decoration:none!important}
.ctwpml-grams.ctwpml-grams button{appearance:none;font:600 14px/1.3 system-ui;border:1px solid #d8e0e7!important;background:#fff!important;color:#17242d!important;-webkit-text-fill-color:#17242d!important;border-radius:12px;box-shadow:none!important;padding:12px 16px;min-height:44px;cursor:pointer;letter-spacing:0;text-transform:none;white-space:normal;margin:0}
.ctwpml-grams.ctwpml-grams button:is(:hover,:focus,:active){background:#eef5ff!important;color:#17242d!important;-webkit-text-fill-color:#17242d!important;opacity:1!important}
.ctwpml-grams.ctwpml-grams :is(button,a,input,[tabindex]):focus-visible{outline:3px solid #ef922d!important;outline-offset:3px}
.ctwpml-grams.ctwpml-grams.cg-page{max-width:1120px;margin:20px auto;padding:24px 32px;box-shadow:0 12px 48px #17242d0a;border:1px solid #e4e9ee}
.ctwpml-grams .cg-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid #e4e9ee;margin-bottom:18px}
.ctwpml-grams .cg-header span{font-size:12px;color:#3c535e!important;-webkit-text-fill-color:#3c535e!important}
.ctwpml-grams .cg-brand{font-weight:800;max-width:180px}
.ctwpml-grams .cg-brand img{display:block;max-width:150px;max-height:48px;object-fit:contain;width:auto;height:auto}
.ctwpml-grams .cg-back{font-size:13px}
.ctwpml-grams .cg-product-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:42px;align-items:start}
.ctwpml-grams .cg-image{position:relative;background:#f5f7fa!important;border-radius:20px;overflow:hidden;aspect-ratio:1;display:grid;place-items:center}
.ctwpml-grams .cg-image img{width:100%;height:100%;object-fit:contain;margin:0;border:0;border-radius:0}
.ctwpml-grams.ctwpml-grams .cg-weight{position:absolute;left:16px;top:16px;z-index:1;border-radius:12px;padding:8px 14px;background:#fff!important;color:#17242d!important;-webkit-text-fill-color:#17242d!important;font-size:24px;font-weight:800;box-shadow:0 3px 18px #17242d13}
.ctwpml-grams .cg-thumbs{display:flex;gap:8px;overflow:auto;padding:12px 0}
.ctwpml-grams .cg-thumbs button{padding:4px;width:58px;flex-shrink:0}
.ctwpml-grams .cg-thumbs img{display:block;width:48px;height:48px;object-fit:cover}
.ctwpml-grams .cg-summary{font-size:14px;margin-top:16px}
.ctwpml-grams .cg-purchase{min-width:0;padding:24px;border:1px solid #e4e9ee;border-radius:20px;background:#fff!important}
.ctwpml-grams.ctwpml-grams .cg-eyebrow{color:#0759bb!important;-webkit-text-fill-color:#0759bb!important;font-size:11px;letter-spacing:1.5px;font-weight:800}
.ctwpml-grams.ctwpml-grams .cg-hint{font-size:14px;color:#506573!important;-webkit-text-fill-color:#506573!important}
.ctwpml-grams .cg-picked{display:flex;justify-content:center;align-items:baseline;gap:8px;padding:8px 0 20px}
.ctwpml-grams .cg-picked strong{font-size:52px;font-weight:750;letter-spacing:-2px;line-height:1.1}
.ctwpml-grams .cg-picked span{font-size:15px}
.ctwpml-grams .cg-ruler-wrap{position:relative;border-radius:16px;border:1px solid #dce4ec;background:#f7f9fc!important;overflow:hidden;max-width:100%}
.ctwpml-grams .cg-pointer{position:absolute;left:50%;top:0;width:3px;height:12px;background:#e78b23!important;border-radius:0 0 4px 4px;z-index:1;transform:translateX(-50%);pointer-events:none}
.ctwpml-grams .cg-ruler{display:flex;position:relative;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x mandatory;padding:18px max(0px,calc(50% - 30px)) 8px;touch-action:pan-x pan-y;cursor:grab}
.ctwpml-grams .cg-ruler::-webkit-scrollbar{display:none}
.ctwpml-grams.ctwpml-grams .cg-ruler button{flex:0 0 60px;min-width:60px;padding:12px 4px 0;min-height:68px;border:0!important;border-radius:0;background:transparent!important;scroll-snap-align:center;font-size:23px;opacity:.65;transition:filter .15s,opacity .15s,transform .15s;user-select:none}
.ctwpml-grams .cg-ruler button i{display:block;width:1px;height:9px;background:#a1b2c2!important;margin:10px auto 0}
.ctwpml-grams.ctwpml-grams .cg-ruler button[aria-pressed=true]{color:#0759bb!important;-webkit-text-fill-color:#0759bb!important;font-weight:800;opacity:1!important;transform:scale(1.12);filter:none!important}
.ctwpml-grams.ctwpml-grams.cg-moving .cg-ruler button:not([aria-pressed=true]){filter:blur(.65px);opacity:.5;transform:scale(.96)}
.ctwpml-grams .cg-input-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:9px 0 12px;font-size:11px}
.ctwpml-grams.ctwpml-grams .cg-edit{background:transparent!important;color:#0759bb!important;-webkit-text-fill-color:#0759bb!important;border:0!important;padding:8px 0 8px 8px;font-size:12px;flex-shrink:0}
.ctwpml-grams .cg-custom{display:flex;gap:8px;align-items:end;margin-bottom:16px}
.ctwpml-grams .cg-custom label{font-size:12px;flex:1}
.ctwpml-grams.ctwpml-grams input{display:block;width:100%;min-height:44px;border:1px solid #adbfce!important;background:#fff!important;color:#17242d!important;-webkit-text-fill-color:#17242d!important;border-radius:10px;padding:10px;font:16px system-ui}
.ctwpml-grams.ctwpml-grams input::placeholder{color:#566977!important;-webkit-text-fill-color:#566977!important;opacity:1!important}
.ctwpml-grams.ctwpml-grams .cg-bonus{font-size:13px;min-height:40px;color:#506573!important;-webkit-text-fill-color:#506573!important}
.ctwpml-grams .cg-checkout{border-top:1px solid #e4e9ee;padding-top:18px}
.ctwpml-grams .cg-checkout>div>span{display:block;font-size:12px}
.ctwpml-grams .cg-checkout strong{display:block;font-size:28px;font-weight:800;letter-spacing:-.7px;line-height:1.25;margin:4px 0 16px}
.ctwpml-grams .cg-checkout small{display:block;font-size:12px}
.ctwpml-grams .cg-checkout .cg-price-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.ctwpml-grams .cg-checkout .cg-price{flex:1;min-width:120px}
.ctwpml-grams .cg-checkout .cg-price>span{display:block;font-size:12px}
.ctwpml-grams .cg-checkout .cg-price strong{margin:4px 0 0;overflow-wrap:anywhere;font-size:clamp(22px,5vw,28px)}
.ctwpml-grams.ctwpml-grams .cg-quantity{display:flex;align-items:center;gap:6px;flex-shrink:0;border-radius:9px;padding:6px 8px;background:#f5f5f5!important;color:#17242d!important;-webkit-text-fill-color:#17242d!important;font-size:12px;font-weight:500;white-space:nowrap}
.ctwpml-grams.ctwpml-grams .cg-quantity select,.ctwpml-grams.ctwpml-grams .cg-quantity select:is(:hover,:focus,:active){appearance:auto!important;display:inline-block!important;width:48px!important;min-height:36px;padding:4px!important;margin:0!important;border:0!important;border-radius:5px;background-color:#f5f5f5!important;color:#17242d!important;-webkit-text-fill-color:#17242d!important;opacity:1!important;font:700 16px system-ui;cursor:pointer}
.ctwpml-grams.ctwpml-grams .cg-quantity select option{background:#fff!important;color:#17242d!important;-webkit-text-fill-color:#17242d!important}
.ctwpml-grams.ctwpml-grams .cg-quantity select option:disabled{color:#687782!important;-webkit-text-fill-color:#687782!important}
.ctwpml-grams.ctwpml-grams .cg-quantity select:focus-visible{outline:3px solid #ef922d!important;outline-offset:2px}
.ctwpml-grams.ctwpml-grams :is(.cg-add,[data-replace]),.ctwpml-grams.ctwpml-grams :is(.cg-add,[data-replace]):is(:hover,:focus,:active){background:#0075ff!important;border-color:#0075ff!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
.ctwpml-grams.ctwpml-grams .cg-add{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:14px 10px}
.ctwpml-grams.ctwpml-grams .cg-add span{color:#fff!important;-webkit-text-fill-color:#fff!important}
.ctwpml-grams .cg-add img{width:24px;height:24px;max-width:24px;filter:none!important;opacity:1!important;flex-shrink:0}
.ctwpml-grams.ctwpml-grams .cg-checkout .cg-buy,.ctwpml-grams.ctwpml-grams .cg-checkout .cg-buy:is(:hover,:focus,:active){display:block;width:100%;min-height:52px;margin:0 0 10px;padding:14px 10px;background:#3483fa!important;border-color:#3483fa!important;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;font-size:19px;font-weight:700}
.ctwpml-grams.ctwpml-grams .cg-checkout .cg-add,.ctwpml-grams.ctwpml-grams .cg-checkout .cg-add:is(:hover,:focus,:active){background:#e3edfb!important;border-color:#e3edfb!important;color:#2968c8!important;-webkit-text-fill-color:#2968c8!important;opacity:1!important;font-size:15px}
.ctwpml-grams.ctwpml-grams .cg-checkout .cg-add span{color:#2968c8!important;-webkit-text-fill-color:#2968c8!important}
.ctwpml-grams.ctwpml-grams .cg-checkout .cg-add img{filter:brightness(0) saturate(100%) invert(36%) sepia(73%) saturate(1266%) hue-rotate(190deg) brightness(87%) contrast(98%)!important}
.ctwpml-grams.ctwpml-grams .cg-checkout :is(.cg-buy,.cg-add):disabled{cursor:not-allowed!important}
.ctwpml-grams.ctwpml-grams button:disabled{opacity:1!important;cursor:wait}
.ctwpml-grams.ctwpml-grams .cg-feedback{font-size:13px;margin:14px 0 0;overflow-wrap:anywhere}
.ctwpml-grams.ctwpml-grams .cg-feedback.cg-error{color:#a62c24!important;-webkit-text-fill-color:#a62c24!important}
.ctwpml-grams.cg-invalid .cg-ruler-wrap{border:2px solid #bc382e!important}
.ctwpml-grams .cg-conflict{padding:14px;margin-top:12px;border:1px solid #dbc9a8;background:#fff9ed!important;border-radius:12px}
.ctwpml-grams .cg-conflict p{font-size:13px}
.ctwpml-grams .cg-conflict button{margin:4px 6px 0 0}
.ctwpml-grams .cg-cart-link{display:inline-block;padding:14px 0;font-size:14px}
.ctwpml-grams.cg-busy :is(.cg-ruler,.cg-input-row,.cg-custom){pointer-events:none}
.ctwpml-grams .cg-description{border-top:1px solid #e4e9ee;padding:20px 0;margin-top:28px}
.ctwpml-grams .cg-description summary{cursor:pointer;font-weight:650}
.ctwpml-grams .cg-description>div{padding-top:16px}
.ctwpml-grams.ctwpml-grams .cg-footer{border-top:1px solid #e4e9ee;margin-top:20px;padding-top:18px;font-size:12px;color:#506573!important;-webkit-text-fill-color:#506573!important}
@media(max-width:680px){.ctwpml-grams.ctwpml-grams.cg-page{margin:0 auto;padding:18px 16px;border-radius:16px}.ctwpml-grams .cg-product-grid{grid-template-columns:minmax(0,1fr);gap:22px}.ctwpml-grams .cg-image{aspect-ratio:1.15}.ctwpml-grams .cg-purchase{padding:20px 16px}.ctwpml-grams.ctwpml-grams h1{font-size:25px;margin-bottom:20px}.ctwpml-grams.ctwpml-grams h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.ctwpml-grams .cg-ruler{scroll-behavior:auto}.ctwpml-grams.ctwpml-grams .cg-ruler button{transition:none;filter:none!important;transform:none!important}}
/* Native modal keeps focus and blocks cart writes until the quantity is confirmed. */
.ctwpml-grams.ctwpml-grams .cg-confirm{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #dce3ed!important;border-radius:20px;background:#fff!important;color:#17242d!important;-webkit-text-fill-color:#17242d!important;box-shadow:0 20px 70px #0003!important;text-align:center}
.ctwpml-grams.ctwpml-grams .cg-confirm::backdrop{background:#10203499!important;backdrop-filter:blur(3px)}
.ctwpml-grams.ctwpml-grams .cg-confirm h2{font-size:23px;line-height:1.25;margin:0 0 16px}
.ctwpml-grams.ctwpml-grams .cg-confirm h2:focus{outline:none!important;box-shadow:none!important}
.ctwpml-grams.ctwpml-grams .cg-confirm :is([data-confirm],[data-cancel]):focus-visible{outline:2px solid #0075ff!important;outline-offset:3px}
.ctwpml-grams.ctwpml-grams .cg-confirm :is([data-confirm],[data-cancel]):focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
.ctwpml-grams.ctwpml-grams .cg-confirm :is(p,[data-confirm-description]){color:#17242d!important;-webkit-text-fill-color:#17242d!important;font-size:15px;line-height:1.5}
.ctwpml-grams.ctwpml-grams .cg-confirm .cg-confirm-total{display:block;font-size:42px;font-weight:750;color:#1765d8!important;-webkit-text-fill-color:#1765d8!important}
.ctwpml-grams.ctwpml-grams .cg-confirm-actions{display:grid;gap:10px;margin-top:20px}
.ctwpml-grams.ctwpml-grams .cg-confirm [data-confirm],.ctwpml-grams.ctwpml-grams .cg-confirm [data-confirm]:is(:hover,:focus,:active,:disabled){width:100%;min-height:48px;background:#3483fa!important;border-color:#3483fa!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:19px;font-weight:700;opacity:1!important}
.ctwpml-grams.ctwpml-grams .cg-confirm [data-cancel],.ctwpml-grams.ctwpml-grams .cg-confirm [data-cancel]:is(:hover,:focus,:active,:disabled){background:#e3edfb!important;border-color:#e3edfb!important;color:#2968c8!important;-webkit-text-fill-color:#2968c8!important;opacity:1!important}
