/* Wise CG Dropship — Frontend Styles */

/* ── My Account nav: address-book icon for "Dropship Addresses" ─ */
.woocommerce-MyAccount-navigation-link--dropship-addresses a::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-right: 6px;
  vertical-align: -0.2em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Crect%20x%3D%223.2%22%20y%3D%222%22%20width%3D%2217.6%22%20height%3D%2220%22%20rx%3D%222%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22/%3E%0A%20%20%3Crect%20x%3D%221%22%20y%3D%226%22%20width%3D%223%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%0A%20%20%3Crect%20x%3D%221%22%20y%3D%2211%22%20width%3D%223%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%0A%20%20%3Crect%20x%3D%221%22%20y%3D%2216%22%20width%3D%223%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%229.8%22%20r%3D%222.3%22%20fill%3D%22%23000%22/%3E%0A%20%20%3Cpath%20d%3D%22M7.6%2017.6c0-2.7%201.97-4.6%204.4-4.6s4.4%201.9%204.4%204.6%22%20fill%3D%22%23000%22/%3E%0A%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Crect%20x%3D%223.2%22%20y%3D%222%22%20width%3D%2217.6%22%20height%3D%2220%22%20rx%3D%222%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22/%3E%0A%20%20%3Crect%20x%3D%221%22%20y%3D%226%22%20width%3D%223%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%0A%20%20%3Crect%20x%3D%221%22%20y%3D%2211%22%20width%3D%223%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%0A%20%20%3Crect%20x%3D%221%22%20y%3D%2216%22%20width%3D%223%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%229.8%22%20r%3D%222.3%22%20fill%3D%22%23000%22/%3E%0A%20%20%3Cpath%20d%3D%22M7.6%2017.6c0-2.7%201.97-4.6%204.4-4.6s4.4%201.9%204.4%204.6%22%20fill%3D%22%23000%22/%3E%0A%3C/svg%3E");
}
/* If the theme's icon font also targets ::before on this link, this rule
   (loaded after the theme stylesheet) takes precedence for this item only. */

/* ── My Account: address book ───────────────────────── */
.wcgd-myaccount-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.wcgd-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.wcgd-list-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.wcgd-empty {
  color: #888;
  font-size: 14px;
  padding: 20px 0;
}

.wcgd-saved-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.wcgd-saved-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 14px 16px;
  background: #fff;
  font-size: 13px;
  line-height: 1.6;
}
.wcgd-saved-card--editing {
  border-color: #534AB7;
  box-shadow: 0 0 0 2px rgba(83,74,183,.15);
}
.wcgd-saved-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #534AB7;
  margin-bottom: 6px;
}
.wcgd-saved-card__detail span,
.wcgd-saved-card__detail strong {
  display: block;
}
.wcgd-saved-card__actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.wcgd-link { font-size: 12px; text-decoration: none; color: #534AB7; }
.wcgd-link:hover { text-decoration: underline; }
.wcgd-link--danger { color: #cc1818; }

/* Address form */
.wcgd-addr-form-wrap {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 24px;
}
.wcgd-addr-form-wrap h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 20px;
}
.wcgd-form-row {
  margin-bottom: 14px;
}
.wcgd-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}
.wcgd-form-row input,
.wcgd-form-row textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
}
.wcgd-form-row--highlight input {
  border-color: #534AB7;
}
.wcgd-form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wcgd-field-hint {
  font-size: 11px;
  color: #888;
  display: block;
  margin-top: 4px;
}
.wcgd-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

/* ── Checkout: address book selector ────────────────── */
.wcgd-address-book-wrap {
  margin-bottom: 24px;
  padding: 18px 20px;
  background: #EEEDFE;
  border: 1px solid rgba(83,74,183,.2);
  border-radius: 6px;
}
.wcgd-section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #3C3489;
}
.wcgd-section-desc {
  font-size: 13px;
  color: #666;
  margin: 0 0 14px;
}
.wcgd-address-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wcgd-addr-card {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  min-width: 150px;
  max-width: 200px;
}
.wcgd-addr-card:hover {
  border-color: #534AB7;
}
.wcgd-addr-card.wcgd-selected {
  border-color: #534AB7;
  box-shadow: 0 0 0 3px rgba(83,74,183,.15);
}
.wcgd-addr-card strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
  color: #1a1a1a;
}
.wcgd-addr-card span {
  display: block;
  color: #666;
}
.wcgd-addr-card--manual {
  border-style: dashed;
  color: #888;
}
.wcgd-addr-card--manual strong { color: #888; }

.wcgd-no-addresses {
  font-size: 13px;
  color: #666;
  margin-bottom: 0 !important;
}

/* Dropship note field */
.wcgd-field-note textarea {
  min-height: 60px;
  font-size: 13px;
}

/* Order detail */
.wcgd-order-detail-note {
  margin-top: 10px;
  font-size: 14px;
  color: #534AB7;
}

/* Responsive */
@media (max-width: 600px) {
  .wcgd-form-row--half { grid-template-columns: 1fr; }
  .wcgd-saved-cards { grid-template-columns: 1fr; }
  .wcgd-address-cards { flex-direction: column; }
  .wcgd-addr-card { max-width: 100%; }
}
