/*
 * Box Sticker crop overlay (myaccount.html?pro=1)
 * Self-contained modal so it works regardless of which Bootstrap JS
 * version the account page loads.
 */

.bsc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10500;
  background: rgba(17, 17, 24, 0.72);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bsc-overlay.bsc-open {
  display: flex;
}

.bsc-dialog {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.bsc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #e8eaed;
}

.bsc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #de256f;
  margin: 0;
}

.bsc-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 2px 6px;
}

.bsc-close:hover {
  color: #333;
}

.bsc-body {
  padding: 16px 20px 6px;
  overflow: auto;
}

/* The cropper needs a sized container; keep it square-ish and responsive */
.bsc-crop-wrap {
  width: 100%;
  height: 46vh;
  min-height: 240px;
  max-height: 420px;
  background: #f3f4f6;
}

.bsc-crop-wrap img {
  display: block;
  max-width: 100%;
}

.bsc-hint {
  font-size: 12px;
  color: #888;
  margin: 10px 0 0;
}

.bsc-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
}

/* Very small screens: let the dialog use the full width */
@media (max-width: 400px) {
  .bsc-body,
  .bsc-header,
  .bsc-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .bsc-crop-wrap {
    height: 56vw;
  }
}
