html.cib-wsw-modal-open {
  overflow: hidden;
}

.cib-wsw-modal,
.cib-wsw-modal * {
  box-sizing: border-box;
}

.cib-wsw-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.cib-wsw-modal.is-open {
  display: flex;
}

.cib-wsw-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}

.cib-wsw-dialog {
  position: relative;
  width: min(610px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #050505;
  color: #fff;
  border: 1px solid #d49a00;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  padding: 24px;
  font-family: inherit;
}

.cib-wsw-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cib-wsw-title {
  margin: 0 42px 18px 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.cib-wsw-product-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(212, 154, 0, .55);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  margin-bottom: 14px;
}

.cib-wsw-product-img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
  background: #111;
}

.cib-wsw-product-info strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.cib-wsw-price {
  display: block;
  color: #f4c542;
  font-weight: 800;
  margin-bottom: 8px;
}

.cib-wsw-price .woocommerce-Price-amount {
  color: #f4c542;
}

.cib-wsw-description {
  color: #d8d8d8;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 8px;
}

.cib-wsw-description span {
  display: block;
  color: #fff;
  font-weight: 800;
  margin-bottom: 2px;
}

.cib-wsw-description p,
.cib-wsw-description ul,
.cib-wsw-description ol {
  margin: 3px 0 0;
  padding-left: 0;
}

.cib-wsw-description ul,
.cib-wsw-description ol {
  padding-left: 18px;
}

.cib-wsw-actions,
.cib-wsw-cart-added-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.cib-wsw-primary-btn,
.cib-wsw-secondary-btn,
.cib-wsw-ghost-btn,
.cib-wsw-location-btn,
.cib-wsw-branch-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-weight: 800;
  line-height: 1.15;
}

.cib-wsw-primary-btn,
.cib-wsw-location-btn {
  background: #20b455;
  color: #fff;
  border: 1px solid #20b455;
}

.cib-wsw-secondary-btn {
  background: #f4c542;
  color: #050505;
  border: 1px solid #f4c542;
}

.cib-wsw-ghost-btn {
  background: #151515;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
}

.cib-wsw-primary-btn:hover,
.cib-wsw-primary-btn:focus,
.cib-wsw-secondary-btn:hover,
.cib-wsw-secondary-btn:focus,
.cib-wsw-ghost-btn:hover,
.cib-wsw-ghost-btn:focus,
.cib-wsw-location-btn:hover,
.cib-wsw-location-btn:focus {
  filter: brightness(1.08);
}

.cib-wsw-branch-area.is-hidden {
  display: none;
}

.cib-wsw-location-btn {
  margin: 12px 0;
}

.cib-wsw-status {
  min-height: 20px;
  margin: 8px 0;
  color: #ddd;
  font-size: 14px;
}

.cib-wsw-manual-text {
  color: #ddd;
  font-size: 14px;
  margin: 14px 0 10px;
}

.cib-wsw-branches,
.cib-wsw-nearest {
  display: grid;
  gap: 10px;
}

.cib-wsw-nearest {
  margin-bottom: 12px;
}

.cib-wsw-branch-btn {
  background: #121212;
  color: #fff;
  border: 1px solid rgba(212, 154, 0, .45);
  justify-content: space-between;
  text-align: left;
}

.cib-wsw-branch-btn:hover,
.cib-wsw-branch-btn:focus {
  border-color: #f4c542;
  background: #181818;
}

.cib-wsw-branch-btn strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.cib-wsw-branch-btn small {
  display: block;
  color: #bbb;
  font-size: 12px;
  margin-top: 3px;
  font-weight: 400;
}

.cib-wsw-branch-btn em {
  flex: 0 0 auto;
  color: #050505;
  background: #f4c542;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.cib-wsw-distance {
  display: block;
  color: #ccc;
  margin: 6px 0 0 2px;
  font-size: 12px;
}

.cib-wsw-loading,
.cib-wsw-error,
.cib-wsw-empty,
.cib-wsw-empty-cart {
  color: #fff;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
}

.cib-wsw-cart-added {
  padding: 13px;
  border-radius: 14px;
  background: rgba(32, 180, 85, .12);
  border: 1px solid rgba(32, 180, 85, .45);
  color: #fff;
}

.cib-wsw-cart-added strong,
.cib-wsw-cart-added span {
  display: block;
}

.cib-wsw-cart-added span {
  color: #ddd;
  font-size: 13px;
  margin-top: 3px;
}

.cib-wsw-cart-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.cib-wsw-cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(212, 154, 0, .38);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}

.cib-wsw-cart-item img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
}

.cib-wsw-cart-item-info strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}

.cib-wsw-cart-item-info small {
  display: block;
  color: #f4c542;
  font-weight: 800;
  margin: 3px 0;
}

.cib-wsw-cart-item-info p {
  color: #cfcfcf;
  font-size: 12px;
  line-height: 1.35;
  margin: 5px 0 8px;
}

.cib-wsw-cart-qty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.cib-wsw-cart-qty button {
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: #151515;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.cib-wsw-cart-qty span {
  min-width: 22px;
  text-align: center;
  color: #fff;
  font-weight: 800;
}

.cib-wsw-cart-remove {
  width: auto !important;
  padding: 0 10px;
  font-size: 12px;
}

.cib-wsw-cart-line-total {
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.cib-wsw-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
}

.cib-wsw-cart-total span {
  color: #ddd;
}

.cib-wsw-cart-total strong {
  color: #f4c542;
  font-size: 18px;
}

.cib-wsw-cart-note {
  color: #bbb;
  font-size: 12px;
  line-height: 1.35;
  margin: 10px 0 4px;
}

.cib-wsw-single-btn {
  margin-top: 12px !important;
  background: #20b455 !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.cib-wsw-cart-floating {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 999998;
  display: none;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: #e33636;
  color: #fff;
  padding: 12px 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
}

.cib-wsw-cart-floating.is-visible {
  display: flex;
}

.cib-wsw-cart-icon {
  font-size: 21px;
  line-height: 1;
}

.cib-wsw-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #5333a5;
  color: #fff;
  font-size: 12px;
}

@media (max-width: 560px) {
  .cib-wsw-dialog {
    padding: 18px;
    border-radius: 16px;
  }

  .cib-wsw-title {
    font-size: 21px;
  }

  .cib-wsw-product-card {
    grid-template-columns: 84px 1fr;
    gap: 12px;
  }

  .cib-wsw-product-img {
    width: 84px;
    height: 84px;
  }

  .cib-wsw-actions,
  .cib-wsw-cart-added-actions {
    grid-template-columns: 1fr;
  }

  .cib-wsw-branch-btn {
    align-items: flex-start;
    flex-direction: column;
  }

  .cib-wsw-cart-item {
    grid-template-columns: 64px 1fr;
  }

  .cib-wsw-cart-item img {
    width: 64px;
    height: 64px;
  }

  .cib-wsw-cart-line-total {
    grid-column: 2;
  }

  .cib-wsw-cart-floating {
    left: 12px;
    bottom: 12px;
    padding: 11px 13px;
  }
}


/* Oculta el carrito/botón nativo de WooCommerce cuando el plugin toma el pedido por WhatsApp */
body.cib-wsw-hide-native-cart a.add_to_cart_button,
body.cib-wsw-hide-native-cart button.add_to_cart_button,
body.cib-wsw-hide-native-cart .ajax_add_to_cart,
body.cib-wsw-hide-native-cart .single_add_to_cart_button,
body.cib-wsw-hide-native-cart form.cart,
body.cib-wsw-hide-native-cart .woocommerce div.product form.cart,
body.cib-wsw-hide-native-cart .woocommerce ul.products li.product .button.product_type_simple,
body.cib-wsw-hide-native-cart .woocommerce ul.products li.product .button.product_type_variable,
body.cib-wsw-hide-native-cart .woocommerce ul.products li.product .button.product_type_grouped,
body.cib-wsw-hide-native-cart .woocommerce ul.products li.product .button.product_type_external {
  display: none !important;
}
