/* The selected list scrolls independently and chains to the complete review panel. */
.stage-toolbar {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.review-panel .panel-title { position: relative; z-index: 20; }
.review-title-actions { align-items: center; }
.stage-toolbar .stage-style-picker {
  position: relative;
  display: block;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.stage-toolbar .stage-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid #cddacc;
  border-radius: 4px;
  background: #f7faf6;
  color: #264231;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}
.stage-toolbar .stage-tool svg { width: 17px; height: 17px; flex: none; }
.stage-toolbar .stage-tool:not(:disabled):hover,
.stage-toolbar .stage-tool[aria-expanded="true"] { border-color: #53785b; background: #eaf2e9; }
.stage-toolbar .stage-tool:disabled { opacity: .48; cursor: not-allowed; }
.stage-toolbar .stage-tool:focus-visible,
.stage-toolbar .stage-style-option:focus-visible { outline: 2px solid #326c43; outline-offset: 2px; }
.stage-toolbar .stage-style-options {
  position: absolute;
  z-index: 40;
  top: calc(100% + 5px);
  right: 0;
  width: min(390px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
  padding: 8px;
  border: 1px solid #d5e1d5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px #1a32212e;
}
.stage-toolbar .stage-style-options[hidden] { display: none !important; }
.stage-toolbar .stage-style-option { min-height: 39px; padding: 5px 3px; font-size: 10px; }
.stage-toolbar .stage-style-swatch { width: 24px; height: 24px; }

#shotLead {
  display: block !important;
  flex: none;
  margin: 0 !important;
  padding: 6px 0 0 !important;
  border: 0;
  border-top: 1px solid #e3eae3;
  border-radius: 0;
  background: transparent;
}
#shotLead .shot-lead-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
#shotLead .shot-lead-actions button {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 6px 4px;
  border: 1px solid #cbd9cd;
  border-radius: 4px;
  background: #fff;
  color: #24432e;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
}
#shotLead .shot-lead-actions .contact-order { border-color: #213d2a; background: #213d2a; color: #fff; }
#shotLead .shot-lead-actions button:disabled { opacity: .48; cursor: not-allowed; }
#shotLead .shot-lead-actions button:disabled:hover { border-color: #cbd9cd; background: #fff; color: #24432e; }
#shotLead .shot-lead-actions .contact-order:disabled:hover { border-color: #213d2a; background: #213d2a; color: #fff; }
#shotLead .shot-lead-actions button:focus-visible { outline: 2px solid #326c43; outline-offset: 2px; }
#conversionHint { display: block; margin-top: 4px; color: #708376; font-size: 10px; text-align: center; }
#conversionHint[hidden] { display: none; }

@media (min-width: 1121px) {
  .review-panel { overflow: visible; }
  .review-details .selected-items {
    min-height: 0;
    max-height: clamp(180px, calc(100dvh - 485px), 430px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #adc5b2 transparent;
    padding-right: 3px;
  }
  .review-details .selected-items .selected-card:nth-of-type(n+4) { display: grid; }
  .review-utilities #shotLead { display: none !important; }
  .review-utilities { min-height: 27px; }
  .review-showcase .review-details .review-action { margin-top: auto !important; }
}

@media (max-width: 1120px) {
  .review-details .selected-items {
    max-height: min(340px, 42vh) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    scrollbar-width: thin;
  }
  #shotLead { margin-top: 9px !important; }
}

@media (max-width: 440px) {
  .stage-toolbar .stage-tool { min-height: 33px; padding: 5px 7px; font-size: 10px; }
  .stage-toolbar .stage-tool svg { width: 15px; height: 15px; }
  .stage-toolbar .stage-style-options { left: auto; right: 0; width: min(350px, calc(100vw - 34px)); }
  #shotLead .shot-lead-actions { gap: 4px; }
  #shotLead .shot-lead-actions button { min-height: 37px; padding: 5px 2px; font-size: 10px; }
}
