/* Button - visually in line with Add Lenses but slightly smaller */
.aao-frame-size-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;      /* slightly smaller than 200px main button */
  height: 44px;          /* slightly smaller than 50px main button */
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  vertical-align: top;
  padding: 0 14px;
  pointer-events: auto;
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #333333;
  border-radius: 5px;
  margin: 0 10px 10px 0; /* small right gap & bottom margin */
  cursor: pointer;
}

/* Modal container */
.aao-frame-size-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.aao-frame-size-modal.is-visible {
  display: block;
}
.aao-frame-size-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.aao-frame-size-content {
  position: relative;
  max-width: 720px;
  margin: 60px auto;
  background: #ffffff;
  padding: 24px 24px 28px;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.aao-frame-size-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

.aao-frame-size-content h3 {
  margin-top: 10px;
  margin-bottom: 6px;
}

.aao-frame-size-current {
  margin: 0 0 6px;
  padding-left: 18px;
}

/* Diagram */
.aao-frame-size-diagram {
  margin: 4px 0 16px;
  text-align: center;
}
.aao-frame-size-image-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.aao-frame-size-image-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Overlaid values */
.aao-fs-val {
  position: absolute;
  font-size: 14px;
  color: #e6002b; /* brand colour for numbers */
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 0 4px rgba(255,255,255,0.7);
}

/* Final positions (as agreed) */
.aao-fs-lens {
  top: 38%;
  left: 75%;
  transform: translate(-50%, -50%);
}

.aao-fs-bridge {
  top: 52%;
  left: 51%;
  transform: translate(-50%, -50%);
}

.aao-fs-temple {
  top: 86%;
  left: 53%;
  transform: translate(-50%, -50%);
}

/* Responsive */
@media (max-width: 600px) {
  .aao-frame-size-content {
    margin: 20px;
    padding: 16px;
  }
  .aao-fs-val {
    font-size: 12px;
  }
}
