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); }
}