/* ShoppingAZ Client Cabinet — scoped WooCommerce My Account shell + subscription UI. */

.woocommerce-account .woocommerce {
  max-width: 1160px;
  margin: 0 auto;
}

.woocommerce-account .woocommerce::after {
  content: "";
  display: table;
  clear: both;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  float: left;
  width: 23%;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 8px;
  border: 1px solid #e9e9e9;
  background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  color: #171717;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: #f7f7f7;
  color: #000;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active > a {
  border-left-color: #ef173c;
  background: #f7f7f7;
  font-weight: 600;
  color: #000;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: right;
  width: 72%;
  min-height: 420px;
}

.saz-cc {
  width: 100%;
  max-width: 880px;
  color: #171717;
}

.saz-cc * {
  box-sizing: border-box;
}

.saz-cc__header {
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #ececec;
}

.saz-cc__kicker,
.saz-cc__eyebrow {
  display: block;
  margin: 0 0 7px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #777;
}

.saz-cc__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 500;
  color: #0f0f0f;
}

.saz-cc__subtitle {
  max-width: 620px;
  margin: 11px 0 0;
  color: #666;
  line-height: 1.55;
}

.saz-cc__current {
  margin: 0 0 34px;
  padding: 26px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.saz-cc__current-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.saz-cc__current-plan {
  display: block;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  font-weight: 600;
  color: #111;
}

.saz-cc__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.saz-cc__status--active {
  background: #111;
  color: #fff;
}

.saz-cc__status--inactive,
.saz-cc__status--expired {
  background: #f2f2f2;
  color: #666;
}

.saz-cc__current-note,
.saz-cc__current > p {
  margin: 18px 0 0;
  max-width: 650px;
  color: #666;
  line-height: 1.55;
}

.saz-cc__dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
}

.saz-cc__dates > div {
  padding: 15px 0 0;
  border-top: 1px solid #ededed;
}

.saz-cc__dates dt {
  margin: 0 0 5px;
  color: #777;
  font-size: 12px;
}

.saz-cc__dates dd {
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 600;
}

.saz-cc__section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 0 0 15px;
}

.saz-cc__section-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
}

.saz-cc__plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 38px;
}

.saz-cc__plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 27px;
  border: 1px solid #dedede;
  background: #fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.saz-cc__plan:hover {
  transform: translateY(-2px);
  border-color: #bdbdbd;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.saz-cc__plan--current {
  border: 2px solid #111;
  padding: 26px;
}

.saz-cc__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 8px;
  background: #111;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.saz-cc__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 18px;
}

.saz-cc__price strong {
  font-size: clamp(44px, 6vw, 62px);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.04em;
}

.saz-cc__price span {
  color: #777;
  font-size: 14px;
}

.saz-cc__plan-copy {
  margin: 0 0 26px;
  color: #666;
  line-height: 1.5;
}

.saz-cc a.saz-cc__button,
.saz-cc .saz-cc__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: auto 0 0 !important;
  padding: 11px 18px !important;
  border: 1px solid #111 !important;
  border-radius: 0 !important;
  background: #111 !important;
  color: #fff !important;
  font: inherit !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}

.saz-cc a.saz-cc__button:hover,
.saz-cc .saz-cc__button:hover {
  background: #ef173c !important;
  border-color: #ef173c !important;
  color: #fff !important;
}

.saz-cc .saz-cc__button[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.saz-cc__history {
  margin: 42px 0 0;
  padding-top: 28px;
  border-top: 1px solid #e9e9e9;
}

.saz-cc__history h3 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
}

.saz-cc__table-wrap {
  overflow-x: auto;
  border: 1px solid #e7e7e7;
}

.saz-cc__table {
  width: 100%;
  min-width: 620px;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
}

.saz-cc__table th,
.saz-cc__table td {
  padding: 14px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #ededed !important;
  text-align: left;
}

.saz-cc__table th {
  background: #fafafa;
  color: #666;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.saz-cc__table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.saz-cc__table a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 28px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation a {
    min-height: 42px;
    padding: 9px 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation .is-active > a {
    border-left-color: transparent;
    border-bottom-color: #ef173c;
  }
}

@media (max-width: 680px) {
  .saz-cc__header {
    margin-bottom: 22px;
  }

  .saz-cc__current,
  .saz-cc__plan {
    padding: 20px;
  }

  .saz-cc__plan--current {
    padding: 19px;
  }

  .saz-cc__current-main {
    flex-direction: column;
    gap: 15px;
  }

  .saz-cc__dates,
  .saz-cc__plans {
    grid-template-columns: 1fr;
  }

  .saz-cc__plans {
    gap: 12px;
  }

  .saz-cc__plan {
    min-height: 220px;
  }
}
