/* Alfisti theme: T-shirt size guide modal (2026-11-30) */
.alf-sg{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:8px;box-shadow:0 30px 80px rgba(0,0,0,.3);color:#333;font-family:var(--alf-font);background:#fff}
.alf-sg::backdrop{background:rgba(0,0,0,.55)}
html:has(.alf-sg[open]){overflow:hidden}
.alf-sg__in{padding:28px}
.alf-sg__head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.alf-sg__head h2{margin:0;font-family:var(--alf-font);font-weight:500;font-size:28px;line-height:1.2;color:var(--alf-red)}
.alf-sg .alf-sg__x{border:0;background:var(--alf-off);width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#000;flex:0 0 40px;padding:0}
.alf-sg .alf-sg__x:hover{background:var(--alf-red);color:#fff}
.alf-sg__sub{margin:6px 0 20px;color:var(--alf-text);font-size:14px}
.alf-sg__bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.alf-sg__tabs,.alf-sg__units{display:flex;gap:8px}
.alf-sg button[data-tab],.alf-sg button[data-unit]{border:0;background:var(--alf-off);color:#000;padding:8px 16px;border-radius:999px;font:500 14px/1.2 var(--alf-font);cursor:pointer}
.alf-sg button[data-garment]{border:0;background:var(--alf-off);color:#000;padding:8px 16px;border-radius:999px;font:500 14px/1.2 var(--alf-font);cursor:pointer}
.alf-sg button[aria-selected=true],.alf-sg button[aria-pressed=true]{background:var(--alf-red);color:#fff}
.alf-sg .alf-sg__tabs--m{margin:0 0 16px}
.alf-sg .alf-sg__tabs--m button[data-tab]{background:#fff;box-shadow:inset 0 0 0 1px #ddd}
.alf-sg .alf-sg__tabs--m button[aria-selected=true]{background:#000;color:#fff;box-shadow:none}
.alf-sg__g .alf-sg__sub{margin:0 0 14px}
/* size guide links on product pages: ours and Printful's, in the site style */
.alf-theme .alf-sg-link,.alf-theme a[onclick*="Printful_Product_Size_Guide"],.alf-theme .alf-pd .single_variation_wrap>a.alf-sg-link,.alf-theme .alf-pd .single_variation_wrap>a[onclick*="Printful_Product_Size_Guide"]{display:inline-flex;align-items:center;gap:6px;margin:0 0 12px;color:var(--alf-red)!important;font:500 15px/1.4 var(--alf-font);text-decoration:underline;text-underline-offset:3px}
.alf-theme .alf-sg-link::before,.alf-theme a[onclick*="Printful_Product_Size_Guide"]::before{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='7' width='20' height='10' rx='1'/%3E%3Cpath d='M6 7v4M10 7v3M14 7v4M18 7v3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='7' width='20' height='10' rx='1'/%3E%3Cpath d='M6 7v4M10 7v3M14 7v4M18 7v3'/%3E%3C/svg%3E") center/contain no-repeat}
.alf-sg__grid{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px;align-items:start;margin-bottom:20px}
.alf-sg__grid img{width:100%;height:auto;background:#fff;border:1px solid var(--alf-line)}
.alf-sg__how p{margin:0 0 12px;font-size:14px;line-height:1.5;color:var(--alf-text)}
.alf-sg__how b{display:block;color:#000;font-weight:500}
.alf-sg__tw{overflow-x:auto}
.alf-sg__t{width:100%;border-collapse:collapse;font-size:15px}
.alf-sg__t th,.alf-sg__t td{padding:10px 12px;text-align:center;border-bottom:1px solid var(--alf-line)}
.alf-sg__t thead th{background:#000;color:#fff;font-weight:500}
.alf-sg__t tbody th{font-weight:600;color:#000}
.alf-sg__t tbody tr:nth-child(even){background:var(--alf-off)}
.alf-sg[data-unit=cm] [data-u=in],.alf-sg[data-unit=in] [data-u=cm]{display:none}
.alf-sg__note{margin:12px 0 0;font-size:13px;color:var(--alf-muted)}
.alf-sg__foot{margin-top:20px;padding-top:16px;border-top:1px solid var(--alf-line);font-size:14px;color:var(--alf-text)}
.alf-sg__foot a{font-weight:500}
@media (max-width:600px){
.alf-sg__in{padding:20px}
.alf-sg__head h2{font-size:22px}
.alf-sg__grid{grid-template-columns:110px minmax(0,1fr);gap:14px}
.alf-sg__t th,.alf-sg__t td{padding:8px 6px;font-size:14px}
.alf-sg button[data-tab],.alf-sg button[data-unit]{padding:8px 12px;font-size:13px}
}
