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

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

.cc-mug-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-mug-base {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

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

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

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

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

.cc-mug-artwork-preview {
    position:absolute;
    left:50%;
    top:50%;
    width:100%;
    height:100%;
    object-fit:contain;
    transform:translate(-50%,-50%);
    transform-origin:center;
    mix-blend-mode:multiply;
    opacity:.96;
    filter:saturate(.95) contrast(.98);
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 10%,#000 90%,transparent 100%);
    mask-image:linear-gradient(90deg,transparent 0,#000 10%,#000 90%,transparent 100%);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.cc-mug-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-mug-price {
    display:grid;
}

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

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

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

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

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

@media(max-width:390px) {
    .cc-mug-cancel {
        display:none;
    }
}
