/* DTF 3D Shield Shop — Frontend v2.0.3
   Card-based UI · Compact · Corporate: #009d45, black, white */

:root {
    --sh-primary: #009d45;
    --sh-primary-hover: #008039;
    --sh-primary-light: rgba(0, 157, 69, 0.08);
    --sh-primary-ring: rgba(0, 157, 69, 0.25);
    --sh-primary-bg: #e8f5ed;
    --sh-black: #111111;
    --sh-text: #333333;
    --sh-muted: #777777;
    --sh-border: #e0e0e0;
    --sh-bg: #f5f5f5;
    --sh-white: #ffffff;
    --sh-radius: 10px;
    --sh-radius-sm: 6px;
    --sh-shadow: 0 1px 4px rgba(0,0,0,0.07);
    --sh-shadow-lg: 0 2px 10px rgba(0,0,0,0.1);
    --sh-red: #d32f2f;
    --sh-green-soft: #43a047;
    --sh-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dtf-shield-wrap { font-family: var(--sh-font); color: var(--sh-text); max-width: 1200px; }
.dtf-shield-wrap * { box-sizing: border-box; }

/* ====== H2 ====== */
.dtf-shield-h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 900;
    color: var(--sh-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dtf-shield-yt-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(0, 157, 69, 0.04) 0%, rgba(0, 157, 69, 0.12) 100%);
    border: 1px solid rgba(0, 157, 69, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    user-select: none;
}
.dtf-shield-yt-cta:hover { 
    background: linear-gradient(135deg, rgba(0, 157, 69, 0.08) 0%, rgba(0, 157, 69, 0.18) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 157, 69, 0.08);
    border-color: rgba(0, 157, 69, 0.3);
}
.dtf-shield-yt-cta-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--sh-primary) 0%, #007a34 100%);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 157, 69, 0.3);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dtf-shield-yt-cta-icon svg {
    margin-left: 2px; /* slight visual center correction for play icons */
    width: 18px;
    height: 18px;
}
.dtf-shield-yt-cta:hover .dtf-shield-yt-cta-icon { 
    transform: scale(1.1); 
    box-shadow: 0 6px 16px rgba(0, 157, 69, 0.4);
}
.dtf-shield-yt-cta > span:last-child {
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e50;
    font-weight: 600;
}

/* ====== LAYOUT ====== */
.dtf-shield-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 1024px) {
    .dtf-shield-layout {
        grid-template-columns: 1fr 340px;
        gap: 20px;
        align-items: start;
    }
}

/* ====== CARD SECTIONS ====== */
.dtf-shield-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dtf-shield-card {
    background: var(--sh-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.dtf-shield-card:hover { 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); 
    transform: translateY(-1px);
}

.dtf-shield-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
}
.dtf-shield-card-title h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--sh-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dtf-shield-card-title h3 small {
    font-weight: 500;
    text-transform: none;
    color: var(--sh-muted);
    font-size: 11px;
}
.dtf-shield-card-title small {
    font-weight: 500;
    color: var(--sh-muted);
    font-size: 11px;
}
.dtf-shield-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--sh-primary);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}
.dtf-shield-card-icon svg { width: 12px; height: 12px; }

/* ====== UPLOAD / DROPZONE ====== */
.dtf-shield-dropzone {
    position: relative;
    border: 2px dashed rgba(0, 157, 69, 0.2);
    border-radius: 12px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    background: linear-gradient(180deg, var(--sh-white) 0%, #fafafa 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.dtf-shield-dropzone:hover {
    border-color: var(--sh-primary);
    background: #f7fdf9;
    box-shadow: 0 8px 25px rgba(0, 157, 69, 0.06);
    transform: translateY(-1px);
}
.dtf-shield-dragover {
    border-color: var(--sh-primary) !important;
    background: var(--sh-primary-bg) !important;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 157, 69, 0.12) !important;
}

.dtf-shield-drop-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dtf-shield-drop-inner svg { 
    color: var(--sh-primary); 
    width: 38px; 
    height: 38px;
    padding: 8px;
    background: rgba(0, 157, 69, 0.08);
    border-radius: 10px;
    margin-bottom: 6px;
}
.dtf-shield-drop-inner strong { font-size: 14px; font-weight: 800; color: var(--sh-black); }
.dtf-shield-drop-inner span { font-size: 12px; color: var(--sh-muted); }

.dtf-shield-upload-progress { padding: 6px 0; }
.dtf-shield-progress-bar { height: 3px; background: var(--sh-border); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.dtf-shield-progress-fill { height: 100%; background: var(--sh-primary); width: 0; transition: width 0.2s; }
.dtf-shield-progress-pct { font-size: 11px; color: var(--sh-muted); }

/* Preview */
.dtf-shield-preview {
    border: 2px solid var(--sh-primary);
    border-radius: var(--sh-radius-sm);
    overflow: hidden;
    margin-top: 8px;
}
.dtf-shield-preview-img-wrap {
    position: relative;
    width: 100%;
    min-height: 60px;
    max-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-conic-gradient(#f0f0f0 0% 25%, #fafafa 0% 50%) 50% / 16px 16px;
    overflow: hidden;
}
.dtf-shield-preview-img-wrap img { max-width: 100%; max-height: 140px; object-fit: contain; display: block; }
.dtf-shield-ext-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 1px 6px;
    background: var(--sh-primary);
    color: white;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}
.dtf-shield-preview-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--sh-white);
    border-top: 1px solid var(--sh-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--sh-text);
}
.dtf-shield-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    color: var(--sh-red);
    font-size: 16px;
    font-weight: 700;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.dtf-shield-remove-btn:hover { opacity: 1; }

/* ====== DIMENSIONS ====== */
.dtf-shield-dims-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.dtf-shield-dim-input {
    flex: 1;
    min-width: 0;
}
.dtf-shield-dim-input label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--sh-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}
.dtf-shield-dim-field {
    display: flex;
    align-items: center;
    border: 2px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    overflow: hidden;
    transition: border-color 0.2s;
    background: var(--sh-white);
}
.dtf-shield-dim-field:focus-within {
    border-color: var(--sh-primary);
    box-shadow: 0 0 0 3px var(--sh-primary-ring);
}
.dtf-shield-dim-field input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 12px 4px 12px 12px;
    border: none;
    font-size: 18px;
    font-weight: 800;
    color: var(--sh-black);
    font-family: inherit;
    text-align: right;
    -moz-appearance: textfield;
}
.dtf-shield-dim-field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.dtf-shield-dim-field input:focus { outline: none; }
.dtf-shield-dim-field input::placeholder { color: #ccc; }
.dtf-shield-dim-field span {
    padding: 0 12px 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sh-muted);
    background: transparent;
    height: auto;
    display: flex;
    align-items: center;
    border-left: none;
    flex-shrink: 0;
}
.dtf-shield-dims-x {
    font-size: 16px;
    font-weight: 700;
    color: var(--sh-muted);
    padding-bottom: 6px;
    flex-shrink: 0;
}
.dtf-shield-dim-match {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    min-height: 0;
    padding: 2px 0;
}
.dtf-shield-dim-match:empty { display: none; }
.dtf-shield-dim-match.dtf-shield-dim-ok { color: var(--sh-primary); }
.dtf-shield-dim-match.dtf-shield-dim-err { color: var(--sh-red); }
.dtf-shield-dim-note {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--sh-muted);
    font-style: italic;
    line-height: 1.4;
}

/* ====== TEXTURE TOGGLE ====== */
.dtf-shield-texture-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--sh-text);
    padding: 2px 0;
    -webkit-user-select: none;
    user-select: none;
}
.dtf-shield-texture-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.dtf-shield-toggle-track {
    width: 40px;
    height: 22px;
    background: var(--sh-border);
    border-radius: 11px;
    position: relative;
    transition: background 0.25s;
    flex-shrink: 0;
}
.dtf-shield-texture-toggle input:checked ~ .dtf-shield-toggle-track {
    background: var(--sh-primary);
}
.dtf-shield-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.dtf-shield-texture-toggle input:checked ~ .dtf-shield-toggle-track .dtf-shield-toggle-knob {
    transform: translateX(18px);
}

/* No-texture callout (prominent) */
.dtf-shield-notex-callout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 0;
    padding: 12px 14px;
    background: #fff8e1;
    border-radius: var(--sh-radius-sm);
    border-left: 3px solid #ffa000;
}
.dtf-shield-notex-callout > svg {
    flex-shrink: 0;
    color: #f57c00;
    margin-top: 1px;
}
.dtf-shield-notex-callout strong {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #e65100;
    margin-bottom: 2px;
}
.dtf-shield-notex-callout p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #5d4037;
}

/* ====== TEXTURE GRID ====== */
.dtf-shield-texture-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.dtf-shield-tex-thumb {
    cursor: pointer;
    text-align: center;
}
.dtf-shield-tex-thumb input { position: absolute; opacity: 0; width: 0; height: 0; }
.dtf-shield-tex-img {
    display: block;
    aspect-ratio: 2 / 1;
    border: 2px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    overflow: hidden;
    transition: all 0.2s;
    background: #fafafa;
}
.dtf-shield-tex-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dtf-shield-tex-thumb:hover .dtf-shield-tex-img { border-color: var(--sh-primary); }
.dtf-shield-tex-thumb input:checked + .dtf-shield-tex-img {
    border-color: var(--sh-primary);
    box-shadow: 0 0 0 3px var(--sh-primary-ring);
}
.dtf-shield-tex-name {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 600;
    color: var(--sh-muted);
    transition: color 0.2s;
}
.dtf-shield-tex-thumb input:checked ~ .dtf-shield-tex-name {
    color: var(--sh-primary);
    font-weight: 800;
}

/* ====== RADIO CARDS (Finish + Delivery) ====== */
.dtf-shield-finish-opts,
.dtf-shield-delivery-opts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dtf-shield-radio-card { display: block; cursor: pointer; }
.dtf-shield-radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }

.dtf-shield-rc-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1.5px solid var(--sh-border);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: var(--sh-white);
    margin-bottom: 8px;
}
.dtf-shield-rc-content:hover { 
    border-color: rgba(0, 157, 69, 0.4); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}
.dtf-shield-radio-card input:checked + .dtf-shield-rc-content {
    border-color: var(--sh-primary);
    background: linear-gradient(180deg, rgba(0, 157, 69, 0.03) 0%, rgba(0, 157, 69, 0.08) 100%);
    box-shadow: 0 4px 15px rgba(0, 157, 69, 0.1);
}

/* Custom radio dot */
.dtf-shield-radio-dot {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.dtf-shield-radio-card input:checked + .dtf-shield-rc-content .dtf-shield-radio-dot {
    border-color: var(--sh-primary);
    background: var(--sh-primary);
}
.dtf-shield-radio-card input:checked + .dtf-shield-rc-content .dtf-shield-radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.dtf-shield-rc-text { flex: 1; min-width: 0; }
.dtf-shield-rc-text strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--sh-black);
}
.dtf-shield-rc-text small {
    display: block;
    font-size: 11px;
    color: var(--sh-muted);
    margin-top: 1px;
}
.dtf-shield-rc-price {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--sh-muted);
    transition: color 0.2s;
    white-space: nowrap;
}
.dtf-shield-radio-card input:checked + .dtf-shield-rc-content .dtf-shield-rc-price {
    color: var(--sh-primary);
}

/* ====== QUANTITY ====== */
.dtf-shield-qty-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--sh-bg);
    border-radius: var(--sh-radius-sm);
    overflow: hidden;
    width: fit-content;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.dtf-shield-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--sh-primary);
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.dtf-shield-qty-btn:hover { background: var(--sh-primary-hover); }
.dtf-shield-qty-btn:active { transform: scale(0.95); }
.dtf-shield-qty-input {
    width: 70px;
    height: 40px;
    border: none;
    background: var(--sh-white);
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: var(--sh-black);
    font-family: inherit;
    -moz-appearance: textfield;
}
.dtf-shield-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.dtf-shield-qty-input:focus { outline: none; }

/* ====== NOTES ====== */
.dtf-shield-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--sh-black);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.dtf-shield-label small {
    font-weight: 500;
    text-transform: none;
    color: var(--sh-muted);
    font-size: 11px;
}
.dtf-shield-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    transition: border-color 0.2s;
    color: var(--sh-text);
}
.dtf-shield-textarea:focus { border-color: var(--sh-primary); outline: none; box-shadow: 0 0 0 3px var(--sh-primary-ring); }

/* Info button (? circle) */
.dtf-shield-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 2px solid var(--sh-primary);
    border-radius: 50%;
    background: none;
    color: var(--sh-primary);
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
    margin-left: auto;
}
.dtf-shield-info-btn:hover { background: var(--sh-primary); color: var(--sh-white); }

/* ====== SIDEBAR / SUMMARY ====== */
.dtf-shield-sidebar {
    position: relative;
}

@media (min-width: 1024px) {
    .dtf-shield-sidebar {
        /* stretch so it spans the full grid row height — needed for sticky to scroll within */
        align-self: stretch;
    }
}

.dtf-shield-sidebar-inner {
    background: var(--sh-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}
.dtf-shield-sidebar-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--sh-primary), #00d65e);
}

/* Forced sticky sidebar — uses position:fixed via JS (not position:sticky)
   because Elementor sets overflow-x:hidden on html/body which breaks sticky.
   JS toggles class .dtf-shield-forced-sticky on scroll. */
@media (min-width: 1024px) {
    .dtf-shield-sidebar-inner.dtf-shield-forced-sticky {
        position: fixed !important;
        top: 20px;
        z-index: 1000;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        /* left and width are set by JS to match the column position */
    }
}
.dtf-shield-sidebar-inner h3 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 900;
    color: var(--sh-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dtf-shield-sum-rows {}
.dtf-shield-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 3px 0;
    font-size: 12px;
}
.dtf-shield-sum-row > span:first-child { color: var(--sh-muted); font-weight: 600; }
.dtf-shield-sum-row > span:last-child { font-weight: 700; text-align: right; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sh-black); }

.dtf-shield-sum-line { height: 1px; background: var(--sh-border); margin: 8px 0; }

.dtf-shield-sum-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 10px;
    border-top: 2px solid var(--sh-black);
    margin-top: 8px;
}
.dtf-shield-sum-total strong { font-size: 15px; font-weight: 900; color: var(--sh-black); }
.dtf-shield-sum-total small { font-size: 10px; font-weight: 500; color: var(--sh-muted); }

/* Beta acceptance checkbox */
.dtf-shield-beta-accept-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
    cursor: pointer;
}
.dtf-shield-beta-accept-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 14px; height: 14px;
    accent-color: var(--sh-primary);
    cursor: pointer;
}
.dtf-shield-beta-accept-label strong { color: #ff9800; }

/* Cart button */
.dtf-shield-cart-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sh-primary) 0%, #008f3f 100%);
    color: var(--sh-white);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 157, 69, 0.3);
}
.dtf-shield-cart-btn:hover:not(:disabled) { 
    background: linear-gradient(135deg, #00b34e 0%, var(--sh-primary) 100%);
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(0, 157, 69, 0.4); 
}
.dtf-shield-cart-btn:active:not(:disabled) { transform: scale(0.98); box-shadow: 0 2px 8px rgba(0, 157, 69, 0.2); }
.dtf-shield-cart-btn:disabled { 
    background: #e0e0e0; 
    color: #a0a0a0;
    cursor: not-allowed; 
    transform: none; 
    box-shadow: none;
}

/* Notes in sidebar (before cart button) */
.dtf-shield-sidebar-notes {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sh-border);
    margin-bottom: 0;
}
.dtf-shield-sidebar-notes .dtf-shield-textarea {
    font-size: 12px;
    padding: 6px 10px;
    border-width: 1px;
}

/* Proof note */
.dtf-shield-proof-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--sh-primary-light);
    border-radius: var(--sh-radius-sm);
    border-left: 3px solid var(--sh-primary);
}
.dtf-shield-proof-note svg { flex-shrink: 0; color: var(--sh-primary); margin-top: 1px; width: 14px; height: 14px; }
.dtf-shield-proof-note p { margin: 0; font-size: 11px; line-height: 1.4; color: var(--sh-text); font-weight: 500; }

/* ====== MESSAGES ====== */
.dtf-shield-messages { margin-bottom: 10px; }
.dtf-shield-msg {
    padding: 10px 14px;
    border-radius: var(--sh-radius-sm);
    font-size: 13px;
    font-weight: 600;
    animation: sh-slideDown 0.3s ease;
}
.dtf-shield-msg-error { background: #fff5f5; color: var(--sh-red); border: 1px solid #fed7d7; }
.dtf-shield-msg-success { background: #f0fff4; color: var(--sh-primary); border: 1px solid #c6f6d5; }
@keyframes sh-slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== MODAL (base) ====== */
.dtf-shield-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.dtf-shield-modal-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}
.dtf-shield-modal-box {
    position: relative;
    background: var(--sh-white);
    border-radius: var(--sh-radius);
    max-width: 440px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: sh-modal-in 0.2s ease-out;
}
.dtf-shield-modal-wide {
    max-width: 560px;
}
.dtf-shield-modal-video {
    max-width: 700px;
}
.dtf-shield-yt-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    margin-top: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}
.dtf-shield-yt-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
@keyframes sh-modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dtf-shield-modal-x {
    position: absolute; top: 10px; right: 10px;
    width: 28px; height: 28px;
    border: none; border-radius: 50%;
    background: var(--sh-bg);
    color: var(--sh-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: 0.2s;
}
.dtf-shield-modal-x:hover { background: #ddd; color: var(--sh-black); }
.dtf-shield-modal-box h3 { margin: 0 0 8px; font-size: 16px; font-weight: 900; color: var(--sh-black); }
.dtf-shield-modal-box > p { margin: 0 0 16px; font-size: 13px; color: var(--sh-muted); line-height: 1.5; }

/* ====== TEXTURE MODAL — Compare panels ====== */
.dtf-shield-modal-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) {
    .dtf-shield-modal-compare { grid-template-columns: 1fr; }
}
.dtf-shield-modal-panel {
    border: 2px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    overflow: hidden;
    text-align: center;
    transition: border-color 0.2s;
}
.dtf-shield-modal-panel.dtf-shield-panel-active {
    border-color: var(--sh-primary);
}
.dtf-shield-modal-panel-hdr {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dtf-shield-panel-off {
    background: var(--sh-bg);
    color: var(--sh-muted);
}
.dtf-shield-panel-on {
    background: var(--sh-primary-bg);
    color: var(--sh-primary);
}
.dtf-shield-modal-svg-wrap {
    padding: 12px;
    min-height: 100px;
}
.dtf-shield-modal-svg-wrap svg {
    width: 100%;
    height: auto;
}
.dtf-shield-modal-panel > p,
.dtf-shield-modal-panel-body p {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: var(--sh-text);
    text-align: left;
}
.dtf-shield-modal-panel > p {
    padding: 10px 12px;
    border-top: 1px solid var(--sh-border);
}
.dtf-shield-modal-panel > p strong,
.dtf-shield-modal-panel-body p strong {
    color: var(--sh-black);
}
/* ====== MOBILE BAR ====== */
.dtf-shield-mob-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--sh-white);
    border-top: 2px solid var(--sh-primary);
    padding: 10px 14px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
}
.dtf-shield-mob-info { display: flex; flex-direction: column; gap: 1px; }
.dtf-shield-mob-info span { font-size: 10px; color: var(--sh-muted); font-weight: 600; }
.dtf-shield-mob-info strong { font-size: 16px; font-weight: 900; color: var(--sh-black); }
.dtf-shield-mob-info small { font-size: 9px; color: var(--sh-muted); font-weight: 500; }
.dtf-shield-mob-btn {
    padding: 10px 20px;
    background: var(--sh-primary);
    color: white;
    border: none;
    border-radius: var(--sh-radius-sm);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    text-transform: uppercase;
}
.dtf-shield-mob-btn:hover:not(:disabled) { background: var(--sh-primary-hover); }
.dtf-shield-mob-btn:disabled { background: #ccc; cursor: not-allowed; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1023px) {
    .dtf-shield-sidebar-inner { display: none; }
    .dtf-shield-mob-bar { display: flex; }
    .dtf-shield-form { padding-bottom: 70px; }
}

@media (max-width: 640px) {
    .dtf-shield-card { padding: 12px; }
    .dtf-shield-dims-row { flex-direction: column; gap: 6px; }
    .dtf-shield-dims-x { display: none; }
    .dtf-shield-texture-grid { grid-template-columns: repeat(3, 1fr); }
    .dtf-shield-rc-text small { display: none; }
    .dtf-shield-modal-box { padding: 16px; }
    .dtf-shield-qty-btn { width: 38px; height: 38px; min-width: 38px; }
    .dtf-shield-qty-input { width: 60px; height: 38px; font-size: 15px; }
}

/* Cart qty display (in WC cart page) */
.dtf-shield-cart-qty {
    display: inline-block;
    padding: 3px 8px;
    background: var(--sh-bg);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
}

/* Concept callout — Un diseño, una pieza */
.dtf-shield-concept-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f0faf4;
    border: 1px solid #b8e6cc;
    border-left: 4px solid #009d45;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.dtf-shield-concept-icon {
    flex-shrink: 0;
    color: #009d45;
    margin-top: 1px;
}
.dtf-shield-concept-text strong {
    display: block;
    font-size: 13px;
    color: #1a1a1a;
    margin-bottom: 3px;
}
.dtf-shield-concept-text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #4b5563;
}

/* ====== PROMO BANNER ====== */
.dtf-shield-promo-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    border: 1.5px solid #ffc107;
    border-left: 4px solid #ff9800;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 14px;
    animation: dtf-promo-glow 3s ease-in-out infinite;
}
@keyframes dtf-promo-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
    50% { box-shadow: 0 0 12px 2px rgba(255, 152, 0, 0.15); }
}
.dtf-shield-promo-icon {
    flex-shrink: 0;
    color: #ff9800;
}
.dtf-shield-promo-text strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: #e65100;
    margin-bottom: 2px;
}
.dtf-shield-promo-text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #5d4037;
}
.dtf-shield-promo-code {
    display: inline-block;
    padding: 2px 8px;
    background: #fff;
    border: 1.5px dashed #ff9800;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 900;
    color: #e65100;
    letter-spacing: 1px;
    font-family: monospace;
}
@media (max-width: 640px) {
    .dtf-shield-promo-banner { padding: 12px 14px; gap: 10px; }
    .dtf-shield-promo-text strong { font-size: 14px; }
}

/* ====== PROMO PRICE DISPLAY ====== */
.dtf-shield-price-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
.dtf-shield-price-old {
    font-size: 11px;
    font-weight: 500;
    color: var(--sh-muted);
    text-decoration: line-through;
    display: none;
}
.dtf-shield-price-promo {
    color: #009d45 !important;
    font-weight: 800 !important;
}
.dtf-shield-rc-price s {
    font-size: 11px;
    font-weight: 500;
    color: var(--sh-muted);
    margin-right: 4px;
}
.dtf-shield-total-old {
    font-size: 12px;
    font-weight: 500;
    color: var(--sh-muted);
    margin-right: 4px;
}
.dtf-shield-sum-total .dtf-shield-total-old {
    font-size: 12px;
}

/* ====== GUIDE STEPPER ====== */
.dtf-shield-guide {
    background: var(--sh-white);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--sh-shadow);
}
.dtf-shield-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.dtf-shield-steps::-webkit-scrollbar { display: none; }

/* Step item */
.dtf-shield-step {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
    min-width: 0;
}
.dtf-shield-step:not(.post):hover { background: var(--sh-primary-light); }
.dtf-shield-step.post { cursor: default; opacity: 0.65; }

/* Step number circle */
.dtf-shield-step-num {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid var(--sh-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    background: var(--sh-white);
}
.dtf-shield-step-num span {
    font-size: 13px;
    font-weight: 800;
    color: var(--sh-muted);
    transition: color 0.3s;
}
.dtf-shield-step-num.post {
    border-style: dashed;
    border-color: #ccc;
    color: #aaa;
}

/* Active step */
.dtf-shield-step.active .dtf-shield-step-num {
    border-color: var(--sh-primary);
    box-shadow: 0 0 0 4px var(--sh-primary-ring);
    animation: dtf-step-pulse 2s ease-in-out infinite;
}
.dtf-shield-step.active .dtf-shield-step-num span { color: var(--sh-primary); }

/* Completed step */
.dtf-shield-step.done .dtf-shield-step-num {
    background: var(--sh-primary);
    border-color: var(--sh-primary);
    box-shadow: none;
    animation: none;
}
.dtf-shield-step.done .dtf-shield-step-num span {
    color: white;
    font-size: 0;
}
.dtf-shield-step.done .dtf-shield-step-num::after {
    content: '\2713';
    font-size: 16px;
    font-weight: 900;
    color: white;
}

@keyframes dtf-step-pulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--sh-primary-ring); }
    50% { box-shadow: 0 0 0 8px rgba(0, 157, 69, 0.1); }
}

/* Step body */
.dtf-shield-step-body { min-width: 0; }
.dtf-shield-step-label {
    font-size: 13px;
    font-weight: 900;
    color: var(--sh-black);
    white-space: nowrap;
    line-height: 1.2;
}
.dtf-shield-step.post .dtf-shield-step-label { color: #555; font-weight: 800; }
.dtf-shield-step-hint {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    line-height: 1.3;
    margin-top: 2px;
    font-weight: 600;
}
.dtf-shield-step-hint a {
    color: var(--sh-primary);
    text-decoration: none;
    font-weight: 600;
}
.dtf-shield-step-hint a:hover { text-decoration: underline; }

/* Step connector line */
.dtf-shield-step-line {
    width: 24px;
    height: 2px;
    background: var(--sh-border);
    flex-shrink: 0;
    margin: 0 2px;
    align-self: center;
    margin-top: -10px;
}
.dtf-shield-step-line.post { background: #ddd; border-style: dashed; }
.dtf-shield-step.done + .dtf-shield-step-line { background: var(--sh-primary); }

/* Pre/post separator */
.dtf-shield-step-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 6px;
    color: #ccc;
    align-self: center;
    margin-top: -10px;
}

/* Video CTA button */
.dtf-shield-guide-video {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(0, 157, 69, 0.06) 0%, rgba(0, 157, 69, 0.14) 100%);
    border: 1px solid rgba(0, 157, 69, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    color: var(--sh-primary);
    font-weight: 700;
    font-size: 13px;
}
.dtf-shield-guide-video:hover {
    background: linear-gradient(135deg, rgba(0, 157, 69, 0.1) 0%, rgba(0, 157, 69, 0.2) 100%);
    border-color: rgba(0, 157, 69, 0.35);
}
.dtf-shield-guide-video svg { flex-shrink: 0; }

/* Mobile progress bar */
.dtf-shield-mobile-progress {
    display: none;
    margin-top: 12px;
    padding: 10px 0 0;
    border-top: 1px solid var(--sh-border);
}
.dtf-shield-mp-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--sh-black);
    margin-bottom: 6px;
}
.dtf-shield-mp-bar {
    height: 4px;
    background: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}
.dtf-shield-mp-fill {
    height: 100%;
    background: var(--sh-primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Floating video button (mobile) */
.dtf-shield-video-float {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 9998;
    background: var(--sh-primary);
    color: white;
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 157, 69, 0.4);
    cursor: pointer;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    animation: dtf-float-pulse 2.5s ease-in-out infinite;
}
.dtf-shield-float-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 0 0 0 4px;
    line-height: 1;
}
.dtf-shield-float-close:hover { color: white; }

@keyframes dtf-float-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(0, 157, 69, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(0, 157, 69, 0.6); }
}

/* Texture notice (1 textura por escudo) */
.dtf-shield-texture-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-left: 3px solid #ff9800;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.5;
    color: #5d4037;
}
.dtf-shield-texture-notice svg {
    flex-shrink: 0;
    color: #f57c00;
    margin-top: 1px;
}
.dtf-shield-texture-notice strong {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
    color: #e65100;
}
.dtf-shield-texture-notice p { margin: 0; }

/* Describe your shield card */
.dtf-shield-describe-card {
    border: 2px solid var(--sh-primary);
    background: linear-gradient(180deg, #f0faf4 0%, var(--sh-white) 100%);
}
.dtf-shield-describe-card .dtf-shield-card-title h3 {
    color: var(--sh-primary);
    font-size: 14px;
}
.dtf-shield-describe-hint {
    font-size: 12px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
}
.dtf-shield-describe-card .dtf-shield-textarea {
    font-size: 13px;
    padding: 10px 12px;
    border-width: 2px;
    border-color: var(--sh-primary);
}
.dtf-shield-describe-card .dtf-shield-textarea:focus {
    box-shadow: 0 0 0 3px var(--sh-primary-ring);
}

/* ====== RESPONSIVE: GUIDE ====== */
@media (max-width: 1023px) {
    .dtf-shield-steps { display: none; }
    .dtf-shield-mobile-progress { display: block; }
    .dtf-shield-guide-video { font-size: 12px; padding: 8px 14px; }
    .dtf-shield-video-float { display: flex; }
}
@media (min-width: 1024px) {
    .dtf-shield-video-float { display: none !important; }
}
@media (max-width: 640px) {
    .dtf-shield-guide { padding: 14px 16px; }
}

/* =====================================================================
 * UX guiada — botón siempre activo + tick verde + halo guía + msg-guide
 * No usa rojo: tono empático para no romper conversión.
 * ===================================================================== */

/* Tick verde en cards completadas */
.dtf-shield-card { position: relative; }
.dtf-shield-card.dtf-shield-card-complete::after {
    content: "\2713";  /* ✓ */
    position: absolute;
    top: 14px;
    right: 14px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: var(--sh-primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 157, 69, 0.35);
    animation: dtf-shield-tick-pop 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes dtf-shield-tick-pop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Halo verde guía sobre el campo/card a completar (sin rojo) */
.dtf-shield-field-highlight {
    box-shadow: 0 0 0 4px rgba(0, 157, 69, 0.30), 0 6px 16px rgba(0, 157, 69, 0.18) !important;
    border-color: var(--sh-primary) !important;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    animation: dtf-shield-pulse-guide 1.4s ease-out 2;
}
@keyframes dtf-shield-pulse-guide {
    0%, 100% { box-shadow: 0 0 0 4px rgba(0, 157, 69, 0.30), 0 6px 16px rgba(0, 157, 69, 0.18); }
    50%      { box-shadow: 0 0 0 10px rgba(0, 157, 69, 0.10), 0 8px 22px rgba(0, 157, 69, 0.10); }
}

/* Mensaje tipo "guía" — verde marca, no rojo */
.dtf-shield-msg-guide {
    background: #f0fff4;
    color: var(--sh-primary);
    border: 1px solid #c6f6d5;
    font-weight: 600;
}

/* Botón con estados adaptativos (siempre clickable, nunca disabled) */
.dtf-shield-cart-btn[data-shield-state="start"] {
    background: linear-gradient(135deg, #b8d8bd 0%, #9cc5a3 100%);
    color: #ffffff;
    cursor: pointer;
}
.dtf-shield-cart-btn[data-shield-state="start"]:hover {
    background: linear-gradient(135deg, #9cc5a3 0%, #82b48b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 157, 69, 0.18);
}
.dtf-shield-cart-btn[data-shield-state="almost"] {
    background: linear-gradient(135deg, #00b34e 0%, var(--sh-primary) 100%);
    color: #ffffff;
    cursor: pointer;
    animation: dtf-shield-btn-pulse 2.4s ease-in-out infinite;
}
.dtf-shield-cart-btn[data-shield-state="ready"] {
    background: linear-gradient(135deg, var(--sh-primary) 0%, #00b34e 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 157, 69, 0.40);
    cursor: pointer;
}
@keyframes dtf-shield-btn-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(0, 157, 69, 0.30); }
    50%      { box-shadow: 0 6px 22px rgba(0, 157, 69, 0.50); }
}

/* Mobile button — mismo patrón */
.dtf-shield-mob-btn[data-shield-state="start"]  { background: #9cc5a3; color: #fff; cursor: pointer; }
.dtf-shield-mob-btn[data-shield-state="almost"] { background: #00b34e; color: #fff; cursor: pointer; }
.dtf-shield-mob-btn[data-shield-state="ready"]  { background: var(--sh-primary); color: #fff; cursor: pointer; }

/* Override del estilo :disabled antiguo por si quedó algún caso */
.dtf-shield-cart-btn:disabled,
.dtf-shield-mob-btn:disabled {
    cursor: pointer;
    opacity: 1;
}

/* ----------------------------------------------------------------------
 * Shield single product: ocultar form.cart estándar de WooCommerce.
 * El plugin remueve woocommerce_template_single_add_to_cart (priority 30)
 * pero algunos themes Elementor renderizan el form vía template propio
 * sin pasar por ese hook. Este CSS es el fallback robusto.
 * Solo afecta a productos con .dtf-shield-container presente.
 * ---------------------------------------------------------------------- */
body:has(.dtf-shield-container) form.cart:not(.dtf-shield-cart-form) { display: none !important; }
body:has(.dtf-shield-container) .summary > form.cart { display: none !important; }
