@font-face {
  font-family: "Tenor Sans";
  src: url("/fonts/TenorSans-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --oura-font-heading: "Tenor Sans", Georgia, serif;
  --oura-font-body: "DM Sans", Inter, Arial, sans-serif;
  --oura-font-navigation: "DM Sans", Inter, Arial, sans-serif;
  --oura-font-controls: "DM Sans", Inter, Arial, sans-serif;
  --oura-font-metadata: "DM Sans", Inter, Arial, sans-serif;
  --oura-font-prices: "DM Sans", Inter, Arial, sans-serif;
}

html body {
  font-family: var(--oura-font-body) !important;
}

html body :where(p, li, blockquote, figcaption, address, dd, dt, td, article, section) {
  font-family: var(--oura-font-body);
}

html body :where(h1, h2, h3, h4, h5, h6, .font-display, [class*="font-display"], .oura-section-title) {
  font-family: var(--oura-font-heading) !important;
}

html body :where(a, nav, nav *, header nav *, footer a, .oura-global-adminbar, .oura-global-adminbar *) {
  font-family: var(--oura-font-navigation) !important;
}

html body :where(button, input, select, textarea, option, [role="button"], [role="tab"], .oura-primary, .oura-secondary) {
  font-family: var(--oura-font-controls) !important;
}

html body :where(label, legend, small, time, th, caption, .text-xs, .text-sm, [class*="eyebrow"], [class*="kicker"], [class*="badge"], [class*="status"]) {
  font-family: var(--oura-font-metadata) !important;
}

html body :where([class*="price"], [data-price], .oura-order-payment, .oura-order-payment *, .oura-checkout-table footer, .oura-checkout-table footer *, .oura-accounting-kpi, .oura-accounting-kpi *) {
  font-family: var(--oura-font-prices) !important;
}

body.oura-typography-route #root {
  display: none !important;
}

.oura-typography-admin {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 90px;
  color: #173126;
}

.oura-typography-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(23, 49, 38, .12);
  border-radius: 30px;
  background: radial-gradient(circle at 90% 0, rgba(181, 139, 77, .18), transparent 36%), #fffdf8;
  box-shadow: 0 24px 70px rgba(23, 49, 38, .07);
}

.oura-typography-hero span,
.oura-typography-card small {
  color: #a56f3e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.oura-typography-hero h1 {
  margin: 10px 0 12px;
  color: #2f211d;
  font: 400 clamp(40px, 5vw, 68px)/1 var(--oura-font-heading);
  letter-spacing: -.035em;
}

.oura-typography-hero p {
  max-width: 720px;
  margin: 0;
  color: #68786f;
  font-size: 15px;
  line-height: 1.65;
}

.oura-typography-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.oura-typography-actions button {
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid #245a42;
  border-radius: 999px;
  background: #245a42;
  color: #fff;
  cursor: pointer;
  font-weight: 750;
}

.oura-typography-actions button[data-reset] {
  background: transparent;
  color: #245a42;
}

.oura-typography-actions button:disabled {
  cursor: wait;
  opacity: .58;
}

.oura-typography-status {
  min-height: 20px;
  margin: 14px 5px 0;
  color: #6f7d75;
  font-size: 12px;
}

.oura-typography-status.is-success { color: #16724b; }
.oura-typography-status.is-error { color: #a43e35; }

.oura-font-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
  gap: 28px;
  align-items: center;
  margin: 4px 0 26px;
  padding: 28px;
  border: 1px solid rgba(36, 90, 66, .2);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(233, 242, 234, .9), rgba(255, 252, 247, .95));
}
.oura-font-upload small { color: #a6603f; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.oura-font-upload h2 { margin: 7px 0 8px; font-size: 28px; font-weight: 500; }
.oura-font-upload p { margin: 0; color: #6d665f; line-height: 1.55; }
.oura-font-upload__controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.oura-font-upload__controls label { display: grid; gap: 7px; color: #45372f; font-size: 12px; font-weight: 700; }
.oura-font-upload__controls input { min-width: 0; padding: 11px 12px; border: 1px solid #d8ccc0; border-radius: 11px; background: #fff; color: #2e2925; font: inherit; }
.oura-font-upload__controls input[type="file"] { padding: 8px; }
.oura-font-upload__controls button { grid-column: 1 / -1; border: 0; border-radius: 999px; padding: 13px 18px; background: #245a42; color: #fff; font-weight: 800; cursor: pointer; }
.oura-font-upload__controls button:disabled { cursor: wait; opacity: .6; }

.oura-typography-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.oura-typography-card {
  display: grid;
  gap: 10px;
  min-height: 186px;
  padding: 24px;
  border: 1px solid rgba(23, 49, 38, .12);
  border-radius: 22px;
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 16px 45px rgba(23, 49, 38, .045);
}

.oura-typography-card h2 {
  margin: 0;
  color: #2f211d;
  font-size: 25px;
  font-weight: 400;
}

.oura-typography-card p {
  margin: 0;
  color: #718078;
  font-size: 12px;
  line-height: 1.5;
}

.oura-typography-card select {
  width: 100%;
  height: 44px;
  margin-top: auto;
  border: 1px solid rgba(23, 49, 38, .18);
  border-radius: 11px;
  background: #fff;
  color: #173126;
  padding: 0 12px;
}

.oura-typography-preview {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 34px;
  margin-top: 24px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(23, 49, 38, .13);
  border-radius: 28px;
  background: linear-gradient(135deg, #f7efe4, #edf3e9);
}

.oura-typography-preview h2 {
  margin: 10px 0 16px;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.02;
}

.oura-typography-preview p {
  max-width: 670px;
  color: #596c61;
  font-size: 17px;
  line-height: 1.7;
}

.oura-typography-preview nav { display: flex; gap: 20px; margin-top: 24px; }
.oura-typography-preview nav a { color: #245a42; font-weight: 700; text-decoration: none; }
.oura-typography-preview aside { display: grid; align-content: center; gap: 13px; padding: 24px; border-radius: 20px; background: rgba(255,255,255,.72); }
.oura-typography-preview aside strong { font-size: 34px; color: #8f5e34; }
.oura-typography-preview aside button { border: 0; border-radius: 999px; background: #245a42; color: #fff; padding: 13px 18px; }

@media (max-width: 900px) {
  .oura-typography-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oura-typography-hero, .oura-typography-preview, .oura-font-upload { display: grid; grid-template-columns: 1fr; }
  .oura-typography-actions { justify-content: flex-start; }
}

@media (max-width: 580px) {
  .oura-typography-admin { width: calc(100% - 24px); padding-top: 24px; }
  .oura-typography-grid { grid-template-columns: 1fr; }
  .oura-font-upload { padding: 20px; }
  .oura-font-upload__controls { grid-template-columns: 1fr; }
  .oura-font-upload__controls button { grid-column: auto; }
}
