/* DIPAYUDA - Promo coupons on the store page: modern coupon cards, horizontal scroll when there are many */
.coupon-wrap{margin:10px 0}
.coupon-head{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.coupon-head h3{margin:0;font-size:13px;font-weight:700;color:#173b4f}
.coupon-count{font-size:11.5px;font-weight:700;color:var(--green,#087760);background:var(--tint,#f4faf8);border:1px solid var(--tint-line,#e2eee9);border-radius:999px;padding:2px 9px}
.coupon-nav{margin-left:auto;display:none;gap:6px}
.coupon-wrap.is-scroll .coupon-nav{display:flex}
.coupon-nav button{width:26px;height:26px;border-radius:50%;border:1px solid #d8e5e1;background:#fff;color:#35574f;display:grid;place-items:center;padding:0;cursor:pointer;transition:.15s}
.coupon-nav button:hover:not(:disabled){background:var(--green,#087760);border-color:var(--green,#087760);color:#fff}
.coupon-nav button:disabled{opacity:.35;cursor:default}
.coupon-nav svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.coupon-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:4px 2px 8px;margin:0 -2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.coupon-track::-webkit-scrollbar{display:none}

.coupon{--cp:var(--green,#087760);position:relative;flex:0 0 268px;max-width:100%;display:flex;scroll-snap-align:start;background:#fff;border:1px solid #dbe8e4;border-radius:10px;box-shadow:0 1px 5px rgba(8,60,48,.05);transition:box-shadow .2s,transform .2s}
.coupon:hover{box-shadow:0 4px 12px rgba(8,60,48,.1)}
.coupon-stub{flex:0 0 76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:8px 6px;color:#fff;text-align:center;border-radius:9px 0 0 9px;background:linear-gradient(155deg,#0b8c72 0%,#087760 55%,#05604c 100%);position:relative;overflow:hidden}
.coupon-stub:before{content:"";position:absolute;right:-26px;top:-26px;width:80px;height:80px;border-radius:50%;background:rgba(255,255,255,.1)}
.coupon-stub:after{content:"";position:absolute;left:-30px;bottom:-34px;width:90px;height:90px;border-radius:50%;background:rgba(255,255,255,.07)}
.coupon-stub small{position:relative;z-index:1;font-size:8.5px;font-weight:700;letter-spacing:1px;opacity:.85;text-transform:uppercase}
.coupon-stub strong{position:relative;z-index:1;font-size:18px;line-height:1.05;font-weight:800;letter-spacing:-.5px}
.coupon-stub strong.is-sm{font-size:14px}
.coupon-stub strong.is-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* tear line + coupon notches */
.coupon-cut{position:relative;flex:0 0 0;border-left:2px dashed #cfe0da;margin:8px 0}
.coupon-cut:before,.coupon-cut:after{content:"";position:absolute;left:-7px;width:12px;height:12px;border-radius:50%;background:var(--bg,#f5f9f8);border:1px solid #dbe8e4}
.coupon-cut:before{top:-15px;clip-path:inset(50% 0 0 0)}
.coupon-cut:after{bottom:-15px;clip-path:inset(0 0 50% 0)}
.coupon-body{flex:1;min-width:0;padding:8px 11px;display:flex;flex-direction:column;gap:2px;justify-content:center}
.coupon-body h4{margin:0;font-size:12.5px;font-weight:700;color:#173b4f;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.coupon-desc{margin:0;font-size:11.5px;color:#4b685f;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.coupon-foot{margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;padding-top:2px}
.coupon-chip{display:inline-flex;align-items:center;font-size:10px;font-weight:700;color:var(--green,#087760);background:var(--tint,#f4faf8);border:1px solid var(--tint-line,#e2eee9);border-radius:999px;padding:1px 6px}
.coupon-date{display:inline-flex;align-items:center;gap:3px;font-size:10.5px;font-weight:600;color:#6b7f78}
.coupon-date svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

@media(max-width:640px){
  .coupon{flex-basis:82%}
  .coupon-nav{display:none!important}
}

/* Promo info on the product page: compact, information only */
.detail-promo-box{display:flex!important;flex-wrap:wrap;gap:6px!important;margin:8px 0 10px!important}
.detail-promo-item{display:inline-flex!important;align-items:center;gap:7px!important;padding:5px 10px 5px 6px!important;border:1px solid #f3cdbd!important;border-style:solid!important;background:#fff8f4!important;border-radius:999px!important;max-width:100%}
.detail-promo-item .promo-badge{flex:0 0 20px!important;width:20px;height:20px!important;border-radius:50%!important;font-size:11px!important;background:#ffe4d9;color:#c2410c}
.detail-promo-item>div{min-width:0;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.detail-promo-item b{display:inline!important;font-size:12px!important;color:#7c2d12}
.detail-promo-item small{display:inline!important;font-size:11px!important;color:#9a5b45}

/* Product variants: modern choice cards */
.variants{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px!important;margin:8px 0 20px!important}
.variants button{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-height:52px;padding:10px 34px 10px 13px!important;border:1.5px solid #dbe8e4!important;border-radius:12px!important;background:#fff!important;color:#24423b!important;font-size:13px!important;font-weight:600;line-height:1.25;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s,transform .15s}
.variants button:hover{border-color:#9fcdc0!important;box-shadow:0 3px 10px rgba(8,60,48,.08);transform:translateY(-1px)}
.variants button small{display:block;font-size:11.5px!important;font-weight:700;color:#6b7f78!important;opacity:1!important}
.variants button:after{content:"";position:absolute;right:10px;top:50%;width:18px;height:18px;margin-top:-9px;border-radius:50%;border:1.5px solid #cfdcd7;background:#fff;transition:.15s}
.variants button.active{border-color:var(--green,#087760)!important;background:linear-gradient(180deg,#f2faf7,#e8f6f1)!important;color:#065a49!important;box-shadow:0 0 0 3px rgba(8,119,96,.12),0 3px 10px rgba(8,119,96,.1)}
.variants button.active small{color:var(--green,#087760)!important}
.variants button.active:after{border-color:var(--green,#087760);background:var(--green,#087760) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat}
@media(max-width:640px){.variants{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Product action buttons + variant & quantity confirmation modal */
.detail-order{display:flex!important;flex-wrap:wrap;gap:10px!important}
.detail-order .detail-cart-btn,.detail-order .detail-buy-btn{flex:1 1 150px;min-width:0;justify-content:center;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;height:44px}
.detail-order .detail-cart-btn .ico,.detail-order .detail-buy-btn .ico{width:16px;height:16px;margin:0}
.detail-order .detail-cart-btn svg,.detail-order .detail-buy-btn svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.detail-cart-btn.is-added{background:var(--tint,#f4faf8)!important;border-color:var(--green,#087760)!important;color:var(--green,#087760)!important}
.order-modal-card{width:min(440px,100%)}
.order-modal-body{padding-top:14px}
.om-product{display:flex;gap:12px;align-items:center;padding-bottom:14px;border-bottom:1px solid #edf2f0}
.om-product img{width:64px;height:64px;border-radius:10px;object-fit:cover;background:var(--tint,#f4faf8);flex:0 0 64px}
.om-product b{display:block;font-size:14px;color:#173b4f;line-height:1.3}
.om-product .om-price{display:block;font-size:15px;font-weight:800;color:#c2410c;margin-top:2px}
.om-product small{display:block;font-size:11.5px;color:#6b7f78;margin-top:1px}
.om-label{font-size:12.5px;font-weight:600;color:#35574f;margin:14px 0 6px}
.order-modal-body .variants{margin:0!important}
.om-qty-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.om-total{text-align:right}
.om-total small{display:block;font-size:11.5px;color:#6b7f78}
.om-total b{font-size:17px;color:#087760}
.order-modal-card .profile-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;padding-top:12px;border-top:1px solid #edf2f0}
