.junkreco-admin-section {
  background: #fff;
  border: 1px solid #dcdcde;
  margin: 24px 0;
  padding: 18px;
}

.junkreco-admin-tabs {
  margin-top: 18px;
}

.junkreco-admin-tab-content {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-top: 0;
  padding: 18px;
}

.junkreco-admin-tab-content .junkreco-admin-section {
  margin-top: 0;
}

.junkreco-admin-tab-content .form-table {
  margin-top: 0;
}

.junkreco-shortcode-reference h2 {
  margin-top: 0;
}

.junkreco-shortcode-reference code {
  display: inline-block;
  margin-top: 2px;
}

.junkreco-admin-section-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.junkreco-admin-section-head h2 {
  margin-top: 0;
}

.junkreco-admin-section-head p {
  color: #646970;
  margin: 6px 0 0;
  max-width: 760px;
}

.junkreco-admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.junkreco-admin-stats span,
.junkreco-category-count {
  background: #edf7ef;
  border: 1px solid #b8e2c0;
  border-radius: 999px;
  color: #0e6f25;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
}

.junkreco-pricing-methods-field {
  display: grid;
  gap: 8px;
}

.junkreco-pricing-methods-field label {
  align-items: center;
  display: flex;
  font-weight: 600;
  gap: 8px;
}

.junkreco-booking-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.junkreco-radio-control,
.junkreco-checkbox-control {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
}

.junkreco-radio-control input,
.junkreco-checkbox-control input {
  margin-top: 3px;
}

.junkreco-radio-control strong {
  color: #1d2327;
  display: block;
  font-weight: 700;
}

.junkreco-radio-control small {
  color: #646970;
  display: block;
  line-height: 1.4;
  margin-top: 3px;
}

.junkreco-checkbox-control span {
  font-weight: 600;
}

.junkreco-booking-grid textarea {
  max-width: 100%;
  width: 100%;
}

.junkreco-redirect-url-field {
  border-top: 1px solid #f0f0f1;
  display: grid;
  gap: 6px;
  margin-top: -2px;
  padding-top: 12px;
}

.junkreco-redirect-url-field[hidden] {
  display: none;
}

.junkreco-admin-filter {
  display: block;
  margin: 0 0 14px;
}

.junkreco-admin-filter span {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.junkreco-admin-table-wrap {
  max-height: 620px;
  overflow: auto;
}

.junkreco-admin-table th,
.junkreco-admin-table td {
  vertical-align: top;
}

.junkreco-admin-table input.regular-text,
.junkreco-admin-table input[type="url"],
.junkreco-admin-table textarea {
  max-width: 100%;
  width: 100%;
}

.junkreco-admin-table textarea {
  min-width: 220px;
}

.junkreco-photo-field {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.junkreco-photo-field .button {
  justify-self: start;
}

.junkreco-image-preview {
  align-items: center;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  display: flex;
  height: 52px;
  justify-content: center;
  width: 68px;
}

.junkreco-image-preview:empty {
  display: none;
}

.junkreco-image-preview img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.junkreco-upload-limit-notice {
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-left: 4px solid #72aee6;
  display: grid;
  gap: 9px;
  margin: 14px 0 4px;
  padding: 12px 14px;
}

.junkreco-upload-limit-notice.is-warning {
  background: #fff8e5;
  border-color: #f0c33c;
  border-left-color: #dba617;
}

.junkreco-upload-limit-notice strong {
  color: #1d2327;
  display: block;
  font-size: 13px;
}

.junkreco-upload-limit-notice p {
  margin: 0;
}

.junkreco-upload-limit-notice dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.junkreco-upload-limit-notice dl > div {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.junkreco-upload-limit-notice dt {
  color: #646970;
  font-weight: 600;
}

.junkreco-upload-limit-notice dd {
  font-family: Consolas, Monaco, monospace;
  margin: 0;
}

.junkreco-money-input {
  align-items: center;
  display: flex;
  gap: 5px;
  min-width: 105px;
}

.junkreco-money-input input {
  max-width: 90px;
}

.junkreco-junkpath-tools {
  border-top: 1px solid #dcdcde;
  margin-top: 24px;
  padding-top: 24px;
}

.junkreco-junkpath-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.junkreco-junkpath-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.junkreco-junkpath-status {
  border-radius: 4px;
  font-weight: 600;
  margin: 0 0 14px;
  padding: 10px 12px;
}

.junkreco-junkpath-status[hidden] {
  display: none;
}

.junkreco-junkpath-status.is-loading {
  background: #f6f7f7;
  color: #50575e;
}

.junkreco-junkpath-status.is-success {
  background: #edfaef;
  color: #0e6f25;
}

.junkreco-junkpath-status.is-error {
  background: #fcf0f1;
  color: #b32d2e;
}

.junkreco-junkpath-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.junkreco-junkpath-form.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.junkreco-junkpath-form label,
.junkreco-junkpath-tier label,
.junkreco-junkpath-fee-row label {
  display: grid;
  gap: 5px;
}

.junkreco-junkpath-form label > span,
.junkreco-junkpath-tier label > span,
.junkreco-junkpath-fee-row label > span {
  color: #1d2327;
  font-weight: 600;
}

.junkreco-junkpath-form input[type="number"],
.junkreco-junkpath-tier input[type="number"],
.junkreco-junkpath-fee-row input[type="text"],
.junkreco-junkpath-fee-row input[type="number"],
.junkreco-junkpath-fee-row textarea {
  max-width: 100%;
  width: 100%;
}

.junkreco-junkpath-settings h3 {
  border-top: 1px solid #f0f0f1;
  margin: 16px 0 12px;
  padding-top: 16px;
}

.junkreco-junkpath-check {
  align-items: center !important;
  display: flex !important;
  flex-direction: row;
  gap: 8px;
}

.junkreco-junkpath-check input {
  margin: 0;
}

.junkreco-junkpath-tiers {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.junkreco-junkpath-tier {
  align-items: end;
  border: 1px solid #dcdcde;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.junkreco-junkpath-fee-list {
  display: grid;
  gap: 12px;
}

.junkreco-junkpath-fee-row {
  border: 1px solid #dcdcde;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  padding: 12px;
}

.junkreco-junkpath-fee-instruction,
.junkreco-junkpath-fee-actions {
  grid-column: 1 / -1;
}

.junkreco-junkpath-fee-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.junkreco-admin-table tr.is-deleted {
  display: none;
}

.junkreco-category-groups {
  display: grid;
  gap: 14px;
}

.junkreco-category-group {
  background: #fff;
  border: 1px solid #dcdcde;
}

.junkreco-category-group[hidden],
.junkreco-category-group.is-deleted {
  display: none;
}

.junkreco-category-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 14px 16px;
}

.junkreco-category-summary::-webkit-details-marker {
  display: none;
}

.junkreco-category-summary::before {
  border-bottom: 2px solid #646970;
  border-right: 2px solid #646970;
  content: "";
  height: 7px;
  margin-right: 2px;
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
  width: 7px;
}

.junkreco-category-group[open] .junkreco-category-summary::before {
  transform: rotate(45deg);
}

.junkreco-category-title {
  color: #1d2327;
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.junkreco-category-body {
  border-top: 1px solid #dcdcde;
  display: grid;
  gap: 16px;
  padding: 16px;
}

.junkreco-category-fields {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
}

.junkreco-admin-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.junkreco-admin-field > span:first-child {
  color: #1d2327;
  font-weight: 600;
}

.junkreco-subitem-head {
  align-items: center;
  border-top: 1px solid #f0f0f1;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 16px;
}

.junkreco-subitem-head h3 {
  font-size: 13px;
  margin: 0;
}

.junkreco-subitem-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.junkreco-subitem-list {
  display: grid;
  gap: 10px;
}

.junkreco-subitem-row {
  align-items: start;
  background: #f8f9f9;
  border: 1px solid #dcdcde;
  border-left: 4px solid #1bad3c;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.3fr) minmax(110px, auto) auto;
  padding: 12px;
}

.junkreco-subitem-row.is-deleted {
  display: none;
}

.junkreco-subitem-row input.regular-text,
.junkreco-subitem-row input[type="url"] {
  width: 100%;
}

.junkreco-subitem-delete {
  align-self: end;
  min-width: 56px;
}

.junkreco-design-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.junkreco-design-workspace {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

.junkreco-design-controls {
  container-type: inline-size;
  min-width: 0;
}

.junkreco-design-card {
  border: 1px solid #dcdcde;
  display: grid;
  gap: 12px;
  margin: 0;
  min-inline-size: 0;
  min-width: 0;
  padding: 16px;
}

.junkreco-design-card legend {
  font-size: 14px;
  font-weight: 700;
  padding: 0 6px;
}

.junkreco-design-card label {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.1fr);
  max-width: 100%;
  min-inline-size: 0;
  min-width: 0;
}

.junkreco-design-card label > span {
  color: #1d2327;
  font-weight: 600;
}

.junkreco-design-card select,
.junkreco-design-card input[type="text"],
.junkreco-design-card input[type="email"],
.junkreco-design-card input[type="url"],
.junkreco-design-card input[type="number"],
.junkreco-design-card textarea {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.junkreco-color-control {
  grid-template-columns: minmax(120px, 1fr) 42px minmax(86px, 118px) !important;
}

.junkreco-color-control input[type="color"] {
  height: 36px;
  padding: 0;
  width: 42px;
}

.junkreco-number-control {
  grid-template-columns: minmax(120px, 1fr) minmax(84px, 1.2fr) 28px !important;
}

.junkreco-number-control em {
  color: #646970;
  font-style: normal;
}

.junkreco-design-preview {
  min-width: 0;
  position: sticky;
  top: 32px;
}

.junkreco-design-preview-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.junkreco-design-preview-head h3 {
  color: #1d2327;
  font-size: 14px;
  margin: 0;
}

.junkreco-design-preview-head span {
  background: #f0f6fc;
  border: 1px solid #c5d9ed;
  border-radius: 999px;
  color: #135e96;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
  text-transform: uppercase;
}

.junkreco-phone-frame {
  background: #111418;
  border-radius: 38px;
  box-shadow: 0 22px 46px -24px rgba(0, 0, 0, 0.58);
  margin-left: auto;
  max-width: 390px;
  padding: 12px;
}

.junkreco-phone-top {
  background: #050608;
  border-radius: 999px;
  height: 22px;
  margin: 0 auto 10px;
  width: 104px;
}

.junkreco-phone-screen {
  background: #fff;
  border-radius: 28px;
  height: min(680px, calc(100vh - 210px));
  min-height: 520px;
  overflow: hidden;
}

.junkreco-phone-screen .junkreco-preview-calculator {
  height: 100%;
  margin: 0;
  max-width: 100%;
  overflow-y: auto;
  padding: 16px;
  width: 100%;
}

.junkreco-design-preview .junkreco-calculator {
  --junkreco-max-width: 360px;
}

.junkreco-design-preview .junkreco-heading h2 {
  font-size: min(var(--junkreco-heading-size), 30px);
}

.junkreco-design-preview .junkreco-methods,
.junkreco-design-preview .junkreco-load-grid {
  grid-template-columns: 1fr;
}

.junkreco-design-preview .junkreco-method-card,
.junkreco-design-preview .junkreco-volume {
  padding: 12px;
}

.junkreco-design-preview .junkreco-method {
  min-height: 0;
}

.junkreco-design-preview .junkreco-load {
  align-items: stretch;
  flex-direction: column;
  min-height: 0;
}

.junkreco-design-preview .junkreco-load-art {
  flex-basis: auto;
  height: 76px;
  width: 100%;
}

.junkreco-design-preview .junkreco-volume-cta {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  text-align: left;
}

.junkreco-design-preview .junkreco-volume-cta .junkreco-book-link {
  justify-content: center;
  margin-left: 0;
  margin-top: 0;
  width: 100%;
}

@container (max-width: 1120px) {
  .junkreco-design-grid {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 520px) {
  .junkreco-design-card label,
  .junkreco-color-control,
  .junkreco-number-control {
    grid-template-columns: 1fr !important;
  }

  .junkreco-color-control input[type="color"] {
    width: 100%;
  }
}

@media (max-width: 1280px) {
  .junkreco-design-workspace {
    grid-template-columns: 1fr;
  }

  .junkreco-design-preview {
    position: static;
  }

  .junkreco-phone-frame {
    margin-left: 0;
    max-width: min(390px, 100%);
  }
}

@media (max-width: 960px) {
  .junkreco-admin-section-head {
    display: block;
  }

  .junkreco-admin-section-head .button {
    margin-top: 12px;
  }

  .junkreco-design-grid {
    grid-template-columns: 1fr;
  }

  .junkreco-design-workspace {
    grid-template-columns: 1fr;
  }

  .junkreco-design-preview {
    position: static;
  }

  .junkreco-phone-frame {
    margin-left: 0;
  }

  .junkreco-booking-grid {
    grid-template-columns: 1fr;
  }

  .junkreco-junkpath-grid,
  .junkreco-junkpath-form,
  .junkreco-junkpath-form.is-four,
  .junkreco-junkpath-tiers,
  .junkreco-junkpath-tier,
  .junkreco-junkpath-fee-row {
    grid-template-columns: 1fr;
  }

  .junkreco-category-fields,
  .junkreco-subitem-row {
    grid-template-columns: 1fr;
  }

  .junkreco-subitem-head {
    align-items: flex-start;
    display: grid;
  }
}

@media (max-width: 680px) {
  .junkreco-design-card label,
  .junkreco-color-control,
  .junkreco-number-control {
    grid-template-columns: 1fr !important;
  }
}
