body.tes-quick-open { overflow: hidden; }
.tes-quick-dialog {
  box-sizing: border-box; width: min(94vw, 690px); max-height: 88vh; overflow: auto;
  padding: 22px; border: 1px solid #dbe3ea; border-radius: 12px;
  background: #fff; color: #203242; box-shadow: 0 18px 60px #182b3d33;
}
.tes-quick-dialog::backdrop { background: #182b3d88; }
.tes-quick-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tes-quick-head h2 { margin: 0; font-size: 1.35rem; line-height: 1.3; }
.tes-quick-dialog .tes-quick-close { background: transparent; color: #304455; border: 0; padding: 0 10px; font-size: 30px; line-height: 1.1; min-width: 42px; }
.tes-quick-content { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tes-quick-image { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; }
.tes-quick-image[hidden], .tes-quick-price[hidden], .tes-quick-cart[hidden] { display: none !important; }
.tes-quick-price { font-size: 1.2rem; font-weight: 650; margin-bottom: 12px; }
.tes-quick-dialog form.cart { margin: 0; width: 100%; }
.tes-quick-dialog table.variations { margin: 0 0 10px; border: 0; width: 100%; }
.tes-quick-dialog table.variations th, .tes-quick-dialog table.variations td { display: block; padding: 4px 0; border: 0; text-align: left; }
.tes-quick-dialog table.variations select { width: 100%; margin: 0; min-height: 42px; }
.tes-quick-dialog .reset_variations { display: none !important; }
.tes-quick-dialog .variations_button { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tes-quick-dialog .quantity { margin: 0 !important; }
.tes-quick-dialog .single_add_to_cart_button { flex: 1; min-height: 42px; }
.tes-quick-dialog .single_add_to_cart_button.disabled, .tes-quick-dialog .single_add_to_cart_button:disabled { opacity: .55; cursor: not-allowed; }
.tes-quick-status { margin: 14px 0 0; color: #304455; font-size: .95rem; }
.tes-quick-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
@media (max-width: 540px) {
  .tes-quick-dialog { width: 94vw; padding: 16px; max-height: 90vh; }
  .tes-quick-content { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tes-quick-image { max-height: 130px; justify-self: center; width: auto; max-width: 100%; }
  .tes-quick-head h2 { font-size: 1.15rem; }
}

.tes-quick-dialog .variations_button > a.added_to_cart { display: none; }
