/* Ace Communication enhancements — call-for-pricing, inquiry panel, quote system.
   Keeps the site's red (#9f1722) / dark palette. Loaded site-wide. */

/* ---------- Beautiful "Price on Request" block (single product) ---------- */
.ace-single-price {
  position: relative;
  margin: 22px 0;
  padding: 20px 22px 20px 66px;
  border: 1px solid #e5c7cb;
  border-left: 5px solid #9f1722;
  border-radius: 10px;
  background: linear-gradient(120deg, #fdf3f4 0%, #ffffff 70%);
}
.ace-single-price::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 22px;
  width: 26px;
  height: 26px;
  background: #9f1722;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.13.96.36 1.9.7 2.8a2 2 0 0 1-.45 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.45c.9.34 1.84.57 2.8.7A2 2 0 0 1 22 16.9z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.13.96.36 1.9.7 2.8a2 2 0 0 1-.45 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.45c.9.34 1.84.57 2.8.7A2 2 0 0 1 22 16.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ace-single-price > strong {
  display: block;
  color: #9f1722;
  font-size: 24px;
  letter-spacing: -.01em;
}
.ace-single-price > p { margin: 6px 0 0; color: #626970; font-size: 14px; }
.ace-single-price .ace-availability { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: #111315; color: #fff; font-size: 12px; font-weight: 700; }

/* ---------- Inquiry panel upgrade ---------- */
.ace-inquiry-panel {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  padding: 26px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #17191c 0%, #2b1215 100%);
  border: 1px solid #2c2f33;
}
.ace-inquiry-panel::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 23, 34, .45) 0%, transparent 70%);
  pointer-events: none;
}
.ace-inquiry-panel h2 { position: relative; margin: 0 0 6px; color: #fff; font-size: 21px; z-index: 1; }
.ace-inquiry-panel > p { position: relative; margin: 0 0 18px; color: #c3c8cc; font-size: 14px; z-index: 1; }
.ace-inquiry-primary, .ace-inquiry-secondary { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.ace-inquiry-primary .ace-button { flex: 1 1 200px; min-height: 50px; font-size: 14px; }
.ace-inquiry-secondary { margin-top: 12px; }
.ace-inquiry-secondary a {
  flex: 1 1 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #3a3e42;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s, background .2s;
}
.ace-inquiry-secondary a:hover { border-color: #9f1722; background: rgba(159, 23, 34, .25); color: #fff; }

/* ---------- Shop card price-state polish ---------- */
.ace-price-state strong {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: #fdf0f1;
  color: #9f1722;
  font-size: 14px;
}

/* ---------- Quote page ---------- */
.ace-quote-page { max-width: 860px; margin: 0 auto; padding: 10px 0 40px; }
.ace-quote-title { font-size: 30px; letter-spacing: -.02em; margin: 0 0 20px; }
.ace-quote-total { color: #9f1722; }
.ace-quote-empty { padding: 30px; border: 1px dashed #dfe3e6; border-radius: 10px; background: #fafbfb; color: #626970; }
.ace-quote-success { padding: 34px; border-radius: 12px; background: #f0faf1; border: 1px solid #bfe6c6; }
.ace-quote-success h2 { margin: 0 0 8px; color: #1c7a34; }
.ace-quote-error { padding: 14px 18px; margin-bottom: 18px; border-radius: 8px; background: #fdf0f1; border: 1px solid #e5c7cb; color: #9f1722; font-weight: 600; }
.ace-quote-items { margin: 0 0 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ace-quote-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #dfe3e6;
  border-radius: 10px;
  background: #fff;
}
.ace-quote-thumb img { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; background: #f5f6f7; }
.ace-quote-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ace-quote-info strong { font-size: 15px; }
.ace-quote-info small { color: #626970; font-size: 13px; }
.ace-quote-qty { color: #626970; font-size: 13px; font-weight: 700; }
.ace-quote-remove { border: 1px solid #dfe3e6; background: #fff; border-radius: 6px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; color: #626970; }
.ace-quote-remove:hover { border-color: #9f1722; color: #9f1722; }

/* ---------- Quote form ---------- */
.ace-quote-form {
  padding: 28px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #17191c 0%, #331419 100%);
  border: 1px solid #2c2f33;
}
.ace-quote-form h3 { margin: 0 0 6px; color: #fff; font-size: 22px; }
.ace-quote-form-sub { margin: 0 0 20px; color: #c3c8cc; font-size: 14px; }
.ace-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ace-quote-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; color: #e8eaeb; }
.ace-form-full { display: flex; margin-bottom: 18px; }
.ace-quote-form input, .ace-quote-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #3a3e42;
  border-radius: 8px;
  background: #222528;
  color: #fff;
  font-size: 15px;
  box-sizing: border-box;
}
.ace-quote-form input:focus, .ace-quote-form textarea:focus { outline: none; border-color: #9f1722; box-shadow: 0 0 0 3px rgba(159, 23, 34, .25); }
.ace-quote-submit { width: 100%; min-height: 52px; font-size: 15px; cursor: pointer; }

/* ---------- Admin: quote requests list ---------- */
.post-type-ace_quote_request .column-title strong { font-size: 14px; }

@media (max-width: 640px) {
  .ace-form-row { grid-template-columns: 1fr; }
  .ace-quote-form { padding: 20px; }
  .ace-single-price { padding: 18px 18px 18px 58px; }
  .ace-single-price::before { left: 18px; top: 20px; width: 22px; height: 22px; }
}

/* ---------- Homepage brands ticker: keep logos compact ---------- */
.ticker .ttrack { align-items: center; }
.ticker .tlogo {
  height: 54px !important;
  width: auto !important;
  max-width: 140px;
  object-fit: contain;
  flex: 0 0 auto;
}
.ticker .tlogo.tlogo-wide {
  height: 42px !important;
  max-width: 180px;
}
@media (max-width: 768px) {
  .ticker .tlogo { height: 40px !important; max-width: 110px; }
  .ticker .tlogo.tlogo-wide { height: 32px !important; max-width: 140px; }
}
