.qnyads-wrap{--qnyads-orange:#ee4d2d;--qnyads-lazada:#462ff0;--qnyads-border:#e8e8e8;--qnyads-text:#161616;--qnyads-muted:#666;position:relative;width:100%;box-sizing:border-box;margin:18px 0;font-family:inherit}.qnyads-wrap *{box-sizing:border-box}.qnyads-viewport{position:relative;overflow:hidden;width:100%}.qnyads-track{display:flex;width:100%;transition:transform .35s ease}.qnyads-slide{flex:0 0 100%;width:100%;display:none}.qnyads-slide.is-active{display:block}.qnyads-transition-slide .qnyads-slide{display:block}.qnyads-card{position:relative;background:#fff;border:1px solid var(--qnyads-border);border-radius:14px;box-shadow:0 10px 30px rgba(15,23,42,.04);overflow:hidden;color:var(--qnyads-text)}.qnyads-card a{text-decoration:none}.qnyads-template-banner .qnyads-card{display:grid;grid-template-columns:128px minmax(0,1fr);gap:22px;align-items:center;padding:20px 28px}.qnyads-template-card .qnyads-card{display:flex;flex-direction:column}.qnyads-template-compact .qnyads-card{display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;align-items:center;padding:13px 16px;border-radius:12px}.qnyads-template-minimal .qnyads-card{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:10px;box-shadow:none}.qnyads-image-link{position:relative;display:block;color:inherit}.qnyads-image{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;background:#fff;overflow:hidden;border-radius:4px}.qnyads-template-card .qnyads-image{border-radius:14px 14px 0 0}.qnyads-template-banner .qnyads-image,.qnyads-template-compact .qnyads-image,.qnyads-template-minimal .qnyads-image{border-radius:4px}.qnyads-image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:top center;background:#fff;transition:opacity .25s ease, transform .35s ease}.qnyads-image.is-changing img{opacity:.25}.qnyads-image-effect-zoom .qnyads-image img{transform:scale(1.01)}.qnyads-image-effect-zoom .qnyads-image.is-changing img{transform:scale(1.06);opacity:.45}.qnyads-no-image{font-size:12px;color:#888}.qnyads-body{min-width:0}.qnyads-title{margin:0 0 12px;font-size:20px;line-height:1.35;font-weight:700;color:#33a5ff}.qnyads-title-link{color:#33a5ff!important}.qnyads-title-link:hover{text-decoration:underline}.qnyads-category{display:inline-flex;align-items:center;min-height:24px;margin:0 0 10px;padding:4px 10px;border-radius:999px;background:#fff0ee;color:#ff6652;font-size:12px;font-weight:700;border:1px solid #ffd5cf}.qnyads-price{display:flex;align-items:center;gap:6px;margin:0 0 10px;font-size:16px;color:#111}.qnyads-price strong{color:#ff2338;font-size:20px}.qnyads-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.qnyads-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 18px;border-radius:7px;font-size:14px;font-weight:800;line-height:1.15;text-align:center;white-space:nowrap;border:1px solid transparent;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}.qnyads-btn:hover{transform:translateY(-1px);filter:brightness(1.02)}.qnyads-detail{background:#fff;color:#222!important;border-color:#d9dde4}.qnyads-shopee{background:var(--qnyads-orange);color:#fff!important;border-color:var(--qnyads-orange);box-shadow:0 8px 18px rgba(238,77,45,.18)}.qnyads-lazada{background:linear-gradient(135deg,#3125e8,#7629d4 58%,#f57224);color:#fff!important;border-color:#462ff0;box-shadow:0 8px 18px rgba(70,47,240,.18)}.qnyads-badges{position:absolute;z-index:5;display:flex;gap:5px;flex-wrap:wrap;padding:8px;max-width:95%;pointer-events:none}.qnyads-badge-pos-top-left .qnyads-badges{top:0;left:0}.qnyads-badge-pos-top-right .qnyads-badges{top:0;right:0;justify-content:flex-end}.qnyads-badge-pos-bottom-left .qnyads-badges{bottom:0;left:0}.qnyads-badge-pos-bottom-right .qnyads-badges{bottom:0;right:0;justify-content:flex-end}.qnyads-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:5px;background:#8e44ad;color:#fff;font-size:11px;font-weight:800;line-height:1}.qnyads-badge:nth-child(2){background:#f7941d}.qnyads-badge:nth-child(3){background:#ee4d2d}.qnyads-badge-ribbon .qnyads-badge{border-radius:0 8px 8px 0;padding:6px 10px}.qnyads-badge-corner .qnyads-badges{padding:0}.qnyads-badge-corner .qnyads-badge{border-radius:0 0 8px 0}.qnyads-badge-minimal .qnyads-badge{background:rgba(0,0,0,.68);backdrop-filter:blur(4px);border-radius:999px}.qnyads-badge-neon .qnyads-badge{box-shadow:0 0 10px currentColor;border:1px solid rgba(255,255,255,.5)}.qnyads-arrow{position:absolute;top:50%;z-index:8;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 6px 18px rgba(0,0,0,.16);cursor:pointer;font-size:24px;line-height:1;color:#222;display:flex;align-items:center;justify-content:center}.qnyads-prev{left:8px}.qnyads-next{right:8px}.qnyads-dots{display:flex;justify-content:center;gap:8px;margin-top:10px}.qnyads-dot{width:9px;height:9px;border:0;border-radius:999px;background:#cfd3da;cursor:pointer;padding:0}.qnyads-dot.is-active{background:#ee4d2d;width:22px}.qnyads-empty{border:1px dashed #ccd0d4;background:#fff;padding:14px;border-radius:8px;color:#666}.qnyads-transition-fade .qnyads-slide{opacity:0;transition:opacity .25s ease}.qnyads-transition-fade .qnyads-slide.is-active{opacity:1}.qnyads-transition-none .qnyads-track{transition:none}.qnyads-template-card .qnyads-body{padding:14px 16px 16px}.qnyads-template-card .qnyads-actions{flex-direction:column;align-items:stretch}.qnyads-template-card .qnyads-btn{width:100%}.qnyads-template-compact .qnyads-title{font-size:16px;margin-bottom:8px}.qnyads-template-compact .qnyads-price{margin-bottom:8px}.qnyads-template-compact .qnyads-btn{min-height:38px;padding:8px 14px}.qnyads-template-minimal .qnyads-image-link{width:72px;flex:0 0 72px}.qnyads-template-minimal .qnyads-title{font-size:15px;margin:0 0 6px}.qnyads-template-minimal .qnyads-category{display:none}.qnyads-template-minimal .qnyads-price{font-size:14px;margin:0}.qnyads-template-minimal .qnyads-actions{margin-left:auto}.qnyads-template-minimal .qnyads-btn{min-height:36px;padding:8px 13px}
@media(max-width:640px){.qnyads-template-banner .qnyads-card{grid-template-columns:86px minmax(0,1fr);gap:14px;padding:14px 16px}.qnyads-title{font-size:16px;margin-bottom:8px}.qnyads-category{font-size:11px;margin-bottom:7px}.qnyads-price{font-size:14px;margin-bottom:8px}.qnyads-price strong{font-size:17px}.qnyads-actions{gap:8px}.qnyads-btn{min-height:38px;padding:8px 12px;font-size:13px}.qnyads-arrow{width:30px;height:30px;font-size:21px}.qnyads-template-minimal .qnyads-actions{margin-left:0}.qnyads-template-minimal .qnyads-card{align-items:flex-start}}
@media(max-width:430px){.qnyads-template-banner .qnyads-card{grid-template-columns:74px minmax(0,1fr);gap:12px;padding:12px}.qnyads-title{font-size:15px}.qnyads-actions{flex-direction:column;align-items:stretch}.qnyads-btn{width:100%}.qnyads-badges{padding:5px}.qnyads-badge{font-size:10px;padding:4px 6px}}

/* v1.0.3 - Responsive templates + image column size/ratio */
.qnyads-wrap{
  --qnyads-img-desktop:160px;
  --qnyads-img-tablet:130px;
  --qnyads-img-mobile:100%;
  --qnyads-ratio-desktop:1 / 1;
  --qnyads-ratio-tablet:1 / 1;
  --qnyads-ratio-mobile:1 / 1;
  --qnyads-object-fit:contain;
  --qnyads-object-position:top center;
}
.qnyads-template-banner .qnyads-card{
  grid-template-columns:var(--qnyads-img-desktop) minmax(0,1fr) !important;
}
.qnyads-template-compact .qnyads-card{
  grid-template-columns:min(var(--qnyads-img-desktop),110px) minmax(0,1fr) !important;
}
.qnyads-image{aspect-ratio:var(--qnyads-ratio-desktop) !important;}
.qnyads-image img{
  object-fit:var(--qnyads-object-fit) !important;
  object-position:var(--qnyads-object-position) !important;
}
.qnyads-template-card .qnyads-card{
  display:flex !important;
  flex-direction:column !important;
  padding:0 !important;
}
.qnyads-template-card .qnyads-body{padding:14px 16px 16px !important;}
.qnyads-template-card .qnyads-actions{display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:10px !important;}
.qnyads-template-card .qnyads-btn{width:100% !important;}

@media(max-width:782px){
  .qnyads-image{aspect-ratio:var(--qnyads-ratio-tablet) !important;}
  .qnyads-tablet-template-banner .qnyads-card,
  .qnyads-tablet-template-auto.qnyads-template-banner .qnyads-card{
    display:grid !important;
    grid-template-columns:var(--qnyads-img-tablet) minmax(0,1fr) !important;
    gap:16px !important;
    align-items:center !important;
    padding:16px !important;
  }
  .qnyads-tablet-template-card .qnyads-card{
    display:flex !important;
    flex-direction:column !important;
    padding:0 !important;
  }
  .qnyads-tablet-template-card .qnyads-body{padding:14px 16px 16px !important;}
  .qnyads-tablet-template-card .qnyads-actions{flex-direction:column !important;align-items:stretch !important;gap:10px !important;}
  .qnyads-tablet-template-card .qnyads-btn{width:100% !important;}
  .qnyads-tablet-template-compact .qnyads-card{
    display:grid !important;
    grid-template-columns:min(var(--qnyads-img-tablet),96px) minmax(0,1fr) !important;
    gap:12px !important;
    padding:13px 15px !important;
  }
  .qnyads-tablet-template-minimal .qnyads-card{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    padding:11px 13px !important;
    box-shadow:none !important;
  }
}

@media(max-width:640px){
  .qnyads-image{aspect-ratio:var(--qnyads-ratio-mobile) !important;}
  .qnyads-mobile-template-card .qnyads-card,
  .qnyads-tablet-template-auto .qnyads-card{
    display:flex !important;
    flex-direction:column !important;
    padding:0 !important;
  }
  .qnyads-mobile-template-card .qnyads-image-link,
  .qnyads-tablet-template-auto .qnyads-image-link{
    width:var(--qnyads-img-mobile) !important;
    max-width:100% !important;
    margin:0 auto !important;
  }
  .qnyads-mobile-template-card .qnyads-image,
  .qnyads-tablet-template-auto .qnyads-image{
    width:100% !important;
    border-radius:14px 14px 0 0 !important;
  }
  .qnyads-mobile-template-card .qnyads-body,
  .qnyads-tablet-template-auto .qnyads-body{
    padding:14px 16px 16px !important;
  }
  .qnyads-mobile-template-card .qnyads-actions,
  .qnyads-tablet-template-auto .qnyads-actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }
  .qnyads-mobile-template-card .qnyads-btn,
  .qnyads-tablet-template-auto .qnyads-btn{
    width:100% !important;
    min-height:42px !important;
  }
  .qnyads-mobile-template-banner .qnyads-card{
    display:grid !important;
    grid-template-columns:min(96px,var(--qnyads-img-mobile)) minmax(0,1fr) !important;
    gap:12px !important;
    padding:12px !important;
  }
  .qnyads-mobile-template-compact .qnyads-card{
    display:grid !important;
    grid-template-columns:82px minmax(0,1fr) !important;
    gap:12px !important;
    padding:12px !important;
  }
  .qnyads-mobile-template-minimal .qnyads-card{
    display:flex !important;
    align-items:flex-start !important;
    gap:10px !important;
    padding:10px 12px !important;
    box-shadow:none !important;
  }
  .qnyads-mobile-template-minimal .qnyads-title{font-size:14px !important;}
  .qnyads-mobile-template-minimal .qnyads-actions{display:none !important;}
}
