body.woocommerce-account .woocommerce {
  max-width: 100% !important;
  margin: var(--wp--preset--spacing--80) auto;
}

.woocommerce table.my_account_orders {
  font-size: 1em;
}

body.woocommerce-account .woocommerce table.shop_table .subscription-actions {
  text-align: right !important;
}

/* Button */
body.woocommerce-account
  .woocommerce
  .button:not(
    .woocommerce_account_subscriptions .button,
    .wc-block-components-notice-banner__content .button
  ),
body.woocommerce-account .woocommerce .woocommerce-button,
body.woocommerce-account .woocommerce button.button.wp-element-button {
  background-color: var(--wp--preset--color--orange);
  border-radius: 4rem;
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--figtree);
  font-size: var(--wp--preset--font-size--text-m);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  padding-top: var(--wp--preset--spacing--10);
  padding-right: var(--wp--preset--spacing--20);
  padding-bottom: var(--wp--preset--spacing--10);
  padding-left: var(--wp--preset--spacing--20);
  margin-bottom: 0;
  transition:
    background 0.2s ease,
    color 0.2s ease !important;
}

body.woocommerce-account .woocommerce .woocommerce_account_subscriptions .woocommerce-button,
body.woocommerce-account .woocommerce .shop_table.subscription_details .woocommerce-button {
  font-size: var(--wp--preset--font-size--text-s);
  padding-top: var(--wp--preset--spacing--10);
  padding-right: var(--wp--preset--spacing--20);
  padding-bottom: var(--wp--preset--spacing--10);
  padding-left: var(--wp--preset--spacing--20);
  margin: 0 !important;
}

body.woocommerce-account .woocommerce .woocommerce-table.shop_table .woocommerce-button,
body.woocommerce-account .woocommerce .order .order-actions .woocommerce-button {
  display: inline-block;
  font-size: var(--wp--preset--font-size--text-s);
  padding-top: var(--wp--preset--spacing--10);
  padding-right: var(--wp--preset--spacing--20);
  padding-bottom: var(--wp--preset--spacing--10);
  padding-left: var(--wp--preset--spacing--20);
  margin: 2px 0px 2px 4px !important;
}

body.woocommerce-account
  .woocommerce
  .button:not(
    .woocommerce_account_subscriptions .button,
    .wc-block-components-notice-banner__content .button
  ):hover,
body.woocommerce-account .woocommerce .woocommerce-button:hover,
body.woocommerce-account .woocommerce button.button.wp-element-button:hover {
  background-color: #ad4d13;
  color: #fff;
}

/* Input fields */
body.woocommerce-account .woocommerce .input-text {
  border-radius: 8px !important;
  padding: 16px !important;
  font-size: 16px !important;
  border-color: #d1d5db;
  background-color: #ffffff;
  color: var(--wp--preset--color--dark-green);
  transition: border-color 0.2s ease;
}

body.woocommerce-account .woocommerce .input-text:hover {
  border-color: var(--wp--preset--color--green);
}

body.woocommerce-account .woocommerce .input-text:focus {
  outline: 2px solid var(--wp--preset--color--green);
  outline-offset: 1px;
  border-color: var(--wp--preset--color--green);
  background-color: #ffffff;
}

body.woocommerce-account .woocommerce .select2.select2-container .select2-selection,
body.woocommerce-account
  .woocommerce
  .select2-container--default
  .select2-search--dropdown
  .select2-search__field {
  border-radius: 8px !important;
  border-color: #d1d5db !important;
  transition: border-color 0.2s ease;
}

body.woocommerce-account .woocommerce .select2.select2-container .select2-selection:hover,
body.woocommerce-account
  .woocommerce
  .select2-container--default
  .select2-search--dropdown
  .select2-search__field:hover {
  border-color: var(--wp--preset--color--green) !important;
}

body.woocommerce-account
  .woocommerce
  .select2.select2-container
  .select2-selection
  .select2-selection__rendered {
  padding: 16px !important;
}

body.woocommerce-account
  .woocommerce
  .select2.select2-container
  .select2-selection
  .select2-selection__rendered,
body.woocommerce-account
  .woocommerce
  .select2.select2-container
  .select2-selection
  .select2-selection__rendered
  .select2-selection__placeholder {
  font-size: 16px !important;
  color: var(--wp--preset--color--dark-green) !important;
}

body.woocommerce-account
  .woocommerce
  .select2-container--default
  .select2-results__option--highlighted[aria-selected],
body.woocommerce-account
  .woocommerce
  .select2-container--default
  .select2-results__option--highlighted[data-selected] {
  background-color: var(--wp--preset--color--green);
}

body.woocommerce-account .woocommerce .select2-dropdown.select2-dropdown--below {
  border-color: #d1d5db !important;
  border-radius: 0px 0px 8px 8px !important;
}

body.woocommerce-account
  .woocommerce
  .select2-container--default
  .select2-search--dropdown
  .select2-search__field:focus {
  outline: 2px solid var(--wp--preset--color--green);
  outline-offset: 1px;
}

/* Nav */
body.woocommerce-account .woocommerce nav.woocommerce-MyAccount-navigation {
  width: 20% !important;
}

@media screen and (max-width: 900px) {
  body.woocommerce-account .woocommerce nav.woocommerce-MyAccount-navigation ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

body.woocommerce-account .woocommerce nav.woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
}

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

body.woocommerce-account .woocommerce nav.woocommerce-MyAccount-navigation li a {
  position: relative;
  padding: 0 0 3px;
}

body.woocommerce-account .woocommerce nav.woocommerce-MyAccount-navigation li a:hover,
body.woocommerce-account .woocommerce nav.woocommerce-MyAccount-navigation li.is-active a {
  text-decoration: none !important;
}

body.woocommerce-account .woocommerce nav.woocommerce-MyAccount-navigation li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.2s ease;
}

body.woocommerce-account .woocommerce nav.woocommerce-MyAccount-navigation li a:hover::after,
body.woocommerce-account .woocommerce nav.woocommerce-MyAccount-navigation li.is-active a::after {
  background-color: var(--wp--preset--color--orange);
}

/* Content */
body.woocommerce-account .woocommerce div.woocommerce-MyAccount-content {
  width: 80% !important;
}

body.woocommerce-account .woocommerce h2,
body.woocommerce-account .woocommerce div.woocommerce-MyAccount-content h2 {
  font-weight: 700 !important;
  font-size: var(--wp--preset--font-size--text-xl) !important;
  margin: var(--wp--preset--spacing--40) 0;
}

body.woocommerce-account .woocommerce h2.form-login-heading {
  font-size: var(--wp--preset--font-size--text-xl);
  margin: 0 auto var(--wp--preset--spacing--20);
}

body.woocommerce-account .woocommerce div.woocommerce-MyAccount-content .woocommerce-Address a {
  display: inline-block;
  float: none;
  text-decoration: none;
  background-color: var(--wp--preset--color--orange);
  border-radius: 4rem;
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--figtree);
  font-size: var(--wp--preset--font-size--text-m);
  font-weight: 500;
  line-height: 1.5;
  padding-top: var(--wp--preset--spacing--20);
  padding-right: var(--wp--preset--spacing--40);
  padding-bottom: var(--wp--preset--spacing--20);
  padding-left: var(--wp--preset--spacing--40);
  transition:
    background 0.2s ease,
    color 0.2s ease !important;
}

body.woocommerce-account
  .woocommerce
  div.woocommerce-MyAccount-content
  .woocommerce-Address
  a:hover {
  background-color: #ad4d13;
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  body.woocommerce-account .woocommerce nav.woocommerce-MyAccount-navigation {
    width: 100% !important;
  }

  body.woocommerce-account .woocommerce div.woocommerce-MyAccount-content {
    width: 100% !important;
  }
}
