/* Scoped styles for Pack Offers Shortcode */
.po *{box-sizing:border-box}
.po{font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;color:#0c0c0d}
.po{
  --green:#0f2d5f;
  --green-strong:#0c254d;
  --green-dark:#081a36;
  --text:#0c0c0d;
  --muted:#6f7a78;
  --card:#0f2d5f0d;
}
.po .page{max-width:720px;margin:0 auto;padding:28px 20px 56px;background:transparent}

/* Rating header */
.po .rating{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-weight:500;text-align:center}
.po .avatars{display:flex;justify-content:center}
.po .avatar{width:28px;height:28px;border-radius:50%;border:2px solid #fff;box-shadow:0 2px 8px rgba(15,45,95,.12);object-fit:cover;object-position:center;display:inline-block}
.po .avatar+.avatar{margin-left:-10px}
.po .rating-text strong{color:#0a0a0a}

/* Title */
.po .title{margin:14px 0 18px}
.po .title .bar{height:6px;background:var(--green);border-radius:4px;width:100px;margin-bottom:10px}
.po .title h1{margin:0;font-size:26px;text-align:center;letter-spacing:.5px}

/* Offer cards */
.po .offers{display:flex;flex-direction:column;gap:14px}
.po .card{position:relative;display:block;background:#fff;border-radius:14px;padding:16px 18px;border:2px solid #09204330;box-shadow:0 8px 26px rgba(15,45,95,.12);cursor:pointer}
.po .card.selected{background:var(--card);border-color:var(--green)}
.po .card:has(input:checked){background:var(--card);border-color:var(--green)}
.po .card input{display:none}
.po .card .radio{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:22px;height:22px;border-radius:50%;border:2px solid var(--green)}
.po .card .radio:after{content:"";position:absolute;inset:3px;border-radius:50%;background:transparent}
.po .card input:checked + .radio:after{background:var(--green)}
.po .card .content{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-left:26px}
.po .texts h3{margin:0 0 4px;font-size:22px;letter-spacing:.4px}
.po .texts p{margin:0;color:var(--muted);font-weight:500}

.po .price{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:140px}
.po .price .now{font-size:26px;color:var(--green)}
.po .card .price .was{font-size:25px;color:#999;text-decoration:line-through}
.po .card .price .badge{position:absolute;top:-8px;right:-8px;font-size:14px;font-weight:700;padding:6px 10px;border-radius:20px;color:#fff;box-shadow:0 4px 10px rgba(0,0,0,.2)}
.po .card .price .badge-hot{background:linear-gradient(135deg,#ff6b6b,#ee5a6f)}
.po .card .price .badge-save{background:linear-gradient(135deg,#4facfe,#00f2fe)}

.po .card-custom .custom-qty{display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.po .qty-selector{display:flex;align-items:center;gap:8px;background:#f5f7fa;border-radius:10px;padding:4px}
.po .qty-btn{width:32px;height:32px;border:0;background:var(--green);color:#fff;border-radius:8px;font-size:20px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}
.po .qty-btn:hover{background:var(--green-strong);transform:scale(1.1)}
.po .qty-btn:active{transform:scale(0.95)}
.po .qty-input{width:60px;height:32px;border:0;background:transparent;text-align:center;font-size:18px;font-weight:700;color:var(--text);appearance:textfield;-moz-appearance:textfield}
.po .qty-input::-webkit-outer-spin-button,.po .qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.po .custom-price{font-size:28px}

/* Blurb */
.po .blurb{display:flex;align-items:center;gap:10px;justify-content:center;margin:22px 0;color:#111;text-align:center}
.po .blurb p{margin:0;font-weight:700;letter-spacing:.6px}
.po .tick{display:inline-flex;width:22px;height:22px;border:2px solid #111;border-radius:50%;align-items:center;justify-content:center}

/* CTA */
.po .cta{margin-top:16px}
.po .cta-btn{display:flex;align-items:center;justify-content:center;gap:14px;background:linear-gradient(90deg,#0f2d5f,#0a1f42);color:#fff;text-decoration:none;padding:18px;border-radius:14px;box-shadow:0 12px 30px rgba(15,45,95,.35);text-align:center;transform:scale(1);transition:transform .18s ease}
.po .cta-btn:hover{transform:scale(1.02)}
.po .cta-btn.pop{animation:pop .45s ease}
.po .cta-btn .icon{flex:0 0 auto;font-size:22px}
.po .cta-text{display:flex;flex-direction:column;line-height:1.1}
.po .cta-text strong{font-size:16px}
.po .cta-text small{color:#eafbea}

@keyframes pop{0%{transform:scale(.96)}40%{transform:scale(1.05)}100%{transform:scale(1)}}

/* Responsive */
@media (min-width:720px){
  .po .title h1{font-size:28px}
  .po .texts h3{font-size:24px}
  .po .price .now{font-size:28px}
}
@media (max-width:720px){
  .po .rating{flex-direction:column;font-size:20px}
  .po .rating .avatars{justify-content:center}
  .po .rating-text{font-size:15px}
  .po .title h1{font-size:20.8px}
  .po .texts h3{font-size:17.6px}
  .po .texts p{font-size:12px}
  .po .price .now{font-size:20.8px}
  .po .price .was{font-size:20px}
  .po .badge{font-size:11.2px;padding:4.8px 8px}
  .po .blurb p{font-size:15px}
  .po .cta-text strong{font-size:12.8px}
  .po .cta-text small{font-size:20px}
  .po .cta-btn .icon{font-size:17.6px}
  .po .dialog-head h2{font-size:12.8px}
  .po .dialog-head .close{font-size:17.6px}
  .po .form-title{font-size:11.2px}
  .po .input{font-size:12px;height:32px;padding:6.4px 8px}
  .po .input::placeholder{font-size:12px}
  .po .selected-pack .row .col label{font-size:9.6px}
  .po .btn{font-size:12px;padding:11.2px 12.8px}
  .po .shipping{font-size:15px}
  .po .modal .dialog{max-width:calc(100vw - 16px);margin:8px;padding:12px}
  .po .selected-pack .row{grid-template-columns:50px 1fr 28px;gap:6px;padding:12px}
  .po .selected-pack .row .col{grid-column:2}
  .po .selected-pack .row .img-col{grid-column:1;grid-row:1 / span 10}
  .po .selected-pack .row .idx{grid-column:3;grid-row:1 / span 10;position:static;align-self:start}
}

/* ===== Modal ===== */
.po .modal[aria-hidden="true"]{display:none}
.po .modal{position:fixed;inset:0;z-index:999}
.po .modal .overlay{position:absolute;inset:0;background:#0008}
.po .modal .dialog{position:relative;z-index:1;background:#fff;max-width:900px;margin:12px auto;padding:16px;border-radius:16px;box-shadow:0 24px 60px rgba(15,45,95,.30);max-height:calc(100dvh - 24px);overflow:auto;-webkit-overflow-scrolling:touch}
.po .dialog-head{display:flex;align-items:center;justify-content:space-between;padding:4px 6px 12px;border-bottom:1px solid #09204330;position:sticky;top:0;background:#fff;z-index:2}
.po .dialog-head h2{margin:0;font-size:16px;letter-spacing:.6px}
.po .dialog-head .close{border:0;background:#0000;font-size:22px;line-height:1;cursor:pointer}

.po .flow{display:flex;flex-direction:column;gap:14px;margin-top:12px}
.po .packs{display:flex;flex-direction:column;gap:10px}
.po .packs .card{padding:10px 12px;border-radius:10px}
.po .packs .card .badge{font-size:12px;padding:4px 8px}

.po .selected-pack{border:2px solid var(--green);border-radius:12px;padding:12px;background:var(--card)}
.po .selected-pack .pack-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.po .selected-pack .rows{display:flex;flex-direction:column;gap:8px}
.po .selected-pack .row{position:relative;display:grid;grid-template-columns:60px repeat(auto-fit, minmax(120px, 1fr)) 28px;gap:8px;align-items:center;background:#fff;border:1px solid #09204330;border-radius:10px;padding:20px}
.po .selected-pack .row .idx{position:absolute;left:6px;top:6px;font-weight:700;color:#335}
.po .selected-pack .row .col label{font-size:12px;font-weight:700}

.po .input{width:100%;height:40px;border:1px solid #09204330;border-radius:10px;padding:8px 10px;font-family:inherit}

.po .shipping{display:grid;grid-template-columns:1fr;gap:8px;border-top:1px solid #09204330;border-bottom:1px solid #09204330;padding:10px 2px;color:#333}
.po .shipping div{display:flex;align-items:center;justify-content:space-between}
.po .shipping strong{color:var(--green)}

.po .form-title{font-size:14px;margin:6px 0 0}
.po .form{display:flex;flex-direction:column;gap:10px}
.po .field{display:flex;flex-direction:column;gap:6px}
.po .field.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}

.po .payment-methods{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.po .payment-option{display:block;position:relative;cursor:pointer;border:2px solid #09204330;border-radius:12px;padding:12px 14px;background:#fff;transition:all .2s ease}
.po .payment-option:hover{border-color:var(--green);background:var(--card)}
.po .payment-option input[type="radio"]{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:20px;height:20px;cursor:pointer}
.po .payment-option input[type="radio"]:checked + .payment-content{opacity:1}
.po .payment-option input[type="radio"]:checked ~ *{opacity:1}
.po .payment-option:has(input:checked){border-color:var(--green);background:var(--card)}
.po .payment-content{display:flex;align-items:center;gap:12px;padding-left:32px}
.po .payment-icon{font-size:24px;flex-shrink:0}
.po .payment-logo{display:flex;align-items:center;gap:4px;flex-shrink:0;max-width:80px}
.po .payment-logo img{max-height:24px;max-width:100%;object-fit:contain;display:inline-block}
.po .payment-info{display:flex;flex-direction:column;gap:2px}
.po .payment-info strong{font-size:14px;color:var(--text);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.po .payment-info small{font-size:12px;color:var(--muted)}
.po .discount-badge{display:inline-block;background:linear-gradient(135deg,#ff6b6b,#ee5a6f);color:#fff;font-size:10px;font-weight:800;padding:3px 8px;border-radius:12px;letter-spacing:0.5px;box-shadow:0 2px 8px rgba(238,90,111,0.3)}

.po .cta-group{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.po .btn{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:14px 16px;cursor:pointer;font-weight:800;font-family:inherit;flex-wrap:wrap}
.po .btn small{opacity:.85;margin-left:4px}
.po .btn.primary{background:linear-gradient(90deg,var(--green),var(--green-strong));color:#fff;box-shadow:0 12px 30px rgba(15,45,95,.35)}
.po .btn.secondary{background:#e9eef6;color:#0b1a33;border:1px solid #b9c6dd}
.po .btn .btn-text{display:inline-block}
.po .btn .btn-price{display:flex;flex-direction:column;align-items:center;gap:2px}
.po .btn .discount-info{display:flex;flex-direction:column;align-items:center;font-size:11px;line-height:1.2}
.po .btn .original-price{text-decoration:line-through;opacity:0.7;font-size:12px;font-weight:600}
.po .btn .discount-text{background:rgba(255,255,255,0.25);padding:2px 6px;border-radius:8px;font-size:10px;font-weight:800;letter-spacing:0.5px}
