/* =============================================
   MY ACCOUNT / PROFILE
   ============================================= */

.lrdf-profile.container {
  max-width: 1280px;
  margin: 10rem auto 5rem;
  padding: 0 20px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  display: none;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  width: 100%;
}

/* Hide default Woo account content except our custom dashboard */
.woocommerce-account .woocommerce-MyAccount-content > p,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce-MyAccount-content > h2,
.woocommerce-account .woocommerce-MyAccount-content > h3,
.woocommerce-account .woocommerce-MyAccount-content > strong {
  display: none !important;
}

.woocommerce-account .woocommerce-notices-wrapper:empty {
  display: none;
}

.lrdf-profile__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lrdf-profile__top {
  grid-column: 1 / -1;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.lrdf-profile__email {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #111;
}

.lrdf-profile__top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lrdf-profile__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 256px;
  height: 48px;
  border: 1px solid #000;
  border-radius: 5px;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 13px;
  transition: all .25s;
  cursor: pointer;
}

.lrdf-profile__btn:hover {
  background: var(--green);
  border-color: #000;
  color: #000;
}

.lrdf-profile__btn--ghost {
  background: transparent;
  color: #111;
  border-color: #6b7280;
}

.lrdf-profile__btn--ghost:hover {
  background: var(--green);
  color: #111;
}

.lrdf-profile__card {
  display: flex;
  flex-direction: column;
  gap: 19px;
  background: rgba(72, 72, 72, 0.6);
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 32px 23px;
}

.lrdf-profile__card-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-sporting);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lrdf-profile__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

.lrdf-profile__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lrdf-profile__field--full {
  grid-column: 1 / -1;
}

.lrdf-profile__field span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 12px;
  letter-spacing: -0.4px;
  text-transform: uppercase;
  color: #fff;
}

.lrdf-profile__field span em {
  font-style: normal;
  color: #ff4f4f;
}

.lrdf-profile__field input,
.lrdf-profile__field select {
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 16px;
  background: #fff;
  color: #000;
  font-family: var(--font-body);
  font-size: 14px;
}

.lrdf-profile__field input:focus,
.lrdf-profile__field select:focus {
  outline: none;
  border-color: var(--green);
}

.lrdf-profile__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 8px;
}

.lrdf-profile__checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
}

.lrdf-profile__checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--green);
}

.lrdf-profile__checkbox-wrapper span {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  color: #111;
  text-align: left;
}

.lrdf-password-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.lrdf-password-modal.is-open {
  display: grid;
  place-items: center;
}

.lrdf-password-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.lrdf-password-modal__panel {
  position: relative;
  z-index: 2;
  width: min(92vw, 620px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  padding: 24px;
}

.lrdf-password-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #111;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.lrdf-password-modal__close:hover {
  background: var(--green);
}

.lrdf-password-modal__title {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #111;
}

.lrdf-password-modal__form {
  display: grid;
  gap: 14px;
}

.lrdf-password-modal__form .lrdf-profile__field span {
  color: #111;
}

.lrdf-password-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

body.lrdf-modal-open {
  overflow: hidden;
}

.lrdf-account-endpoint-wrap {
  max-width: 1280px;
  margin: 8rem auto 4rem;
  padding: 0 20px;
}

.lrdf-account-endpoint-wrap .woocommerce {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}

.lrdf-account-endpoint-wrap .woocommerce-MyAccount-navigation,
.lrdf-account-endpoint-wrap .woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 20px;
}

.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .shop_table.order_details,
.woocommerce-account table.my_account_orders {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td,
.woocommerce-account .shop_table.order_details th,
.woocommerce-account .shop_table.order_details td,
.woocommerce-account table.my_account_orders th,
.woocommerce-account table.my_account_orders td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f3;
  text-align: left;
  font-family: var(--font-body);
  font-size: 14px;
  color: #111;
}

.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .shop_table.order_details th,
.woocommerce-account table.my_account_orders th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: #f7f8fa;
  font-weight: 700;
}

.woocommerce-account .woocommerce-orders-table tr:nth-child(even) td,
.woocommerce-account table.my_account_orders tr:nth-child(even) td {
  background: #fcfcfd;
}

.woocommerce-account .woocommerce-orders-table .button,
.woocommerce-account table.my_account_orders .button,
.woocommerce-account .woocommerce-button.button,
.woocommerce-account a.woocommerce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #111;
  border-radius: 5px;
  background: #111;
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account .woocommerce-orders-table .button:hover,
.woocommerce-account table.my_account_orders .button:hover,
.woocommerce-account .woocommerce-button.button:hover,
.woocommerce-account a.woocommerce-button:hover {
  background: var(--green);
  color: #111;
  border-color: #111;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
  margin: 0 0 16px;
  border-radius: 8px;
  border-width: 1px;
}

@media (max-width: 1024px) {
  .lrdf-profile__grid {
    grid-template-columns: 1fr;
  }

  .lrdf-profile__form {
    grid-template-columns: 1fr;
  }

  .lrdf-profile__btn {
    width: 100%;
    min-width: 0;
  }

  .lrdf-account-endpoint-wrap .woocommerce {
    grid-template-columns: 1fr;
  }

  .lrdf-password-modal__panel {
    width: calc(100vw - 22px);
    padding: 18px;
  }

  .woocommerce-account .woocommerce-orders-table,
  .woocommerce-account .shop_table.order_details,
  .woocommerce-account table.my_account_orders {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
