.dtf-product-order { margin-block: 1.25rem; color: var(--text-main, #252525); }
.dtf-product-order output { font-weight: 800; }
.dtf-artwork-drop {
    position: relative;
    display: grid;
    justify-items: center;
    gap: .6rem;
    padding: 1.7rem 1rem;
    border: 1px dashed var(--dtf-accent, #ff4d00);
    background: var(--card-bg, #f3f4f6);
    text-align: center;
    cursor: pointer;
}
.dtf-artwork-drop svg { color: var(--dtf-accent, #ff4d00); }
.dtf-artwork-drop span { font-size: .875rem; overflow-wrap: anywhere; }
.dtf-artwork-drop:is(:hover, :focus-within, .is-dragging) {
    outline: 2px solid var(--dtf-accent, #ff4d00);
    outline-offset: 3px;
}
.dtf-artwork-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dtf-artwork-status:empty { display: none; }

.woocommerce div.product .summary:has(.dtf-product-support) {
    display: grid;
    gap: 1rem;
}
.woocommerce div.product .summary:has(.dtf-product-support) :is(h1.product_title, p.price, form.cart) { margin: 0; }
.woocommerce div.product .summary:has(.dtf-product-support) h1.product_title {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.15;
}
.woocommerce div.product .summary .dtf-unit-price {
    color: var(--text-main, #222);
    font-size: 1.65rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}
.dtf-product-order { display: grid; gap: 1rem; margin-block: .35rem 1.1rem; }
.dtf-product-order > p { margin: 0; }
.dtf-product-order #dtf-meters { margin-top: .35rem; }
.dtf-preflight:empty, .dtf-product-category:empty { display: none; }
.dtf-product-support { display: grid; gap: 1rem; }
.dtf-product-category { color: var(--text-muted, #555); font-size: .8rem; }
.dtf-product-category a {
    display: inline-block;
    color: inherit;
    background: var(--card-bg, #f3f4f6);
    padding: .2rem .55rem;
}
.dtf-product-help { padding: .9rem 0; border-block: 1px solid var(--border-color, #ddd); }
.dtf-product-help summary, .dtf-product-information summary { cursor: pointer; font-weight: 700; }
.dtf-product-help p { margin: .75rem 0 0; color: var(--text-muted, #555); }
.dtf-product-help .dtf-help-button { margin-top: .75rem; }
.dtf-main .dtf-help-button, .dtf-help-button {
    display: inline-block;
    padding: .45rem .8rem;
    border: 1px solid var(--dtf-accent, #ff4d00);
    color: var(--text-main, #222);
    background: var(--card-bg, #f3f4f6);
    text-decoration: none;
    cursor: pointer;
    font-weight: 650;
}
.dtf-guide-link { justify-self: start; color: var(--text-main, #222); font-size: .9rem; }
.dtf-file-guide {
    margin: auto;
    width: min(38rem, calc(100% - 2rem));
    max-height: 85vh;
    overflow: auto;
    padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid var(--dtf-accent, #ff4d00);
    background: var(--card-bg, #f3f4f6);
    color: var(--text-main, #222);
}
.dtf-file-guide::backdrop { background: rgb(0 0 0 / .72); }
.dtf-file-guide ol { list-style: decimal; padding-left: 1.5rem; margin-block: 1rem; }
.dtf-file-guide li + li { margin-top: .6rem; }
.dtf-file-guide form { margin-top: 1rem; }
.dtf-product-information {
    clear: both;
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
}
.dtf-product-information-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
}
.dtf-product-information h2 { font-size: clamp(1.25rem, 2.5vw, 1.7rem); margin: 0 0 1rem; }
.dtf-product-information-grid p { margin: .65rem 0; color: var(--text-muted, #555); }
.dtf-product-information-grid details { padding: .85rem 0; border-bottom: 1px solid var(--border-color, #ddd); }
.dtf-product-spec {
    margin-top: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1rem, 4vw, 2.25rem);
    border-top: 2px solid var(--dtf-accent, #ff4d00);
    background: var(--card-bg, #f3f4f6);
}
.dtf-product-spec table { width: 100%; border-collapse: collapse; }
.dtf-product-spec :is(th,td) {
    padding: .65rem .5rem;
    border-bottom: 1px solid var(--border-color, #ddd);
    text-align: left;
    vertical-align: top;
}
.dtf-product-spec th { width: 42%; font-weight: 600; }
@media (max-width: 680px) {
    .dtf-product-information-grid { grid-template-columns: 1fr; }
}
.dtf-product-information :is(ul,ol), .dtf-help-copy :is(ul,ol), .dtf-file-guide ul {
    padding-inline-start: 1.5rem;
    margin-block: .65rem;
}
.dtf-product-information ul, .dtf-help-copy ul, .dtf-file-guide ul { list-style: disc; }
.dtf-product-information ol, .dtf-help-copy ol { list-style: decimal; }

.dtf-preflight:is([data-state="error"], [data-state="success"]) {
    padding: .85rem 1rem;
    border: 1px solid;
    border-radius: 4px;
    font-weight: 650;
    overflow-wrap: anywhere;
}
.dtf-preflight[data-state="error"] {
    background: #8b1e28;
    border-color: #df666e;
    color: #fff;
}
.dtf-preflight[data-state="success"] {
    background: #195b39;
    border-color: #5cba7e;
    color: #fff;
}
