/* ============================================
   Dakzhou Theme - Account Wishlist
   Visual layer only; TI Wishlist owns all data and actions.
   ============================================ */

.dz-wishlist-content {
  margin: 0;
}

.dz-wishlist-content .tinv-wishlist {
  margin: 0;
}

.dz-wishlist-content .tinv-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 18px 22px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-lg, 16px);
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf8 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.dz-wishlist-content .tinv-header::before {
  content: "♥";
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--emerald-light, #dff7ec);
  color: var(--emerald-deep, #047857);
  font-size: 17px;
  line-height: 1;
}

.dz-wishlist-content .tinv-header h2 {
  margin: 0;
  color: var(--ink, #0f172a);
  font-size: 1.22rem;
  font-weight: 750;
  letter-spacing: -.015em;
  line-height: 1.35;
}

.dz-wishlist-content form {
  margin: 0;
}

.dz-wishlist-content .tinvwl-table-manage-list {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-lg, 16px);
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
  box-shadow: var(--shadow-card, 0 8px 24px rgba(15, 23, 42, .055));
}

.dz-wishlist-content .tinvwl-table-manage-list thead {
  background: #f8fafc;
}

.dz-wishlist-content .tinvwl-table-manage-list thead th,
.dz-wishlist-content .tinvwl-table-manage-list thead td {
  display: table-cell !important;
  padding: 14px 10px;
  border: 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
  color: var(--muted, #64748b);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
  vertical-align: middle;
}

.dz-wishlist-content .tinvwl-table-manage-list thead th.product-cb {
  width: 44px;
  padding-left: 16px;
}

.dz-wishlist-content .tinvwl-table-manage-list thead th.product-remove {
  width: 38px;
}

.dz-wishlist-content .tinvwl-table-manage-list thead th.product-thumbnail {
  width: 104px;
}

.dz-wishlist-content .tinvwl-table-manage-list thead th.product-name {
  width: auto;
}

.dz-wishlist-content .tinvwl-table-manage-list thead th.product-price {
  width: 144px;
}

.dz-wishlist-content .tinvwl-table-manage-list thead th.product-date {
  width: 100px;
}

.dz-wishlist-content .tinvwl-table-manage-list thead th.product-stock {
  width: 100px;
}

.dz-wishlist-content .tinvwl-table-manage-list thead th.product-action {
  width: 130px;
}

.dz-wishlist-content .tinvwl-table-manage-list tbody td {
  padding: 18px 10px;
  border: 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
  color: var(--ink-2, #334155);
  font-size: .91rem;
  line-height: 1.5;
  text-align: left;
  vertical-align: middle;
}

.dz-wishlist-content .tinvwl-table-manage-list tbody td.product-cb {
  padding-left: 16px;
}

/* The theme's product-page stock rule also targets this table cell.
   Restore real table-cell layout so it shares the row baseline with the action button. */
.dz-wishlist-content .tinvwl-table-manage-list tbody td.product-stock {
  display: table-cell;
  margin: 0;
  text-align: center;
  vertical-align: middle;
}

.dz-wishlist-content .tinvwl-table-manage-list tbody tr:last-child td {
  border-bottom: 0;
}

.dz-wishlist-content .tinvwl-table-manage-list tbody tr:hover td {
  background: #fbfdfc;
}

.dz-wishlist-content input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  accent-color: var(--emerald, #059669);
  cursor: pointer;
}

.dz-wishlist-content .product-remove button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}

.dz-wishlist-content .product-remove button:hover {
  border-color: #fecaca;
  background: #fff1f2;
  color: #dc2626;
}

.dz-wishlist-content .product-thumbnail {
  padding-right: 2px !important;
}

.dz-wishlist-content .product-thumbnail a {
  display: block;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 13px;
  background: #fff;
}

/* style.css contains a legacy product-thumbnail rule with higher
   specificity; keep this selector matched so the full image wins. */
.dz-wishlist-content .tinvwl-table-manage-list .product-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  transition: transform .22s var(--ease, ease);
}

.dz-wishlist-content .product-thumbnail a:hover img {
  transform: scale(1.04);
}

.dz-wishlist-content .product-name {
  padding-right: 18px !important;
}

.dz-wishlist-content .product-name > a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink, #0f172a);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.dz-wishlist-content .product-name > a:hover {
  color: var(--emerald-deep, #047857);
}

.dz-wishlist-content .product-price {
  white-space: nowrap;
}

.dz-wishlist-content .product-price .woocommerce-Price-amount,
.dz-wishlist-content .product-price .amount {
  color: var(--ink, #0f172a);
  font-size: .98rem;
  font-weight: 750;
}

.dz-wishlist-content .product-date {
  color: var(--muted, #64748b) !important;
  font-size: .82rem !important;
  line-height: 1.45 !important;
}

.dz-wishlist-content .tinvwl-table-manage-list td.product-stock .stock {
  display: inline-flex;
  width: auto;
  margin: 0 auto;
  padding: 5px 7px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 3px;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.dz-wishlist-content .tinvwl-table-manage-list td.product-stock .stock > span {
  display: inline-flex !important;
  align-items: center;
}

.dz-wishlist-content .tinvwl-table-manage-list td.product-stock .stock i {
  margin-right: 0;
  line-height: 1;
}

.dz-wishlist-content .tinvwl-table-manage-list td.product-stock .tinvwl-txt {
  display: inline !important;
  line-height: 1;
  white-space: nowrap;
}

.dz-wishlist-content .product-stock .in-stock {
  background: #ecfdf5;
  color: #047857;
}

.dz-wishlist-content .product-stock .out-of-stock {
  background: #fff1f2;
  color: #be123c;
}

.dz-wishlist-content .product-stock .ftinvwl-check {
  font-size: .78rem;
}

.dz-wishlist-content .product-action {
  padding-right: 16px !important;
}

.dz-wishlist-content .tinv-wishlist .product-action .button,
.dz-wishlist-content .tinv-wishlist .product-action .add_to_cart_button {
  display: inline-flex;
  width: 100%;
  min-height: 38px;
  padding: 8px 9px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--emerald-deep, #047857);
  color: #fff;
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background .18s, transform .18s;
}

.dz-wishlist-content .tinv-wishlist .product-action .button:hover,
.dz-wishlist-content .tinv-wishlist .product-action .add_to_cart_button:hover {
  background: var(--forest, #064e3b);
  color: #fff;
  transform: translateY(-1px);
}

.dz-wishlist-content .tinvwl-table-manage-list tfoot {
  display: table-caption;
  caption-side: bottom;
  width: 100%;
}

.dz-wishlist-content .tinvwl-table-manage-list tfoot tr {
  display: block;
  width: 100%;
}

.dz-wishlist-content .tinvwl-table-manage-list tfoot td {
  display: flex;
  width: 100%;
  padding: 16px 16px 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border: 0;
  background: #f8fafc;
  box-sizing: border-box;
}

.dz-wishlist-content .tinvwl-table-manage-list tfoot .tinvwl-to-left {
  display: flex;
  float: none;
  width: auto;
  max-width: 100%;
  margin: 0;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 9px;
}

.dz-wishlist-content .tinvwl-table-manage-list tfoot .tinvwl-to-right {
  display: flex;
  float: none;
  width: auto;
  max-width: 100%;
  margin: 0 0 0 auto;
  align-items: center;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 9px;
  text-align: right;
}

.dz-wishlist-content .tinvwl-table-manage-list tfoot .tinvwl-to-right > * {
  margin: 0;
}

.dz-wishlist-content .tinvwl-to-left,
.dz-wishlist-content .tinvwl-to-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.dz-wishlist-content .tinvwl-to-right {
  margin-left: auto;
}

.dz-wishlist-content .tinvwl-input-group {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 8px;
}

.dz-wishlist-content .tinvwl-input-group-btn {
  display: flex;
  width: auto;
  padding-left: 0 !important;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  white-space: nowrap;
}

.dz-wishlist-content .tinvwl-bulk-actions select,
.dz-wishlist-content select.tinvwl-break-input-filed {
  width: auto;
  min-width: 138px;
  height: 42px;
  margin: 0;
  padding: 0 34px 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background-color: #fff;
  color: var(--ink-2, #334155);
  font-size: .83rem;
  line-height: 40px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.dz-wishlist-content .tinv-wishlist .button,
.dz-wishlist-content .tinv-wishlist button.button {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 15px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2, #334155);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color .18s, background .18s, color .18s;
}

.dz-wishlist-content .tinv-wishlist .button:hover,
.dz-wishlist-content .tinv-wishlist button.button:hover {
  border-color: var(--emerald, #059669);
  background: #f0fdf7;
  color: var(--emerald-deep, #047857);
}

.dz-wishlist-content .tinvwl-to-right .button {
  border-color: var(--emerald-deep, #047857);
  background: var(--emerald-deep, #047857);
  color: #fff;
}

.dz-wishlist-content .tinvwl-to-right .button:hover {
  border-color: var(--forest, #064e3b);
  background: var(--forest, #064e3b);
  color: #fff;
}

.dz-wishlist-content .social-buttons {
  display: flex;
  margin: 18px 2px 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  clear: both;
}

.dz-wishlist-content .social-buttons > span {
  margin-right: 2px;
  color: var(--muted, #64748b);
  font-size: .77rem;
  font-weight: 600;
}

.dz-wishlist-content .social-buttons ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 7px;
  list-style: none;
}

.dz-wishlist-content .social-buttons li {
  margin: 0;
  padding: 0;
}

.dz-wishlist-content .social-buttons .social {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  text-decoration: none;
  transition: background .18s, color .18s, transform .18s;
}

.dz-wishlist-content .social-buttons .social:hover {
  background: var(--emerald-light, #dff7ec);
  color: var(--emerald-deep, #047857);
  transform: translateY(-1px);
}

.dz-wishlist-content .tinv-wishlist-empty {
  margin: 0;
  padding: 52px 24px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-lg, 16px);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  text-align: center;
}

.dz-wishlist-content .tinv-wishlist-empty p {
  margin: 0 0 18px;
  color: var(--muted, #64748b);
  font-size: .95rem;
}

@media (max-width: 900px) {
  .dz-wishlist-content .tinvwl-table-manage-list thead th.product-date,
  .dz-wishlist-content .tinvwl-table-manage-list tbody td.product-date {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .dz-wishlist-content .tinv-header {
    margin-bottom: 14px;
    padding: 16px;
  }

  .dz-wishlist-content .tinv-header h2 {
    font-size: 1.08rem;
  }

  .dz-wishlist-content .tinvwl-table-manage-list,
  .dz-wishlist-content .tinvwl-table-manage-list tbody,
  .dz-wishlist-content .tinvwl-table-manage-list tfoot,
  .dz-wishlist-content .tinvwl-table-manage-list tr,
  .dz-wishlist-content .tinvwl-table-manage-list td {
    display: block;
    width: 100%;
  }

  .dz-wishlist-content .tinvwl-table-manage-list thead {
    display: none;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody tr {
    display: grid;
    padding: 16px;
    grid-template-columns: 22px 82px minmax(0, 1fr) 34px;
    grid-template-areas:
      "cb name name remove"
      "thumb price price remove"
      "thumb stock stock remove"
      "action action action action";
    gap: 10px 12px;
    border-bottom: 1px solid var(--border, #e5e7eb);
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody tr:last-child {
    border-bottom: 0;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody td {
    padding: 0 !important;
    border: 0;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody td.product-cb {
    grid-area: cb;
    align-self: start;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody td.product-remove {
    grid-area: remove;
    align-self: start;
    justify-self: end;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody td.product-thumbnail {
    grid-area: thumb;
    align-self: start;
    width: 82px;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody td.product-name {
    grid-area: name;
    padding-right: 0 !important;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody td.product-name > a {
    font-size: .94rem;
    -webkit-line-clamp: 2;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody td.product-price {
    grid-area: price;
    align-self: end;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody td.product-price::before {
    content: "Price";
    display: block;
    margin-bottom: 2px;
    color: var(--muted, #64748b);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody td.product-stock {
    display: block;
    grid-area: stock;
    align-self: start;
    margin: 0;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody td.product-date {
    display: none !important;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody td.product-action {
    grid-area: action;
    padding-top: 3px !important;
  }

  .dz-wishlist-content .product-action .button,
  .dz-wishlist-content .product-action .add_to_cart_button {
    min-height: 42px;
    font-size: .82rem;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tfoot td {
    display: flex;
    padding: 14px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    border-top: 0;
  }

  .dz-wishlist-content .tinvwl-to-left,
  .dz-wishlist-content .tinvwl-to-right {
    width: 100%;
  }

  .dz-wishlist-content .tinvwl-to-right {
    margin-left: 0;
  }

  .dz-wishlist-content .tinvwl-to-right .button {
    flex: 1 1 140px;
  }

  .dz-wishlist-content .tinvwl-input-group {
    width: 100%;
  }

  .dz-wishlist-content .tinvwl-input-group select {
    flex: 1;
    min-width: 0;
  }

  .dz-wishlist-content .social-buttons {
    margin-top: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 390px) {
  .dz-wishlist-content .tinvwl-table-manage-list tbody tr {
    grid-template-columns: 20px 72px minmax(0, 1fr) 30px;
    padding: 14px;
    gap: 9px 10px;
  }

  .dz-wishlist-content .tinvwl-table-manage-list tbody td.product-thumbnail,
  .dz-wishlist-content .product-thumbnail a {
    width: 72px;
    height: 72px;
  }

  .dz-wishlist-content .social-buttons .social {
    width: 30px;
    height: 30px;
  }
}
