/* WordPress and WooCommerce adjustments. The public design is assets/css/styles.css. */

/* WordPress adds "page" to the body. Content padding must not sit on the body. */
body.page,
body.home {
  padding-top: 0;
  padding-bottom: 0;
}

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.product-grid h3 a,
.product-single h1 {
  color: inherit;
}
.product-grid h3 a:hover { color: var(--blue); }

.product-single {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 36px;
  align-items: start;
}
.product-single-photo img {
  width: 100%;
  height: auto;
  background: var(--soft);
  border-radius: 16px;
}
.product-single .price {
  font-size: 28px;
  color: var(--ink);
  font-weight: 700;
}
.product-single-copy { margin-top: 18px; }
.related.products,
.upsells.products { margin-top: 36px; }
.related.products > h2,
.upsells.products > h2 { color: var(--ink); }

.woocommerce-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.woocommerce-wrap th,
.woocommerce-wrap td,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  vertical-align: middle;
}
.woocommerce table.shop_table { border: 0; }
.woocommerce .product img,
.woocommerce-product-gallery img,
.woocommerce table img { height: auto; }
.woocommerce,
.woocommerce button,
.woocommerce input,
.woocommerce select,
.woocommerce textarea,
.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce .price {
  font-family: var(--font);
}
.stock-badge { font-weight: 700; font-size: 14px; margin: 0 0 10px; }
.stock-in_stock { color: var(--blue-dark, #0d6eab); }
.stock-low, .stock-on_order { color: #8a5a00; }
.stock-out { color: #a33; }
.woocommerce .logo img,
.woocommerce .site-header img {
  height: auto;
  max-height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  float: none;
  width: auto !important;
  margin: 0 !important;
}
@media (max-width: 980px) {
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .woocommerce .logo img,
  .woocommerce .site-header img { max-height: 44px; }
}
.woocommerce-cart-form,
.woocommerce-checkout-review-order,
.woocommerce table.shop_table {
  max-width: 100%;
}
@media (max-width: 780px) {
  .woocommerce-cart-form,
  .woocommerce-checkout-review-order {
    overflow-x: auto;
  }
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  padding: 12px 20px;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--blue-dark);
  color: #fff;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 12px;
  padding: 12px 16px;
}
.woocommerce-error { background: #fdecec; }
.woocommerce-message { background: #eef7fc; }
.woocommerce-info { background: var(--soft); }

.woocommerce form .form-row { margin-bottom: 12px; }
.woocommerce form .form-row label { margin-bottom: 6px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  margin-bottom: 0;
}
.woocommerce-form__label-for-checkbox,
.woocommerce form .form-row label.checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
}
.woocommerce-form__label-for-checkbox input,
.woocommerce form .form-row label.checkbox input,
#payment .payment_methods input {
  width: auto;
  margin: 0;
}
.quantity .qty { width: 88px; margin-bottom: 0; }

.woocommerce-cart .cart_item img,
.woocommerce-checkout .cart_item img {
  width: 64px;
  height: auto;
}

.main-nav .menu-item { list-style: none; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 800px) {
  .product-single { grid-template-columns: 1fr; }
  .related ul.products,
  .upsells ul.products { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .related ul.products,
  .upsells ul.products { grid-template-columns: 1fr; }
}

.live-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: calc(100vw - 24px);
  font-family: var(--font);
}
.live-chat-launch {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px 12px 14px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(7, 17, 28, 0.28);
}
.live-chat-launch small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9fd4f5;
}
.live-chat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18);
}
.live-chat-panel {
  width: min(26rem, calc(100vw - 24px));
  height: min(36rem, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  border: 1px solid rgba(7, 17, 28, 0.08);
  box-shadow: 0 24px 60px rgba(7, 17, 28, 0.28);
  overflow: hidden;
}
.live-chat-panel[hidden] { display: none !important; }
.live-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background:
    radial-gradient(120px 80px at 100% 0%, rgba(22, 131, 199, 0.45), transparent 70%),
    var(--black);
  color: #fff;
  padding: 16px 16px 14px;
}
.live-chat-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 40%),
    var(--blue);
  position: relative;
}
.live-chat-mark::before,
.live-chat-mark::after {
  content: "";
  position: absolute;
  border: 2px solid #fff;
  border-radius: 50%;
  left: 8px;
  right: 8px;
}
.live-chat-mark::before { top: 9px; bottom: 15px; }
.live-chat-mark::after { top: 16px; bottom: 8px; opacity: 0.7; }
.live-chat-head strong { display: block; font-size: 16px; }
.live-chat-head p { margin: 2px 0 0; color: #b7d7ec; font-size: 12px; }
.live-chat-head button {
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 10px;
}
.live-chat-thread {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(22, 131, 199, 0.06), transparent 90px),
    var(--soft);
}
.live-chat-greeting {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.live-chat-msg {
  border-radius: 16px;
  padding: 10px 12px;
  max-width: 92%;
  box-shadow: 0 8px 18px rgba(7, 17, 28, 0.04);
}
.live-chat-who {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-chat-msg p { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.45; }
.live-chat-msg a { font-weight: 700; }
.live-chat-msg-user { justify-self: end; background: var(--blue); color: #fff; }
.live-chat-msg-user .live-chat-who { color: rgba(255, 255, 255, 0.75); }
.live-chat-msg-assistant {
  justify-self: start;
  background: #fff;
  border-left: 3px solid var(--blue);
}
.live-chat-msg-assistant .live-chat-who { color: var(--blue-dark); }
.live-chat-msg-tech {
  justify-self: start;
  background: var(--black);
  color: #fff;
}
.live-chat-msg-tech .live-chat-who { color: #9fd4f5; }
.live-chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.live-chat-chips button {
  border: 1px solid rgba(22, 131, 199, 0.35);
  background: #fff;
  color: var(--blue-dark);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.live-chat-contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  padding: 10px 12px 0;
  background: #fff;
}
.live-chat-contact[hidden] { display: none !important; }
.live-chat-contact input { margin: 0; min-width: 0; }
.live-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.live-chat-form input { flex: 1; min-width: 0; margin: 0; }
.live-chat-form button {
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}
.live-chat-form button:disabled { opacity: 0.6; cursor: progress; }
.live-chat-lanes { display: flex; gap: 8px; padding: 10px 12px 0; background: #fff; }
.live-chat-lanes button {
  flex: 1;
  border: 1px solid rgba(22, 131, 199, 0.35);
  background: #fff;
  color: var(--blue-dark, #0d5f92);
  border-radius: 999px;
  padding: 7px 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.live-chat-lanes button.is-on { background: var(--blue, #1683c7); color: #fff; border-color: transparent; }
