.bapet-autoship-box{direction:rtl;border:1px solid #e5e7eb;border-radius:20px;padding:18px;margin:18px 0;background:#fff;box-shadow:0 10px 34px rgba(15,23,42,.07);font-family:inherit}.bapet-autoship-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.bapet-autoship-title{font-weight:900;font-size:19px;color:#111827}.bapet-autoship-head small{color:#6b7280}.bapet-badge{white-space:nowrap;background:#effcf9;color:#087f73;border:1px solid #bdeee7;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800}.bapet-choice{display:flex;align-items:flex-start;gap:11px;border:1px solid #e7e9ee;padding:13px;border-radius:15px;margin:9px 0;cursor:pointer;transition:.18s}.bapet-choice:hover,.bapet-autoship-box.is-autoship .bapet-choice-autoship{border-color:#20a99a;background:#f2fffc}.bapet-choice input{margin-top:5px;accent-color:#169b8d}.bapet-choice span{display:flex;flex-direction:column;gap:3px}.bapet-choice strong{font-size:15px;color:#111827}.bapet-choice small{color:#6b7280;font-size:12px}.bapet-interval-wrap{padding:12px 3px 2px}.bapet-interval-wrap>label{display:block;font-weight:800;margin-bottom:8px}.bapet-interval-wrap select,.bapet-update-form select,.bapet-update-form input{width:100%;min-height:44px;border:1px solid #d7dbe2;border-radius:11px;padding:7px 10px;background:#fff}.bapet-interval-wrap p{font-size:12px;color:#6b7280;margin:8px 0 0}.bapet-trust-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;color:#087f73;font-size:12px;font-weight:700}.bapet-account-head{margin-bottom:16px}.bapet-account-head h2{margin:0 0 5px}.bapet-account-head p{margin:0;color:#6b7280}.bapet-as-card{border:1px solid #e5e7eb;border-radius:20px;padding:17px;margin-bottom:17px;background:#fff;box-shadow:0 6px 24px rgba(15,23,42,.04)}.bapet-as-top{display:flex;justify-content:space-between}.bapet-as-main{display:flex;gap:15px;align-items:center;width:100%}.bapet-as-image img{width:92px!important;height:92px!important;object-fit:cover;border-radius:15px;background:#f8fafc}.bapet-as-info{flex:1}.bapet-as-info h3{margin:5px 0 10px;font-size:18px}.bapet-status-pill{display:inline-block;padding:4px 9px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:11px;font-weight:800}.status-paused .bapet-status-pill{background:#fff7ed;color:#c2410c}.status-cancelled{opacity:.72}.status-cancelled .bapet-status-pill{background:#f3f4f6;color:#6b7280}.bapet-as-meta{display:flex;gap:14px;flex-wrap:wrap;color:#6b7280;font-size:12px}.bapet-as-meta strong{color:#111827}.bapet-next-date{margin-top:10px;display:flex;align-items:center;gap:8px}.bapet-next-date small{color:#6b7280}.bapet-edit-panel{margin-top:14px;border-top:1px solid #eef0f3;padding-top:12px}.bapet-edit-panel summary{cursor:pointer;font-weight:800;color:#087f73}.bapet-update-form{margin-top:12px}.bapet-grid{display:grid;grid-template-columns:2fr 1fr 2fr;gap:10px;margin-bottom:10px}.bapet-grid label{font-size:12px;font-weight:700;color:#4b5563}.bapet-grid label select,.bapet-grid label input{display:block;margin-top:5px}.bapet-as-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.bapet-inline-form{margin:0!important}.bapet-as-actions .button,.bapet-update-form .button{border-radius:10px!important}.bapet-primary{background:#159b8d!important;border-color:#159b8d!important;color:#fff!important}.bapet-danger{color:#b42318!important;border-color:#f0c6c2!important}.woocommerce-message .button{margin-right:10px}
@media(max-width:700px){.bapet-autoship-head{flex-direction:column}.bapet-as-main{align-items:flex-start}.bapet-as-image img{width:72px!important;height:72px!important}.bapet-as-meta{gap:7px;flex-direction:column}.bapet-grid{grid-template-columns:1fr}.bapet-as-actions{display:grid;grid-template-columns:1fr 1fr}.bapet-as-actions .button{width:100%;text-align:center}.bapet-inline-form{width:100%}}@media(max-width:420px){.bapet-as-actions{grid-template-columns:1fr}.bapet-choice{padding:11px}}
/* v1.2.0 */
.bapet-preview{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#f7f9fb;border:1px solid #e7ebef;border-radius:12px;padding:12px 14px;margin:12px 0}.bapet-preview span{font-size:13px;color:#667085}.bapet-preview strong{font-size:17px}.bapet-preview small{width:100%;color:#98a2b3}.bapet-items{display:grid;gap:10px;margin:14px 0}.bapet-item-row{display:flex;align-items:center;gap:10px;border:1px solid #edf0f2;border-radius:12px;padding:10px}.bapet-item-row>div:nth-child(2){flex:1}.bapet-item-row strong,.bapet-item-row small{display:block}.bapet-item-row small{margin-top:4px;color:#667085}.bapet-mini-img{width:54px;height:54px;flex:0 0 54px}.bapet-mini-img img{width:54px;height:54px;object-fit:contain;border-radius:9px}.bapet-link-danger{font-size:12px!important;color:#b42318!important;border-color:#fecdca!important;background:#fff!important}.bapet-edit-panel+ .bapet-edit-panel{margin-top:8px}@media(max-width:640px){.bapet-item-row{align-items:flex-start}.bapet-item-row .bapet-inline-form{margin-right:auto}.bapet-preview{align-items:flex-start}}

/* v1.3 Smart Refill */
.bapet-smart-refill{margin:16px 0;padding:16px;border:1px solid rgba(0,0,0,.08);border-radius:16px;background:rgba(255,255,255,.72)}
.bapet-smart-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.bapet-smart-title strong{font-size:15px}.bapet-smart-title small{opacity:.7}
.bapet-smart-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.bapet-smart-grid label{font-size:12px;font-weight:600}.bapet-smart-grid input,.bapet-smart-grid select{width:100%;margin-top:5px}
.bapet-smart-calc{margin-top:10px!important}.bapet-smart-result{margin-top:10px;padding:10px 12px;border-radius:10px;background:rgba(0,0,0,.04);font-size:13px}.bapet-smart-result:empty{display:none}.bapet-smart-result.is-error{background:#fff0f0}.bapet-smart-note{display:block;margin-top:9px;opacity:.65;line-height:1.7}
@media(max-width:640px){.bapet-smart-grid{grid-template-columns:1fr}.bapet-smart-title{display:block}.bapet-smart-title small{display:block;margin-top:3px}}

/* v1.4.0 — Chewy-inspired Autoship purchase selector */
.bapet-autoship-chewy{direction:rtl!important;border:0!important;border-radius:0!important;padding:0!important;margin:18px 0!important;background:transparent!important;box-shadow:none!important;font-family:inherit!important;display:flex;flex-direction:column;gap:10px}
.bapet-plan-card{position:relative;display:flex!important;align-items:flex-start;gap:12px;border:1px solid #dfe3e8;border-radius:12px;padding:16px 16px 15px;margin:0!important;background:#fff;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;box-sizing:border-box}
.bapet-plan-card:hover{border-color:#a9b7f8}
.bapet-plan-card.is-selected{border:2px solid #2f5bea;padding:15px 15px 14px;box-shadow:0 0 0 3px rgba(47,91,234,.12);background:#fff}
.bapet-radio-ui{width:24px;height:24px;flex:0 0 24px;position:relative;margin-top:1px}
.bapet-radio-ui input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none}
.bapet-radio-ui i{display:block;width:20px;height:20px;border:1.7px solid #8d949e;border-radius:50%;background:#fff;box-sizing:border-box;position:relative;transition:.18s}
.bapet-plan-card.is-selected .bapet-radio-ui i{border-color:#2f5bea;border-width:2px}
.bapet-plan-card.is-selected .bapet-radio-ui i:after{content:"";position:absolute;inset:4px;border-radius:50%;background:#2f5bea}
.bapet-plan-content{display:flex;flex-direction:column;min-width:0;flex:1;color:#151922}
.bapet-plan-heading{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;line-height:1.25;margin-bottom:8px}
.bapet-plan-name{font-size:15px;font-weight:800;color:#111827;display:inline-flex;align-items:center;gap:4px}
.bapet-repeat-icon{width:18px;height:18px;color:#2456de;display:inline-flex}.bapet-repeat-icon svg{width:18px;height:18px;fill:currentColor}
.bapet-plan-tagline{font-size:13px;color:#4b5563}
.bapet-details-toggle{appearance:none!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0 0 0 2px!important;color:#2153d9!important;font:inherit!important;font-size:12px!important;display:inline-flex!important;align-items:center!important;gap:3px!important;cursor:pointer!important;text-decoration:underline;text-underline-offset:2px;min-height:0!important;height:auto!important;line-height:1.4!important;width:auto!important}
.bapet-info-icon{display:inline-flex;width:15px;height:15px}.bapet-info-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.bapet-price-line{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin-top:1px}
.bapet-price-line strong,.bapet-future-price strong{font-size:25px;line-height:1.15;color:#c51436;font-weight:750;letter-spacing:-.3px}
.bapet-price-line small{font-size:11px;color:#8b3344}
.bapet-first-saving{font-size:12px;font-weight:700;color:#c51436;margin-top:5px;line-height:1.55}
.bapet-divider{height:1px;background:#e5e7eb;width:100%;margin:14px 0 12px}
.bapet-future-price{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;color:#111827;margin-bottom:11px}
.bapet-future-price strong{font-size:19px;color:#111827}.bapet-future-price b{font-size:14px;color:#111827}.bapet-future-price small{font-size:12px;color:#4b5563}
.bapet-benefits{display:flex;flex-direction:column;gap:9px;margin-top:1px}
.bapet-benefits>span{display:flex;align-items:center;gap:9px;font-size:12.5px;color:#28303d;line-height:1.4}
.bapet-benefits i{width:21px;height:21px;flex:0 0 21px;color:#375270;display:inline-flex;align-items:center;justify-content:center}
.bapet-benefits svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.bapet-benefits em{font-style:normal}
.bapet-details-panel{display:flex;flex-direction:column;gap:7px;border-top:1px solid #e5e7eb;margin-top:13px;padding-top:12px;font-size:12px;line-height:1.75;color:#4b5563;cursor:default}
.bapet-details-panel[hidden]{display:none!important}.bapet-details-panel strong{color:#111827;font-size:13px}
.bapet-interval-wrap{display:grid!important;grid-template-columns:auto minmax(150px,1fr);align-items:center;gap:8px 10px;padding:13px 0 0!important;margin-top:12px;border-top:1px solid #eef0f3}
.bapet-interval-wrap>label{font-size:12px!important;font-weight:700!important;margin:0!important;white-space:nowrap;color:#374151}
.bapet-interval-wrap>select{width:100%!important;min-height:42px!important;border:1px solid #cfd5df!important;border-radius:9px!important;background:#fff!important;padding:6px 10px!important;font-size:13px!important;margin:0!important}
.bapet-smart-refill{grid-column:1/-1;margin:0 0 4px!important;padding:13px!important;border:1px solid #dfe5ee!important;border-radius:11px!important;background:#f8fafc!important}
.bapet-plan-onetime .bapet-plan-name{margin-bottom:4px;font-weight:500}.bapet-plan-onetime .bapet-price-line{margin-top:0}.bapet-plan-onetime .bapet-price-line strong{font-size:25px}.bapet-store-sale{font-size:12px;color:#c51436;margin-top:5px}
.bapet-autoship-chewy~.quantity{margin-top:18px}
.single-product form.cart .single_add_to_cart_button.bapet-autoship-submit{border-radius:10px!important;min-height:48px!important;font-weight:800!important;transition:.18s ease}.single-product form.cart .single_add_to_cart_button.bapet-autoship-submit.is-autoship{background:#2f58df!important;border-color:#2f58df!important;color:#fff!important}.single-product form.cart .single_add_to_cart_button.bapet-autoship-submit.is-autoship:hover{background:#244acc!important;border-color:#244acc!important}
@media(max-width:640px){.bapet-plan-card{padding:14px 12px;gap:9px}.bapet-plan-card.is-selected{padding:13px 11px 12px}.bapet-plan-heading{gap:4px 5px}.bapet-plan-tagline{font-size:12px}.bapet-price-line strong{font-size:23px}.bapet-benefits>span{font-size:12px}.bapet-interval-wrap{grid-template-columns:1fr}.bapet-interval-wrap>label{white-space:normal}.bapet-radio-ui{width:22px;flex-basis:22px}.bapet-smart-grid{grid-template-columns:1fr!important}}

/* v1.5.0 — Bapet visual system + bulk-ready purchase experience */
.bapet-autoship-chewy{--bapet-primary:#159b8d;--bapet-primary-dark:#0f7e73;--bapet-primary-soft:#eaf8f5;--bapet-ink:#17212b;--bapet-muted:#667085;--bapet-danger:#c82b4b}
.bapet-plan-card:hover{border-color:#83cfc6}
.bapet-plan-card.is-selected{border-color:var(--bapet-primary);box-shadow:0 0 0 3px rgba(21,155,141,.12)}
.bapet-plan-card.is-selected .bapet-radio-ui i{border-color:var(--bapet-primary)}
.bapet-plan-card.is-selected .bapet-radio-ui i:after{background:var(--bapet-primary)}
.bapet-repeat-icon,.bapet-details-toggle{color:var(--bapet-primary)!important}
.bapet-price-line strong{color:var(--bapet-danger)}
.bapet-first-saving{color:#b4233e;background:#fff5f7;border-radius:8px;padding:5px 8px;width:max-content;max-width:100%}
.bapet-smart-calc{background:var(--bapet-primary)!important;border-color:var(--bapet-primary)!important;color:#fff!important;border-radius:9px!important}
.single-product form.cart .single_add_to_cart_button.bapet-autoship-submit.is-autoship{background:var(--bapet-primary)!important;border-color:var(--bapet-primary)!important;color:#fff!important;box-shadow:0 8px 20px rgba(21,155,141,.18)}
.single-product form.cart .single_add_to_cart_button.bapet-autoship-submit.is-autoship:hover{background:var(--bapet-primary-dark)!important;border-color:var(--bapet-primary-dark)!important}
.bapet-purchase-meta{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;padding:4px 2px 0;font-size:12.5px;font-weight:700;color:var(--bapet-ink)}
.bapet-purchase-meta>span{display:inline-flex;align-items:center;gap:6px}.bapet-purchase-meta>span:before{content:"";width:8px;height:8px;border-radius:50%;background:#98a2b3}
.bapet-stock-status.is-in-stock{color:#087a55}.bapet-stock-status.is-in-stock:before{background:#18a673}.bapet-stock-status.is-out-stock{color:#b42318}.bapet-stock-status.is-out-stock:before{background:#d92d20}.bapet-delivery-status:before{background:var(--bapet-primary)!important}
.bapet-new-customer-offer{display:flex;align-items:flex-start;gap:8px;border-top:1px solid #eceff2;border-bottom:1px solid #eceff2;padding:12px 2px;margin:5px 0 2px;font-size:12.5px;line-height:1.65;color:#4b5563}.bapet-new-customer-offer .bapet-offer-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 22px;border-radius:7px;background:#fff0f3;color:#c82045;font-weight:900}.bapet-new-customer-offer a{color:var(--bapet-primary);font-weight:800;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.bapet-qty-title{clear:both;font-size:12px;font-weight:800;color:#344054;margin:16px 0 7px}.single-product form.cart .quantity{border-radius:10px!important}.single-product form.cart .quantity input.qty{min-height:44px}
.bapet-details-modal{display:none;position:fixed;inset:0;z-index:999999;align-items:center;justify-content:center;padding:20px;direction:rtl}.bapet-details-modal.is-open{display:flex}.bapet-modal-backdrop{position:absolute;inset:0;background:rgba(12,22,30,.52);backdrop-filter:blur(3px)}body.bapet-modal-open{overflow:hidden}
.bapet-modal-card{position:relative;width:min(520px,100%);max-height:min(720px,90vh);overflow:auto;background:#fff;border-radius:20px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.22);color:var(--bapet-ink);animation:bapetModalIn .18s ease-out}.bapet-modal-close{position:absolute;left:16px;top:13px;width:34px;height:34px;border:0!important;border-radius:50%!important;background:#f2f4f7!important;color:#344054!important;font-size:23px!important;line-height:1!important;cursor:pointer}.bapet-modal-mark{width:46px;height:46px;border-radius:14px;background:var(--bapet-primary-soft);color:var(--bapet-primary);display:flex;align-items:center;justify-content:center;margin-bottom:14px}.bapet-modal-mark svg{width:27px;height:27px;fill:currentColor}.bapet-modal-card h3{font-size:20px;margin:0 0 9px}.bapet-modal-card p{color:var(--bapet-muted);line-height:1.8}.bapet-modal-card ul{margin:16px 18px 16px 0;padding:0;display:grid;gap:9px}.bapet-modal-card li{line-height:1.65}.bapet-modal-note{background:#f7faf9;border:1px solid #d9efeb;padding:12px 14px;border-radius:12px;color:#52615f;font-size:12.5px;line-height:1.8}@keyframes bapetModalIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:640px){.bapet-purchase-meta{flex-direction:column;align-items:flex-start;gap:7px}.bapet-new-customer-offer{flex-wrap:wrap}.bapet-modal-card{padding:24px 18px 20px;border-radius:17px}.bapet-modal-close{left:11px;top:10px}}

/* v1.5.4 interaction compatibility fixes */
.bapet-autoship-box [hidden]{display:none!important}
.bapet-radio-ui input{position:absolute!important;opacity:0!important;width:20px!important;height:20px!important;inset:0!important;margin:0!important;pointer-events:auto!important;cursor:pointer!important;z-index:3}
.bapet-plan-card{user-select:none}
.bapet-plan-card .bapet-plan-content,.bapet-plan-card .bapet-benefits,.bapet-plan-card .bapet-price-line{pointer-events:auto}
.bapet-plan-card button,.bapet-plan-card select,.bapet-plan-card input:not([type=radio]),.bapet-plan-card a{position:relative;z-index:4}
.bapet-plan-card:focus-within{outline:2px solid rgba(21,155,141,.2);outline-offset:2px}
