/* FSP-5199 download options modal — extracted from downloadOptionsModal.jsp's inline styles (all
   verbatim from the Claude Design prototype "Download Options.dc.html"). The four format-option
   cards (.dlopt-fmt/.dlopt-ficon/.dlopt-fradio) and the copy-version toggle buttons
   (#dlOptVerWorking/#dlOptVerOriginal) are intentionally NOT here — their selected/unselected
   styling is applied dynamically by downloadOptions.js via style.cssText and is out of this
   review item's scope (moving JS-driven state styling to class-toggling is a separate, larger
   change). */

#dlOptOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1800;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#dlOptCard {
  position: relative;
  width: 460px;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}

.dlopt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #eee;
}

#dlOptTitleText {
  font-weight: 700;
  font-size: 17px;
  color: #2e2e2e;
}

#dlOptEnvName {
  font-size: 13px;
  color: #8a8a8a;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

#dlOptClose {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin-top: 2px;
  line-height: 0;
}

.dlopt-body {
  padding: 16px 20px;
  max-height: 60vh;
  overflow-y: auto;
}

#dlOptMetaError {
  display: none;
  background: #FDECEA;
  border: 1px solid #F5C6CB;
  color: #611A15;
  border-radius: 8px;
  padding: 11px 13px;
  margin-bottom: 14px;
  font-size: 12.5px;
}

#dlOptMetaRetry {
  color: #611A15;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 4px;
}

.dlopt-warning {
  display: flex;
  gap: 10px;
  background: #FFF7EC;
  border: 1px solid #F6D9A8;
  border-radius: 8px;
  padding: 11px 13px;
  margin-bottom: 18px;
}

.dlopt-warning-icon {
  flex: none;
  margin-top: 1px;
}

.dlopt-warning-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #8a6410;
}

.dlopt-warning-title {
  color: #7a5809;
}

.dlopt-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #8a8a8a;
  text-transform: uppercase;
  margin-bottom: 8px;
}

#dlOptFormatLabel {
  margin-bottom: 10px;
}

.dlopt-version-toggle {
  display: inline-flex;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 20px;
  width: 100%;
}

.dlopt-docsbox {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

#dlOptDocsSummary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  cursor: pointer;
}

.dlopt-docs-summary-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

#dlOptDocsLabel {
  font-size: 14px;
  font-weight: 600;
}

#dlOptDocsChevron {
  transform: rotate(0deg);
  transition: transform .12s ease;
}

#dlOptDocsPanel {
  display: none;
  border-top: 1px solid #eee;
}

#dlOptSelectError {
  display: none;
  color: #c0392b;
  font-size: 12.5px;
  margin: -12px 0 16px;
}

.dlopt-format-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dlopt-fmt-body {
  flex: 1;
}

.dlopt-fmt-title {
  font-size: 14px;
  font-weight: 600;
  color: #2e2e2e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dlopt-badge {
  font-size: 10px;
  font-weight: 700;
  color: #E07B12;
  background: #FFF0DD;
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: .3px;
}

.dlopt-fmt-desc {
  font-size: 12.5px;
  color: #8a8a8a;
  margin-top: 1px;
}

.dlopt-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
  border-radius: 0 0 12px 12px;
}

#dlOptCancel {
  border: 1px solid #d6d6d6;
  background: #fff;
  color: #4a4a4a;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  padding: 9px 18px;
  cursor: pointer;
  font-family: inherit;
}

#dlOptConfirm {
  border: none;
  background: #F7941E;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  padding: 9px 20px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dlopt-confirm-icon {
  display: inline-flex;
}
