/* =============================================================
   GPie Quote List – Frontend Styles  v1.5.2
   ============================================================= */

.wcql-product-actions, .wcql-overlay, .wcql-page-wrap, .wcql-submit-modal, #wcql-float-widget, .wcql-variation-sku, .wcql-button--loop {
  --wcql-blue:     #3874c0;
  --wcql-blue-dk:  #2e62a8;
  --wcql-blue-lt:  #edf3fb;
  --wcql-atq-bg: #3874c0;
  --wcql-atq-bg-dk: #2e62a8;
  --wcql-atq-text: #ffffff;
  --wcql-atq-hover-bg: #2e62a8;
  --wcql-atq-hover-text: #ffffff;
  --wcql-quotenow-bg: #ffffff;
  --wcql-quotenow-text: #3874c0;
  --wcql-quotenow-hover-bg: #edf3fb;
  --wcql-quotenow-hover-text: #3874c0;
  --wcql-ink:      #1a1f2b;
  --wcql-gray:     #8a93a3;
  --wcql-border:   #e6e9ee;
  --wcql-bg-soft:  #f7f9fc;
  --wcql-radius:   8px;
  --wcql-atq-width: 160px;
  --wcql-quotenow-width: 160px;
  --wcql-trans:    .18s ease;
}

/* Quote component buttons; never inherit WooCommerce or Elementor button classes. */
.wcql-product-actions {
  display: flex;
  flex-wrap: var(--wcql-wrap, wrap);
  justify-content: var(--wcql-align, flex-start);
  gap: var(--wcql-gap, 10px);
  margin-top: var(--wcql-margin-top, 0px);
  margin-bottom: var(--wcql-margin-bottom, 0px);
}
.wcql-variation-sku { margin: 10px 0 0; font-size: .88em; color: var(--wcql-gray); }
.wcql-variation-sku-label { font-weight: 600; color: #555; margin-right: 4px; }
.wcql-variation-sku-value { font-family: monospace; color: var(--wcql-blue); }
.wcql-replace-cart form.cart .single_add_to_cart_button { display: none !important; }
.wcql-product-actions .wcql-button {
  appearance: none;
  box-sizing: border-box;
  font: inherit;
  font-family: var(--e-global-typography-accent-font-family, inherit);
  font-size: var(--e-global-typography-accent-font-size, inherit);
  font-weight: var(--e-global-typography-accent-font-weight, inherit);
  letter-spacing: var(--e-global-typography-accent-letter-spacing, inherit);
  line-height: var(--e-global-typography-accent-line-height, inherit);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid;
  border-radius: var(--wcql-radius);
  padding: var(--wcql-padding-y, 12px) var(--wcql-padding-x, 14px);
  white-space: normal;
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  text-transform: none;
  transition: background var(--wcql-trans), color var(--wcql-trans), border-color var(--wcql-trans);
  min-width: 0;
}
.wcql-product-actions .wcql-button--add,
.wcql-product-actions .wcql-button--add:disabled {
  width: var(--wcql-atq-width);
  background: var(--wcql-atq-bg);
  color: var(--wcql-atq-text);
  border-color: var(--wcql-atq-border, var(--wcql-atq-bg));
}
.wcql-product-actions .wcql-button--add:hover:not(:disabled) {
  background: var(--wcql-atq-hover-bg);
  color: var(--wcql-atq-hover-text);
  border-color: var(--wcql-atq-hover-border, var(--wcql-atq-hover-bg));
}
.wcql-product-actions .wcql-button--now,
.wcql-product-actions .wcql-button--now:disabled {
  border-width: var(--wcql-quotenow-border-width, 2px);
  border-style: var(--wcql-quotenow-border-style, solid);
  width: var(--wcql-quotenow-width);
  background: var(--wcql-quotenow-bg);
  color: var(--wcql-quotenow-text);
  border-color: var(--wcql-quotenow-border, var(--wcql-blue));
}
.wcql-product-actions .wcql-button--now:hover:not(:disabled) {
  background: var(--wcql-quotenow-hover-bg);
  color: var(--wcql-quotenow-hover-text);
  border-color: var(--wcql-quotenow-hover-border, var(--wcql-blue));
}
/* Keep configured colors while product options are incomplete. */
.wcql-product-actions .wcql-button:disabled { opacity: 1 !important; filter: none !important; cursor: not-allowed; pointer-events: none; }
.wcql-hide-product-quantity form.cart .quantity { display: none !important; }
.wcql-browse-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wcql-page-wrap .wcql-list-table { table-layout: auto; }
.wcql-page-wrap .wcql-td-qty { width: 110px; }
.wcql-page-wrap .wcql-qty { width: 90px; max-width: 100%; }
.wcql-page-wrap, .wcql-overlay, .wcql-submit-modal { font-family: var(--e-global-typography-text-font-family, inherit); }
.wcql-page-wrap button, .wcql-page-wrap input, .wcql-overlay button, .wcql-submit-modal button { font-family: inherit; }
.wcql-product-actions[data-width-mode="equal"] .wcql-button { flex: 1 1 0; width: 0; }
.wcql-product-actions[data-width-mode="auto"] .wcql-button { width: auto; }
.wcql-product-actions[data-width-mode="full"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; box-sizing: border-box; }
.wcql-product-actions[data-width-mode="full"] .wcql-button { width: 100%; min-width: 0; }
.wcql-button--loop {
  display: inline-flex; align-items: center; justify-content: center;
  appearance: none; box-sizing: border-box; font: inherit;
  padding: 9px 16px; text-decoration: none; cursor: pointer;
  border: 0; border-radius: var(--wcql-radius);
  background: var(--wcql-blue); color: #fff;
}
.wcql-button--loop:hover { background: var(--wcql-blue-dk); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   Quote Now 弹窗
════════════════════════════════════════════════════════════ */
.wcql-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--wcql-trans), visibility var(--wcql-trans);
}
.wcql-overlay.active { opacity: 1; visibility: visible; }
.wcql-overlay[hidden] { display: none !important; }

.wcql-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(15,23,42,.28);
  overflow: hidden;
  position: relative;
  transform: translateY(14px) scale(.97);
  transition: transform var(--wcql-trans);
}
.wcql-overlay.active .wcql-modal { transform: translateY(0) scale(1); }

/* ── 关闭按钮：右上角内侧，正圆形浅灰底 ──
   用 !important 强制覆盖主题对 <button> 标签的全局样式（圆角药丸等） */
.wcql-modal-x {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(15,23,42,.06) !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 16px !important;
  line-height: 1 !important;
  color: #6b7280 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transition: background var(--wcql-trans), color var(--wcql-trans) !important;
  z-index: 5 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
}
.wcql-modal-x:hover {
  background: rgba(15,23,42,.12);
  color: #1a1f2b;
}

/* 产品信息区（右侧留白避开关闭按钮） */
.wcql-modal-product {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 48px 16px 20px;
  background: var(--wcql-bg-soft);
  border-bottom: 1px solid var(--wcql-border);
}
.wcql-modal-thumb {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid #e8e8e8;
  background: #fff;
}
.wcql-modal-meta { flex: 1; min-width: 0; }
.wcql-modal-title {
  font-weight: 700;
  font-size: 0.97em;
  color: var(--wcql-ink);
  margin: 0 0 5px;
  line-height: 1.35;
}
.wcql-modal-sku {
  font-size: 0.78em;
  color: #a3aab8;
  margin: 0 0 5px;
  font-family: monospace;
  letter-spacing: .02em;
}
.wcql-modal-attrs {
  font-size: 0.82em;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* 表单 */
.wcql-modal-form { padding: 18px 20px 6px; }

.wcql-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.wcql-field-row .wcql-field { margin-bottom: 0; }
@media (max-width: 420px) {
  .wcql-field-row { grid-template-columns: 1fr; }
}

.wcql-field { margin-bottom: 14px; }
.wcql-field label {
  display: block;
  font-size: 0.78em;
  font-weight: 700;
  color: #555;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.wcql-field label em { color: var(--wcql-blue); font-style: normal; }

.wcql-field input,
.wcql-field-ta {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--wcql-border);
  border-radius: var(--wcql-radius);
  font-size: 0.95em;
  transition: border-color var(--wcql-trans), box-shadow var(--wcql-trans);
  box-sizing: border-box;
  background: #fff;
  font-family: inherit;
}
.wcql-field-ta { resize: vertical; }
.wcql-field input:focus,
.wcql-field-ta:focus {
  border-color: var(--wcql-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(56,116,192,.12);
}

.wcql-modal-msg {
  font-size: 0.86em;
  margin: 4px 0 0;
  min-height: 18px;
}
.wcql-modal-msg.ok  { color: #1e8449; font-weight: 600; }
.wcql-modal-msg.err { color: #c0392b; font-weight: 600; }

.wcql-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--wcql-border);
}

:is(.wcql-overlay, .wcql-submit-modal) .wcql-btn-secondary {
  background: #fff !important;
  color: #666 !important;
  border: 1.5px solid #ddd !important;
  padding: 10px 22px !important;
  border-radius: var(--wcql-radius) !important;
  font-size: 0.9em !important;
  cursor: pointer !important;
  transition: border-color var(--wcql-trans), color var(--wcql-trans) !important;
}
:is(.wcql-overlay, .wcql-submit-modal) .wcql-btn-secondary:hover { border-color: #aaa !important; color: #333 !important; }

:is(.wcql-overlay, .wcql-submit-modal) .wcql-btn-primary {
  background: var(--wcql-blue) !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 28px !important;
  border-radius: var(--wcql-radius) !important;
  font-size: 0.9em !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background var(--wcql-trans), box-shadow var(--wcql-trans) !important;
  min-width: 100px;
  letter-spacing: .02em;
}
.wcql-btn-primary:hover:not(:disabled) {
  background: var(--wcql-blue-dk) !important;
  box-shadow: 0 4px 12px rgba(56,116,192,.35) !important;
}
.wcql-btn-primary:disabled { opacity: .5; cursor: not-allowed; }

body.wcql-modal-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════
   Quote List 页面
════════════════════════════════════════════════════════════ */
.wcql-page-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}

/* 空状态 */
.wcql-empty {
  text-align: center;
  padding: 72px 20px;
  color: var(--wcql-gray);
}
.wcql-empty svg { margin-bottom: 18px; opacity: .22; color: var(--wcql-blue); }
.wcql-empty p { font-size: 1.05em; margin: 0 0 22px; color: #98a2b3; }

/* 卡片容器 */
.wcql-list-card {
  background: #fff;
  border: 1px solid var(--wcql-border);
  border-bottom: 1px solid var(--wcql-border);
  border-radius: var(--wcql-card-radius, 0px);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}

/* 表格 */
.wcql-list-table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: 0;
  margin: 0;
}
.wcql-list-table thead th {
  padding: 14px 18px;
  background: var(--wcql-bg-soft);
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #98a2b3;
  text-align: left;
  border-bottom: 1px solid var(--wcql-border);
}
.wcql-th-img {
  width: 12%;
}
.wcql-th-sku {
  width: 15%;
}
.wcql-list-table tbody td {
  padding: 16px 18px;
  vertical-align: middle;
  background: transparent !important;
}
.wcql-list-table tbody tr {
  transition: background var(--wcql-trans);
}
.wcql-list-table tbody tr:nth-child(odd) td,
.wcql-list-table tbody tr:nth-child(even) td {
  background: transparent !important;
}
.wcql-list-table tbody tr:hover td { background: var(--wcql-bg-soft) !important; }

.wcql-item-thumb {
  width: var(--wcql-thumb-size, 100px);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: var(--wcql-img-radius, 8px);
  border: 1px solid var(--wcql-border);
  display: block;
  background: #fafafa;
}
.wcql-item-thumb.wcql-no-img { background: #f0f0f0; height: var(--wcql-thumb-size, 100px); }

.wcql-thumb-link {
  display: block;
  width: var(--wcql-thumb-size, 100px);
  height: auto;
  transition: opacity var(--wcql-trans);
}
.wcql-thumb-link:hover { opacity: .8; }

.wcql-item-name-link {
  text-decoration: none;
  display: block;
}
.wcql-item-name-link:hover .wcql-item-name {
  color: var(--wcql-blue);
}

.wcql-item-name {
  font-weight: 600;
  font-size: 0.98em;
  color: var(--wcql-ink);
  margin: 0 0 5px;
  line-height: 1.4;
}
.wcql-item-attrs {
  font-size: 1em;
  color: var(--wcql-gray);
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.6;
}
.wcql-item-attrs li {
  margin: 0;
  padding: 0;
}
.wcql-item-sku {
  font-size: 1em;
  color: var(--wcql-blue);
  font-family: monospace;
  letter-spacing: .01em;
}

.wcql-qty {
  width: 58px;
  padding: 7px 8px;
  border: 1.5px solid var(--wcql-border);
  border-radius: 6px;
  text-align: center;
  font-size: 0.92em;
  color: var(--wcql-ink);
  transition: border-color var(--wcql-trans);
}
.wcql-qty:focus { border-color: var(--wcql-blue); outline: none; }

.wcql-remove-btn {
  background: #aab2c0 !important;
  border: none !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background var(--wcql-trans) !important;
  line-height: 1 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
}
.wcql-remove-btn:hover { background: #e02424 !important; color: #fff !important; }

/* 操作栏 */
.wcql-actions-bar {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.wcql-action-continue {
  background: #fff !important;
  color: #555 !important;
  border: 1.5px solid #d8dce3 !important;
  padding: 12px 24px !important;
  border-radius: var(--wcql-radius) !important;
  font-size: 0.9em !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  text-decoration: none;
  display: inline-block;
  transition: border-color var(--wcql-trans), color var(--wcql-trans) !important;
}
.wcql-action-continue:hover { border-color: #aab1bd !important; color: #1a1f2b !important; }

.wcql-action-submit {
  background: var(--wcql-blue) !important;
  color: #fff !important;
  border: none !important;
  padding: 13px 32px !important;
  border-radius: var(--wcql-radius) !important;
  font-size: 0.92em !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background var(--wcql-trans), box-shadow var(--wcql-trans) !important;
  letter-spacing: .02em;
}
.wcql-action-submit:hover {
  background: var(--wcql-blue-dk) !important;
  box-shadow: 0 6px 16px rgba(56,116,192,.32) !important;
}

/* 提交全部弹窗 */
.wcql-submit-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--wcql-trans), visibility var(--wcql-trans);
}
.wcql-submit-modal.active { opacity: 1; visibility: visible; }
.wcql-submit-modal .wcql-modal { transform: translateY(14px) scale(.97); }
.wcql-submit-modal.active .wcql-modal { transform: translateY(0) scale(1); }

.wcql-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px 0 20px;
}
.wcql-modal-header h3 {
  font-size: 1.05em;
  margin: 0;
  color: var(--wcql-ink);
  font-weight: 700;
}
.wcql-modal-header-desc {
  font-size: 0.86em;
  color: #98a2b3;
  margin: 4px 0 0;
}

.wcql-notice { min-height: 18px; font-size: 0.86em; margin: 0; }
.wcql-notice.ok  { color: #1e8449; font-weight: 600; }
.wcql-notice.err { color: #c0392b; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   悬浮 Widget（右下角）
════════════════════════════════════════════════════════════ */
#wcql-float-widget {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 99990;
}

#wcql-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--wcql-blue);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(56,116,192,.4);
  text-decoration: none;
  position: relative;
  transition: background var(--wcql-trans), transform var(--wcql-trans), box-shadow var(--wcql-trans);
}
#wcql-float-btn:hover {
  background: var(--wcql-blue-dk);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(56,116,192,.45);
}

.wcql-float-icon { width: 22px; height: 22px; display: block; flex-shrink: 0; }

#wcql-float-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e02424;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  line-height: 1;
  box-sizing: border-box;
}
#wcql-float-badge.wcql-pop { animation: wcqlPop .3s ease; }
@keyframes wcqlPop {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.55); }
}

#wcql-float-panel {
  position: absolute;
  bottom: 62px;
  right: 0;
  width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 36px rgba(15,23,42,.18);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.96);
  transition: opacity var(--wcql-trans), visibility var(--wcql-trans), transform var(--wcql-trans);
  pointer-events: none;
}
#wcql-float-widget:hover #wcql-float-panel,
#wcql-float-widget:focus-within #wcql-float-panel,
#wcql-float-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wcql-fp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 15px;
  background: var(--wcql-bg-soft);
  border-bottom: 1px solid var(--wcql-border);
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #555;
}
#wcql-float-panel-count { font-weight: 400; color: #bbb; text-transform: none; letter-spacing: 0; }

.wcql-fp-body {
  max-height: 260px;
  overflow-y: auto;
  padding: 6px 0;
}
.wcql-fp-body::-webkit-scrollbar { width: 3px; }
.wcql-fp-body::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }

.wcql-float-empty {
  text-align: center;
  color: #bbb;
  font-size: 0.85em;
  padding: 22px 16px;
  margin: 0;
}

.wcql-float-list { list-style: none; margin: 0; padding: 0; }
.wcql-fi {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  transition: background var(--wcql-trans);
}
.wcql-fi:hover { background: #fafbfd; }

.wcql-float-thumb {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: 5px;
  flex-shrink: 0;
  border: 1px solid #eee;
  display: block;
}
.wcql-no-img { background: #f0f0f0; }

.wcql-fi-info { flex: 1; min-width: 0; }
.wcql-fi-name {
  font-size: 0.83em;
  font-weight: 500;
  color: #222;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wcql-fi-attr {
  font-size: 0.76em;
  color: #aaa;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wcql-fi-qty { font-size: 0.8em; color: #bbb; flex-shrink: 0; }
.wcql-fi-more {
  font-size: 0.78em;
  color: #ccc;
  text-align: center;
  padding: 4px 14px 8px;
  list-style: none;
}

.wcql-fp-footer { padding: 10px 14px 14px; border-top: 1px solid var(--wcql-border); }
.wcql-fp-goto {
  display: block;
  text-align: center;
  padding: 9px !important;
  font-size: 0.86em !important;
  font-weight: 700 !important;
  background: var(--wcql-blue) !important;
  color: #fff !important;
  border-radius: var(--wcql-radius) !important;
  text-decoration: none;
  transition: background var(--wcql-trans) !important;
  border: none !important;
  letter-spacing: .02em;
}
.wcql-fp-goto:hover { background: var(--wcql-blue-dk) !important; }

/* ── 响应式 ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .wcql-list-table .wcql-col-sku { display: none; }
  .wcql-list-table thead th,
  .wcql-list-table tbody td { padding: 12px 10px; }
  .wcql-item-thumb, .wcql-thumb-link { width: 46px; height: auto; }
  .wcql-item-thumb.wcql-no-img { height: 46px; }
}

@media (max-width: 500px) {
  #wcql-float-widget { bottom: 20px; right: 16px; }
  #wcql-float-panel { right: 0; width: min(300px, calc(100vw - 32px)); }
  .wcql-actions-bar { flex-direction: column; align-items: stretch; }
  .wcql-action-continue,
  .wcql-action-submit { width: 100%; text-align: center; }
}

@media (max-width: 600px) {
  .wcql-product-actions { flex-wrap: wrap; }
  .wcql-product-actions .wcql-button { max-width: 100%; }
  .wcql-product-actions[data-width-mode="equal"] .wcql-button { flex-basis: 130px; width: auto; }
}

/* Success feedback is temporary, fixed to the viewport and cannot intercept clicks. */
.wcql-flight-thumbnail {
  position: fixed; z-index: 100010; pointer-events: none;
  box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  padding: 5px; border: 1px solid #e6e9ee; border-radius: 16px;
  background: #fff; color: #212423; font: 600 24px/1 Arial, sans-serif;
  box-shadow: 0 10px 28px rgba(0,0,0,.18); overflow: hidden;
  transform-origin: center; will-change: transform, opacity;
}
.wcql-flight-thumbnail img { width: 100%; height: 100%; object-fit: contain; display: block; margin: 0; border: 0; }
#wcql-float-btn.wcql-receive { animation: wcqlReceive .55s ease-out; }
@keyframes wcqlReceive {
  0%,100% { transform: scale(1); }
  38% { transform: scale(1.22); box-shadow: 0 0 0 12px rgba(56,116,192,.16); }
  65% { transform: scale(.96); }
}
.wcql-add-feedback {
  position: fixed; z-index: 100011; pointer-events: none;
  box-sizing: border-box; max-width: calc(100vw - 32px);
  padding: 12px 16px; border: 1px solid #e6e9ee; border-radius: 10px;
  background: #fff; color: #212423; font: 600 14px/1.4 Arial, sans-serif;
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
  opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease;
}
.wcql-add-feedback.wcql-feedback-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  #wcql-float-btn.wcql-receive, #wcql-float-badge.wcql-pop { animation: none; }
  .wcql-add-feedback { transition: none; transform: none; }
}

/* On narrow screens keep optional numeric quantity below the product details. */
@media (max-width: 600px) {
  .wcql-page-wrap .wcql-list-table,
  .wcql-page-wrap .wcql-list-table tbody { display: block; width: 100%; }
  .wcql-page-wrap .wcql-list-table thead { display: none; }
  .wcql-page-wrap .wcql-list-table tbody tr {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 30px;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--wcql-border);
  }
  .wcql-page-wrap .wcql-list-table tbody tr:last-child { border-bottom: 0; }
  .wcql-page-wrap .wcql-list-table tbody td { display: block; padding: 0; min-width: 0; border: 0; }
  .wcql-page-wrap .wcql-list-table .wcql-col-sku { display: none; }
  .wcql-page-wrap .wcql-td-img { grid-column: 1; grid-row: 1 / span 2; }
  .wcql-page-wrap .wcql-td-product { grid-column: 2; grid-row: 1; }
  .wcql-page-wrap .wcql-td-remove { grid-column: 3; grid-row: 1; }
  .wcql-page-wrap .wcql-list-table .wcql-td-qty { grid-column: 2; grid-row: 2; display: flex; width: auto; align-items: center; gap: 10px; }
  .wcql-page-wrap .wcql-td-qty::before { content: attr(data-label); font-size: .9em; }
  .wcql-page-wrap .wcql-qty { width: 80px; }
}


/* Standalone Loop Item control; Elementor positions the shortcode widget. */
.wcql-card-quote {
  appearance: none; box-sizing: border-box; display: inline-flex;
  align-items: center; justify-content: center; position: relative;
  width: var(--wcql-icon-size, 44px); height: var(--wcql-icon-size, 44px);
  min-width: 0; min-height: 0; padding: 0; margin: 0;
  border: 1px solid var(--wcql-icon-border, #e6e9ee); border-radius: 50%;
  background: var(--wcql-icon-bg, #fff); color: var(--wcql-icon-color, #212423);
  box-shadow: 0 2px 8px rgba(0,0,0,.08); text-decoration: none; cursor: pointer;
  line-height: 1; vertical-align: top;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.wcql-card-quote:hover { background: var(--wcql-icon-hover-bg, #212423); color: var(--wcql-icon-hover-color, #fff); }
.wcql-card-quote:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wcql-card-quote:disabled { opacity: .55; cursor: not-allowed; }
.wcql-card-quote svg { width: var(--wcql-icon-glyph-size, 22px); height: var(--wcql-icon-glyph-size, 22px); flex: none; }
.wcql-card-quote .wcql-card-quote__success { display: none; }
.wcql-card-quote.wcql-is-added .wcql-card-quote__icon,
.wcql-card-quote.wcql-is-loading .wcql-card-quote__icon { display: none; }
.wcql-card-quote.wcql-is-added .wcql-card-quote__success { display: block; }
.wcql-card-quote.wcql-is-loading::after {
  content: ''; width: 18px; height: 18px; box-sizing: border-box;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: wcqlIconSpin .7s linear infinite;
}
@keyframes wcqlIconSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .wcql-card-quote { transition: none; }
  .wcql-card-quote.wcql-is-loading::after { animation: none; }
}

/* Widget placement uses Elementor's scoped selectors for responsive overrides. */
.elementor .elementor-element.elementor-widget-gpie_quote_icon {
  margin: 0;
  position: absolute; top: var(--wcql-icon-y, 12px); right: var(--wcql-icon-x, 12px);
  left: auto; bottom: auto; width: var(--wcql-icon-size, 44px); max-width: var(--wcql-icon-size, 44px); z-index: 5;
}
.elementor-widget-gpie_quote_icon > .elementor-widget-container { line-height: 0; }
.wcql-card-quote__icon { display: inline-flex; align-items: center; justify-content: center; font-size: var(--wcql-icon-glyph-size, 22px); line-height: 1; fill: currentColor; }
.wcql-card-quote__icon i { font-size: inherit; }
.wcql-standard-icons ul.products li.product { position: relative; }
.wcql-standard-quote { position: absolute; top: 12px; right: 12px; z-index: 5; line-height: 0; }

/* Keep the icon control square even inside theme/Elementor button rules. */
.elementor .elementor-element.elementor-widget-gpie_quote_icon .wcql-card-quote,
.elementor .wcql-card-quote,
.wcql-standard-quote .wcql-card-quote,
.wcql-card-quote {
  --wcql-icon-render-size: min(var(--wcql-icon-glyph-size, 22px), max(0px, calc(var(--wcql-icon-size, 44px) - var(--wcql-icon-border-width, 1px) - var(--wcql-icon-border-width, 1px) - 6px)));
  box-sizing: border-box;
  display: inline-flex;
  width: var(--wcql-icon-size, 44px);
  height: var(--wcql-icon-size, 44px);
  min-width: var(--wcql-icon-size, 44px);
  max-width: var(--wcql-icon-size, 44px);
  min-height: var(--wcql-icon-size, 44px);
  max-height: var(--wcql-icon-size, 44px);
  flex: 0 0 var(--wcql-icon-size, 44px);
  aspect-ratio: 1 / 1;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.wcql-card-quote .wcql-card-quote__icon { font-size: var(--wcql-icon-render-size); max-width: 100%; max-height: 100%; }
.wcql-card-quote svg { width: var(--wcql-icon-render-size); height: var(--wcql-icon-render-size); }
.wcql-card-quote.wcql-is-loading::after { width: min(18px, var(--wcql-icon-render-size)); height: min(18px, var(--wcql-icon-render-size)); }
