.td-template-pack-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.td-template-pack-summary {
  display: grid;
  gap: 0;
  min-width: 0;
}

.create-sidebar-template-browser.is-pack {
  grid-template-rows: auto minmax(0, 1fr);
}

.td-template-pack-back-icon,
.td-template-pack-back-icon.td-material-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.td-template-pack-download-accordion {
  display: grid;
  margin: 0 0 10px;
  border: 1px solid #bd4a78;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.td-template-pack-download-accordion.is-open {
  border-color: #d7a2b9;
  box-shadow: 0 10px 22px rgba(189, 74, 120, .10);
}

.td-template-pack-download-accordion .td-template-pack-download {
  display: flex;
  width: 100%;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff0f6;
  color: #9f315b;
  padding: 18px 12px 16px;
  text-align: center;
}

.td-template-pack-download-accordion .td-template-pack-download:hover,
.td-template-pack-download-accordion .td-template-pack-download:focus-visible {
  background: #ffe7f1;
  outline: none;
}

.td-template-pack-download-label {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.td-template-pack-download-arrow {
  display: inline-flex;
  width: 24px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: #bd4a78;
  line-height: 1;
}

.td-template-pack-download-arrow-icon,
.td-template-pack-download-arrow-icon.td-expand-more-svg {
  display: block;
  width: 20px;
  height: 20px;
  transform-origin: center;
  transition: transform .16s ease;
}

.td-template-pack-download-accordion.is-open .td-template-pack-download-arrow-icon {
  transform: rotate(180deg);
}

.td-template-pack-download-panel {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 14px 16px;
  border: 0;
  border-top: 1px solid #ead3dd;
  border-radius: 0;
  background: #fff;
}

.td-template-pack-download-section {
  display: grid;
  gap: 6px;
}

.td-template-pack-download-section > strong {
  color: #4b5563;
  font-size: 12px;
  font-weight: 900;
}

.td-template-pack-format-options,
.td-template-pack-scale-options {
  display: grid;
  gap: 6px;
}

.td-template-pack-format-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.td-template-pack-format-option,
.td-template-pack-scale-option,
.td-template-pack-download-run {
  border: 1px solid #d8dce3;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font: inherit;
}

.td-template-pack-format-option,
.td-template-pack-scale-option {
  display: grid;
  gap: 2px;
  padding: 8px;
  text-align: left;
}

.td-template-pack-format-option span,
.td-template-pack-scale-main strong {
  font-size: 12px;
  font-weight: 900;
}

.td-template-pack-format-option small,
.td-template-pack-scale-option small {
  color: #65727f;
  font-size: 11px;
  font-weight: 700;
}

.td-template-pack-format-option.is-active,
.td-template-pack-scale-option.is-active {
  border-color: #bd4a78;
  background: #fff6fa;
  color: #9f315b;
}

.td-template-pack-scale-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.td-template-pack-scale-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.td-template-pack-scale-badges em {
  border-radius: 999px;
  background: #eef2f7;
  color: #596575;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  padding: 3px 5px;
}

.td-template-pack-scale-badges .td-download-pro-badge {
  background: #fff0f6;
  color: #9f315b;
}

.td-template-pack-scale-option:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.td-template-pack-download-run {
  padding: 12px 10px;
  background: #9f315b;
  border-color: #9f315b;
  color: #fff;
  font-weight: 900;
  line-height: 1.25;
  word-break: keep-all;
}

.td-template-pack-download-run:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 1180px) {
  .td-mobile-template-browser.is-pack {
    grid-template-rows: auto auto;
  }

  .td-template-pack-download-accordion {
    margin-bottom: 8px;
  }
}
