/* Only the exact gated ID page. Keep real results and clothing examples intact. */
#page-idphoto[data-idphoto-entry-ui-r12="true"] .lp003-idphoto-empty::before,
#page-idphoto[data-idphoto-entry-ui-r12="true"] .lp003-idphoto-empty::after {
  content: none !important;
  display: none !important;
  background-image: none !important;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] .lp003-idphoto-empty {
  box-sizing: border-box;
  min-height: clamp(190px, 18vh, 310px) !important;
  min-height: clamp(190px, 18dvh, 310px) !important;
  padding: 24px clamp(18px, 3vw, 40px) !important;
  justify-content: center !important;
  gap: 12px;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] #idphoto-current-spec-r12 {
  margin: 0;
  color: #e9d79d;
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.45;
  text-align: center;
}
/* Clothing gets a complete first row. Size and background each get a bounded
   second-row group; their touch controls must not push the page sideways. */
#page-idphoto[data-idphoto-entry-ui-r12="true"]:not(.result-complete) .idphoto-layout {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  padding: clamp(16px, 2.6vw, 28px);
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px 24px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-top > .control-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
  min-width: 0;
  gap: 10px;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-top > .control-group:first-child {
  grid-column: 1 / -1;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-top .control-label {
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.3;
  text-align: left;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-attire-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 12px;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-attire-card {
  box-sizing: border-box;
  min-width: 0;
  grid-template-rows: clamp(96px, 12vw, 130px) auto;
  padding: 10px;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-attire-card img {
  min-width: 0;
  max-width: 100%;
  height: clamp(96px, 12vw, 130px);
  object-fit: contain;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-attire-card span {
  font-size: clamp(18px, 2.15vw, 23px);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-top .size-btns,
#page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-top .bg-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: 10px;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-top .toggle-btn {
  box-sizing: border-box;
  min-width: 0;
  min-height: 64px;
  padding: 10px 6px;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.25;
  white-space: normal;
}
@media (max-width: 620px) {
  #page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-attire-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-flow-help-r12 {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  box-sizing: border-box;
  width: 100%;
  min-height: 64px;
  margin-top: 18px;
  padding: 8px 0;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] .idphoto-flow-help-r12 #kiosk-help-button {
  position: static !important;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 64px;
  margin: 0;
  font-size: clamp(20px, 2.5vw, 26px);
}
/* Only the true empty input. Let its panel follow content instead of squeezing
   children into the viewport's flex allocation and drawing a border over them. */
#page-idphoto[data-idphoto-entry-ui-r12="true"][data-idphoto-empty-r12] .idphoto-layout {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"][data-idphoto-empty-r12] .idphoto-results {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  border: 0;
  background: none;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"][data-idphoto-empty-r12] .lp003-idphoto-empty {
  width: 100%;
  min-height: 0 !important;
  margin: 0;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"]:not(.result-complete) .idphoto-results-center,
#page-idphoto[data-idphoto-entry-ui-r12="true"]:not(.result-complete) .idphoto-action-row {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"][data-idphoto-empty-action-r12] .idphoto-action-row {
  display: none !important;
}
/* Both are direct items of the real page's column flex layout. Intrinsic
   guidance copy must retain its height while the page scrolls naturally. */
#page-idphoto[data-idphoto-entry-ui-r12="true"] > #humanized-flow-dock,
#page-idphoto[data-idphoto-entry-ui-r12="true"] > .guided-service-heading {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
}
#page-idphoto[data-idphoto-entry-ui-r12="true"] > .guided-service-heading {
  width: 100%;
}
