/* =========================================
   BUSH BAGS - MY ACCOUNT
========================================= */
.bb-account-page {
  width: var(--bb-container);
  margin: 0 auto;
}

body.woocommerce-account {
  --bb-account-background: #f5f4ef;
}

/* MAIN ACCOUNT WRAPPER */

body.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 25px;
  margin: 0 auto;
  padding: var(--bb-padding);
  align-items: start;
}

/* =========================================
   ACCOUNT BANNER
========================================= */

body.woocommerce-account .woocommerce::before {
  content: "MY ACCOUNT\A Your Bush Bags account, all in one place.";
  white-space: pre-line;
  display: none;
  flex-direction: column;
  justify-content: center;
  grid-column: 1 / -1;
  min-height: 170px;
  padding: 35px 55px;
  box-sizing: border-box;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgb(45 47 36 / 88%), rgb(45 47 36 / 30%)),
    var(--bb-olive);
  color: #fff;
  font-size: 17px;
  line-height: 1.8;
}

/* =========================================
   HORIZONTAL ACCOUNT NAVIGATION
========================================= */

body.woocommerce-account .woocommerce-MyAccount-navigation {
  float: none;
  width: 100%;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid #e8e5dc;
  border-radius: 10px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 13px 18px;
  border-radius: 6px;
  color: var(--bb-black);

  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: #f0eee6;
  color: var(--bb-orange);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--bb-orange);
  color: #fff;
}

/* =========================================
   ACCOUNT CONTENT
========================================= */

body.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 35px;
  background: #fff;
  border: 1px solid #e8e5dc;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgb(0 0 0 / 3%);
  line-height: 1.8;
}

body.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
  margin-top: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content a {
  color: var(--bb-orange);
}

body.woocommerce-account .woocommerce-MyAccount-content a:hover {
  color: var(--bb-black);
}

/* ACCOUNT HEADINGS */

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
  color: var(--bb-black);
  margin-top: 0;
}

/* ACCOUNT TABLES */

body.woocommerce-account .woocommerce table.shop_table {
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e5dc;
}

body.woocommerce-account .woocommerce table.shop_table th {
  background: #f5f4ef;
  color: var(--bb-black);
}

body.woocommerce-account .woocommerce table.shop_table th,
body.woocommerce-account .woocommerce table.shop_table td {
  padding: 14px;
}

/* FORM FIELDS */

body.woocommerce-account .woocommerce form .form-row {
  margin-bottom: 20px;
}

body.woocommerce-account .woocommerce form .input-text,
body.woocommerce-account .woocommerce form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d8d5ca;
  border-radius: 6px;
  background: #fff;
}

body.woocommerce-account .woocommerce form .input-text:focus,
body.woocommerce-account .woocommerce form select:focus {
  outline: 2px solid rgb(169 79 37 / 25%);
  border-color: var(--bb-orange);
}

/* BUTTONS */

body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce a.button,
body.woocommerce-account .woocommerce input.button {
  padding: 12px 24px;
  background: var(--bb-orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease;
}

body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce a.button:hover,
body.woocommerce-account .woocommerce input.button:hover {
  background: var(--bb-black);
  color: #fff;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
  body.woocommerce-account .woocommerce {
    width: 92%;
    margin: 25px auto 45px;
    gap: 18px;
  }

  body.woocommerce-account .woocommerce::before {
    min-height: 135px;
    padding: 25px;
    border-radius: 8px;
  }

  /* Scrollable horizontal tabs */

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    gap: 5px;
    box-sizing: border-box;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    flex: 0 0 auto;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    padding: 11px 14px;

    white-space: nowrap;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    padding: 22px 18px;

    border-radius: 8px;
  }

  body.woocommerce-account .woocommerce table.shop_table th,
  body.woocommerce-account .woocommerce table.shop_table td {
    padding: 10px;
  }
}
