/* Zoomandi account — scoped to body.kwz-account */

body.kwz-account {
  --kwz-purple: #7c58d3;
  --kwz-purple-d: #5e3db0;
  --kwz-ink: #0e081e;
  --kwz-muted: #6b6680;
  --kwz-line: rgba(124, 88, 211, 0.14);
  --kwz-card: #fff;
  --kwz-soft: #f7f4fd;
}

body.kwz-account--out .woocommerce-notices-wrapper {
  max-width: 440px;
  margin: 0 auto 16px;
}

/* Auth */
.kwz-auth {
  display: flex;
  justify-content: center;
  padding: 12px 0 48px;
}

.kwz-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--kwz-card);
  border: 1px solid var(--kwz-line);
  border-radius: 22px;
  box-shadow: none;
  padding: 22px 22px 26px;
}

body.kwz-account .kwz-auth-card .password-input {
  display: block !important;
  position: relative;
  width: 100% !important;
  max-width: none !important;
}

body.kwz-account .kwz-auth-card .input-text,
body.kwz-account .kwz-auth-card input[type="text"],
body.kwz-account .kwz-auth-card input[type="email"],
body.kwz-account .kwz-auth-card input[type="password"],
body.kwz-account .kwz-auth-card .password-input .input-text {
  max-width: none !important;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
}

body.kwz-account .kwz-auth-card .password-input .input-text {
  padding-right: 42px;
}

body.kwz-account .kwz-auth-card .form-row {
  margin: 0 0 12px;
}

body.kwz-account .kwz-auth-card label:not(.kwz-consent):not(.woocommerce-form__label-for-checkbox) {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--kwz-ink);
}

.kwz-auth-title {
  margin: 0 0 16px;
  font-size: 28px;
}

.kwz-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--kwz-soft);
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.kwz-auth-tab {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 8px;
  font-weight: 700;
  cursor: pointer;
  color: var(--kwz-muted);
}

.kwz-auth-tab.is-active {
  background: #fff;
  color: var(--kwz-ink);
  box-shadow: none;
}

.kwz-auth-panel {
  display: none;
}

.kwz-auth-panel.is-active {
  display: block;
}

.kwz-auth-notice {
  background: #fde8e8;
  color: #8a1f1f;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.kwz-auth-notice.is-ok {
  background: #e8f8ee;
  color: #146c3a;
}

.kwz-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13px;
}

.kwz-link-btn {
  border: 0;
  background: none;
  color: var(--kwz-purple);
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

.kwz-auth-or {
  text-align: center;
  color: var(--kwz-muted);
  font-size: 13px;
  margin: 18px 0 12px;
}

.kwz-social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kwz-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--kwz-line);
  text-decoration: none !important;
  color: var(--kwz-ink) !important;
  font-weight: 700;
  background: #fff;
}

.kwz-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

.kwz-social--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.kwz-auth-back {
  text-align: center;
  margin: 12px 0 0;
}

.kwz-muted {
  color: var(--kwz-muted);
  font-size: 14px;
}

.kwz-auth-card .woocommerce-privacy-policy-text,
.kwz-auth-card .woocommerce-privacy-policy-text + p {
  display: none !important;
}

.kwz-auth-card .kwz-checkout-consents {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

body.kwz-account .kwz-auth-card .kwz-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--kwz-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--kwz-ink);
}

body.kwz-account .kwz-auth-card .kwz-consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.kwz-account .kwz-auth-card .kwz-consent__box {
  display: block;
  box-sizing: border-box;
  flex: 0 0 20px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid #d8d0e8;
  border-radius: 6px;
  background: #fff;
  position: relative;
}

body.kwz-account .kwz-auth-card .kwz-consent input:checked + .kwz-consent__box {
  border-color: var(--kwz-purple);
  background: var(--kwz-purple);
}

body.kwz-account .kwz-auth-card .kwz-consent input:checked + .kwz-consent__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.kwz-auth-card .kwz-consent--invalid {
  border-color: #d63638;
}

.kwz-auth-card .kwz-consent__text a {
  color: var(--kwz-purple);
  text-decoration: underline;
}

/* Buttons */
.kwz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1;
}

.kwz-btn--primary {
  background: var(--kwz-purple);
  color: #fff !important;
  border-color: var(--kwz-purple);
}

.kwz-btn--primary:hover {
  background: var(--kwz-purple-d);
}

.kwz-btn--ghost {
  background: var(--kwz-soft);
  color: var(--kwz-ink) !important;
  border-color: var(--kwz-line);
}

.kwz-btn--block {
  width: 100%;
  height: 46px;
}

.kwz-link {
  color: var(--kwz-purple);
  font-weight: 700;
}

/* Logged-in shell */
body.kwz-account--in .kwz-account-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 48px;
}

body.kwz-account--in .woocommerce-MyAccount-navigation ul {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 10px !important;
  gap: 4px;
  background: var(--kwz-card);
  border: 1px solid var(--kwz-line);
  border-radius: 20px;
  list-style: none;
}

body.kwz-account--in .woocommerce-MyAccount-navigation li {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  flex: none !important;
}

body.kwz-account--in .woocommerce-MyAccount-navigation a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 12px;
  background: transparent !important;
  color: var(--kwz-ink) !important;
  font-weight: 600 !important;
}

body.kwz-account--in .woocommerce-MyAccount-navigation a:hover,
body.kwz-account--in .woocommerce-MyAccount-navigation .is-active a {
  background: var(--kwz-soft) !important;
  color: var(--kwz-purple) !important;
}

body.kwz-account--in .woocommerce-MyAccount-navigation .is-active a {
  box-shadow: none;
}

body.kwz-account--in .woocommerce-MyAccount-navigation .kwz-nav-customer-logout {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--kwz-line);
}

.kwz-nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--kwz-muted);
  font-size: 16px;
  line-height: 1;
}

.kwz-nav-icon .pxli {
  font-size: inherit;
  line-height: 1;
}

body.kwz-account--in .woocommerce-MyAccount-navigation a:hover .kwz-nav-icon,
body.kwz-account--in .woocommerce-MyAccount-navigation .is-active a .kwz-nav-icon {
  color: var(--kwz-purple);
}

body.kwz-account--in .woocommerce-MyAccount-content {
  min-height: 280px;
  position: relative;
  margin-top: 0 !important;
  padding-top: 10px;
}

body.kwz-account--in .woocommerce-MyAccount-content > h1,
body.kwz-account--in .woocommerce-MyAccount-content > h2,
body.kwz-account--in .woocommerce-MyAccount-content > header,
body.kwz-account--in .kwz-dash-hello,
body.kwz-account--in .kwz-dash-hello h1,
body.kwz-account--in .kwz-pets__head,
body.kwz-account--in .kwz-pets__head h2,
body.kwz-account--in .kwz-view-order__head,
body.kwz-account--in .kwz-view-order__head h2,
body.kwz-account--in .woocommerce-Address-title,
body.kwz-account--in .woocommerce-EditAccountForm > h3,
body.kwz-account--in .woocommerce-MyAccount-content .woocommerce-address-fields > h3 {
  margin-top: 0;
}

body.kwz-account--in .woocommerce-MyAccount-content.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
}

.kwz-dash-hello h1 {
  margin: 0 0 6px;
  font-size: 32px;
}

.kwz-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}

.kwz-stat {
  background: var(--kwz-card);
  border: 1px solid var(--kwz-line);
  border-radius: 16px;
  padding: 14px;
  text-decoration: none !important;
  color: inherit !important;
}

.kwz-stat__n {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--kwz-purple);
}

.kwz-stat__l {
  color: var(--kwz-muted);
  font-size: 13px;
}

.kwz-dash-section {
  margin: 0 0 24px;
}

.kwz-dash-title {
  margin: 0 0 12px;
  font-size: 20px;
}

.kwz-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.kwz-bday {
  background: var(--kwz-soft);
  border: 1px solid var(--kwz-line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.kwz-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto minmax(180px, auto);
  gap: 12px 16px;
  align-items: center;
  background: var(--kwz-card);
  border: 1px solid var(--kwz-line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.kwz-order-num {
  font-weight: 800;
  color: var(--kwz-ink) !important;
  text-decoration: none !important;
}

.kwz-order-thumbs {
  display: flex;
  gap: 4px;
}

.kwz-order-thumbs img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

.kwz-order-total {
  font-weight: 700;
  text-align: right;
}

.kwz-order-total .kwz-muted {
  display: block;
  font-weight: 500;
}

.kwz-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.kwz-order-actions .kwz-btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.kwz-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.kwz-status--wait {
  background: #fff3d6;
  color: #8a5a00;
}

.kwz-status--progress {
  background: #ece4ff;
  color: var(--kwz-purple-d);
}

.kwz-status--done {
  background: #e3f7ea;
  color: #1b7a3c;
}

.kwz-status--cancel {
  background: #f3f3f3;
  color: #666;
}

.kwz-rv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kwz-rv-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--kwz-card);
  border: 1px solid var(--kwz-line);
  border-radius: 14px;
  padding: 10px;
  text-decoration: none !important;
  color: inherit !important;
}

.kwz-rv-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f7f5fb;
  border-radius: 10px;
}

.kwz-rv-card__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kwz-rv-card__price,
.kwz-rv-card__price ins,
.kwz-rv-card__price .woocommerce-Price-amount {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--kwz-purple, #7c58d3);
}

.kwz-rv-card__price ins {
  text-decoration: none;
}

.kwz-rv-card__price del,
.kwz-rv-card__price del .woocommerce-Price-amount {
  font-size: 13px;
  font-weight: 500;
  color: #a7a7a7;
}

.kwz-pet-chip {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--kwz-soft);
  font-weight: 600;
  margin: 0 6px 6px 0;
}

.kwz-pets__head {
  margin-bottom: 16px;
}

.kwz-pets__head p {
  color: var(--kwz-muted);
  margin: 0 0 16px;
}

.kwz-dash-section .kwz-muted {
  margin-bottom: 16px;
}

.kwz-pet-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--kwz-line);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}

.kwz-pet-card__photo img,
.kwz-pet-card__paw {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--kwz-soft);
  display: block;
}

.kwz-pet-card__body {
  flex: 1;
}

.kwz-pet-card__body h3 {
  margin: 0 0 4px;
}

.kwz-pet-form {
  margin-top: 20px;
  padding: 16px;
  border: 1px dashed var(--kwz-line);
  border-radius: 16px;
}

.kwz-view-order__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.kwz-view-order__head h2 {
  margin: 0;
}

.kwz-points-hero {
  background: linear-gradient(135deg, #7c58d3, #9b7ae8);
  color: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.kwz-points-hero__n {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

body.kwz-account--in .zr-myacc {
  border-radius: 18px !important;
  box-shadow: none !important;
}

body.kwz-account--in .woocommerce-MyAccount-content .button,
body.kwz-account--in .woocommerce-EditAccountForm .button {
  border-radius: 12px;
}

body.kwz-account .kwz-account-shell .woocommerce-form-row input.input-text,
body.kwz-account .kwz-account-shell .woocommerce-form-row select,
body.kwz-account .kwz-account-shell textarea {
  max-width: none;
  height: 44px;
  border-radius: 12px;
}

@media (max-width: 900px) {
  body.kwz-account--in .kwz-account-shell {
    display: block;
  }

  body.kwz-account--in .woocommerce-MyAccount-navigation {
    margin-bottom: 18px;
  }

  body.kwz-account--in .woocommerce-MyAccount-navigation ul {
    flex-direction: row !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 8px !important;
  }

  body.kwz-account--in .woocommerce-MyAccount-navigation li {
    width: auto !important;
    flex: 0 0 auto !important;
  }

  body.kwz-account--in .woocommerce-MyAccount-navigation a {
    white-space: nowrap;
    padding: 8px 12px !important;
  }

  body.kwz-account--in .woocommerce-MyAccount-navigation .is-active a {
    background: var(--kwz-soft) !important;
    color: var(--kwz-purple) !important;
    box-shadow: none;
  }

  body.kwz-account--in .woocommerce-MyAccount-navigation .kwz-nav-customer-logout {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .kwz-stats,
  .kwz-rv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kwz-order-row {
    grid-template-columns: 1fr 1fr;
  }

  .kwz-order-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .kwz-social-btns {
    grid-template-columns: 1fr;
  }
}
