.btca-addons,
.btca-addons * {
  box-sizing: border-box;
}

.btca-addons {
  min-width: 0;
  margin: 22px 0;
  padding: clamp(16px, 2vw, 22px);
  border: 2px solid var(--bt-pink, #e47bac);
  border-radius: 8px;
  color: var(--bt-ink, #765061);
  background: rgba(255, 254, 250, .82);
  box-shadow: 6px 7px 0 rgba(240, 117, 168, .16);
}

.woocommerce-cart .cart-collaterals .btca-addons {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  margin: 0;
  align-self: start;
}

.btca-block-cart-source {
  display: none !important;
}

.wc-block-cart__main .btca-addons--block-cart {
  width: 100%;
  margin: 18px 0 0;
}

.btca-addons--checkout {
  margin-top: 0;
}

.woocommerce-checkout form.checkout > .btca-addons--checkout {
  grid-column: 2;
  width: 100%;
  margin: 0;
  align-self: start;
}

.btca-addons__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  margin-bottom: 14px;
}

.btca-addons__head span {
  grid-row: 1 / span 2;
  width: fit-content;
  min-height: 30px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--bt-pink, #e47bac);
  border-radius: 999px;
  color: var(--bt-pink-hot, #dc5895);
  background: var(--bt-white, #fffefa);
  box-shadow: 3px 3px 0 rgba(240, 117, 168, .14);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}

.btca-addons__head h2 {
  margin: 0;
  color: var(--bt-ink, #765061);
  font-family: var(--bt-display, inherit);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.14;
}

.btca-addons__head p {
  max-width: 680px;
  margin: 0;
  color: var(--bt-muted, #9d7a88);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.btca-addons__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btca-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1.5px solid rgba(228, 123, 172, .58);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.btca-card__image {
  width: 92px;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  border: 1.5px solid rgba(228, 123, 172, .36);
  border-radius: 6px;
  background: var(--bt-white, #fffefa);
}

.btca-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.btca-card__body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "badges action"
    "title action"
    "price action";
  gap: 6px 12px;
  align-items: center;
}

.btca-card__badges {
  grid-area: badges;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.btca-card__badges span {
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--bt-pink-hot, #dc5895);
  background: rgba(255, 231, 242, .88);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.btca-card h3 {
  grid-area: title;
  min-width: 0;
  margin: 0;
  color: var(--bt-ink, #765061);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.35;
}

.btca-card h3 a {
  color: inherit;
  text-decoration: none;
}

.btca-card__price {
  grid-area: price;
  color: var(--bt-ink, #765061);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.btca-card__price del {
  color: color-mix(in srgb, var(--bt-ink, #765061) 48%, white);
  font-size: 12px;
}

.btca-card__price ins {
  color: #d84376;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
}

.btca-card__button {
  grid-area: action;
  width: 112px;
  min-height: 38px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1.5px solid var(--bt-pink, #e47bac);
  border-radius: 999px;
  color: var(--bt-white, #fffefa);
  background: var(--bt-pink-hot, #dc5895);
  box-shadow: 3px 3px 0 rgba(240, 117, 168, .18);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.btca-card__button:hover,
.btca-card__button:focus-visible {
  color: var(--bt-white, #fffefa);
  transform: translate(-1px, -1px);
}

.btca-modal[hidden] {
  display: none;
}

.btca-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.btca-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.btca-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(68, 42, 54, .34);
  backdrop-filter: blur(6px);
}

.btca-modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: clamp(18px, 3vw, 26px);
  border: 2px solid var(--bt-pink, #e47bac);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(240, 117, 168, .08) 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(240, 117, 168, .08) 47px),
    var(--bt-soft, #fff1f7);
  box-shadow: 9px 10px 0 rgba(240, 117, 168, .22);
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}

.btca-modal.is-open .btca-modal__panel {
  transform: translateY(0) scale(1);
}

.btca-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--bt-pink, #e47bac);
  border-radius: 999px;
  color: var(--bt-pink-hot, #dc5895);
  background: var(--bt-white, #fffefa);
  box-shadow: 3px 3px 0 rgba(240, 117, 168, .14);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.btca-modal__skip {
  margin-top: 14px;
  padding: 8px 13px;
  border: 0;
  color: var(--bt-muted, #9d7a88);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.btca-addons__grid--compact {
  grid-template-columns: 1fr;
}

.btca-modal-open {
  overflow: hidden;
}

.woocommerce-cart .cart-collaterals .cross-sells {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  align-self: start;
}

.woocommerce-cart .cart-collaterals .cross-sells > h2 {
  margin: 0 0 14px;
  color: var(--bt-ink, #765061);
  font-family: var(--bt-display, inherit);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.14;
}

.woocommerce-cart .cart-collaterals .cross-sells ul.products {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin: 0 !important;
}

.woocommerce-cart .cart-collaterals .cross-sells ul.products li.product {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.woocommerce-cart .cart-collaterals .cross-sells .bt-product-card {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 10px !important;
  border: 1.5px solid rgba(228, 123, 172, .58) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .78) !important;
  box-shadow: none !important;
}

.woocommerce-cart .cart-collaterals .cross-sells .bt-product-thumb {
  width: 92px !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  border-radius: 6px !important;
}

.woocommerce-cart .cart-collaterals .cross-sells .bt-product-card-body {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 112px !important;
  grid-template-areas:
    "title actions"
    "price actions" !important;
  gap: 6px 12px !important;
  align-items: center !important;
  overflow: visible !important;
}

.woocommerce-cart .cart-collaterals .cross-sells .bt-product-card h3 {
  grid-area: title !important;
  min-height: 0 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  overflow: hidden !important;
  color: var(--bt-ink, #765061) !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.woocommerce-cart .cart-collaterals .cross-sells .bt-product-meta {
  grid-area: price !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.woocommerce-cart .cart-collaterals .cross-sells .bt-product-actions {
  grid-area: actions !important;
  width: 112px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-cart .cart-collaterals .cross-sells .bt-product-actions .button,
.woocommerce-cart .cart-collaterals .cross-sells .bt-product-actions .added_to_cart {
  width: 100% !important;
  min-height: 38px !important;
  max-height: none !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

.woocommerce-cart .cart-collaterals .cross-sells .bt-product-actions .bt-loop-buy-now {
  display: none !important;
}

@media (max-width: 900px) {
  .woocommerce-checkout form.checkout > .btca-addons--checkout,
  .woocommerce-cart .cart-collaterals .btca-addons,
  .woocommerce-cart .cart-collaterals .cross-sells {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .btca-addons {
    padding: 14px;
  }

  .btca-addons__head {
    grid-template-columns: 1fr;
  }

  .btca-addons__head span {
    grid-row: auto;
  }

  .btca-card {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: start;
  }

  .btca-card__image {
    width: 78px;
  }

  .btca-card__body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badges"
      "title"
      "price"
      "action";
  }

  .btca-card__button {
    width: 100%;
    justify-self: stretch;
  }

  .woocommerce-cart .cart-collaterals .cross-sells .bt-product-card {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .woocommerce-cart .cart-collaterals .cross-sells .bt-product-thumb {
    width: 78px !important;
  }

  .woocommerce-cart .cart-collaterals .cross-sells .bt-product-card-body {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "title"
      "price"
      "actions" !important;
  }

  .woocommerce-cart .cart-collaterals .cross-sells .bt-product-actions {
    width: 100% !important;
  }

  .btca-modal {
    align-items: end;
    padding: 12px;
  }

  .btca-modal__panel {
    max-height: calc(100vh - 24px);
  }
}
