@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Work+Sans:wght@400;500;600;700&display=swap");

:where(
  .navbar,
  .navbar-expand-lg,
  header .navbar,
  .web-footer,
  footer.web-footer,
  .footer-subscribe-section,
  .footer-powered,
  .website-footer,
  .page-footer
) {
  display: none !important;
}

:root {
  --orders-bg: #fcf9f8;
  --orders-panel: #ffffff;
  --orders-ink: #001e40;
  --orders-muted: #43474f;
  --orders-soft: #737780;
  --orders-line: #c3c6d1;
  --orders-gold: #ffe088;
  --orders-gold-strong: #d4af37;
  --orders-navy: #003366;
  --orders-navy-deep: #1f477b;
  --orders-card: #f7f3ea;
  --orders-success: #e5f5ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  background: var(--orders-bg);
  color: var(--orders-ink);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.hrstore-profile {
  position: relative;
}

.hrstore-profile__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  padding: 0;
  flex: 0 0 40px;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.hrstore-profile__trigger--topbar {
  width: 40px;
  height: 40px;
}

.hrstore-profile__trigger span[data-profile-avatar] {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: linear-gradient(145deg, #214a83, #163965);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 18px rgba(0, 30, 64, 0.18);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.hrstore-profile__trigger span[data-profile-avatar][data-guest="true"] {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: currentColor;
}

.hrstore-profile__trigger span[data-profile-avatar] svg {
  width: 19px;
  height: 19px;
}

.hrstore-profile__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(280px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid rgba(0, 30, 64, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(0, 30, 64, 0.16);
  z-index: 40;
}

.hrstore-profile__identity {
  padding: 4px 4px 14px;
  border-bottom: 1px solid #e8edf4;
}

.hrstore-profile__identity strong,
.hrstore-profile__identity span {
  display: block;
}

.hrstore-profile__identity strong {
  color: #183153;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hrstore-profile__identity span {
  margin-top: 6px;
  color: #6c7482;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hrstore-profile__action {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #f5f7fa;
  color: #183153;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.hrstore-orders-page {
  width: 100vw;
  min-height: 100vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(180deg, #fcf9f8 0%, #f8f3eb 100%);
}

.orders-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 249, 248, 0.96);
  border-bottom: 1px solid var(--orders-line);
  backdrop-filter: blur(10px);
}

.orders-topbar__inner,
.orders-layout {
  width: 100%;
  margin: 0;
}

.orders-topbar__inner {
  min-height: 80px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.orders-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 600;
}

.orders-brand img {
  width: 50px;
  height: 48px;
}

.orders-topbar__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orders-muted);
}

.orders-topbar__links a.is-active {
  color: var(--orders-ink);
}

.orders-topbar__cart {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.orders-topbar__cart svg {
  width: 22px;
  height: 22px;
}

.orders-topbar__cart span {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #735c00;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.orders-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  padding-bottom: 80px;
}

.orders-sidebar {
  min-height: calc(100vh - 81px);
  padding: 32px 24px;
  background: var(--orders-navy);
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.orders-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.orders-sidebar__nav a {
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
}

.orders-sidebar__nav a.is-active {
  background: rgba(31, 71, 123, 0.3);
  color: var(--orders-gold);
}

.orders-sidebar__cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  background: #fed65b;
  color: #745c00;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
}

.orders-main {
  padding: 32px 64px;
}

.orders-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--orders-soft);
}

.orders-breadcrumbs strong {
  color: var(--orders-ink);
}

.orders-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.orders-hero h1 {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-size: 48px;
  line-height: 1.2;
}

.orders-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--orders-muted);
  line-height: 1.6;
}

.orders-hero__cta {
  flex: 0 0 auto;
  padding: 14px 18px;
  background: var(--orders-ink);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.orders-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.orders-stat-card {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f4ec 100%);
  border: 1px solid #e5e5e5;
}

.orders-stat-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orders-soft);
}

.orders-stat-card strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Playfair Display", serif;
  font-size: 30px;
}

.orders-stat-card p {
  margin: 0;
  color: var(--orders-muted);
  line-height: 1.5;
}

.orders-table-shell {
  background: var(--orders-panel);
  border: 1px solid #e5e5e5;
}

.orders-table-shell__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--orders-line);
}

.orders-table-shell__head h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 24px;
}

.orders-search input {
  width: 256px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--orders-line);
  background: #fff;
}

.orders-table {
  padding: 0 24px;
}

.orders-table__header,
.orders-row__summary {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 1.3fr 0.7fr 0.7fr;
  gap: 16px;
  align-items: center;
}

.orders-table__header {
  padding: 18px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--orders-soft);
}

.orders-row {
  border-top: 1px solid var(--orders-line);
}

.orders-row.is-highlighted {
  background: linear-gradient(90deg, rgba(255, 224, 136, 0.12), rgba(255, 255, 255, 0));
}

.orders-row__summary {
  min-height: 96px;
}

.orders-row__order strong,
.orders-row__amount {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--orders-ink);
}

.orders-row__order span,
.orders-row__date,
.orders-row__items {
  display: block;
  margin-top: 6px;
  color: var(--orders-muted);
  line-height: 1.5;
  word-break: break-word;
}

.orders-row__status span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--orders-success);
  color: #1e6b38;
  font-size: 12px;
  font-weight: 600;
}

.orders-row__detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 0 0 24px;
}

.orders-row__actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.orders-reorder-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--orders-ink);
  border-radius: 6px;
  background: var(--orders-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.orders-reorder-button:hover {
  background: var(--orders-navy-deep);
}

.orders-cancel-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--orders-line);
  border-radius: 6px;
  background: #f4f5f7;
  color: var(--orders-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: not-allowed;
}

.orders-row__detail h4 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--orders-soft);
}

.orders-row__detail p {
  margin: 0 0 4px;
  color: var(--orders-muted);
  line-height: 1.5;
}

.orders-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-top: 1px solid var(--orders-line);
}

.orders-pagination p {
  margin: 0;
  font-size: 12px;
  color: var(--orders-soft);
}

.orders-pagination__buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.orders-pagination__buttons button,
.orders-pagination__buttons span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.orders-pagination__buttons button {
  border: 1px solid var(--orders-line);
  background: #fff;
  cursor: pointer;
}

.orders-pagination__buttons button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.orders-pagination__buttons span {
  border: 2px solid var(--orders-ink);
  font-weight: 700;
}

.orders-empty-state,
.orders-empty {
  padding: 40px 0;
  color: var(--orders-muted);
}

.orders-empty-state h3 {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: var(--orders-ink);
}

.orders-empty-state p {
  max-width: 460px;
  margin: 0 0 16px;
  line-height: 1.6;
}

.orders-empty-state a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--orders-ink);
  color: #fff;
}

@media (max-width: 1080px) {
  .orders-topbar__inner,
  .orders-main {
    padding-left: 24px;
    padding-right: 24px;
  }

  .orders-layout {
    grid-template-columns: 1fr;
  }

  .orders-sidebar {
    min-height: auto;
  }

  .orders-stats {
    grid-template-columns: 1fr;
  }

  .orders-table__header {
    display: none;
  }

  .orders-row__summary,
  .orders-row__detail {
    grid-template-columns: 1fr;
  }

  .orders-row__summary {
    padding: 20px 0 12px;
  }
}

@media (max-width: 720px) {
  .orders-topbar__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .orders-brand span,
  .orders-topbar__links {
    display: none;
  }

  .orders-main {
    padding: 24px 16px;
  }

  .orders-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .orders-hero h1 {
    font-size: 36px;
  }

  .orders-search input {
    width: 100%;
  }

  .orders-table-shell__head,
  .orders-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}

.is-embedded-store .orders-topbar__inner,
.is-embedded-store .orders-main {
  width: 100%;
  max-width: none;
  padding-left: 16px;
  padding-right: 16px;
}

.is-embedded-store .orders-layout {
  grid-template-columns: 1fr;
}

.is-embedded-store .orders-sidebar {
  min-height: auto;
}

.is-embedded-store .orders-brand span,
.is-embedded-store .orders-topbar__links {
  display: none;
}

.is-embedded-store .orders-brand img {
  display: none;
}
