/* Bapet Smart Content Promo v5.2 — header copy pinned to RTL/right side */
.bsp2{
  --mint:#c9f3e6;
  --mint-soft:#eafaf5;
  --pink:#fbd0d4;
  --pink-soft:#fff1f3;
  --coral:#ef3f68;
  --green:#0f7a64;
  --green-dark:#0b5f50;
  --navy:#0b2447;
  --text:#1f3347;
  --muted:#6c7a89;
  --line:#dce9e5;
  --white:#fff;
  display:block;
  width:100%;
  max-width:1180px;
  margin:38px auto;
  border:1px solid var(--line);
  border-radius:30px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 14px 45px rgba(27,74,66,.08);
  font-family:inherit;
  color:var(--text);
  position:relative;
  isolation:isolate;
  clear:both;
  container-type:inline-size;
  container-name:bsp;
  text-align:initial;
  line-height:normal;
}
.bsp2,.bsp2 *{box-sizing:border-box}
.bsp2 a{text-decoration:none!important;box-shadow:none!important;border-bottom:0!important}
.bsp2 img{border:0!important;box-shadow:none!important;margin:0!important}
.bsp2 button{font-family:inherit}

/* HERO */
.bsp2-hero{
  position:relative;
  min-height:255px;
  overflow:hidden;
  padding:34px 44px 82px;
  background:
    radial-gradient(circle at 64% -10%, rgba(198,242,227,.96) 0 150px, transparent 151px),
    radial-gradient(circle at 97% 76%, rgba(252,208,209,.80) 0 96px, transparent 97px),
    linear-gradient(118deg,#effbf7 0%,#dff7ef 48%,#fbfffd 100%);
}
.bsp2-hero:before{
  /* The pet artwork already contains its own pink organic background.
     Keeping a second blob here made the dog/cat artwork look displaced. */
  content:none!important;
  display:none!important;
}
.bsp2-hero-copy{
  width:60%;
  margin-left:auto!important;
  margin-right:0!important;
  position:relative;
  z-index:3;
  direction:rtl!important;
  text-align:right!important;
}
.bsp2-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:0 0 14px!important;
  padding:7px 14px;
  border:1px solid rgba(15,122,100,.12);
  border-radius:999px;
  background:rgba(255,255,255,.84);
  color:var(--green);
  font-size:12px;
  line-height:1.2;
  font-weight:900;
  box-shadow:0 4px 16px rgba(15,122,100,.05);
}
.bsp2-hero h3{
  margin:0!important;
  color:var(--navy)!important;
  font-size:48px!important;
  line-height:1.25!important;
  font-weight:950!important;
  letter-spacing:-1px!important;
  text-wrap:balance;
}
.bsp2-hero p{
  margin:10px 0 0!important;
  color:#285e55!important;
  font-size:17px!important;
  line-height:1.8!important;
  font-weight:700!important;
}
.bsp2-pets{
  position:absolute;
  left:0;
  bottom:0;
  width:43%;
  max-width:420px;
  height:auto;
  display:block;
  z-index:2;
  pointer-events:none;
  line-height:0;
}
.bsp2-pets img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:none!important;
  object-fit:initial!important;
  object-position:initial!important;
  background:transparent!important;
}

/* COUPON */
.bsp2-coupon{
  position:relative;
  z-index:10;
  margin:-56px 58px 20px;
  padding:14px 16px;
  min-height:92px;
  border:1px solid rgba(239,63,104,.22);
  border-radius:25px;
  background:rgba(255,255,255,.985);
  box-shadow:0 12px 30px rgba(50,66,70,.08);
  display:flex;
  direction:ltr;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}
.bsp2-code-wrap{
  order:1;
  direction:rtl;
  display:grid;
  grid-template-columns:auto minmax(150px,1fr) auto;
  align-items:center;
  gap:10px;
  min-width:56%;
  padding:8px;
  border:1px dashed rgba(15,122,100,.35);
  border-radius:17px;
  background:#fff;
}
.bsp2-code-wrap>span{font-size:11px;color:#74808d;white-space:nowrap}
.bsp2-code{direction:ltr;unicode-bidi:plaintext;text-align:center;border-radius:11px;background:#f3f7f6;color:var(--navy);font-size:20px;line-height:1;padding:13px 18px;font-weight:950;letter-spacing:.3px}
.bsp2-copy{border:0!important;border-radius:12px!important;background:linear-gradient(135deg,#f15a7a,#e63b63)!important;color:#fff!important;padding:13px 19px!important;font-size:12px!important;line-height:1!important;font-weight:950!important;cursor:pointer!important;white-space:nowrap!important;min-height:44px}
.bsp2-copy.is-copied{background:var(--green)!important}
.bsp2-discount{order:2;direction:rtl;display:flex;align-items:center;gap:13px;min-width:max-content}
.bsp2-gift{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:var(--pink-soft);font-size:27px;flex:0 0 auto}
.bsp2-discount strong{display:block;color:#d72554;font-size:23px;line-height:1.25;font-weight:950}
.bsp2-discount small{display:block;margin-top:4px;color:#5f6c79;font-size:12px;font-weight:600}

/* MAIN PANELS */
.bsp2-body{
  direction:ltr;
  display:grid;
  grid-template-columns:minmax(0,1.56fr) minmax(310px,.94fr);
  gap:16px;
  padding:0 34px 18px;
}
.bsp2-products-panel,.bsp2-services-panel{
  direction:rtl;
  min-width:0;
  border:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  padding:16px;
  box-shadow:0 8px 26px rgba(22,83,69,.045);
}
.bsp2-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px!important}
.bsp2-head strong{color:var(--navy);font-size:17px;line-height:1.5;font-weight:950}
.bsp2-head a{color:var(--green)!important;font-size:11px;line-height:1.4;font-weight:900;white-space:nowrap}

/* PRODUCTS */
.bsp2-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;min-height:285px}
.bsp2-product-card{
  display:flex!important;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  padding:8px;
  border:1px solid #e3ece9!important;
  border-radius:18px;
  background:#fff;
  color:var(--text)!important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  cursor:pointer;
}
.bsp2-product-card:hover{transform:translateY(-3px);border-color:#cae7de!important;box-shadow:0 11px 24px rgba(15,122,100,.09)!important}
.bsp2-product-image{position:relative;display:flex;height:158px;align-items:center;justify-content:center;overflow:hidden;border-radius:13px;background:#fbfcfc}
.bsp2-product-image img{display:block!important;max-width:94%!important;max-height:148px!important;width:auto!important;height:auto!important;object-fit:contain!important}
.bsp2-no-image{font-size:46px;opacity:.22}
.bsp2-stock{position:absolute;top:8px;right:8px;z-index:3;border-radius:999px;background:#d9f7ea;color:#08745c;padding:5px 9px;font-size:10px;line-height:1.2;font-weight:950}
.bsp2-heart{position:absolute;top:7px;left:8px;z-index:3;color:#738798;font-size:25px;line-height:1;font-weight:400}
.bsp2-product-title{display:-webkit-box;min-height:46px;margin:10px 4px 4px!important;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-align:center;color:var(--navy);font-size:12.5px;line-height:1.7;font-weight:900}
.bsp2-price{display:block;min-height:25px;margin:auto 4px 8px!important;text-align:center;color:#ea355f;font-size:12.5px;line-height:1.6;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bsp2-price del{opacity:.44;margin-left:5px}.bsp2-price ins{text-decoration:none!important}.bsp2-price .woocommerce-Price-currencySymbol{font-size:.9em}
.bsp2-product-btn{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;border-radius:12px;background:#ffe1e5;color:#c92850;padding:9px 7px;font-size:11px;line-height:1.35;font-weight:950}
.bsp2-product-btn b{font-size:15px}
.bsp2-product-loading{display:flex;align-items:center;justify-content:center;min-height:285px;padding:28px;text-align:center;border-radius:16px;background:#f5faf8;color:#74827c;font-size:12px;line-height:1.9}
.bsp2-product-loading[hidden]{display:none!important}

/* SERVICES */
.bsp2-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.bsp2-service{display:flex!important;min-height:145px;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;padding:12px 8px;border:1px solid #e3ece9!important;border-radius:17px;background:#fff;color:var(--text)!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;cursor:pointer}
.bsp2-service:hover{transform:translateY(-3px);border-color:#cae7de!important;box-shadow:0 10px 23px rgba(15,122,100,.08)!important}
.bsp2-service-icon{width:55px;height:55px;display:grid;place-items:center;margin:0 0 9px!important;border-radius:50%}
.bsp2-service:nth-child(1) .bsp2-service-icon{background:#c9f3e6;color:#08745c}
.bsp2-service:nth-child(2) .bsp2-service-icon{background:#fbd0d4;color:#c72c56}
.bsp2-service:nth-child(3) .bsp2-service-icon{background:#ddebfb;color:#155a8b}
.bsp2-service:nth-child(4) .bsp2-service-icon{background:#ffe7cc;color:#8a5524}
.bsp2-service-icon svg{display:block;width:28px;height:28px;fill:currentColor}
.bsp2-service strong{display:block;margin:0 0 5px!important;color:var(--navy);font-size:12.5px;line-height:1.55;font-weight:950}
.bsp2-service small{display:block;color:#6c7886;font-size:10.2px;line-height:1.7;font-weight:500}

/* FOOTER */
.bsp2-footer{
  direction:ltr;
  margin:0 34px 28px;
  padding:17px 20px;
  border-radius:21px;
  background:linear-gradient(135deg,#11816a,#0a5f50);
  color:#fff;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
}
.bsp2-paws{font-size:26px;opacity:.32;white-space:nowrap}
.bsp2-footer>div{direction:rtl;text-align:center}
.bsp2-footer strong{display:block;color:#fff;font-size:20px;line-height:1.45;font-weight:950}
.bsp2-footer>div span{display:block;margin-top:2px;color:rgba(255,255,255,.86);font-size:11px;line-height:1.7}
.bsp2-footer-btn{direction:rtl;display:inline-flex!important;align-items:center;justify-content:center;min-width:150px;border-radius:999px;background:#fff;color:#0b6655!important;padding:11px 18px;font-size:12px;line-height:1.3;font-weight:950;white-space:nowrap;box-shadow:0 5px 13px rgba(0,0,0,.08)!important}

/* IMPORTANT: responsive to the promo's own width, not browser width */
@container bsp (max-width:920px){
  .bsp2-hero{min-height:232px;padding:27px 28px 72px}
  .bsp2-hero-copy{width:58%}
  .bsp2-hero h3{font-size:34px!important;line-height:1.3!important;letter-spacing:-.4px!important}
  .bsp2-hero p{font-size:13.5px!important;line-height:1.7!important}
  .bsp2-kicker{font-size:10.5px;padding:6px 11px;margin-bottom:10px!important}
  .bsp2-pets{width:43%;max-width:355px;left:-2px;bottom:0;height:auto}
  .bsp2-coupon{margin:-48px 28px 16px;padding:12px 14px;gap:14px}
  .bsp2-code-wrap{min-width:58%;grid-template-columns:auto minmax(120px,1fr) auto}
  .bsp2-discount strong{font-size:20px}.bsp2-discount small{font-size:10.5px}.bsp2-gift{width:46px;height:46px;font-size:24px}
  .bsp2-body{grid-template-columns:1fr;direction:rtl;padding:0 22px 15px;gap:13px}
  .bsp2-products-panel,.bsp2-services-panel{padding:14px;border-radius:21px}
  .bsp2-products{min-height:0}
  .bsp2-product-image{height:150px}.bsp2-product-image img{max-height:140px!important}
  .bsp2-services{grid-template-columns:repeat(4,minmax(0,1fr))}
  .bsp2-service{min-height:128px;padding:11px 6px}
  .bsp2-service-icon{width:49px;height:49px}.bsp2-service-icon svg{width:25px;height:25px}
  .bsp2-footer{margin:0 22px 20px;padding:15px 18px}
  .bsp2-footer strong{font-size:17px}.bsp2-footer>div span{font-size:10px}
}

@container bsp (max-width:700px){
  .bsp2-hero{min-height:228px;padding:22px 20px 66px}
  .bsp2-hero-copy{width:61%}
  .bsp2-hero h3{font-size:29px!important}
  .bsp2-hero p{font-size:12px!important}
  .bsp2-pets{width:45%;max-width:305px;left:-4px;bottom:0;height:auto}
  .bsp2-coupon{margin:-44px 14px 14px;flex-direction:column;align-items:stretch;gap:10px}
  .bsp2-discount{order:1;justify-content:center}
  .bsp2-code-wrap{order:2;width:100%;min-width:0;grid-template-columns:auto 1fr auto}
  .bsp2-body{padding:0 12px 13px}
  .bsp2-products-panel,.bsp2-services-panel{padding:12px}
  .bsp2-products{gap:8px}
  .bsp2-product-card{padding:7px}
  .bsp2-product-image{height:132px}.bsp2-product-image img{max-height:122px!important}
  .bsp2-product-title{font-size:11.5px;min-height:42px}.bsp2-price{font-size:11.5px}.bsp2-product-btn{font-size:10.5px}
  .bsp2-services{gap:7px}
  .bsp2-service{min-height:121px}
  .bsp2-service strong{font-size:11.5px}.bsp2-service small{font-size:9.5px}
  .bsp2-footer{margin:0 12px 14px;padding:14px;grid-template-columns:1fr auto;gap:12px}
  .bsp2-paws{display:none}.bsp2-footer>div{text-align:right}.bsp2-footer strong{font-size:15px}.bsp2-footer-btn{min-width:125px;padding:10px 14px}
}

@container bsp (max-width:560px){
  .bsp2-hero{min-height:330px;padding:19px 16px 155px;text-align:center}
  .bsp2-hero-copy{width:100%;margin-left:0!important;margin-right:0!important;text-align:center!important}
  .bsp2-kicker{font-size:9.5px}
  .bsp2-hero h3{font-size:26px!important;line-height:1.35!important}
  .bsp2-hero p{font-size:11.5px!important}
  .bsp2-pets{width:78%;max-width:325px;height:auto;left:50%;right:auto;bottom:0;margin:0;transform:translateX(-50%)}
  .bsp2-pets img{width:100%!important;height:auto!important;object-fit:initial!important;object-position:initial!important}
  .bsp2-coupon{margin:-36px 10px 12px;padding:10px;border-radius:20px}
  .bsp2-discount strong{font-size:18px}.bsp2-discount small{font-size:10px}.bsp2-gift{width:42px;height:42px;font-size:22px}
  .bsp2-code-wrap{grid-template-columns:1fr auto}.bsp2-code-wrap>span{display:none}.bsp2-code{font-size:17px;padding:12px 8px}.bsp2-copy{padding:12px 14px!important}
  .bsp2-head{align-items:flex-start}.bsp2-head strong{font-size:14px}.bsp2-head a{font-size:9.5px}
  .bsp2-products{display:flex;overflow-x:auto;gap:9px;scroll-snap-type:x mandatory;padding-bottom:4px;scrollbar-width:thin}
  .bsp2-product-card{min-width:78%;scroll-snap-align:start}
  .bsp2-product-image{height:160px}.bsp2-product-image img{max-height:150px!important}
  .bsp2-services{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bsp2-service{min-height:130px}
  .bsp2-footer{grid-template-columns:1fr;text-align:center}.bsp2-footer>div{text-align:center}.bsp2-footer-btn{justify-self:stretch;min-width:0}
}

/* fallback for browsers without container queries */
@supports not (container-type:inline-size){
  @media(max-width:1050px){
    .bsp2-body{grid-template-columns:1fr;direction:rtl}
    .bsp2-services{grid-template-columns:repeat(4,minmax(0,1fr))}
    .bsp2-hero h3{font-size:34px!important}
  }
  @media(max-width:760px){
    .bsp2-services{grid-template-columns:repeat(2,minmax(0,1fr))}
    .bsp2-products{display:flex;overflow-x:auto}.bsp2-product-card{min-width:78%}
  }
}
