/* One control vocabulary across the shop, account and administration. */
:root {
  --ui-radius: 6px;
  --ui-control-shadow: 3px 3px 0 var(--ink);
  --ui-danger: #a02b33;
}
.ui-admin-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 3px 6px 0;
  margin: 10px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) var(--ice);
}
.ui-admin-nav a {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 34px;
  padding: 6px 10px;
  background: white;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 1px 2px 0 var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.ui-admin-nav a[aria-current="page"] {
  background: #ffe375;
}
.ui-admin-nav a:hover {
  background: var(--ice);
}
.ui-admin-nav a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.ui-admin-page .admin-header {
  padding-bottom: 16px;
  border-bottom: var(--line);
}
.ui-admin-page main > h1 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.4;
  margin: 14px 0;
}
.ui-admin-page :is(.commerce-panel, .admin-panel) h2 {
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.45;
  margin: 0 0 18px;
  letter-spacing: -0.6px;
}
.ui-admin-page .admin-panel h3 {
  line-height: 1.5;
}
.ui-admin-page .admin-notice {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 22px;
}
.ui-admin-page
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ui-admin-page textarea,
.ui-admin-page select {
  font: inherit;
  border: 2px solid var(--ink);
  border-radius: var(--ui-radius);
  background: white;
  color: var(--ink);
  max-width: 100%;
}
.ui-admin-page select {
  padding: 11px;
  width: 100%;
}
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  padding: 0;
  margin: 0;
  border: 2px solid var(--ink);
  background-color: white;
  accent-color: var(--primary);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
  cursor: pointer;
}
input[type="checkbox"] {
  border-radius: 3px;
  box-shadow: 1px 1px var(--ink);
}
input[type="checkbox"]:checked {
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E");
}
input[type="checkbox"]:indeterminate {
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10' stroke='white' stroke-width='2.5'/%3E%3C/svg%3E");
}
input[type="radio"] {
  border-radius: 50%;
}
input[type="radio"]:checked {
  background: var(--primary);
  box-shadow: inset 0 0 0 3px white;
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2317213a' stroke-width='2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: 16px !important;
  background-position: right 12px center !important;
  padding-right: 38px !important;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  background-color: var(--ice);
  border-radius: 3px;
  padding: 3px;
}
.ui-admin-empty {
  max-width: none;
  margin: 24px 0;
  padding: 26px 18px;
  box-shadow: 3px 3px var(--ink);
}
.ui-admin-empty h2 {
  font-size: 22px !important;
}
.ui-admin-empty .ui-state-art {
  scale: 0.8;
  height: 82px;
}
#plan-count {
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--ice);
  font-size: 13px;
  line-height: 1.8;
}
.admin-plan[data-active="false"] {
  background: #eef1f7;
  border-style: dashed;
}
.admin-panel:has(#cancel-edit:not([hidden])) {
  background: #fffbed;
}
@media (forced-colors: active) {
  input[type="checkbox"],
  input[type="radio"],
  select {
    appearance: auto;
    background-image: none !important;
    box-shadow: none;
  }
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
input[type="file"] {
  max-width: 100%;
  font: inherit;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 8px 0;
}
input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 700;
  min-height: 38px;
  padding: 7px 10px;
  margin: 0 10px 6px 0;
  border: 2px solid var(--ink);
  border-radius: var(--ui-radius);
  box-shadow: 2px 2px var(--ink);
  background: var(--ice);
  color: var(--ink);
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover {
  background: #ffe375;
}
.import-button {
  max-width: 100%;
  min-width: 0;
}
.import-button input[type="file"] {
  display: block;
  width: 100%;
  max-width: 235px;
  min-width: 0;
}
button.ui-danger,
#confirm-delete {
  background: var(--ui-danger);
  color: white;
  border-color: var(--ink);
}
button.ui-danger:hover,
#confirm-delete:hover {
  background: #80232a;
  color: white;
}
#delete-confirm {
  border: var(--line);
  border-left-width: 7px;
  background: #fff0e8;
  padding: 20px;
  box-shadow: var(--shadow);
  margin: 22px 0 0;
}
#delete-confirm p {
  font-weight: 700;
  line-height: 1.8;
  overflow-wrap: anywhere;
  margin: 0 0 16px;
}
#delete-confirm button {
  margin: 0 10px 10px 0;
}
.ui-field-error {
  display: block;
  margin: 8px 0 16px !important;
  padding: 8px 12px;
  border: 2px solid var(--ui-danger);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  background: #fff0ed;
  color: #80232a !important;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--ui-danger) !important;
  background: #fff5f2 !important;
}
.ui-feedback:not(:empty) {
  display: block;
  padding: 12px 15px;
  margin: 16px 0;
  border: 2px solid var(--ink);
  border-radius: var(--ui-radius);
  background: var(--ice);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.ui-feedback:empty {
  margin: 0;
  padding: 0;
  min-height: 0;
  border: 0;
}
.ui-feedback-error:not(:empty) {
  background: #fff0e8;
  color: #80232a;
}
.ui-control-busy {
  cursor: progress !important;
  border-style: dashed !important;
  outline: 2px solid var(--sky-soft);
  outline-offset: 3px;
}
summary {
  line-height: 1.6;
  overflow-wrap: anywhere;
}
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 5px;
}
.auth-panel label:focus-within,
.commerce-wrap label:focus-within,
.admin-wrap label:focus-within {
  color: var(--primary);
}
.ui-utility-footer .sound-preference {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  min-height: 38px;
  cursor: pointer;
}
.ui-utility-footer .sound-preference input {
  width: 17px;
  height: 17px;
}
@media (max-width: 700px) {
  .ui-admin-nav {
    margin: 14px 0 22px;
    gap: 8px;
  }
  .ui-admin-nav a {
    font-size: 12px;
    padding: 9px 12px;
  }
  .ui-feedback:not(:empty) {
    font-size: 12px;
    padding: 11px 12px;
  }
  .ui-admin-page .admin-header img {
    width: 48px;
    height: 48px;
  }
  .ui-admin-page .admin-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}
