/* Full-width account experience: remove the WooCommerce side navigation on every account endpoint. */
.woocommerce-account .woocommerce-MyAccount-navigation { display: none; }
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; }

/* Logged-in dashboard only: login forms and native endpoint pages stay unchanged. */
.ags-account-dashboard-view .ags-page__header { display: none; }
.ags-account-dashboard-view .woocommerce-MyAccount-navigation { display: none; }
.ags-account-dashboard-view .woocommerce-MyAccount-content {
  float: none;
  width: 100%;
}
.ags-account-dashboard-view .ags-page {
  padding-block: 54px 72px;
  min-height: 680px;
  background: #f6f5f2;
}
.ags-account-dashboard {
  color: #141518;
  font-family: var(--body, Manrope, Arial, sans-serif);
}
.ags-account-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  min-height: 240px;
  padding: 38px 40px;
  margin-bottom: 34px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background-color: #141518;
  background-image: linear-gradient(90deg, rgba(9,11,15,.94) 0%, rgba(9,11,15,.84) 44%, rgba(9,11,15,.45) 100%), url('account-welcome.jpg');
  background-size: cover;
  background-position: center 52%;
}
.ags-account-welcome > div { min-width: 0; max-width: 760px; }
.ags-account-eyebrow {
  margin: 0 0 16px;
  color: #e0e0e3;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.ags-account-welcome h1 {
  margin: 0 0 18px;
  font-family: var(--display, 'Barlow Condensed', Impact, sans-serif);
  font-size: clamp(46px, 4.5vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.5px;
  overflow-wrap: anywhere;
  color: #fff;
}
.ags-account-welcome h1 span { color: #ef3037; }
.ags-account-welcome h1 br { display: none; }
.ags-account-intro {
  margin: 0;
  max-width: 64ch;
  color: #d6d6da;
  font-size: 17px;
  line-height: 1.7;
}
.ags-account-signout {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid #ffffff70;
  background: #090b0f73;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
.ags-account-signout:hover { background: #d71920; color: #fff; border-color: #d71920; }
.ags-account-signout:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.ags-account-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ags-account-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 250px;
  padding: 28px;
  color: #141518;
  background: #ffffff;
  border: 1px solid #dededb;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ags-account-card:hover {
  color: #141518;
  border-color: #d71920;
  box-shadow: 0 8px 22px #14151808;
  transform: translateY(-3px);
}
.ags-account-card:focus-visible {
  outline: 3px solid #d71920;
  outline-offset: 4px;
}
.ags-account-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.ags-account-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #d719200b;
  color: #d71920;
}
.ags-account-card-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.ags-account-card-number {
  color: #a4a4a7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}
.ags-account-card h2 {
  margin: 0 0 10px;
  color: #141518;
  font-family: var(--body, Manrope, Arial, sans-serif);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.3px;
}
.ags-account-card p {
  flex: 1;
  margin: 0 0 24px;
  color: #6a6b70;
  font-size: 16px;
  line-height: 1.7;
}
.ags-account-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #141518;
  font-size: 14px;
  font-weight: 800;
}
.ags-account-card-link > span { color: #d71920; font-size: 22px; line-height: 1; }
.ags-account-card:hover .ags-account-card-link { color: #d71920; }
.ags-account-card.is-unavailable { opacity: .65; }
.ags-account-card.is-unavailable:hover { transform: none; box-shadow: none; border-color: #dededb; }
@media (max-width: 900px) {
  .ags-account-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .ags-account-card { padding: 26px; }
}
@media (max-width: 600px) {
  .ags-account-dashboard-view .ags-page { padding-block: 32px 42px; }
  .ags-account-welcome { flex-direction: column; gap: 18px; padding: 28px 24px; margin-bottom: 25px; background-position: 65% center; }
  .ags-account-welcome h1 { font-size: 48px; }
  .ags-account-welcome h1 br { display: block; }
  .ags-account-intro { font-size: 16px; }
  .ags-account-signout { margin: 0; }
  .ags-account-card-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ags-account-card { min-height: 220px; padding: 24px; }
  .ags-account-card-top { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ags-account-card { transition: none; }
  .ags-account-card:hover { transform: none; }
}

/* Order-linked customer ticketing. */
.ags-ticket-view .ags-page { padding-block: 54px 72px; background: #f6f5f2; }
.ags-ticket-page { color: #141518; }
.ags-ticket-heading { padding: 34px 38px; margin-bottom: 26px; border-radius: 10px; background: #141518; color: #fff; }
.ags-ticket-heading h1 { margin: 0 0 12px; font-family: var(--display, 'Barlow Condensed', Impact, sans-serif); font-size: clamp(42px, 4vw, 62px); line-height: 1; }
.ags-ticket-heading p:last-child { max-width: 66ch; margin: 0; color: #d6d6da; font-size: 16px; line-height: 1.65; }
.ags-ticket-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.ags-ticket-form-wrap, .ags-ticket-list { padding: 28px; border: 1px solid #dededb; border-radius: 10px; background: #fff; }
.ags-ticket-form-wrap h2, .ags-ticket-list h2 { margin: 0 0 22px; font-size: 24px; }
.ags-ticket-form p { margin: 0 0 18px; }
.ags-ticket-form label { display: block; margin-bottom: 7px; color: #141518; font-size: 14px; font-weight: 800; }
.ags-ticket-form input, .ags-ticket-form textarea { box-sizing: border-box; width: 100%; padding: 12px 14px; border: 1px solid #cfcfd1; border-radius: 6px; color: #141518; background: #fff; font: inherit; }
.ags-ticket-form input:focus, .ags-ticket-form textarea:focus { outline: 3px solid #d7192038; border-color: #d71920; }
.ags-ticket-form small { display: block; margin-top: 6px; color: #6a6b70; line-height: 1.45; }
.ags-ticket-submit { padding: 12px 16px; border: 0; border-radius: 6px; color: #fff; background: #d71920; font-weight: 800; cursor: pointer; }
.ags-ticket-submit:hover { background: #b9141a; }
.ags-ticket-notice, .ags-ticket-errors { margin-bottom: 20px; padding: 14px 16px; border-radius: 6px; font-weight: 700; }
.ags-ticket-notice { color: #175b37; background: #e8f6ed; }
.ags-ticket-errors { color: #8e171b; background: #fff0f0; }
.ags-ticket-errors ul { margin: 0; padding-left: 20px; }
.ags-ticket-empty { padding: 18px; color: #6a6b70; background: #f6f5f2; }
.ags-ticket-item { padding: 20px 0; border-top: 1px solid #dededb; }
.ags-ticket-item:first-of-type { padding-top: 0; border-top: 0; }
.ags-ticket-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ags-ticket-item h3 { margin: 4px 0 0; font-size: 20px; }
.ags-ticket-number, .ags-ticket-meta { color: #8a8b90; font-size: 13px; font-weight: 700; }
.ags-ticket-meta { margin: 7px 0 14px; }
.ags-ticket-status { flex: none; padding: 5px 9px; border-radius: 999px; color: #175b37; background: #e8f6ed; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.ags-ticket-status.is-open { color: #8e5417; background: #fff4dc; }
.ags-ticket-status.is-closed { color: #5e6065; background: #ececee; }
.ags-ticket-message { margin-top: 12px; padding: 13px 15px; border-left: 3px solid #d71920; background: #f6f5f2; }
.ags-ticket-message.is-reply { border-left-color: #4b83b9; background: #eef6ff; }
.ags-ticket-message strong { display: block; margin-bottom: 6px; font-size: 13px; }
.ags-ticket-message p:last-child { margin-bottom: 0; }
@media (max-width: 800px) { .ags-ticket-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ags-ticket-view .ags-page { padding-block: 32px 42px; } .ags-ticket-heading { padding: 28px 24px; } .ags-ticket-form-wrap, .ags-ticket-list { padding: 22px; } .ags-ticket-item-top { flex-direction: column; gap: 10px; } }

/* Compact account header shared by every logged-in account endpoint. */
.woocommerce-account .ags-account-shell-header {
  width: min(1300px, calc(100% - 72px));
  margin: 0 auto 30px;
  color: #141518;
}
.ags-account-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-height: 58px;
  padding: 4px 20px 18px;
  text-align: right;
}
.ags-account-user strong {
  color: #141518;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .3px;
}
.ags-account-user a {
  margin-top: 4px;
  color: #d71920;
  font-size: 15px;
  line-height: 1.3;
}
.ags-account-user a:hover { color: #a91117; }
.ags-account-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d71920;
  border-radius: 6px;
  background: #fff;
}
.ags-account-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 67px;
  padding: 12px 15px;
  border-right: 1px solid #d3d3d3;
  color: #141518;
  font-family: var(--display, 'Barlow Condensed', Impact, sans-serif);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.ags-account-tab:last-child { border-right: 0; }
.ags-account-tab:hover,
.ags-account-tab:focus-visible,
.ags-account-tab.is-active {
  color: #fff;
  background: #d71920;
}
.ags-account-tab-icon { display: inline-flex; flex: none; color: #d71920; }
.ags-account-tab:hover .ags-account-tab-icon,
.ags-account-tab:focus-visible .ags-account-tab-icon,
.ags-account-tab.is-active .ags-account-tab-icon { color: #fff; }
.ags-account-tab-icon svg { width: 28px; height: 28px; stroke-width: 2.2; }
.woocommerce-account .ags-account-shell-header + .woocommerce-MyAccount-navigation { display: none; }
.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; }
@media (max-width: 800px) {
  .woocommerce-account .ags-account-shell-header { width: min(100% - 32px, 640px); margin-bottom: 22px; }
  .ags-account-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ags-account-tab { min-height: 58px; font-size: 17px; }
  .ags-account-tab:nth-child(2), .ags-account-tab:nth-child(4) { border-right: 0; }
  .ags-account-tab:nth-child(-n+3) { border-bottom: 1px solid #d3d3d3; }
}
@media (max-width: 440px) {
  .ags-account-user { padding-right: 8px; }
  .ags-account-user strong { font-size: 16px; }
  .ags-account-tab { gap: 7px; min-height: 54px; padding: 10px 8px; font-size: 14px; }
  .ags-account-tab-icon svg { width: 23px; height: 23px; }
}

/* Keep all six account navigation items on one desktop row. */
.ags-account-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 800px) {
  .ags-account-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ags-account-tab { border-right: 1px solid #d3d3d3; border-bottom: 1px solid #d3d3d3; }
  .ags-account-tab:nth-child(3n) { border-right: 0; }
  .ags-account-tab:nth-child(n+4) { border-bottom: 0; }
}
@media (max-width: 440px) {
  .ags-account-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ags-account-tab { border-right: 1px solid #d3d3d3; border-bottom: 1px solid #d3d3d3; }
  .ags-account-tab:nth-child(2n) { border-right: 0; }
  .ags-account-tab:nth-child(n+5) { border-bottom: 0; }
}

/* Ticket message system refinements. */
.ags-ticket-form select,
.ags-ticket-reply-form textarea,
.ags-ticket-reply-form select { box-sizing: border-box; width: 100%; padding: 12px 14px; border: 1px solid #cfcfd1; border-radius: 6px; color: #141518; background: #fff; font: inherit; }
.ags-ticket-form select { appearance: auto; }
.ags-ticket-form select:focus,
.ags-ticket-reply-form textarea:focus { outline: 3px solid #d7192038; border-color: #d71920; }
.ags-ticket-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.ags-ticket-priority { flex: none; padding: 5px 9px; border-radius: 999px; color: #4c4e53; background: #ececee; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.ags-ticket-priority.is-high { color: #8e171b; background: #ffe5e5; }
.ags-ticket-priority.is-medium { color: #8e5417; background: #fff4dc; }
.ags-ticket-priority.is-low { color: #175b37; background: #e8f6ed; }
.ags-ticket-reply-form { margin-top: 18px; padding-top: 17px; border-top: 1px solid #dededb; }
.ags-ticket-reply-form label { display: block; margin-bottom: 7px; color: #141518; font-size: 14px; font-weight: 800; }
.ags-ticket-reply-form textarea { margin-bottom: 10px; resize: vertical; }
.ags-ticket-reply-form .ags-ticket-submit { display: inline-block; }
@media (max-width: 600px) { .ags-ticket-badges { justify-content: flex-start; } }
