/* DZQCOD v3 Frontend */
.dzqcod-quick-order{max-width:480px;margin:0 auto;padding:16px;font-family:Arial,Tahoma,sans-serif;direction:rtl;background:var(--cbg,#fff);color:var(--ct,#333);border-radius:var(--r,12px)}
.dzqcod-price-block{text-align:center;padding:18px;background:linear-gradient(135deg,var(--c1,#667eea),var(--c2,#764ba2));border-radius:var(--r,12px);color:#fff;margin-bottom:16px;position:relative;overflow:hidden}
.dzqcod-price-block::after{content:'';position:absolute;top:-50%;right:-50%;width:100%;height:100%;background:radial-gradient(circle,rgba(255,255,255,.1) 0%,transparent 70%);pointer-events:none}
.dzqcod-img{max-width:180px;border-radius:10px;margin-bottom:8px;box-shadow:0 4px 15px rgba(0,0,0,.2)}
.dzqcod-pname{font-size:18px;font-weight:700;margin-bottom:4px}.dzqcod-pdesc{font-size:12px;opacity:.85;margin-bottom:6px}
.dzqcod-old{font-size:14px;opacity:.7;margin-left:8px}.dzqcod-discount{background:rgba(255,255,255,.25);padding:2px 8px;border-radius:10px;font-size:12px;font-weight:700}
.dzqcod-cprice{font-size:28px;font-weight:900;display:block;margin-top:4px}
.dzqcod-tiers{margin-bottom:16px;text-align:center}.dzqcod-tiers-hd{font-weight:700;font-size:14px;margin-bottom:8px;color:var(--c1,#667eea)}
.dzqcod-tiers-row{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.dzqcod-tier{padding:8px 12px;border:2px solid #e0e0e0;border-radius:var(--r,12px);background:#fff;cursor:pointer;min-width:85px;text-align:center;transition:all .2s;font-family:inherit}
.dzqcod-tier:hover{border-color:var(--c1,#667eea);transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.08)}
.dzqcod-tier.active{border-color:var(--c1,#667eea);background:color-mix(in srgb,var(--c1,#667eea) 8%,#fff);box-shadow:0 2px 8px rgba(0,0,0,.1)}
.dzqcod-tier strong{display:block;font-size:14px}.dzqcod-tier span{display:block;font-size:14px;font-weight:700;color:var(--c1,#667eea)}
.dzqcod-tier small{display:block;font-size:11px;color:#27ae60;font-weight:700}.dzqcod-tier em{display:block;font-size:10px;color:#f39c12;font-style:normal}
.dzqcod-field{margin-bottom:12px}.dzqcod-field label{display:block;font-weight:600;font-size:14px;margin-bottom:4px}
.dzqcod-field input,.dzqcod-field select,.dzqcod-field textarea{width:100%;padding:12px;border:2px solid #e0e0e0;border-radius:var(--r,12px);font-size:15px;font-family:inherit;box-sizing:border-box;transition:border-color .2s,box-shadow .2s}
.dzqcod-field input:focus,.dzqcod-field select:focus,.dzqcod-field textarea:focus{border-color:var(--c1,#667eea);outline:none;box-shadow:0 0 0 3px rgba(102,126,234,.15)}
.dzqcod-field input.error,.dzqcod-field select.error{border-color:#e74c3c;animation:shake .3s}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.dzqcod-phone-wrap{display:flex;gap:8px}.dzqcod-pfix{background:#f0f0f0;padding:12px;border-radius:var(--r,12px);font-weight:700;font-size:13px;white-space:nowrap;border:2px solid #e0e0e0}
.dzqcod-phone-wrap input{flex:1}
.dzqcod-qty-wrap{display:flex;max-width:150px}.dzqcod-qb{width:44px;height:44px;border:2px solid #e0e0e0;background:#fff;font-size:20px;cursor:pointer;border-radius:var(--r,12px);transition:all .15s;font-family:inherit}
.dzqcod-qb:hover{background:var(--c1,#667eea);color:#fff;border-color:var(--c1)}
.dzqcod-qty-wrap input[type=number]{width:52px;text-align:center;border:2px solid #e0e0e0;border-left:none;border-right:none;font-size:16px;font-weight:700;-moz-appearance:textfield}
.dzqcod-qty-wrap input::-webkit-inner-spin-button{-webkit-appearance:none}
.dzqcod-qty-hint{font-size:12px;color:var(--c1,#667eea);font-weight:600;margin-top:4px}
.dzqcod-breakdown{background:var(--gbg,#f8f9fa);border-radius:var(--r,12px);padding:14px;margin-bottom:14px;border:2px solid var(--fbd,#eee)}
.bk-r{display:flex;justify-content:space-between;padding:4px 0;font-size:13px}.bk-total{border-top:2px solid var(--fbd,#ddd);margin-top:8px;padding-top:10px;font-size:22px;font-weight:900}.bk-tot{font-size:22px;font-weight:900}
.dzqcod-submit{display:block;width:100%;padding:16px;background:linear-gradient(135deg,var(--cg,#27ae60),#2ecc71);color:var(--cbt,#fff);border:none;border-radius:var(--r,12px);font-size:18px;font-weight:800;cursor:pointer;font-family:inherit;transition:all .2s;position:relative;overflow:hidden}
.dzqcod-submit:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(39,174,96,.35)}
.dzqcod-submit:disabled{opacity:.6;cursor:not-allowed;transform:none}
.dzqcod-submit::after{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);animation:shimmer 2s infinite}
@keyframes shimmer{to{left:100%}}
.dzqcod-wa{display:block;text-align:center;padding:12px;background:#25D366;color:#fff!important;border-radius:var(--r,12px);text-decoration:none!important;font-weight:700;font-size:14px;margin-top:8px;transition:all .15s}
.dzqcod-wa:hover{opacity:.9;transform:translateY(-1px)}
.dzqcod-trust{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:12px}
.dzqcod-trust span{background:#f0f9f4;padding:6px 12px;border-radius:20px;font-size:12px;color:var(--cg,#27ae60);font-weight:600}
.dzqcod-msg{padding:14px;border-radius:var(--r,12px);margin-top:12px;font-weight:600;text-align:center;animation:fadeIn .3s}
@keyframes fadeIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1}}
.dzqcod-msg.success{background:#d4edda;color:#155724}.dzqcod-msg.error{background:#f8d7da;color:#721c24}
/* Badge */
.dzqcod-badge{background:linear-gradient(135deg,#f39c12,#e74c3c);color:#fff;text-align:center;padding:6px 14px;border-radius:var(--r,12px) var(--r,12px) 0 0;font-weight:800;font-size:13px;letter-spacing:0.5px}
/* Countdown */
.dzqcod-countdown{background:rgba(0,0,0,.2);border-radius:8px;padding:8px;margin-top:8px;display:flex;justify-content:center;align-items:center;gap:8px;font-size:13px}
.cd-timer{font-weight:900;font-size:16px;font-family:monospace}
/* Stock */
.dzqcod-stock{font-size:12px;font-weight:700;margin-top:6px;padding:4px 10px;background:rgba(255,255,255,.15);border-radius:6px;display:inline-block}
/* Digital tag */
.dzqcod-digital-tag{display:inline-block;background:rgba(255,255,255,.2);padding:3px 10px;border-radius:12px;font-size:11px;font-weight:700;margin-bottom:6px}
.dzqcod-digital-notice{background:#e3f2fd;color:#1565c0;padding:10px;border-radius:var(--r,12px);text-align:center;font-weight:600;font-size:13px;margin-bottom:10px}
/* Color/Size variants */
.dzqcod-variants{display:flex;flex-wrap:wrap;gap:6px}
.dzqcod-vbtn{padding:8px 16px;border:2px solid #e0e0e0;border-radius:var(--r,12px);background:#fff;cursor:pointer;font-size:13px;font-weight:600;font-family:inherit;transition:all .15s}
.dzqcod-vbtn:hover{border-color:var(--c1,#667eea);transform:translateY(-1px)}
.dzqcod-vbtn.active{border-color:var(--c1,#667eea);background:color-mix(in srgb,var(--c1,#667eea) 10%,#fff);box-shadow:0 2px 6px rgba(0,0,0,.1)}
/* Payment choice */
.dzqcod-pay-choice{display:flex;gap:8px;margin-bottom:12px}.dzqcod-pay-opt{flex:1;padding:10px;border:2px solid #e0e0e0;border-radius:var(--r,12px);cursor:pointer;text-align:center;font-size:13px;font-weight:600;transition:all .15s}
.dzqcod-pay-opt:hover{border-color:var(--c1,#667eea)}.dzqcod-pay-opt.active{border-color:var(--c1,#667eea);background:color-mix(in srgb,var(--c1,#667eea) 8%,#fff)}
.dzqcod-pay-opt input{display:none}.dzqcod-pay-opt span{display:block}
/* Upsell/Bump */
.dzqcod-upsells{margin:10px 0;padding:10px;background:#f8f9fa;border-radius:var(--r,12px)}
.dzqcod-bump-item:hover{border-color:var(--c1,#667eea);background:#f0f4ff}
.dzqcod-bump-item input:checked+*{font-weight:700}
.dzqcod-bump-item input:checked~div{color:var(--c1,#667eea)}
/* Loyalty */
.dzqcod-loyalty-badge{animation:fadeIn .3s}
/* Custom Product Builder */
.dzqcod-custom-builder{border:2px dashed #e0e0e0;border-radius:var(--r,12px);padding:12px;margin:10px 0;background:#fafafa}
.dzqcod-section-title{font-weight:800;font-size:14px;color:var(--c1,#667eea);margin:10px 0 6px;padding-bottom:4px;border-bottom:2px solid #f0f0f0}
.dzqcod-opt-check{display:flex;align-items:center;gap:8px;cursor:pointer;padding:8px;border:1px solid #e0e0e0;border-radius:8px;transition:.15s}
.dzqcod-opt-check:hover{border-color:var(--c1,#667eea);background:#f8f8ff}
.dzqcod-opt-check input:checked+span{font-weight:700;color:var(--c1,#667eea)}
.dzqcod-opt-price{color:#e74c3c;font-size:12px;margin-right:auto}
/* Price Calculator */
.dzqcod-calc-box{background:linear-gradient(135deg,#f8f9fa,#e8ecf1);border-radius:var(--r,12px);padding:12px;margin:10px 0}
.dzqcod-calc-title{font-weight:800;font-size:14px;text-align:center;margin-bottom:8px}
.dzqcod-calc-row{display:flex;justify-content:space-between;padding:4px 8px;font-size:13px}
.dzqcod-calc-total{font-size:16px;padding:8px;border-top:2px solid #333;margin-top:6px}
/* File upload */
.dzqcod-file-item{display:flex;align-items:center;gap:6px;padding:6px;background:#fff;border:1px solid #e0e0e0;border-radius:6px;margin-bottom:4px;font-size:12px}
.dzqcod-file-item .dzqcod-file-rm{color:#e74c3c;cursor:pointer;font-weight:700;margin-right:auto}
@media(max-width:480px){.dzqcod-quick-order{padding:12px}.dzqcod-cprice{font-size:24px}.dzqcod-submit{font-size:16px;padding:14px}}
/* Delivery Type Toggle */
.dzqcod-del-toggle{display:flex;gap:8px;margin-top:4px}
.dzqcod-del-btn{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 8px;border:2px solid #e0e0e0;border-radius:var(--r,12px);background:#fff;cursor:pointer;transition:.2s;text-align:center}
.dzqcod-del-btn:hover{border-color:var(--c1,#667eea);background:#f8f8ff}
.dzqcod-del-btn.active{border-color:var(--c1,#667eea);background:rgba(102,126,234,.08);box-shadow:0 0 0 3px rgba(102,126,234,.15)}
.dzqcod-del-btn strong{font-size:13px}
.dzqcod-del-btn small{font-size:10px;color:#999}
