﻿.woocommerce-account {
  --coe-account-accent: var(--wd-primary-color, #52bf78);
  --coe-account-accent-dark: var(--wd-primary-color-hover, #45a969);
}

.woocommerce-account .entry-title,
.woocommerce-account .title.page-title,
.woocommerce-account h1.entry-title {
  background: transparent !important;
  color: #0f766e !important;
  padding: 0 !important;
  margin: 0 0 1rem !important;
  border: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.2;
}

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

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 0 0 0.45rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  background: #f3f4f6;
  color: #111827;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:focus {
  background: var(--coe-account-accent);
  color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
  content: "\2022";
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard a::before {
  content: "\1F3E0";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--orders a::before {
  content: "\1F6D2";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads a::before {
  content: "\2B07";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address a::before {
  content: "\1F4CD";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--payment-methods a::before {
  content: "\1F4B3";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account a::before {
  content: "\1F464";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before {
  content: "\21AA";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--view-pos a::before {
  content: "\1F4F1";
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.55rem;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .woocommerce-button,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .woocommerce-button,
.woocommerce-account .coe-view-order-edit-link .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.62rem 1rem;
  border-radius: 999px !important;
  border: 1px solid var(--coe-account-accent) !important;
  background: var(--coe-account-accent) !important;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button:hover,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button:hover,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .woocommerce-button:hover,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .woocommerce-button:hover,
.woocommerce-account .coe-view-order-edit-link .button:hover {
  background: var(--coe-account-accent-dark) !important;
  border-color: var(--coe-account-accent-dark) !important;
  color: #fff !important;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button::before,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .woocommerce-button::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .woocommerce-button::before,
.woocommerce-account .coe-view-order-edit-link .button::before {
  content: "\1F539";
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.view::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button.view::before {
  content: "\1F441";
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.pay::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button.pay::before {
  content: "\1F4B3";
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.cancel::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button.cancel::before {
  content: "\2716";
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.coe_edit_order::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button.coe_edit_order::before,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.edit::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button.edit::before,
.woocommerce-account .coe-view-order-edit-link .button::before {
  content: "\270E";
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.invoice::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button.invoice::before,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.pdf::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button.pdf::before,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.wpo_wcpdf::before,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button.wpo_wcpdf::before {
  content: "\1F4C4";
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.invoice,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button.invoice,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.pdf,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button.pdf,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.wpo_wcpdf,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button.wpo_wcpdf,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button[class*="invoice"],
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button[class*="invoice"],
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button[class*="pdf"],
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button[class*="pdf"] {
  display: none !important;
}

@media (max-width: 767px) {
  .woocommerce-account .woocommerce-orders-table__cell-order-actions,
  .woocommerce-account td.woocommerce-orders-table__cell-order-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
  .woocommerce-account td.woocommerce-orders-table__cell-order-actions .button,
  .woocommerce-account .woocommerce-orders-table__cell-order-actions .woocommerce-button,
  .woocommerce-account td.woocommerce-orders-table__cell-order-actions .woocommerce-button,
  .woocommerce-account .coe-view-order-edit-link .button {
    width: 100%;
    min-height: 48px;
  }
}
