body.qb-lock { overflow: hidden; }
#qb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: Gilroy, semibold;
}
.qb-hidden { display: none !important; }
.qb-sheet {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 14px 16px 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  animation: qbUp .45s cubic-bezier(.22,1.4,.36,1);
}
@media screen and (min-width:960px){ .qb-sheet { max-width:520px; } }
@keyframes qbUp {
  0% { transform: translateY(100%); }
  70% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
.qb-handle { width: 40px; height: 4px; background: #ddd; border-radius: 4px; margin: 4px auto 12px; }
.qb-title-wrap { text-align: center; margin-bottom: 18px; }
.qb-title { font-size: 18px; font-weight: 500; }
.qb-meta { font-size: 13px; color: #666; margin-top: 4px; }
.qb-section { margin-bottom: 16px; }
.qb-label { font-size: 14px; color: #555; margin-bottom: 8px; text-align: center; text-transform: lowercase; }
.qb-options { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.qb-color, .qb-size {
  border: 1px solid #000bbf;
  cursor: pointer;
  text-transform: lowercase;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qb-color { width: 24px; height: 24px; border-radius: 50%; }
.qb-color.qb-active { outline: 2px solid #000bbf; outline-offset: 2px; }
.qb-size { width: 36px; height: 36px; font-size: 12px; border-radius: 5px; }
.qb-size.qb-active { background: #000bbf; color: #fff; }
.qb-size-link { margin-top: 8px; text-align: center; }
.qb-size-link a { font-size: 13px; color: #000bbf; text-decoration: none; }
.qb-actions { display: flex; justify-content: center; margin: 0 auto; }
#qb-add { font-size: 15px; padding: 10px 0; border-radius: 5px; background: #000bbf; color: #fff; border: none; cursor: pointer; max-width:200px; }
.qb-error { animation: shake .4s; }
@keyframes shake {
  0%,100%{ transform: translateX(0); }
  25%{ transform: translateX(-6px); }
  50%{ transform: translateX(6px); }
  75%{ transform: translateX(-6px); }
}
.custom-print-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 28px 16px;
  font-family: 'Gilroy', Arial, sans-serif;
  text-align: center;
}
/* Текст */
.custom-print-text {
  font-size: 16px;
  font-weight: 500; /* medium */
  color: #000000;
  line-height: 1.4;
}
/* Кнопка в фирменном стиле */
.custom-print-link {
  padding: 12px 22px;
  border: 1.5px solid #000BBF;
  background-color: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.custom-print-link:hover {
  background-color: #000BBF;
  color: #000BBF;
}
/* Мобильная адаптация */
@media (max-width: 640px) {
  .custom-print-inline {
    flex-direction: column;
    gap: 14px;
    padding: 24px 12px;
  }
  .custom-print-text {
    font-size: 15px;
  }
  .custom-print-link {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}