/* Load AFTER the current ChefsTemp content-only.css. Scoped to this popup. */
dialog.ct-shop-dialog.ct-compact {
  --ct-red: #d71920;
  --ct-red-hover: #b31319;
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
  position: fixed;
  inset: 0 !important;
  transform: none !important;
  height: fit-content !important;
  min-height: 0;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 16px 48px rgb(0 0 0 / 18%);
  background: #fff;
  color: #202020;
  font-family: inherit;
  line-height: 1.5;
  text-align: left;
}
dialog.ct-shop-dialog.ct-compact[open] { display: block; }
.ct-shop-dialog.ct-compact .ct-shop-stage { flex: none; display: block; }
.ct-shop-dialog.ct-compact table.variations tr { margin-bottom: 0; }
.ct-shop-dialog.ct-compact .woocommerce-variation-description,
.ct-shop-dialog.ct-compact .woocommerce-variation-availability,
.ct-shop-dialog.ct-compact .woocommerce-variation-price { margin: 0; }
.ct-shop-dialog.ct-compact .woocommerce-variation-add-to-cart { margin-top: 0; }
.ct-shop-dialog.ct-compact .ct-shop-close:hover { background: transparent; color: #444; border: 0; }
.ct-compact::backdrop { background: rgb(0 0 0 / 48%); backdrop-filter: none; }
.ct-shop-dialog.ct-compact *, .ct-shop-dialog.ct-compact *::before, .ct-shop-dialog.ct-compact *::after { box-sizing: border-box; }
.ct-shop-dialog.ct-compact [hidden] { display: none !important; }
.ct-shop-dialog.ct-compact .ct-shop-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 0; border: 0; background: transparent;
}
.ct-shop-dialog.ct-compact .ct-shop-header > div { min-width: 0; flex: 1; }
.ct-shop-dialog.ct-compact #ct-shop-heading {
  margin: 0; color: #202020; font-size: 23px; line-height: 1.28;
  font-weight: 650; letter-spacing: -.35px; text-transform: none;
  overflow-wrap: anywhere;
}
.ct-shop-dialog.ct-compact .ct-shop-close {
  position: relative; flex: 0 0 44px; width: 44px; height: 44px;
  min-width: 44px; min-height: 44px; margin: -9px -10px 0 0;
  padding: 0; border: 0; border-radius: 0; background: transparent;
  color: #444; font: 28px/44px Arial, sans-serif; cursor: pointer;
  isolation: isolate; box-shadow: none;
}
.ct-shop-dialog.ct-compact .ct-shop-close::before {
  content: ''; position: absolute; inset: 8px; z-index: -1;
  background: #f3f3f3; border-radius: 50%;
}
.ct-shop-dialog.ct-compact .ct-shop-close:hover::before { background: #e9e9e9; }
.ct-shop-dialog.ct-compact .ct-shop-stage, .ct-shop-dialog.ct-compact .ct-shop-body {
  height: auto; min-height: 0; max-height: none; overflow: visible;
  padding: 0; background: transparent;
}
.ct-shop-dialog.ct-compact .ct-shop-stage { margin-top: 22px; }
.ct-shop-dialog.ct-compact form.cart { margin: 0 !important; padding: 0 !important; }
.ct-shop-dialog.ct-compact table.variations { width: 100%; margin: 0 !important; border: 0; }
.ct-shop-dialog.ct-compact table.variations tbody, .ct-shop-dialog.ct-compact table.variations tr,
.ct-shop-dialog.ct-compact table.variations th, .ct-shop-dialog.ct-compact table.variations td {
  display: block; width: 100%; padding: 0; border: 0; background: transparent;
}
.ct-shop-dialog.ct-compact table.variations tr + tr { margin-top: 16px; }
.ct-shop-dialog.ct-compact table.variations .label { margin-bottom: 8px; }
.ct-shop-dialog.ct-compact .variations label {
  margin: 0; color: #444; font-size: 13px; font-weight: 500;
  text-transform: none; letter-spacing: 0;
}
.ct-shop-dialog.ct-compact .ct-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-shop-dialog.ct-compact .ct-option {
  min-height: 42px; padding: 9px 15px; border: 1px solid #d7d7d7;
  border-radius: 3px; background: #fff; color: #333; box-shadow: none;
  font: inherit; font-size: 13px; font-weight: 500;
  text-transform: none; cursor: pointer;
}
.ct-shop-dialog.ct-compact .ct-option:hover:not(:disabled) { border-color: #888; }
.ct-shop-dialog.ct-compact .ct-option[aria-pressed='true'] {
  border-color: var(--ct-red); background: #fff3f3; color: var(--ct-red);
}
.ct-shop-dialog.ct-compact .ct-option:disabled { opacity: .4; cursor: not-allowed; }
.ct-shop-dialog.ct-compact .ct-native-select { display: none !important; }
.ct-shop-dialog.ct-compact .variations select:not(.ct-native-select) {
  width: 100%; min-height: 44px; margin: 0; padding: 9px 36px 9px 12px;
  border: 1px solid #ccc; border-radius: 3px; color: #202020;
  appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23555' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") right 13px center / 12px 8px no-repeat;
}
.ct-shop-dialog.ct-compact .reset_variations { display: inline-block; margin: 8px 0 0; font-size: 12px; color: #666; }
.ct-shop-dialog.ct-compact .single_variation_wrap { margin: 22px 0 0 !important; padding: 0 !important; }
.ct-shop-dialog.ct-compact .single_variation { min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
.ct-shop-dialog.ct-compact .woocommerce-variation-description:empty { display: none; }
.ct-shop-dialog.ct-compact .woocommerce-variation-description p { margin: 0 0 12px; font-size: 13px; }
.ct-shop-dialog.ct-compact .price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px;
  margin: 0; color: #202020; font-size: 28px; font-weight: 700; line-height: 1.25;
}
.ct-shop-dialog.ct-compact .price del { color: #888; font-size: 14px; font-weight: 400; opacity: 1; }
.ct-shop-dialog.ct-compact .price ins { color: #202020; font-size: 28px; font-weight: 700; text-decoration: none; background: transparent; }
.ct-shop-dialog.ct-compact .ct-saving { color: var(--ct-red); font-size: 13px; font-weight: 650; white-space: nowrap; }
.ct-shop-dialog.ct-compact .stock { margin: 9px 0 16px !important; color: #666; font-size: 12px; }
.ct-shop-dialog.ct-compact .stock.out-of-stock { color: #a41b20; }
.ct-shop-dialog.ct-compact .woocommerce-variation-add-to-cart,
.ct-shop-dialog.ct-compact form.cart:not(.variations_form) {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
}
.ct-shop-dialog.ct-compact form.cart:not(.variations_form) > .price,
.ct-shop-dialog.ct-compact form.cart:not(.variations_form) > .stock { flex-basis: 100%; }
.ct-shop-dialog.ct-compact .quantity {
  display: flex; flex: 0 0 102px; width: 102px; height: 48px;
  margin: 0 !important; border: 1px solid #ccc; border-radius: 3px; overflow: hidden;
}
.ct-shop-dialog.ct-compact .quantity input.qty {
  flex: 1; width: 40px; min-width: 0; height: 46px; padding: 0 3px;
  border: 0; border-radius: 0; text-align: center; background: #fff;
  color: #202020; font-size: 14px; box-shadow: none;
}
.ct-shop-dialog.ct-compact .quantity input[type='button'], .ct-shop-dialog.ct-compact .quantity button {
  width: 27px; min-width: 27px; height: 46px; padding: 0;
  border: 0; background: #fff; color: #444;
}
.ct-shop-dialog.ct-compact .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ct-shop-dialog.ct-compact .single_add_to_cart_button {
  flex: 1; width: auto; min-width: 140px; height: 48px; min-height: 48px;
  margin: 0 !important; padding: 0 16px; border: 1px solid var(--ct-red);
  border-radius: 3px; background: var(--ct-red); color: #fff;
  font: inherit; font-size: 14px; font-weight: 650; text-transform: none;
  box-shadow: none; cursor: pointer; transition: background .15s;
}
.ct-shop-dialog.ct-compact .single_add_to_cart_button:hover:not(:disabled) { background: var(--ct-red-hover); border-color: var(--ct-red-hover); }
.ct-shop-dialog.ct-compact .single_add_to_cart_button:active:not(:disabled) { background: #960f15; }
.ct-shop-dialog.ct-compact .single_add_to_cart_button:disabled { opacity: .48; cursor: not-allowed; }
.ct-compact[data-busy='1'] .single_add_to_cart_button { opacity: .75; cursor: progress; }
.ct-shop-dialog.ct-compact .ct-shop-footer {
  display: block; margin: 18px 0 0; padding: 0; min-height: 0;
  border: 0; background: transparent; text-align: left;
}
.ct-shop-dialog.ct-compact .ct-shop-external { color: #666; font-size: 12px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.ct-shop-dialog.ct-compact .ct-shop-status, .ct-shop-dialog.ct-compact .ct-shop-success { margin: 0 0 14px; padding: 0; background: transparent; font-size: 13px; }
.ct-shop-dialog.ct-compact :is(button, a, select, input):focus-visible { outline: 2px solid var(--ct-red); outline-offset: 3px; }
@media (max-width: 540px) {
  dialog.ct-shop-dialog.ct-compact { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 22px 20px; }
  .ct-shop-dialog.ct-compact #ct-shop-heading { font-size: 21px; }
  .ct-shop-dialog.ct-compact .ct-shop-stage { margin-top: 20px; }
  .ct-shop-dialog.ct-compact .ct-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-shop-dialog.ct-compact .quantity { flex-basis: 94px; width: 94px; }
  .ct-shop-dialog.ct-compact .single_add_to_cart_button { min-width: 110px; padding: 0 10px; }
}
