:root {
  --aq-my-green: #08b85a;
  --aq-my-green-dark: #08723f;
  --aq-my-ink: #10231c;
  --aq-my-muted: #62736d;
  --aq-my-line: #dce7e2;
  --aq-my-soft: #f5faf7;
  --aq-my-danger: #c82727;
}

#contaTabAnuncios {
  width: min(1120px, 100%);
  margin-inline: auto;
  color: var(--aq-my-ink);
}

#viewMeusAnuncios.aq-my-ads-page {
  width: 100%;
  min-height: calc(100svh - 64px);
  margin: 0;
  padding: clamp(12px, 2vw, 28px);
  background: #f5faf7;
}

#viewMeusAnuncios.hidden {
  display: none !important;
}

html.aq-my-ads-page-open,
body.aq-my-ads-page-open {
  background: #f5faf7;
}

body.aq-my-ads-page-open > footer {
  display: none !important;
}

#contaTabAnuncios .conta-switch-tabs,
#contaTabAnuncios .conta-anuncios-mini-stats {
  display: none !important;
}

#contaTabAnuncios .conta-anuncios-header-tabs {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid var(--aq-my-line);
}

.aq-my-header-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--aq-my-line);
  border-radius: 8px;
  background: #fff;
  color: var(--aq-my-ink);
  cursor: pointer;
}

.aq-my-header-button:hover,
.aq-my-header-button:focus-visible {
  border-color: var(--aq-my-green);
  color: var(--aq-my-green-dark);
  outline: 3px solid rgba(8, 184, 90, .14);
}

.aq-my-header-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aq-my-header-button.is-create {
  color: var(--aq-my-green-dark);
}

.aq-my-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.aq-my-title img,
.aq-my-title-fallback {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--aq-my-green);
  border-radius: 50%;
  object-fit: cover;
  background: var(--aq-my-soft);
  color: var(--aq-my-green-dark);
}

.aq-my-title-fallback svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.aq-my-title h2 {
  margin: 0 !important;
  overflow: hidden;
  color: var(--aq-my-ink) !important;
  font-size: 19px !important;
  line-height: 1.15;
  letter-spacing: 0 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#contaTabAnuncios #contaSubAnuncios {
  display: block;
}

#contaTabAnuncios .minha-vitrine-premium {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px !important;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.aq-my-controls {
  display: grid;
  gap: 8px;
}

.aq-my-search {
  position: relative;
  display: block;
}

.aq-my-search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  fill: none;
  stroke: #6e8179;
  stroke-width: 2;
  pointer-events: none;
}

.aq-my-search input {
  width: 100%;
  height: 42px;
  padding: 0 13px 0 38px;
  border: 1px solid var(--aq-my-line);
  border-radius: 8px;
  background: #fff;
  color: var(--aq-my-ink);
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.aq-my-search input:focus {
  border-color: var(--aq-my-green);
  box-shadow: 0 0 0 3px rgba(8, 184, 90, .12);
}

.meus-anuncios-filtros-autoquer.aq-my-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.meus-anuncios-filtros-autoquer.aq-my-tabs button {
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 12px !important;
  border: 1px solid var(--aq-my-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--aq-my-ink) !important;
  font-size: 13px !important;
  font-weight: 700;
  box-shadow: none !important;
}

.meus-anuncios-filtros-autoquer.aq-my-tabs button.active {
  border-color: var(--aq-my-green) !important;
  background: var(--aq-my-green) !important;
  color: #fff !important;
}

.meus-anuncios-filtros-autoquer.aq-my-tabs button:focus-visible {
  outline: 3px solid rgba(8, 184, 90, .16);
  outline-offset: 1px;
}

.aq-my-expired-tab-wrap {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.aq-my-expired-tab-wrap > button {
  width: 100%;
}

.aq-my-expired-warning {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  color: #d92d20;
}

.aq-my-expired-warning svg,
.aq-my-renew-all svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meus-anuncios-filtros-autoquer.aq-my-tabs .aq-my-renew-all {
  min-height: 32px !important;
  border-color: #f3b7b2 !important;
  background: #fff6f5 !important;
  color: #b42318 !important;
  font-size: 12px !important;
}

.meus-anuncios-filtros-autoquer.aq-my-tabs .aq-my-renew-all:hover,
.meus-anuncios-filtros-autoquer.aq-my-tabs .aq-my-renew-all:focus-visible {
  border-color: #d92d20 !important;
  background: #ffebe9 !important;
}

.aq-my-renew-all svg {
  width: 15px;
  height: 15px;
}

.aq-my-result-count {
  margin: 0;
  color: var(--aq-my-muted);
  font-size: 12px;
  font-weight: 650;
}

#contaTabAnuncios article.aq-my-ad-card {
  position: relative;
  display: grid !important;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 12px !important;
  border: 1px solid var(--aq-my-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--aq-my-ink) !important;
  box-shadow: 0 4px 14px rgba(13, 48, 34, .045) !important;
  overflow: hidden;
}

.aq-my-ad-media {
  width: 100%;
  height: 168px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: var(--aq-my-soft);
  cursor: pointer;
}

.aq-my-ad-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
}

.aq-my-ad-body {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto;
  align-content: start;
  gap: 6px;
}

.aq-my-ad-heading {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.aq-my-ad-heading h3 {
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  color: var(--aq-my-ink) !important;
  font-size: 17px !important;
  line-height: 1.2;
  letter-spacing: 0 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aq-my-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--aq-my-green-dark);
  font-size: 11px;
  font-weight: 750;
}

.aq-my-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aq-my-green);
}

.aq-my-status.is-expired {
  color: var(--aq-my-danger);
}

.aq-my-status.is-expired::before {
  background: var(--aq-my-danger);
}

.aq-my-price {
  color: var(--aq-my-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.aq-my-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: #42564f;
  font-size: 12px;
}

.aq-my-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.aq-my-meta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aq-my-description {
  min-height: 17px;
  margin: 0;
  overflow: hidden;
  color: #4f625b;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aq-my-ad-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 1px;
}

.aq-my-stat {
  min-width: 0;
  display: grid;
  grid-template-columns: 17px auto;
  grid-template-areas: "icon value" "label label";
  justify-content: start;
  align-items: center;
  column-gap: 4px;
  color: var(--aq-my-ink);
}

.aq-my-stat svg {
  grid-area: icon;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #536960;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aq-my-stat strong {
  grid-area: value;
  font-size: 12px;
  line-height: 1;
}

.aq-my-stat small {
  grid-area: label;
  margin-top: 3px;
  overflow: hidden;
  color: var(--aq-my-muted);
  font-size: 9px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aq-my-ad-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.aq-my-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--aq-my-green);
  border-radius: 6px;
  background: #fff;
  color: var(--aq-my-green-dark);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.aq-my-action.is-primary {
  background: var(--aq-my-green);
  color: #fff;
}

.aq-my-action:hover,
.aq-my-action:focus-visible {
  filter: brightness(.97);
  outline: 3px solid rgba(8, 184, 90, .15);
}

.aq-my-action:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.aq-my-action svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aq-my-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 5px;
  pointer-events: none;
}

.aq-my-badges span {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(5, 35, 25, .88);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.aq-my-empty {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 28px;
  border: 1px dashed #bfd3ca;
  border-radius: 8px;
  background: #fff;
  color: var(--aq-my-ink);
  text-align: center;
}

.aq-my-empty svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--aq-my-green-dark);
  stroke-width: 1.7;
}

.aq-my-empty p {
  margin: 0;
  color: var(--aq-my-muted);
  font-size: 13px;
}

.aq-my-popover {
  position: fixed;
  z-index: 10050;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 10px;
  border: 1px solid #cfe0d8;
  border-radius: 8px;
  background: #fff;
  color: var(--aq-my-ink);
  box-shadow: 0 18px 48px rgba(13, 39, 29, .2);
}

.aq-my-popover[hidden] {
  display: none;
}

.aq-my-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 9px;
  border-bottom: 1px solid var(--aq-my-line);
}

.aq-my-popover-header h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}

.aq-my-popover-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--aq-my-line);
  border-radius: 50%;
  background: #fff;
  color: var(--aq-my-ink);
  cursor: pointer;
}

.aq-my-popover-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.aq-my-popover-list {
  display: grid;
  gap: 4px;
  padding-top: 7px;
}

.aq-my-popover-option {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--aq-my-ink);
  text-align: left;
  cursor: pointer;
}

.aq-my-popover-option:hover,
.aq-my-popover-option:focus-visible {
  background: var(--aq-my-soft);
  outline: 2px solid rgba(8, 184, 90, .18);
}

.aq-my-popover-option:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.aq-my-popover-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #eaf8f0;
  color: var(--aq-my-green-dark);
}

.aq-my-popover-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aq-my-popover-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.aq-my-popover-copy strong {
  font-size: 13px;
}

.aq-my-popover-copy small {
  color: var(--aq-my-muted);
  font-size: 11px;
  line-height: 1.25;
}

.aq-my-popover-price {
  color: var(--aq-my-ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.aq-my-popover-option.is-danger,
.aq-my-popover-option.is-danger .aq-my-popover-icon {
  color: var(--aq-my-danger);
}

.aq-my-popover-option.is-danger .aq-my-popover-icon {
  background: #fff0f0;
}

@media (min-width: 780px) {
  #contaTabAnuncios .conta-anuncios-header-tabs {
    margin-bottom: 14px !important;
  }

  #contaTabAnuncios .minha-vitrine-premium {
    gap: 12px !important;
  }

  .aq-my-controls {
    grid-template-columns: minmax(260px, 1fr) minmax(330px, .8fr);
    align-items: center;
  }

  .aq-my-result-count {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  #viewConta.container {
    width: 100% !important;
    padding-inline: 10px !important;
  }

  #contaTabAnuncios .conta-anuncios-header-tabs {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 7px;
  }

  .aq-my-header-button {
    width: 34px;
    height: 34px;
  }

  .aq-my-title img,
  .aq-my-title-fallback {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .aq-my-title h2 {
    font-size: 18px !important;
  }

  .aq-my-search input {
    height: 38px;
    font-size: 12px;
  }

  .meus-anuncios-filtros-autoquer.aq-my-tabs button {
    min-height: 34px !important;
    font-size: 11px !important;
  }

  #contaTabAnuncios article.aq-my-ad-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 9px;
    min-height: 146px;
    padding: 7px !important;
  }

  .aq-my-ad-media,
  .aq-my-ad-media img {
    height: 132px;
    min-height: 0;
    height: 100%;
  }

  .aq-my-ad-body {
    gap: 4px;
  }

  .aq-my-ad-heading {
    gap: 4px;
  }

  .aq-my-ad-heading h3 {
    font-size: 14px !important;
  }

  .aq-my-status {
    margin-top: 1px;
    font-size: 10px;
  }

  .aq-my-status::before {
    width: 5px;
    height: 5px;
  }

  .aq-my-price {
    font-size: 16px;
  }

  .aq-my-meta {
    gap: 3px 7px;
    font-size: 9px;
  }

  .aq-my-meta svg {
    width: 10px;
    height: 10px;
  }

  .aq-my-description {
    min-height: 12px;
    font-size: 9px;
    line-height: 1.2;
  }

  .aq-my-ad-stats {
    gap: 2px;
  }

  .aq-my-stat {
    grid-template-columns: 11px auto;
    column-gap: 2px;
  }

  .aq-my-stat svg {
    width: 10px;
    height: 10px;
  }

  .aq-my-stat strong {
    font-size: 8px;
  }

  .aq-my-stat small {
    margin-top: 1px;
    font-size: 6px;
  }

  .aq-my-ad-actions {
    gap: 5px;
  }

  .aq-my-action {
    min-height: 24px;
    gap: 3px;
    padding: 3px 5px;
    font-size: 8px;
  }

  .aq-my-action svg {
    width: 9px;
    height: 9px;
  }

  .aq-my-badges {
    top: 5px;
    left: 5px;
  }

  .aq-my-badges span {
    padding: 2px 4px;
    font-size: 7px;
  }
}

@media (max-width: 370px) {
  #contaTabAnuncios article.aq-my-ad-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 7px;
  }

  .aq-my-ad-media,
  .aq-my-ad-media img {
    height: 128px;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aq-my-popover,
  .aq-my-action,
  .aq-my-header-button {
    scroll-behavior: auto;
    transition: none !important;
  }
}

/* Keep this standalone page isolated from the older account theme. */
#viewMeusAnuncios #contaTabAnuncios {
  width: min(1280px, 100%) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--aq-my-ink) !important;
  box-shadow: none !important;
}

#viewMeusAnuncios #contaTabAnuncios .conta-anuncios-header-tabs {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 38px !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 10px !important;
  padding: 0 0 10px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--aq-my-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#viewMeusAnuncios #contaTabAnuncios .conta-anuncios-header-tabs h2 {
  color: var(--aq-my-ink) !important;
}

#viewMeusAnuncios #contaTabAnuncios .conta-switch-tabs,
#viewMeusAnuncios #contaTabAnuncios .conta-anuncios-mini-stats {
  display: none !important;
}

#viewMeusAnuncios #contaTabAnuncios #contaSubAnuncios,
#viewMeusAnuncios #contaTabAnuncios .minha-vitrine-premium,
#viewMeusAnuncios #contaTabAnuncios .aq-my-controls {
  background: transparent !important;
  color: var(--aq-my-ink) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#viewMeusAnuncios #contaTabAnuncios .meus-anuncios-filtros-autoquer.aq-my-tabs button {
  border: 1px solid var(--aq-my-line) !important;
  background: #fff !important;
  color: var(--aq-my-ink) !important;
}

#viewMeusAnuncios #contaTabAnuncios .meus-anuncios-filtros-autoquer.aq-my-tabs button.active {
  border-color: var(--aq-my-green) !important;
  background: var(--aq-my-green) !important;
  color: #fff !important;
}

#viewMeusAnuncios #contaTabAnuncios .meus-anuncios-filtros-autoquer.aq-my-tabs .aq-my-renew-all {
  border-color: #f3b7b2 !important;
  background: #fff6f5 !important;
  color: #b42318 !important;
}

#viewMeusAnuncios #contaTabAnuncios .meus-anuncios-filtros-autoquer.aq-my-tabs .aq-my-renew-all:hover,
#viewMeusAnuncios #contaTabAnuncios .meus-anuncios-filtros-autoquer.aq-my-tabs .aq-my-renew-all:focus-visible {
  border-color: #d92d20 !important;
  background: #ffebe9 !important;
}

#viewMeusAnuncios #contaTabAnuncios .meus-anuncios-filtros-autoquer.aq-my-tabs {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-aq-my-ads-preview="1"] #contaTabInicio,
html[data-aq-my-ads-preview="1"] #contaTabSeguranca,
html[data-aq-my-ads-preview="1"] #contaTabAdmin,
html[data-aq-my-ads-preview="1"] #contaTabChaves,
html[data-aq-my-ads-preview="1"] #contaSocialPanelAutoQuer {
  display: none !important;
}

@media (max-width: 600px) {
  #viewMeusAnuncios.aq-my-ads-page {
    min-height: calc(100svh - 56px);
    padding: 8px !important;
  }

  #viewMeusAnuncios #contaTabAnuncios .conta-anuncios-header-tabs {
    grid-template-columns: 34px minmax(0, 1fr) 34px !important;
    gap: 7px !important;
  }
}
