/* ACCOUNT LAYOUT */
.woocommerce-account.logged-in .df-account-template {
  padding: 118px 0 72px;
}

.woocommerce-account .site-page.section-space {
  padding-top: 140px;
}

.woocommerce-account .site-page .container {
  max-width: 1280px;
}

.woocommerce-account .woocommerce {
  display: grid !important;
  grid-template-columns: 320px minmax(0, 1fr) !important;
  gap: 32px !important;
  align-items: start !important;
}

.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
  display: none !important;
  content: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  list-style: none !important;
}

/* ACCOUNT NAV */
.account-nav__card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 110px;
}

.account-nav__head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.account-nav__avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #f5f0e8;
  color: #1f1f1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.account-nav__avatar svg {
  width: 24px;
  height: 24px;
  display: block;
}

.account-nav__hello {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1;
  color: #1f1f1f;
}

.account-nav__sub {
  margin: 0;
  color: #6d675f;
  line-height: 1.6;
}

.account-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-nav__list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.account-nav__list li:last-child {
  border-bottom: 0;
}

.account-nav__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 600;
  transition: 0.18s ease;
}

.account-nav__list a:hover {
  opacity: 0.8;
}

.account-nav__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6f685f;
  flex: 0 0 18px;
}

.account-nav__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.account-nav__text {
  line-height: 1.2;
}

.account-nav__list .is-active a,
.account-nav__list .woocommerce-MyAccount-navigation-link--dashboard a,
.account-nav__list .woocommerce-MyAccount-navigation-link.is-active a {
  color: #000;
}

.account-nav__list .is-active .account-nav__icon,
.account-nav__list .woocommerce-MyAccount-navigation-link--dashboard.is-active .account-nav__icon,
.account-nav__list .woocommerce-MyAccount-navigation-link.is-active .account-nav__icon {
  color: #1f1f1f;
}

.account-nav__item--support {
  margin-top: 6px;
}

/* SECTION HEAD */
.account-section-head {
  margin-bottom: 28px;
}

.account-section-head__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7a746c;
}

.account-section-head__title {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  color: #1f1f1f;
}

.account-section-head__text {
  margin: 0;
  color: #5b564f;
  line-height: 1.7;
}

/* DASHBOARD */
.account-dashboard__hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 28px;
}

.account-dashboard__intro,
.account-dashboard__stats {
  background: #fff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.account-dashboard__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7a746c;
}

.account-dashboard__title {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.98;
}

.account-dashboard__text {
  margin: 0;
  color: #5b564f;
  line-height: 1.7;
  font-size: 17px;
}

.account-dashboard__stats {
  display: grid;
  gap: 18px;
}

.account-stat {
  padding: 18px;
  border-radius: 18px;
  background: #f5f0e8;
}

.account-stat__label {
  display: block;
  margin-bottom: 8px;
  color: #7a746c;
  font-size: 14px;
}

.account-stat__value {
  font-size: 26px;
  line-height: 1.1;
  color: #1f1f1f;
}

.account-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.account-box {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.account-box__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7a746c;
}

.account-box__title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.05;
  color: #1f1f1f;
}

.account-box__text {
  margin: 0 0 16px;
  color: #5b564f;
  line-height: 1.7;
}

.account-box__link {
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 700;
}

/* ORDERS */
.account-orders__list {
  display: grid;
  gap: 24px;
}

.account-order-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.account-order-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.account-order-card__label {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7a746c;
}

.account-order-card__number {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  color: #1f1f1f;
}

.account-order-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f5f0e8;
  color: #1f1f1f;
  font-weight: 600;
}

.account-order-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.account-order-card__meta-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f7f3ee;
}

.account-order-card__meta-item span {
  display: block;
  margin-bottom: 6px;
  color: #7a746c;
  font-size: 14px;
}

.account-order-card__meta-item strong {
  color: #1f1f1f;
  font-size: 16px;
}

.account-order-card__products {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.account-order-card__product {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
}

.account-order-card__product-image {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-order-card__product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.account-order-card__product-info strong {
  display: block;
  margin-bottom: 4px;
  color: #1f1f1f;
  font-size: 15px;
  line-height: 1.35;
}

.account-order-card__product-info span {
  color: #7a746c;
  font-size: 14px;
}

.account-order-card__product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.account-order-card__reorder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.account-order-card__reorder:hover {
  color: #fff;
  opacity: 0.86;
}

.account-order-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-order-card__actions .button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-order-card__actions .button--ghost {
  background: #f5f0e8;
  color: #1f1f1f;
}

.account-empty {
  background: #fff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.account-empty h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.05;
}

.account-empty p {
  margin: 0 0 18px;
  color: #5b564f;
  line-height: 1.7;
}

.account-orders__pagination {
  margin-top: 24px;
}

.account-orders__pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.account-orders__pagination a,
.account-orders__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  text-decoration: none;
}

.account-orders__pagination .current {
  background: #1f1f1f;
  color: #fff;
}

/* ORDER DETAIL */
.account-order-view__top {
  margin-bottom: 24px;
}

.account-order-summary-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.account-order-summary-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.account-order-summary-card__item {
  padding: 18px;
  border-radius: 18px;
  background: #f7f3ee;
}

.account-order-summary-card__item span {
  display: block;
  margin-bottom: 8px;
  color: #7a746c;
  font-size: 14px;
}

.account-order-summary-card__item strong {
  color: #1f1f1f;
  font-size: 18px;
  line-height: 1.2;
}

.account-order-view__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.account-panel {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.account-panel__head {
  margin-bottom: 22px;
}

.account-panel__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7a746c;
}

.account-panel__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  color: #1f1f1f;
}

.account-order-products {
  display: grid;
  gap: 16px;
}

.account-order-product {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.account-order-product:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-order-product__image {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-order-product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.account-order-product__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.account-order-product__title a {
  color: #1f1f1f;
  text-decoration: none;
}

.account-order-product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 8px;
  color: #6d675f;
  font-size: 14px;
}

.account-order-product__item-meta p,
.account-order-product__item-meta li,
.account-order-product__item-meta dd,
.account-order-product__item-meta dt {
  margin: 0 0 4px;
  color: #6d675f;
  font-size: 14px;
  line-height: 1.55;
}

.account-order-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.account-order-product__reorder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.account-order-product__reorder:hover {
  color: #fff;
  opacity: 0.86;
}

.account-address-block + .account-address-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.account-address-block h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
  color: #1f1f1f;
}

.account-address-block__content,
.account-address-block__content p {
  color: #5b564f;
  line-height: 1.7;
}

/* EDIT ACCOUNT */
.account-edit .account-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.account-edit .woocommerce-form-row {
  margin: 0 0 18px;
}

.account-edit label {
  display: block;
  margin-bottom: 8px;
  color: #6d675f;
  font-size: 14px;
  font-weight: 500;
}

.account-edit input.input-text,
.account-edit input[type="text"],
.account-edit input[type="email"],
.account-edit input[type="password"] {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  padding: 0 18px;
  box-sizing: border-box;
  font-size: 17px;
  color: #1f1f1f;
}

.account-edit input:focus {
  outline: none;
  border-color: #1f1f1f;
}

.account-edit .form-row-first,
.account-edit .form-row-last {
  width: calc(50% - 10px);
}

.account-edit .form-row-first {
  float: left;
}

.account-edit .form-row-last {
  float: right;
}

.account-edit .clear {
  clear: both;
}

.account-field-note {
  display: block;
  margin-top: 8px;
  color: #7a746c;
  line-height: 1.6;
  font-size: 14px;
}

.account-form-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.account-form-actions .button {
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: 0.18s ease;
}

.account-form-actions .button:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

/* ADDRESSES */
.account-addresses__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.account-address-card {
  padding: 34px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.account-address-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.account-address-card__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8a8379;
}

.account-address-card__title {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  color: #1f1f1f;
}

.account-address-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: 0.18s ease;
}

.account-address-card__action:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.account-address-card__body address,
.account-address-card__body p {
  margin: 0;
  color: #5b564f;
  line-height: 1.8;
  font-style: normal;
  font-size: 16px;
}

.account-address-card__empty {
  color: #7a746c;
}

.account-panel--address {
  max-width: 920px;
}

.account-panel__intro {
  margin: -4px 0 28px;
  max-width: 720px;
}

.account-panel__intro p {
  margin: 12px 0 0;
  color: #5b564f;
  line-height: 1.7;
  font-size: 16px;
}

.account-inline-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f5f0e8;
  color: #1f1f1f;
  font-size: 13px;
  font-weight: 700;
}

.account-address-edit-form {
  display: block;
}

.account-address-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.account-address-form-grid .form-row {
  margin-bottom: 22px;
}

.account-address-form-grid .form-row label {
  margin-bottom: 10px;
}

.account-address-form-grid .form-row .required {
  color: #1f1f1f;
}

.account-address-form-grid .woocommerce-input-wrapper {
  display: block;
}

.account-edit-address input.input-text,
.account-edit-address input[type="text"],
.account-edit-address input[type="email"],
.account-edit-address input[type="tel"],
.account-edit-address select,
.account-edit-address textarea {
  width: 100%;
  min-height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 17px;
  color: #1f1f1f;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.account-edit-address textarea {
  min-height: 150px;
  padding: 18px 20px;
}

.account-edit-address input:focus,
.account-edit-address select:focus,
.account-edit-address textarea:focus {
  outline: none;
  border-color: #1f1f1f;
  box-shadow: 0 0 0 4px rgba(31, 31, 31, 0.04);
  background: #fff;
}

.account-edit-address .form-row-wide,
.account-edit-address .woocommerce-address-fields__field-wrapper .form-row-wide {
  grid-column: 1 / -1;
}

.account-form-actions__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.account-form-actions__secondary:hover {
  background: #f7f3ee;
}

.woocommerce .select2-container .select2-selection--single {
  height: 60px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 16px !important;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 60px !important;
  color: #1f1f1f !important;
  padding-left: 0 !important;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 60px !important;
  right: 12px !important;
}

/* GENERIC TABLES */
.woocommerce-account .woocommerce table.shop_table {
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.woocommerce-account .woocommerce table.shop_table th,
.woocommerce-account .woocommerce table.shop_table td {
  padding: 18px;
}

.woocommerce-account .woocommerce .button,
.woocommerce-account .woocommerce button.button {
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  border: 0;
}

/* DOWNLOADS */
.account-downloads__grid {
  display: grid;
  gap: 24px;
}

.account-download-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.account-download-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.account-download-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #f5f0e8;
  color: #1f1f1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
}

.account-download-card__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.account-download-card__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7a746c;
}

.account-download-card__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  color: #1f1f1f;
}

.account-download-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.account-download-card__meta-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f7f3ee;
}

.account-download-card__meta-item span {
  display: block;
  margin-bottom: 6px;
  color: #7a746c;
  font-size: 14px;
}

.account-download-card__meta-item strong {
  color: #1f1f1f;
  font-size: 16px;
  line-height: 1.35;
}

.account-download-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-download-card__actions .button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .woocommerce-account .woocommerce,
  .account-dashboard__hero,
  .account-dashboard__grid,
  .account-order-summary-card__grid,
  .account-order-view__layout,
  .account-edit .account-form-grid,
  .account-addresses__grid,
  .account-address-form-grid,
  .account-download-card__meta {
    grid-template-columns: 1fr !important;
  }

  .account-nav__card {
    position: static;
  }
}

@media (max-width: 640px) {
  .account-nav__card,
  .account-dashboard__intro,
  .account-dashboard__stats,
  .account-box,
  .account-order-card,
  .account-order-summary-card,
  .account-panel,
  .account-address-card,
  .account-download-card {
    padding: 22px;
    border-radius: 22px;
  }

  .account-edit .form-row-first,
  .account-edit .form-row-last {
    width: 100%;
    float: none;
  }

  .account-order-card__top,
  .account-order-card__meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .account-order-product {
    grid-template-columns: 1fr;
  }

  .account-order-product__image {
    width: 100%;
    height: 180px;
  }

  .account-address-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .account-form-actions .button,
  .account-form-actions__secondary,
  .account-download-card__actions .button,
  .account-download-card__actions .account-form-actions__secondary {
    width: 100%;
  }

  .account-download-card__head {
    align-items: flex-start;
  }

  .account-download-card__title {
    font-size: 24px;
  }

  .account-download-card__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
