.custom-package-panel { width: min(770px, 100%); margin: 0 0 14px; }
.custom-package-panel :is(h2,h3) { margin-block: 0 8px; }
.custom-package-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 0 13px; }
.table-wrap + .custom-package-nav { margin-top: 10px; }
.custom-package-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.custom-package-facts > div { min-width: 0; padding: 8px 10px; border: 1px solid #d8e6e5; border-radius: 8px; background: #f4f9f8; }
.custom-package-facts dt { font-size: .82rem; color: #48616c; }
.custom-package-facts dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.custom-package-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.custom-package-changes { margin-top: 10px; }
.custom-package-changes summary { color: #075671; font-weight: 700; cursor: pointer; }
.custom-package-trap { display: none; }
#main-content .custom-featured { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px; margin-top: 14px; }
.custom-featured > div { min-width: 0; overflow-wrap: anywhere; }
.custom-featured :is(h2,p) { margin-block: 0 4px; }
.custom-featured h2 { font-size: 1.2rem; }
@media (max-width: 620px) {
  .custom-package-panel .form-grid.two { grid-template-columns: minmax(0,1fr); }
  .custom-package-panel :is(input,textarea) { min-width: 0; max-width: 100%; }
}

#main-content .home-catalogue .hc-custom-shortcut { display: none; }

.custom-package-page { width: min(1100px, 100%); margin-inline: auto; }
.custom-package-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 10px 18px;
  padding: clamp(14px, 3vw, 26px);
  margin-bottom: 15px;
  border: 1px solid #bdd7d5;
  border-top: 3px solid #075671;
  border-radius: 11px;
  background: #f6fbf9;
}
.custom-package-intro h1 { margin: 4px 0; font-size: clamp(1.65rem, 4vw, 2.2rem); color: #103447; }
.custom-package-intro p { margin: 0; color: #385762; }
.custom-package-intro .custom-package-kicker { font-size: .7rem; font-weight: 750; letter-spacing: .08em; }
.custom-package-intro .custom-package-nav { margin: 0; }
.custom-package-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, 295px); gap: 15px; align-items: start; }
.custom-package-page .custom-package-panel { width: 100%; }
.custom-package-page .custom-package-panel .form-grid { gap: 12px; }
.custom-package-page .custom-package-panel .form-grid > .btn { justify-self: start; }
.custom-package-page .custom-package-lead { margin: 0 0 13px; color: #48616c; }
.custom-package-guide { padding: 15px; border: 1px solid #bdd7d5; border-radius: 11px; background: #f1f8f5; }
.custom-package-guide h2 { margin: 0 0 11px; color: #103447; font-size: 1.12rem; }
.custom-package-guide ol { padding: 0 0 0 1.5rem; margin: 0 0 11px; }
.custom-package-guide li { padding-inline-start: 3px; margin-bottom: 9px; }
.custom-package-guide li::marker { color: #075671; font-weight: 800; }
.custom-package-guide li p { margin: 2px 0 0; color: #48616c; font-size: .87rem; }
.custom-package-guide .text-link { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; }

@media (max-width: 760px) {
  .custom-package-layout { grid-template-columns: minmax(0,1fr); }
  .custom-package-page .custom-package-panel :is(input,textarea) { font-size: 16px; }
}
@media (max-width: 760px), (hover: none) and (pointer: coarse) and (max-width: 960px) {
  #main-content .home-catalogue .hc-custom-shortcut { display: inline-flex; margin-top: 10px; }
}

.custom-package-fields-title { border-top: 1px solid #d8e6e5; padding-top: 12px; }
.custom-package-subjects { min-width: 0; padding: 10px; border: 1px solid #cbdedb; border-radius: 8px; }
.custom-package-subjects legend { padding-inline: 5px; font-weight: 750; color: #103447; }
.custom-package-subjects p { margin: 0 0 8px; }
.custom-package-subject-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.custom-package-page .custom-package-check {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 8px;
  background: #f2f8f7;
  border: 1px solid #dbe9e6;
  border-radius: 7px;
  line-height: 1.25;
}
.custom-package-check input { flex: none; width: 16px; height: 16px; margin: 0; }
.custom-package-check span { overflow-wrap: anywhere; }
.custom-package-page .custom-package-schemes { background: #e6f2ef; }
.custom-package-page .custom-package-code { font-family: ui-monospace, monospace; letter-spacing: .12em; }
@media (max-width: 620px) {
  .custom-package-subject-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.custom-package-page .custom-request-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 13px;
}
.custom-package-page .custom-request-heading h2 { margin: 0; }
#main-content .custom-request-status { max-width: 100%; color: #075671; background: #e5f2f0; }
.custom-package-page .custom-request-table {
  width: 100%;
  table-layout: fixed;
  margin: 13px 0 16px;
  border: 1px solid #cbdedb;
  border-radius: 8px;
  color: #103447;
  background: #fff;
  overflow: hidden;
}
.custom-request-table caption {
  padding: 5px 0 7px;
  color: #103447;
  font-size: 1rem;
  font-weight: 750;
  text-align: left;
}
.custom-package-page .custom-request-table :is(th,td) {
  position: static;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #deebe8;
  color: inherit;
  font-size: .87rem;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.custom-request-table thead th { background: #e8f3f0; }
.custom-request-table thead th:first-child { width: clamp(100px, 31%, 180px); }
.custom-request-table tbody tr:nth-child(even) { background: #f6faf9; }
.custom-package-page .custom-request-table .custom-package-copy { white-space: pre-wrap; }
.custom-package-page .custom-request-table tr:last-child > * { border-bottom: 0; }
.custom-package-page .custom-request-subject-heading th { background: #e8f3f0; }
.custom-request-count { display: inline-block; padding: 0 6px; margin-inline-start: 4px; border-radius: 6px; background: #fff; }
.custom-request-subject-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr));
  gap: 5px 20px;
  margin: 0;
  padding-inline-start: 1.5rem;
}
.custom-request-subject-list li { padding: 3px 0; }
.custom-request-subject-list li::marker { color: #075671; font-weight: 750; }

@media (max-width: 900px) {
  .custom-request-subject-list { grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr)); }
}

.custom-package-tools { display: grid; justify-items: end; gap: 8px; }
.custom-package-tools .custom-package-download { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 600px) {
  .custom-package-tools { width: 100%; justify-items: start; }
  .custom-package-tools .custom-package-download { width: 100%; justify-content: center; }
}

.custom-package-track-layout { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline: auto; }
.custom-commerce-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 10px; }
.custom-commerce-actions:empty { display: none; }
.custom-package-terms { margin-block: 10px; }
.custom-package-terms summary { cursor: pointer; font-weight: 600; }
.custom-package-track-layout .custom-package-code { margin-top: 4px; }
