/**
 * dim-icons.css — icon alignment / chrome parity vs live us-cigdepot.com
 * Prefer this file for icon fixes; avoid regressing dim-home / dim-shop grids.
 */

/* ========== Header utility icons (USD / search / account / cart) ========== */
.action-icon,
.cd-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.currency_box_wrap,
.cd-header__currency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 0;
}

.currency_txt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  gap: 4px;
}

.currency_txt svg {
  display: block;
  flex-shrink: 0;
}

.action-icon .search_box,
.action-icon .user,
.action-icon .cart-box,
.cd-header__actions .search_box,
.cd-header__actions .user,
.cd-header__actions .cart-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: 0;
  line-height: 0;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: #333;
}

/* Mobile search icon: only when .show (scroll-hide path); never force-visible on desktop */
.action-icon .mobile_search_icon,
.cd-header__actions .mobile_search_icon {
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: 0;
  line-height: 0;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: #333;
}

.action-icon .mobile_search_icon:not(.show),
.cd-header__actions .mobile_search_icon:not(.show),
.mobile_search_icon:not(.show) {
  display: none !important;
}

.action-icon .search_box,
.cd-header__actions .search_box {
  margin-right: 20px;
}

.action-icon .user_wrap .user,
.cd-header__actions .user_wrap .user {
  margin-right: 20px;
}

.action-icon .search_box svg,
.action-icon .mobile_search_icon.show svg,
.action-icon .user svg,
.action-icon .cart-box svg {
  display: block;
  flex-shrink: 0;
}

.cart-box-wrap {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.cart-box,
#cart_icon.cart-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* Kill Tailwind-ish ml-2 on absolute badge; keep live top/right offset */
#cart_number,
.cart-box #cart_number {
  position: absolute;
  top: -8px;
  right: -8px;
  margin: 0 !important;
  min-width: 18px;
  min-height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 12px;
  box-sizing: border-box;
  z-index: 1;
}

/* ========== Mobile burger / search row ========== */
.mobile_menu_icon,
.cd-header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 0;
  padding: 8px;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: #333;
}

.mobile_menu_icon svg,
.cd-header__burger svg {
  display: block;
}

/* Live: magnifier sits inside the field (left:15px), not a trailing flex sibling */
.mobile_search,
form.mobile_search {
  position: relative;
  display: flex;
  align-items: center;
}

.mobile_search .cd-search-submit,
form.mobile_search .cd-search-submit {
  position: absolute;
  left: 15px;
  top: 0;
  width: 20px;
  height: 48px; /* match .mobile_search_txt */
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: rgba(18, 27, 23, 0.4);
  cursor: pointer;
  z-index: 1;
  transform: none;
}

.mobile_search .cd-search-submit svg,
form.mobile_search .cd-search-submit svg {
  display: block;
  width: 20px;
  height: 20px;
}

.mobile_search .cd-search-submit svg path,
form.mobile_search .cd-search-submit svg path {
  fill: currentColor;
}

.mobile_search_txt,
.mobile_search .mobile_search_txt {
  padding-left: 51px;
  padding-right: 19px;
}

@media (max-width: 767px) {
  .action-icon,
  .cd-header__actions {
    align-items: center;
  }

  .mobile_search_icon.show {
    display: inline-flex !important;
    padding: 8px;
    line-height: 0;
  }

  .mobile_search_icon.show[hidden] {
    display: inline-flex !important;
  }

  /* dim-home shrinks field to ~38px + form pad-top 8px */
  .mobile_search .cd-search-submit,
  form.mobile_search .cd-search-submit {
    top: 8px;
    height: 38px;
  }
}

/* ========== Product card quick-view (+) — live teal ========== */
.actions-wrapper {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 0;
}

.actions-wrapper .actions-wrapper-btn,
.actions-wrapper-btn.product_view {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  margin: 0;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
  background: #2c676a;
  color: #fff;
  box-shadow: var(--shadow-card, 0 10px 40px rgba(0, 0, 0, 0.08));
  cursor: pointer;
  transition: transform 0.2s ease;
}

.actions-wrapper .actions-wrapper-btn svg,
.actions-wrapper-btn.product_view svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  /* Optical center: plus path sits slightly high/left in 24 viewBox */
  transform: translate(0.25px, -0.25px);
}

.actions-wrapper .actions-wrapper-btn svg path,
.actions-wrapper-btn.product_view svg path {
  fill: currentColor;
}

/* ========== FAQ chevrons ========== */
.block_faq .question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.block_faq .question_title {
  display: inline-flex;
  align-items: center;
  line-height: 1.25;
  min-height: 24px;
}

.block_faq .icon_span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  line-height: 0;
  box-sizing: border-box;
  border-radius: 50%;
}

.block_faq .icon_span svg {
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transform: rotate(90deg);
  transition: transform 0.2s ease-in-out;
}

.block_faq .list_item.open .icon_span svg {
  transform: rotate(-90deg);
}

/* ========== Footer social icons ========== */
.zuui-share-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.zuui-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 0;
  color: inherit;
}

.zuui-share-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* ========== PDP qty +/- + trust/coupon glyphs ========== */
.product-calculator,
.product_detail_default .product-calculator,
.cd-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.product-calculator .product-calculator-handle,
.product_detail_default .product-calculator .product-calculator-handle,
.product-calculator button,
.cd-qty button,
.cd-quick-view__form .product-calculator button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1 !important;
  box-sizing: border-box;
}

.product-calculator .product-calculator-handle svg,
.product-calculator button svg,
.cd-qty button svg {
  display: block;
}

.product_detail_default .app_shoppingcoupons-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.product_detail_default .app_shoppingcoupons-code svg {
  display: block;
  flex-shrink: 0;
}

.product_detail_default .app_shoppingcoupons-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.product_detail_default .badge-list-reep,
.product_detail_default .badge-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.product_detail_default .badge-list img,
.product_detail_default .badge-list-reep img {
  display: block;
  height: 24px;
  width: auto;
}

/* Checkout payment icons (if off-center from gateway markup) */
.checkout-main .accepted_payment_list,
.checkout-main .payment_methods-item .accepted_payment_list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.checkout-main .accepted_payment_list img,
.checkout-main .accepted_payment_list .wc-payment-gateway-icon {
  display: block;
  height: 24px;
  width: auto;
  vertical-align: middle;
}

.cd-pay-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cd-pay-icons img {
  display: block;
  height: 24px;
  width: auto;
}

/* Float widgets (WhatsApp / Trusted Store) — only if present in DOM */
[class*="whatsapp"],
[class*="WhatsApp"],
.cd-float-whatsapp,
.cd-trusted-float,
[class*="trusted-store"] {
  line-height: 0;
}

[class*="whatsapp"] img,
[class*="WhatsApp"] img,
.cd-float-whatsapp img,
.cd-trusted-float img {
  display: block;
}
