/* Studio page layout; adapted from project-owned managed-subscriptions.css. */
:where(.payhippo-studio) #managedSubscriptions{
  min-width: 0;
  color: inherit;
}
:where(.payhippo-studio) .ms-heading,:where(.payhippo-studio) .ms-actions,:where(.payhippo-studio) .ms-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
:where(.payhippo-studio) .ms-heading h2{
  font-size: 19px;
  margin: 0;
}
:where(.payhippo-studio) .ms-toolbar{
  margin-block: 20px;
}
:where(.payhippo-studio) .ms-toolbar > *{
  width: auto;
  max-width: 100%;
  min-width: 0;
}
:where(.payhippo-studio) .ms-table{
  overflow: auto;
  max-width: 100%;
}
:where(.payhippo-studio) .ms-table table{
  width: 100%;
  border-collapse: collapse;
}
:where(.payhippo-studio) .ms-table th,:where(.payhippo-studio) .ms-table td{
  padding: 12px 10px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: top;
  white-space: nowrap;
}
:where(.payhippo-studio) .ms-table th{
  font-weight: 600;
}
:where(.payhippo-studio) .ms-table small{
  display: block;
  color: var(--muted);
  margin-block-start: 4px;
}
:where(.payhippo-studio) .ms-status{
  display: inline-block;
  padding: 4px 8px;
  border-radius:4px;
  background: var(--soft);
}
:where(.payhippo-studio) .ms-status.active,:where(.payhippo-studio) .ms-status.paid,:where(.payhippo-studio) .ms-status.completed{
  background: #e5f5ed;
  color: #21633d;
}
:where(.payhippo-studio) .ms-status.failed,:where(.payhippo-studio) .ms-status.past_due{
  background: #fff0ed;
  color: #943d2c;
}
:where(.payhippo-studio) .ms-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
:where(.payhippo-studio) .ms-grid label{
  margin: 0;
  display: grid;
  gap: 7px;
}
:where(.payhippo-studio) .ms-grid .wide{
  grid-column: 1/-1;
}
:where(.payhippo-studio) .ms-renewal-consent{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}
:where(.payhippo-studio) .ms-renewal-consent input[type="checkbox"]{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-block-start: 4px;
}
:where(.payhippo-studio) .ms-grid input[type="checkbox"]{
  width: 18px;
  height: 18px;
  box-shadow: none;
}
:where(.payhippo-studio) .ms-grid input,:where(.payhippo-studio) .ms-grid select,:where(.payhippo-studio) .ms-grid textarea{
  min-width: 0;
}
:where(.payhippo-studio) .ms-section{
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
:where(.payhippo-studio) .ms-section:first-child{
  padding-block-start: 0;
}
:where(.payhippo-studio) .ms-section h2{
  font-size: 18px;
  margin: 0 0 16px;
}
:where(.payhippo-studio) .ms-actions{
  justify-content: flex-end;
  margin-block-start: 20px;
}
:where(.payhippo-studio) .ms-metrics{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-block: 16px;
}
:where(.payhippo-studio) .ms-metrics strong{
  display: block;
  font-size: 25px;
}
:where(.payhippo-studio) .ms-muted{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
:where(.payhippo-studio) .ms-empty{
  padding-block: 24px;
  color: var(--muted);
}
:where(.payhippo-studio) .ms-pager{
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-block: 20px;
}
:where(.payhippo-studio) #msDialog{
  width: min(800px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #dce2ed;
  border-radius:4px;
  padding: 24px;
  color: inherit;
  background: white;
}
:where(.payhippo-studio) #msDialog::backdrop{
  background: #18223866;
}
:where(.payhippo-studio) #msDialogContent{
  margin-block-start: 22px;
}
:where(.payhippo-studio) #msDialogError{
  color: #b33838;
  white-space: pre-wrap;
}
:where(.payhippo-studio) #msDialog pre{
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
:where(.payhippo-studio) .ms-event{
  padding-block: 12px;
  border-block-end: 1px solid var(--line);
}
:where(.payhippo-studio) .ms-event small{
  display: block;
}
:where(.payhippo-studio) .ms-code{
  direction: ltr;
  user-select: all;
  overflow-wrap: anywhere;
}
@media (max-width: 620px){:where(.payhippo-studio) .ms-grid{
    grid-template-columns: 1fr;
  }
:where(.payhippo-studio) #msDialog{
    padding: 18px;
  }
:where(.payhippo-studio) .ms-toolbar > *{
    flex: 1 1 130px;
  }
:where(.payhippo-studio) .ms-actions button{
    flex: 1;
  }}
html.payhippo-studio[data-theme="dark"] #managedSubscriptions{
  color: #e0e6ef;
}
html.payhippo-studio[data-theme="dark"] #msDialog{
  background: #182238;
}
html.payhippo-studio[data-theme="dark"] .ms-status{
  background: #263247;
  color: #e0e6ef;
}
html.payhippo-studio[data-theme="dark"] #managedSubscriptions input,html.payhippo-studio[data-theme="dark"] #managedSubscriptions select,html.payhippo-studio[data-theme="dark"] #managedSubscriptions textarea{
  background: #182238;
  color: #e0e6ef;
  border-color: #44506a;
}
:where(.payhippo-studio) #portalLogin{display:grid;gap:12px}
:where(.payhippo-studio) #portalCodeHelp{margin:0;font-size:14px;line-height:1.6}
:where(.payhippo-studio) #portalLogin button{justify-self:start}
