.cwi-custom-product{background:#fffaf3;border-radius:24px;padding:28px!important;max-width:1150px;margin:auto!important}.cwi-custom-product>.woocommerce-product-gallery{display:none!important}.cwi-custom-product>.summary{float:none!important;width:100%!important}.cwi-custom-product .product_title{color:#193f36;font-size:36px!important}.cwi-customer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;border:0!important;padding:0!important}.cwi-controls,.cwi-preview{background:white;border:1px solid #e5ddd1;border-radius:18px;padding:24px;min-width:0}.cwi-customer h2{font-size:25px;color:#193f36}.cwi-customer label{font-weight:600}.cwi-customer textarea{border:1px solid #b7c7bd;border-radius:9px;padding:12px}.cwi-customer input[type=file]{max-width:100%;font-size:14px}.cwi-customer small,.cwi-preview p{font-size:13px;color:#54645e;font-weight:400}.cwi-preview>canvas{width:100%;height:450px;object-fit:contain;cursor:grab}.cwi-preview input[type=range]{display:block;width:100%;accent-color:#194d3d}.cwi-preview details{margin-top:20px}.cwi-purchase{display:flex;gap:12px;align-items:center;margin-top:20px}.cwi-phone{margin:16px 0}.cwi-phone button{background:#f5df87!important;color:#263c32!important;border:0;border-radius:10px;padding:12px;font-weight:600}.cwi-phone svg{width:190px;max-width:100%;height:auto}.cwi-phone-panel{padding:14px;border:1px solid #dfd5be;border-radius:10px;margin-top:10px}.cwi-custom-product .single_add_to_cart_button{background:#1c4b3c!important;border-radius:10px!important}.cwi-custom-product form.cart{display:block!important}@media(max-width:700px){.cwi-custom-product{padding:16px!important}.cwi-customer{grid-template-columns:1fr}.cwi-controls,.cwi-preview{padding:18px}.cwi-preview>canvas{height:350px}}

/* Match the existing Corksee tumbler mobile layout. */
.cwi-custom-product,.cwi-custom-product *{box-sizing:border-box}
.cwi-preview{align-self:start;position:sticky;top:145px}
.cwi-preview>canvas{height:min(66vh,680px);display:block;margin:12px auto;max-width:420px}
.cwi-preview-toolbar{display:flex;justify-content:center;gap:8px;margin:8px 0}
.cwi-preview-toolbar button,.cwi-preview-dialog button{min-height:44px;padding:10px 14px;border:0;border-radius:9px;background:#edf4f1;color:#194f47;font:inherit}
.cwi-preview-toolbar .cwi-enlarge,.cwi-preview-float{background:#245f55;color:#fff}
.cwi-preview-float{display:none}
.cwi-preview-dialog{border:0;border-radius:22px;width:min(880px,96vw);max-width:96vw;max-height:96dvh;padding:18px;color:#203e3a}
.cwi-preview-dialog::backdrop{background:#102b28bf}
.cwi-preview-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.cwi-preview-dialog canvas{display:block;width:100%;height:calc(88dvh - 160px);object-fit:contain;margin:auto}
.cwi-preview-dialog input{width:100%;min-height:28px}
.cwi-preview input[type=range]{min-height:28px}
@media(max-width:800px){
 .cwi-custom-product{padding:14px!important;margin:14px auto!important;width:100%;max-width:100%;border-radius:20px}
 .cwi-custom-product .product_title{font-size:clamp(30px,4vw,48px)!important;line-height:1.12;overflow-wrap:anywhere}
 .cwi-custom-product .summary{min-width:0;margin:0!important}
 .cwi-customer{display:flex;flex-direction:column;gap:18px;width:100%;margin:20px 0!important}
 .cwi-customer .cwi-preview{order:-1;position:relative;top:auto;width:100%;padding:14px}
 .cwi-customer .cwi-controls{width:100%;padding:18px}
 .cwi-customer .cwi-preview>canvas{height:min(58svh,510px);max-width:320px;width:100%}
 .cwi-customer textarea,.cwi-customer input{font-size:16px;max-width:100%}
 .cwi-customer button{min-height:46px;white-space:normal}
 .cwi-purchase{flex-wrap:wrap;gap:10px}.cwi-purchase .single_add_to_cart_button{flex:1;margin:0!important}
 .cwi-preview-toolbar button{flex:1;padding:10px 8px}
 .cwi-preview-float{display:block;position:fixed;bottom:calc(16px + env(safe-area-inset-bottom));right:16px;z-index:45;box-shadow:0 4px 20px #163f4540;padding:13px 18px;border:2px solid white;border-radius:9px;font:inherit}
 .cwi-preview-float[hidden]{display:none}
 .cwi-preview-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0;padding:16px 16px calc(16px + env(safe-area-inset-bottom))}
 .cwi-preview-dialog canvas{height:calc(100dvh - 160px)}
 .cwi-custom-product{padding-bottom:80px!important}
}

.cwi-preview h2{margin:0;font-size:22px}.cwi-preview>p{margin:8px 0 0}
@media(max-width:800px){main.cwi-content{padding:0!important}.cwi-customer .cwi-preview>canvas{margin:12px auto}.cwi-custom-product{background:#f7f7f0}}
