/**
 * @intent: Дашборд личного кабинета — статистика, разделы, последние заказы (макет Make).
 * @see account/account.twig
 */

body.f2p-make-chrome .f2p-account-dash {
  max-width: 1100px;
}

/* @intent: Шапка ЛК — тёмно-зелёный баннер как на макете Make / корзине. */
body.f2p-make-chrome .f2p-make-account__head {
  display: block;
  margin: 0 0 24px;
  padding: 22px 24px;
  background: var(--color-action-primary, #1b3f2d);
  border-radius: 16px;
  color: #fff;
}

body.f2p-make-chrome .f2p-make-account__head .f2p-make-account__title {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff !important;
}

body.f2p-make-chrome .f2p-make-account__head .f2p-make-account__subtitle {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78) !important;
}

body.f2p-make-chrome .f2p-account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

@media (min-width: 900px) {
  body.f2p-make-chrome .f2p-account-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.f2p-make-chrome .f2p-account-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid rgba(29, 41, 35, 0.06);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(24, 78, 59, 0.04);
  text-decoration: none !important;
  color: inherit !important;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

body.f2p-make-chrome .f2p-account-stat:hover {
  border-color: rgba(24, 78, 59, 0.2);
  box-shadow: 0 10px 28px rgba(24, 78, 59, 0.08);
}

body.f2p-make-chrome .f2p-account-stat__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F3F1EC;
  color: #5B6B63;
  font-size: 16px;
}

body.f2p-make-chrome .f2p-account-stat__value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #1D2923;
  letter-spacing: -0.02em;
}

body.f2p-make-chrome .f2p-account-stat__unit {
  font-size: 15px;
  font-weight: 600;
}

body.f2p-make-chrome .f2p-account-stat__sub {
  font-size: 13px;
  color: #7A8780;
}

body.f2p-make-chrome .f2p-make-account-section__title {
  margin: 8px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  color: #184E3B;
  letter-spacing: -0.02em;
}

body.f2p-make-chrome .f2p-make-account-tile {
  box-shadow: 0 8px 24px rgba(24, 78, 59, 0.04);
  border-color: rgba(29, 41, 35, 0.06);
  border-radius: 18px;
  min-height: 132px;
}

body.f2p-make-chrome .f2p-make-account-tile__icon {
  background: #F3F1EC;
  color: #5B6B63;
}

body.f2p-make-chrome .f2p-make-account-tile__label {
  font-size: 15px;
  font-weight: 700;
  color: #1D2923;
}

body.f2p-make-chrome .f2p-make-account-tile__desc {
  font-size: 13px;
  color: #7A8780;
  line-height: 1.35;
}

body.f2p-make-chrome .f2p-make-account-tile--support {
  background: #184E3B !important;
  border-color: #184E3B !important;
  color: #F7F4EF !important;
}

body.f2p-make-chrome .f2p-make-account-tile--support .f2p-make-account-tile__icon {
  background: rgba(255, 255, 255, 0.12);
  color: #F7F4EF;
}

body.f2p-make-chrome .f2p-make-account-tile--support .f2p-make-account-tile__label,
body.f2p-make-chrome .f2p-make-account-tile--support .f2p-make-account-tile__desc {
  color: #F7F4EF !important;
}

body.f2p-make-chrome .f2p-make-account-tile--support:hover {
  box-shadow: 0 12px 28px rgba(24, 78, 59, 0.28);
}

body.f2p-make-chrome .f2p-account-orders {
  margin-top: 36px;
  padding: 22px 22px 8px;
  background: #fff;
  border: 1px solid rgba(29, 41, 35, 0.06);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(24, 78, 59, 0.04);
}

body.f2p-make-chrome .f2p-account-orders__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

body.f2p-make-chrome .f2p-account-orders__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 600;
  color: #184E3B;
}

body.f2p-make-chrome .f2p-account-orders__all {
  font-size: 14px;
  font-weight: 600;
  color: #184E3B !important;
  text-decoration: none !important;
  white-space: nowrap;
}

body.f2p-make-chrome .f2p-account-orders__all:hover {
  text-decoration: underline !important;
}

body.f2p-make-chrome .f2p-account-orders__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.f2p-make-chrome .f2p-account-orders__list > li + li {
  border-top: 1px solid #EEF0ED;
}

body.f2p-make-chrome .f2p-account-order {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  text-decoration: none !important;
  color: inherit !important;
}

body.f2p-make-chrome .f2p-account-order:hover .f2p-account-order__id {
  color: #184E3B;
}

body.f2p-make-chrome .f2p-account-order__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F3F1EC;
  color: #5B6B63;
}

body.f2p-make-chrome .f2p-account-order__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.f2p-make-chrome .f2p-account-order__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.f2p-make-chrome .f2p-account-order__id {
  font-size: 15px;
  font-weight: 700;
  color: #1D2923;
}

body.f2p-make-chrome .f2p-account-order__status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

body.f2p-make-chrome .f2p-account-order__status--done {
  background: #EAF5F0;
  color: #2D6A4F;
}

body.f2p-make-chrome .f2p-account-order__status--ship {
  background: #FFF4E5;
  color: #A05E03;
}

body.f2p-make-chrome .f2p-account-order__meta {
  font-size: 13px;
  color: #7A8780;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.f2p-make-chrome .f2p-account-order__total {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: #1D2923;
  white-space: nowrap;
}

body.f2p-make-chrome .f2p-account-orders__empty {
  margin: 12px 0 20px;
  color: #7A8780;
}

body.f2p-make-chrome .f2p-account-dash__logout {
  margin: 28px 0 0;
  text-align: center;
}

body.f2p-make-chrome .f2p-account-dash__logout a {
  color: #7A8780 !important;
  font-size: 14px;
  text-decoration: underline !important;
}

@media (max-width: 640px) {
  body.f2p-make-chrome .f2p-account-order {
    flex-wrap: wrap;
  }

  body.f2p-make-chrome .f2p-account-order__total {
    margin-left: 56px;
  }

  body.f2p-make-chrome .f2p-account-orders {
    padding: 18px 14px 4px;
  }

  body.f2p-make-chrome .f2p-make-account-section__title,
  body.f2p-make-chrome .f2p-account-orders__title {
    font-size: 22px;
  }
}
