html.route-product-product {
  --mespi-detail-border: #eee9f6;
  --mespi-detail-border-strong: #eadff6;
  --mespi-detail-soft: #faf8fd;
  --mespi-detail-text: #342943;
  --mespi-detail-muted: #6d6477;
  --mespi-detail-primary: #6f42c1;
  --mespi-detail-accent: #e85f8e;
  --mespi-detail-shadow: 0 8px 24px rgba(33, 23, 50, .06);
}

html.route-product-product .tabs-container {
  position: relative;
  padding: 16px;
  border: 1px solid var(--mespi-detail-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--mespi-detail-shadow);
  overflow: hidden;
}

html.route-product-product .tabs-container .tab-content {
  margin: 0 !important;
  padding-top: 16px;
  border: 0 !important;
  border-top: 1px solid var(--mespi-detail-border) !important;
  background: #fff;
}

html.route-product-product .tabs-container .tab-pane {
  background: transparent;
}

html.route-product-product .module-products,
html.route-product-product .module-blocks {
  border-radius: 8px;
}

html.route-product-product .balloon-lines-block {
  margin: 18px 0 16px;
  color: var(--mespi-detail-text);
}

html.route-product-product .balloon-line-grid {
  gap: 14px !important;
  padding: 16px !important;
  border: 1px solid var(--mespi-detail-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: var(--mespi-detail-shadow);
}

html.route-product-product .line-text .control-label,
html.route-product-product .line-font .control-label {
  margin-bottom: 7px !important;
  color: var(--mespi-detail-text) !important;
  font-size: 14px;
  font-weight: 700 !important;
  line-height: 1.25;
}

html.route-product-product .font-preview-input,
html.route-product-product .mobile input.font-preview-input:not([type=button]):not([type=submit]),
html.route-product-product .product-info .product-options input.font-preview-input.form-control,
html.route-product-product.mobile .product-info .product-options input.font-preview-input.form-control:not([type=button]):not([type=submit]),
html.route-product-product .ss-main {
  min-height: 56px !important;
  height: 56px !important;
  padding: 10px 14px !important;
  border: 1px solid var(--mespi-detail-border-strong) !important;
  border-radius: 8px !important;
  background: var(--mespi-detail-soft) !important;
  color: var(--mespi-detail-text) !important;
  box-shadow: none !important;
}

html.route-product-product .font-preview-input:focus,
html.route-product-product .product-info .product-options input.font-preview-input.form-control:focus,
html.route-product-product .ss-main:focus,
html.route-product-product .ss-main.ss-open-below,
html.route-product-product .ss-main.ss-open-above {
  border-color: var(--mespi-detail-primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, .1) !important;
  outline: 0 !important;
}

html.route-product-product .balloon-charhint,
html.route-product-product .balloon-contrast-warning {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.35;
}

html.route-product-product .balloon-add-wrap {
  margin: 12px 0 16px !important;
}

html.route-product-product .balloon-add-line-btn {
  min-height: 42px;
  padding: 0 16px !important;
  border: 1px solid var(--mespi-detail-border-strong) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--mespi-detail-primary) !important;
  box-shadow: 0 8px 18px rgba(33, 23, 50, .05);
}

html.route-product-product .balloon-add-line-btn:hover,
html.route-product-product .balloon-add-line-btn:focus {
  border-color: var(--mespi-detail-primary) !important;
  background: var(--mespi-detail-soft) !important;
  color: var(--mespi-detail-primary) !important;
  box-shadow: 0 10px 22px rgba(111, 66, 193, .12) !important;
  transform: translateY(-1px);
}

html.route-product-product .balloon-add-line-icon {
  width: 24px !important;
  height: 24px !important;
  background: linear-gradient(135deg, var(--mespi-detail-primary), var(--mespi-detail-accent)) !important;
  color: #fff !important;
}

html.route-product-product .balloon-preview-panel {
  margin-top: 12px !important;
  padding: 16px 12px 12px !important;
  border: 1px solid var(--mespi-detail-border) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #fff 0%, var(--mespi-detail-soft) 100%) !important;
  box-shadow: var(--mespi-detail-shadow);
}

html.route-product-product .balloon-surcharge-note,
html.route-product-product .balloon-surcharge-summary {
  border-color: var(--mespi-detail-border-strong) !important;
  background: var(--mespi-detail-soft) !important;
  color: var(--mespi-detail-muted) !important;
}

html.route-product-product .balloon-surcharge-note-value,
html.route-product-product .balloon-surcharge-summary-value {
  color: var(--mespi-detail-primary) !important;
}

html.route-product-product .product-bundle-box,
html.route-product-product .product-bundle-offers,
html.route-product-product .product-bundle-chips {
  margin: 16px 0 18px;
  padding: 14px 16px !important;
  border: 1px solid var(--mespi-detail-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: var(--mespi-detail-shadow);
  overflow: visible;
}

html.route-product-product .product-bundle-chips {
  padding: 14px;
}

html.route-product-product .product-bundle-toggle {
  min-height: 0;
  padding: 0 0 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--mespi-detail-text);
}

html.route-product-product .product-bundle-toggle-title,
html.route-product-product .product-bundle-offers-title,
html.route-product-product .categories-tags-title {
  color: var(--mespi-detail-text);
  font-size: 15px;
  font-weight: 700 !important;
  line-height: 1.25;
}

html.route-product-product .product-bundle-offers-head {
  margin: 0 0 12px !important;
}

html.route-product-product .product-bundle-toggle-discount,
html.route-product-product .product-bundle-offer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mespi-detail-soft);
  color: var(--mespi-detail-primary) !important;
  font-size: 12px;
  font-weight: 800 !important;
}

html.route-product-product .product-bundle-content {
  padding: 12px 0 0 !important;
  border-top: 1px solid var(--mespi-detail-border) !important;
}

html.route-product-product .product-bundle-grid,
html.route-product-product .product-bundle-offers-grid,
html.route-product-product .product-bundle-chip-list {
  gap: 10px !important;
}

html.route-product-product .product-bundle-card,
html.route-product-product .product-bundle-offer-card,
html.route-product-product .product-bundle-chip {
  border: 0 !important;
  border-radius: 8px !important;
  padding: 10px !important;
  background: var(--mespi-detail-soft) !important;
  color: var(--mespi-detail-text) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background-color .16s ease, color .16s ease;
}

html.route-product-product .product-bundle-offer-card {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
}

html.route-product-product .product-bundle-card-image,
html.route-product-product .product-bundle-offer-image,
html.route-product-product .product-bundle-chip-image {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fff;
  line-height: 0;
  text-decoration: none !important;
}

html.route-product-product .product-bundle-offer-image {
  width: 64px;
  height: 64px;
}

html.route-product-product .product-bundle-card-image img,
html.route-product-product .product-bundle-offer-image img,
html.route-product-product .product-bundle-chip-image img {
  display: block;
  width: 46px !important;
  max-width: none !important;
  height: 46px !important;
  margin: auto;
  border-radius: 6px !important;
  object-fit: contain !important;
}

html.route-product-product .product-bundle-offer-image img {
  width: 56px !important;
  height: 56px !important;
}

html.route-product-product .product-bundle-card:hover,
html.route-product-product .product-bundle-offer-card:hover,
html.route-product-product .product-bundle-chip:hover {
  background: #f6f1fc !important;
  box-shadow: none !important;
  transform: none !important;
}

html.route-product-product .product-bundle-card-name,
html.route-product-product .product-bundle-offer-name,
html.route-product-product .product-bundle-chip-name {
  color: var(--mespi-detail-text) !important;
  font-weight: 700;
}

html.route-product-product .product-bundle-card-meta,
html.route-product-product .product-bundle-offers-subtitle,
html.route-product-product .product-bundle-offer-meta,
html.route-product-product .product-bundle-chip-qty {
  color: var(--mespi-detail-muted) !important;
}

html.route-product-product .product-bundle-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border: 0 !important;
  border-radius: 8px;
  background: var(--mespi-detail-soft);
}

html.route-product-product .product-bundle-summary-row {
  margin: 0;
  padding: 4px 0;
  color: var(--mespi-detail-muted);
}

html.route-product-product .product-bundle-summary-total {
  color: var(--mespi-detail-text);
}

html.route-product-product .product-bundle-offer-price-current {
  color: var(--mespi-detail-primary) !important;
  font-size: 15px !important;
}

html.route-product-product .product-bundle-offer-btn.btn-cart {
  min-width: 122px;
  min-height: 40px;
}

html.route-product-product .btn-cart-bundle-items.btn-cart::before,
html.route-product-product .btn-cart-bundle-items.btn-cart::after {
  display: none !important;
  content: none !important;
}

html.route-product-product .product-info .product-details .stepper-group.cart-group {
  gap: 10px 10px;
}

html.route-product-product .product-info .product-details .stepper-group.cart-group .extra-group {
  flex: 1 0 100%;
  order: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  margin-top: 2px;
  font-size: 13px;
}

html.route-product-product .product-info .button-group-page .extra-group .btn-extra {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 30px !important;
  height: auto !important;
  padding: 4px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--mespi-detail-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}

html.route-product-product .product-info .button-group-page .extra-group .btn-extra::before,
html.route-product-product .product-info .button-group-page .extra-group .btn-extra::after {
  display: none !important;
  content: none !important;
}

html.route-product-product .product-info .button-group-page .extra-group .btn-extra .btn-text {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  color: inherit !important;
  line-height: inherit !important;
  white-space: normal !important;
}

html.route-product-product .product-info .button-group-page .extra-group .btn-extra:hover,
html.route-product-product .product-info .button-group-page .extra-group .btn-extra:focus {
  color: var(--mespi-detail-primary) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  html.route-product-product .tabs-container {
    padding: 12px;
  }

  html.route-product-product .tabs-container .tab-content {
    padding-top: 14px;
  }

  html.route-product-product .balloon-line-grid {
    padding: 12px !important;
  }

  html.route-product-product .font-preview-input,
  html.route-product-product .mobile input.font-preview-input:not([type=button]):not([type=submit]),
  html.route-product-product .product-info .product-options input.font-preview-input.form-control,
  html.route-product-product.mobile .product-info .product-options input.font-preview-input.form-control:not([type=button]):not([type=submit]),
  html.route-product-product .ss-main {
    min-height: 52px !important;
    height: 52px !important;
  }

  html.route-product-product .balloon-add-line-btn {
    width: 100%;
    justify-content: center;
  }

  html.route-product-product .product-bundle-content,
  html.route-product-product .product-bundle-offers,
  html.route-product-product .product-bundle-chips {
    padding: 12px !important;
  }

  html.route-product-product .product-bundle-box {
    padding: 12px !important;
  }

  html.route-product-product .product-bundle-toggle {
    padding: 12px !important;
  }

  html.route-product-product .product-bundle-offer-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }

  html.route-product-product .product-bundle-offer-image {
    width: 54px;
    height: 54px;
    border-radius: 10px;
  }

  html.route-product-product .product-bundle-offer-image img {
    width: 48px !important;
    height: 48px !important;
  }

  html.route-product-product .product-bundle-offer-bottom {
    align-items: center;
    flex-wrap: wrap;
  }

  html.route-product-product .product-bundle-offer-btn.btn-cart {
    min-width: 104px;
  }

  html.route-product-product .product-info .product-details .stepper-group.cart-group .extra-group {
    justify-content: center;
    gap: 6px 14px;
  }

  html.route-product-product .product-info .button-group-page .extra-group .btn-extra {
    font-size: 12px !important;
  }
}
