.cc-tshirt-dialog .cc-yard-body {
    grid-template-columns:minmax(0,1fr) minmax(390px,470px);
}

.cc-tshirt-preview {
    justify-content:center;
}

.cc-tshirt-stage {
    position:relative;
    width:min(100%,620px);
    aspect-ratio:1;
    overflow:hidden;
    border:1px solid #e1e7e4;
    border-radius:7px;
    background:#fff;
    box-shadow:0 6px 26px rgb(30 41 37 / 9%);
}

.cc-tshirt-base {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.cc-tshirt-print-zone {
    position:absolute;
    left:50%;
    top:62%;
    width:34%;
    height:34%;
    transform:translate(-50%,-50%);
    pointer-events:none;
}

.cc-tshirt-print-zone::after {
    position:absolute;
    inset:0;
    border:1px dashed rgb(47 125 113 / 55%);
    border-radius:4px;
    content:"";
}

.cc-tshirt-stage.has-artwork .cc-tshirt-print-zone::after {
    border-color:rgb(47 125 113 / 18%);
}

.cc-tshirt-preview-placeholder {
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#78817e;
    font-size:12px;
    letter-spacing:.03em;
}

.cc-tshirt-artwork-preview {
    position:absolute;
    left:50%;
    top:50%;
    width:100%;
    height:100%;
    object-fit:contain;
    transform:translate(-50%,-50%);
    transform-origin:center;
    opacity:.98;
    filter:saturate(.98) contrast(.99);
}

.cc-tshirt-dialog .cc-yard-preview>p {
    max-width:560px;
    text-align:center;
}

.cc-tshirt-controls>section,
.cc-tshirt-controls>fieldset {
    margin:0 0 22px;
    padding:0 0 22px;
    border:0;
    border-bottom:1px solid var(--ys-line);
}

.cc-tshirt-controls>fieldset:last-child {
    margin-bottom:0;
    padding-bottom:0;
    border-bottom:0;
}

.cc-tshirt-color-options {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
}

.cc-tshirt-color-options label {
    position:relative;
    display:flex;
    min-height:52px;
    align-items:center;
    gap:10px;
    padding:0 12px;
    border:1px solid var(--ys-line);
    border-radius:6px;
    cursor:pointer;
}

.cc-tshirt-color-options input,
.cc-tshirt-size-options input {
    position:absolute;
    width:1px;
    height:1px;
    opacity:0;
}

.cc-tshirt-color-options label:has(:checked),
.cc-tshirt-size-options label:has(:checked) {
    border-color:var(--ys-green);
    background:#eff6f3;
    box-shadow:inset 0 0 0 1px var(--ys-green);
}

.cc-tshirt-color-options label:has(:focus-visible),
.cc-tshirt-size-options label:has(:focus-visible) {
    outline:2px solid var(--ys-green);
    outline-offset:2px;
}

.cc-tshirt-swatch {
    width:25px;
    height:25px;
    flex:0 0 25px;
    border:1px solid #aeb7b3;
    border-radius:50%;
}

.cc-tshirt-swatch.is-white { background:#fff; }
.cc-tshirt-swatch.is-black { background:#161817; }

.cc-tshirt-color-options strong {
    font-size:13px;
    font-weight:550;
}

.cc-tshirt-size-options {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:7px;
    margin-top:10px;
}

.cc-tshirt-size-options label {
    position:relative;
    display:flex;
    height:42px;
    align-items:center;
    justify-content:center;
    border:1px solid var(--ys-line);
    border-radius:5px;
    cursor:pointer;
}

.cc-tshirt-size-options span {
    font-size:13px;
    font-weight:550;
}

.cc-tshirt-help {
    margin:9px 0 0;
    color:var(--ys-muted);
    font-size:11px;
}

.cc-tshirt-placement {
    display:grid;
    gap:15px;
}

.cc-tshirt-placement[disabled] {
    opacity:.48;
}

.cc-tshirt-placement label {
    display:grid;
    gap:7px;
}

.cc-tshirt-placement label>span {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    font-size:13px;
    font-weight:500;
}

.cc-tshirt-placement output {
    color:var(--ys-muted);
    font-size:11px;
    font-weight:400;
}

.cc-tshirt-placement input[type=range] {
    width:100%;
    accent-color:var(--ys-green);
}

.cc-tshirt-reset {
    justify-self:start;
}

.cc-tshirt-order {
    display:grid;
    gap:17px;
}

.cc-tshirt-order legend {
    margin-bottom:0;
}

.cc-tshirt-notes-label {
    display:grid!important;
    align-items:stretch!important;
    gap:7px!important;
}

.cc-tshirt-notes-label>span {
    display:flex;
    align-items:baseline;
    gap:7px;
}

.cc-tshirt-notes-label small {
    color:var(--ys-muted);
    font-size:11px;
    font-weight:400;
}

.cc-tshirt-notes-label textarea {
    width:100%;
    min-height:82px;
    padding:9px 10px;
    resize:vertical;
    border:1px solid var(--ys-line);
    border-radius:5px;
    background:#fff;
    color:var(--ys-ink);
    font:inherit;
    box-shadow:none;
}

.cc-tshirt-price {
    display:grid;
}

.cc-tshirt-price small {
    display:block;
    margin-top:2px;
    color:var(--ys-muted);
    font-size:11px;
}

.cc-tshirt-add-cart:disabled {
    background:#aebbb6;
    cursor:not-allowed;
}

.cc-tshirt-dialog.is-preparing .cc-tshirt-add-cart {
    cursor:wait;
}

.cc-custom-tshirt-product .wp-block-woocommerce-product-image-gallery {
    height:auto;
    min-height:0;
    aspect-ratio:1;
}

@media(max-width:760px) {
    .cc-tshirt-dialog .cc-yard-preview {
        min-height:42dvh;
        flex:0 0 42dvh;
        padding:12px;
        border:0;
        border-bottom:1px solid var(--ys-line);
    }
    .cc-tshirt-stage {
        width:min(100%,38dvh);
    }
    .cc-tshirt-dialog .cc-yard-preview>p {
        display:none;
    }
    .cc-tshirt-price small {
        display:none;
    }
}

@media(max-width:390px) {
    .cc-tshirt-cancel {
        display:none;
    }
    .cc-tshirt-size-options {
        gap:5px;
    }
}
