.zbsdc-lock-scroll {
  overflow: hidden;
}

.zbsdc-chip {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-size: 13px;
}

.zbsdc-chip-hidden {
  display: none;
}

.zbsdc-chip-label {
  color: #6c757d;
}

.zbsdc-chip-button {
  border: 0;
  background: transparent;
  color: #0d6efd;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.zbsdc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.zbsdc-modal.is-open {
  display: block;
}

.zbsdc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
}

.zbsdc-dialog {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px;
}

.zbsdc-dialog-inner {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.zbsdc-dialog-inner h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.zbsdc-subtitle,
.zbsdc-note {
  color: #495057;
}

.zbsdc-form .form-group {
  margin: 18px 0;
}

.zbsdc-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.zbsdc-form select.form-control {
  min-height: 48px;
}

.zbsdc-actions {
  margin-top: 18px;
}

.zbsdc-feedback {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
}

.zbsdc-feedback.is-error {
  color: #c62828;
}

.zbsdc-feedback.is-success {
  color: #2e7d32;
}

@media (max-width: 767px) {
  .zbsdc-dialog {
    align-items: flex-end;
    padding: 12px;
  }

  .zbsdc-dialog-inner {
    max-width: none;
    padding: 22px;
    border-radius: 16px 16px 0 0;
  }

  .zbsdc-chip {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
    border-radius: 16px;
  }
}

.zbsdc-native-customization-hidden {
  display: none !important;
}

/*
 * Reserve the final cake layout from the first paint.
 *
 * The hook is initially rendered inside product-additional-info, then moved
 * immediately before the add-to-cart section by front.js. Hiding the hook
 * until it reaches that final position prevents the visible page jump.
 * :has() also suppresses PrestaShop's native customization form before the
 * module has added its body class, avoiding a second large layout shift.
 */
body:has([data-zbsdc-cake-order]) .product-customization,
body.zbsdc-cake-product .product-customization {
  display: none !important;
}

[data-zbsdc-cake-order] {
  display: none !important;
}

#add-to-cart-or-refresh > [data-zbsdc-cake-order][data-zbsdc-initialized="1"] {
  display: block !important;
}

.zbsdc-cake-order {
  margin: 12px 0 16px;
  padding: 18px 20px;
  border: 2px solid #24845f;
  border-radius: 12px;
  background: linear-gradient(145deg, #f2faf6 0%, #fbfefc 100%);
  color: #14392d;
  box-shadow: 0 9px 24px rgba(24, 112, 78, .11);
}

.zbsdc-cake-order__field + .zbsdc-cake-order__field {
  margin-top: 16px;
}

.zbsdc-cake-order__field label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #173a2f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.zbsdc-cake-order__field label small {
  padding: 2px 7px;
  border-radius: 999px;
  background: #dcefe6;
  color: #176746;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.zbsdc-cake-order__field > p:not(.zbsdc-cake-order__availability):not(.zbsdc-cake-order__feedback) {
  margin: -1px 0 9px;
  color: #687770;
  font-size: 13px;
  line-height: 1.4;
}

.zbsdc-required {
  color: #b42318;
}

.zbsdc-cake-order select,
.zbsdc-cake-order textarea {
  width: 100%;
  border: 2px solid #add2c3;
  border-radius: 10px;
  background: #fff;
  color: #173a2f;
  font: inherit;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.zbsdc-cake-order select {
  min-height: 50px;
  padding: 0 42px 0 14px;
}

.zbsdc-cake-order textarea {
  min-height: 88px;
  padding: 13px 14px;
  resize: vertical;
}

.zbsdc-cake-order select:focus,
.zbsdc-cake-order textarea:focus {
  border-color: #1d8060;
  box-shadow: 0 0 0 3px rgba(29,128,96,.12);
}

.zbsdc-cake-order__availability,
.zbsdc-cake-order__feedback {
  min-height: 0;
  margin: 6px 0 0;
  color: #687a73;
  font-size: 12px;
}

.zbsdc-cake-order__availability.is-confirmed {
  color: #177457;
  font-weight: 600;
}

.zbsdc-cake-order__availability:empty,
.zbsdc-cake-order__feedback:empty {
  display: none;
}

.zbsdc-cake-order__feedback.is-error,
.zbsdc-cake-order__unavailable {
  color: #a83232;
}

.zbsdc-cake-order__count {
  display: block;
  margin-top: 5px;
  color: #7b8984;
  font-size: 11px;
  text-align: right;
}

@media (max-width: 767px) {
  .zbsdc-cake-order {
    margin: 10px 0 14px;
    padding: 16px;
  }

}

body.zbsdc-cake-product #product-description-short-2,
body.zbsdc-cake-product .product-description-short {
  margin-bottom: 12px;
}

/* Keep sharing secondary to the product action and review content. */
body.zbsdc-cake-product .tvproduct-stock-social,
body.zbsdc-cake-product .product-additional-info {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}

body.zbsdc-cake-product .product-additional-info > .social-icon {
  order: 99;
  width: 100%;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #d8e7df;
}

body.zbsdc-cake-product .product-additional-info > .social-icon ul {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
}

body.zbsdc-cake-product .product-additional-info > .social-icon li {
  margin: 0;
}
