:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #263b39;
  background: #f1f4f3;
  line-height: 1.5;
  --seller-sea: #007e78;
  --seller-deep: #073f49;
  --seller-line: #dce4e1;
  --seller-muted: #596c69;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
body > header,
body > main,
body > footer {
  max-width: 82rem;
  margin: auto;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
}
body > header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--seller-line);
  background: #fff;
  align-items: center;
}
a {
  color: var(--seller-sea);
}
h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}
h2 {
  font-size: 1.35rem;
}
section,
article {
  min-width: 0;
}
article,
#account-login {
  background: #fff;
  padding: 1.2rem;
  border: 1px solid var(--seller-line);
  border-radius: 0.8rem;
  margin: 1rem 0;
}
form {
  display: grid;
  gap: 0.6rem;
  max-width: 38rem;
}
input,
textarea,
select,
button {
  font: inherit;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem;
  border: 1px solid #789b96;
  border-radius: 0.4rem;
}
textarea {
  min-height: 6rem;
  resize: vertical;
}
button {
  background: var(--seller-sea);
  color: white;
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #dc8500;
  outline-offset: 3px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
article p {
  overflow-wrap: anywhere;
}
#account-feedback {
  padding: 0.75rem;
  background: #e0efea;
  border-radius: 0.5rem;
}
#account-feedback[data-error="true"] {
  background: #ffe6e1;
  color: #8e2518;
}
[hidden] {
  display: none !important;
}
.record-list {
  display: grid;
  gap: 0.4rem;
}
@media (min-width: 48rem) {
  .record-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
footer {
  font-size: 0.9rem;
  border-top: 1px solid #cbded9;
  margin-top: 2rem;
}


/* Workspace do negócio */
body > main:has(#account-workspace:not([hidden])) { padding-top: 1.5rem; }
#account-workspace > #profile-title { margin: 0; color: var(--seller-deep); font-size: clamp(1.5rem, 3vw, 2rem); }
#profile-description { color: var(--seller-muted); margin: .35rem 0 1rem; }
#account-workspace > .actions { padding: .6rem 0 1rem; border-bottom: 1px solid var(--seller-line); }
#account-workspace > .actions button, #account-workspace > .actions a { border-radius: .35rem; font-size: .88rem; }
#admin-link { margin-left: auto; }
#account-content { display: grid; gap: 1.25rem; padding-top: 1.1rem; }
#account-content > section { min-width: 0; background: #fff; border: 1px solid var(--seller-line); border-radius: .45rem; padding: clamp(1rem, 2vw, 1.4rem); }
#account-content > section > h2 { margin: 0 0 1rem; color: var(--seller-deep); font-size: 1.22rem; font-weight: 650; }
#account-content article { border-radius: .4rem; border-color: var(--seller-line); margin: 0; padding: 1rem; }
#account-content article h3 { margin: 0 0 .5rem; font-size: 1rem; color: var(--seller-deep); }
#account-content article p { margin: .35rem 0; color: #455653; font-size: .88rem; }
#account-content form { max-width: none; }
#account-content form label { display: grid; gap: .3rem; color: #455653; font-size: .82rem; font-weight: 600; }
#account-content input:not([type=checkbox]), #account-content textarea, #account-content select { width: 100%; border-color: #b7c8c4; border-radius: .35rem; background: #fff; }
#account-content button { border-radius: .35rem; }
#account-content button:hover { filter: brightness(.96); }
#account-content .record-list { gap: .75rem; }
#account-content .record-list article { background: #fff; }
#account-content .record-list article button { margin: .4rem .4rem 0 0; }
#account-content form button { justify-self: start; min-width: 10rem; }
#account-content [data-offer-id] form { border-top: 1px solid #edf0ef; margin-top: .75rem; padding-top: .8rem; }
#account-content [data-offer-id] h3::before { content: "Oferta"; display: block; color: var(--seller-muted); font-size: .72rem; font-weight: 500; margin-bottom: .25rem; }
#account-content [data-offer-id] { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
#account-content .tracking-slot { border-top: 1px solid #edf0ef; margin-top: .75rem; padding-top: .75rem; }
@media (min-width: 52rem) {
  #account-content > section:has([data-offer-id]) .record-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #account-content > section:has([data-offer-id]) .record-list article { min-width: 0; }
}
@media (max-width: 36rem) {
  body > header, body > main, body > footer { padding-left: .9rem; padding-right: .9rem; }
  #account-workspace > .actions { align-items: stretch; }
  #account-workspace > .actions button, #account-workspace > .actions a { flex: 1 1 8rem; text-align: center; }
  #admin-link { margin-left: 0; }
  #account-content > section { padding: .9rem; }
}

.merchant-dashboard { display: grid; gap: 1.2rem; }
.merchant-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.merchant-stat { display: grid; gap: .15rem; background: #fff; border: 1px solid var(--seller-line); border-radius: .45rem; padding: 1rem 1.15rem; }
.merchant-stat strong { color: var(--seller-sea); font-size: 1.65rem; line-height: 1.15; }
.merchant-stat span { color: var(--seller-muted); font-size: .82rem; }
.merchant-nav { display: flex; flex-wrap: wrap; gap: .5rem; padding: .7rem; background: #fff; border: 1px solid var(--seller-line); border-radius: .45rem; }
.merchant-nav a { padding: .55rem .8rem; border-radius: .3rem; background: #edf5f1; font-size: .84rem; font-weight: 600; text-decoration: none; }
.merchant-nav a:hover { background: #deeee8; }
.merchant-orders, .merchant-offers { min-width: 0; scroll-margin-top: 1rem; }
.merchant-orders > h2, .merchant-offers > h2 { display: flex; align-items: center; gap: .55rem; }
.merchant-record { display: flex; flex-direction: column; gap: .35rem; border-left: 3px solid #8fbeb0 !important; }
.merchant-record h3 { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.merchant-badge { display: inline-flex; align-items: center; background: #e7f3ee; color: #17614c; border-radius: 99px; padding: .2rem .55rem; font-size: .72rem; font-weight: 650; white-space: nowrap; }
.merchant-offers .record-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.merchant-offer { align-content: start; }
.merchant-offer-summary { display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.merchant-offer-summary h3 { flex: 1; }
.merchant-offer-details { border-top: 1px solid #edf0ef; margin-top: .6rem; padding-top: .7rem; }
.merchant-offer-details > summary { color: var(--seller-sea); cursor: pointer; font-size: .84rem; font-weight: 650; padding: .3rem 0; }
.merchant-offer-details[open] > summary { margin-bottom: .7rem; }
@media (max-width: 38rem) {
 .merchant-overview { grid-template-columns: repeat(3, minmax(0,1fr)); gap: .45rem; }
 .merchant-stat { padding: .75rem .6rem; }
 .merchant-stat strong { font-size: 1.35rem; }
 .merchant-stat span { font-size: .7rem; }
 .merchant-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
 .merchant-nav a { text-align: center; }
 .merchant-record h3, .merchant-offer-summary { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.merchant-offer-summary { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: .85rem; row-gap: .35rem; }
.merchant-offer-summary img { grid-column: 1; grid-row: 1 / 3; width: 5rem; height: 4.2rem; object-fit: cover; border-radius: .3rem; background: #edf2f0; }
.merchant-offer-summary h3 { grid-column: 2; grid-row: 1; margin: 0 !important; min-width: 0; overflow-wrap: anywhere; }
.merchant-offer-summary .merchant-badge { grid-column: 2; grid-row: 2; justify-self: start; }
.merchant-offer-summary > strong { grid-column: 3; grid-row: 1 / 3; color: var(--seller-deep); font-size: 1.05rem; white-space: nowrap; }
@media (max-width: 34rem) {
 .merchant-offer-summary { grid-template-columns: 3.75rem minmax(0,1fr); }
 .merchant-offer-summary img { width: 3.75rem; height: 3.5rem; }
 .merchant-offer-summary > strong { grid-column: 2; grid-row: 3; justify-self: start; font-size: .95rem; }
}
