body.cc-consult-crop-open {
  overflow-y: hidden;
}

.cc-consult-photo-modal,
.cc-consult-photo-backdrop {
  display: none;
}

body.cc-consult-crop-open .cc-consult-photo-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(6px);
  z-index: 100000;
}

body.cc-consult-crop-open .cc-consult-photo-modal {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100001;
}

body.cc-consult-crop-open .cc-consult-photo-dialog {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100001;
  width: calc(100vw - 40px);
  max-width: 720px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  position: fixed;
}

.cc-consult-photo-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cc-consult-photo-modal h2 {
  margin: 0 36px 10px 0;
  text-align: center;
  font-size: 1.65rem;
  line-height: 2rem;
  color: #0f172a;
}

.cc-consult-photo-meta {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

.cc-consult-photo-help {
  text-align: center;
  color: #475569;
  margin: 12px 0 16px;
}

.cc-consult-photo-picker {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cc-consult-photo-stage-wrap {
  min-height: 0;
}

.cc-consult-photo-modal .cropped__img__container {
  display: block;
  margin-bottom: 0;
}

.cc-consult-photo-modal .cropt-container .cr-image {
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  max-height: none;
  max-width: none;
  pointer-events: none;
}

.cc-consult-photo-modal .cropt-container .cr-image,
.cc-consult-photo-modal .cropt-container .cr-overlay {
  -webkit-user-select: none;
  user-select: none;
}

.cc-consult-photo-modal .cropt-container .cr-boundary {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  z-index: 1;
  height: 320px;
  max-width: 100%;
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  border-radius: 8px;
}

.cc-consult-photo-modal .cropt-container .cr-viewport {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #fff;
  margin: auto;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  box-shadow: 0 0 2000px 2000px rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.cc-consult-photo-modal .cropt-container .cr-overlay {
  z-index: 1;
  position: absolute;
  cursor: move;
  touch-action: none;
}

.cc-consult-photo-modal .cropt-container .cr-slider-wrap {
  margin: 15px auto 0;
  width: 100%;
  display: block;
  padding-left: 60px;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.cc-consult-photo-modal .cr-slider-wrap::before {
  content: "Zoom";
  position: absolute;
  top: -4px;
  left: 0;
  color: #334155;
}

.cc-consult-photo-modal .cr-slider-wrap input,
.cc-consult-photo-modal .cropt-container .cr-slider {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cc-consult-photo-status {
  min-height: 24px;
  margin-top: 16px;
  text-align: center;
  color: #334155;
}

.cc-consult-photo-status.is-error {
  color: #b42318;
}

.cc-consult-photo-status.is-success {
  color: #216e39;
}

.cc-consult-photo-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.cc-consult-photo-actions .button.button-primary {
  min-width: 150px;
}

.cc-consult-photo-actions .button {
  min-width: 110px;
}

@media (max-width: 640px) {
  body.cc-consult-crop-open .cc-consult-photo-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    top: 10px;
    padding: 16px 14px;
  }

  .cc-consult-photo-modal .cropt-container .cr-boundary {
    height: 280px;
  }
}
