.gmr-orders { color: var(--gamarra-ink, #10223a); font-family: var(--gmr-font-ui, Inter, system-ui, sans-serif); }
.gmr-orders-page { padding: 40px 24px 64px; background: #f6f8fb; }
.gmr-orders-page > .gmr-orders { max-width: 1000px; margin: auto; }
.gmr-orders--home { box-sizing: border-box; width: 100%; aspect-ratio: 2 / 1; min-height: min-content; margin-top: 40px; padding: 28px; border: 1px solid #b6c9dc; border-radius: 18px; background: #f7fafc; display: flex; flex-direction: column; gap: 16px; }
.gmr-orders__heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.gmr-orders__heading h2, #gmr-home .gmr-orders__heading h2 { margin: 0; font-size: clamp(20px, 2vw, 26px); }
.gmr-orders__publish { display: inline-block; padding: 12px 18px; border-radius: 8px; background: var(--theme-palette-color-1, #1768bd); color: #fff; font-weight: 650; text-decoration: none; }
.gmr-orders__publish:hover { color: #fff; filter: brightness(.92); }
.gmr-orders__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 20px; margin-bottom: 12px; border: 1px solid #dce5ee; border-radius: 10px; background: #fff; overflow-wrap: anywhere; }
.gmr-orders__row h3, #gmr-home .gmr-orders__row h3 { font-size: 18px; margin: 6px 0 8px; line-height: 1.4; }
.gmr-orders__row h1 { font-size: clamp(26px, 4vw, 38px); margin: 12px 0; }
.gmr-orders__row p, #gmr-home .gmr-orders__row p { font-size: 14px; line-height: 1.6; margin: 6px 0; }
.gmr-orders__row .gmr-orders__meta, #gmr-home .gmr-orders__row .gmr-orders__meta { color: #526277; font-size: 13px; }
.gmr-orders__state { font-size: 12px; font-weight: 650; background: #edf4fc; padding: 4px 8px; border-radius: 6px; }
.gmr-orders__actions { display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 10px; }
.gmr-orders__actions a { padding: 9px 12px; border: 1px solid #bacbdd; border-radius: 7px; font-size: 14px; white-space: nowrap; }
.gmr-orders__all { align-self: flex-end; margin-top: auto; font-weight: 650; }
.gmr-orders__empty { padding: 30px 20px; background: #fff; border: 1px dashed #b6c9dc; border-radius: 10px; line-height: 1.7; }
.gmr-orders__filters, .gmr-orders__access form { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 24px 0; }
.gmr-orders label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.gmr-orders input, .gmr-orders select { min-height: 44px; max-width: 100%; background: #fff; border: 1px solid #b6c9dc; border-radius: 6px; }
.gmr-orders__pagination { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.gmr-orders__pagination > * { padding: 6px 12px; border: 1px solid #b6c9dc; border-radius: 6px; }
.gmr-orders__access { margin-top: 24px; padding: 24px; background: #fff; border: 1px solid #b6c9dc; border-radius: 10px; }
.gmr-orders__private-text { overflow-wrap: anywhere; }
.gmr-orders__return { padding: 20px; text-align: center; background: #edf4fc; }
.gmr-orders__account-nav { display: flex; gap: 12px; flex-wrap: wrap; padding: 16px; background: #edf4fc; border-radius: 8px; margin-bottom: 24px; }
.gmr-orders__access form { padding-bottom: 12px; border-bottom: 1px solid #edf1f6; }
.gmr-orders-dialog { width: min(980px, calc(100vw - 24px)); height: min(900px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 14px; padding: 0; overflow: hidden; color: #10223a; }
.gmr-orders-dialog[open] { display: flex; flex-direction: column; }
.gmr-orders-dialog::backdrop { background: rgb(10 25 42 / .7); }
.gmr-orders-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid #dce5ee; }
.gmr-orders-dialog__bar h2 { margin: 0; font-size: 18px; }
.gmr-orders-dialog__bar button { min-height: 44px; border: 1px solid #b6c9dc; border-radius: 7px; padding: 8px 16px; background: #fff; color: #10223a; cursor: pointer; }
.gmr-orders-dialog iframe { display: block; width: 100%; flex: 1 1 auto; min-height: 0; border: 0; }
.gmr-orders-dialog > p { margin: 0; padding: 8px 18px; font-size: 13px; }
body.gmr-orders-modal-open { overflow: hidden; }
.gmr-orders :focus-visible, .gmr-orders-dialog :focus-visible { outline: 3px solid var(--theme-palette-color-1, #1768bd); outline-offset: 3px; }
@media (max-width: 700px) {
  .gmr-orders-page { padding: 24px 16px 40px; }
  .gmr-orders--home { aspect-ratio: auto; padding: 20px 16px; }
  .gmr-orders__row { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 10px; }
  .gmr-orders__actions { justify-content: flex-start; }
  .gmr-orders__filters label, .gmr-orders__access label { width: 100%; }
  .gmr-orders-dialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); max-height: calc(100dvh - 12px); }
}
