body.fondimpresa-protected-modal-open {
  overflow: hidden;
}

.fondimpresa-protected-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 24px;

  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
}

.fondimpresa-protected-modal {
  position: relative;

  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;

  padding: 38px 36px 32px;

  color: #222;
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28);

  text-align: center;

  animation:
    fondimpresa-protected-modal-enter
    180ms ease-out;
}

.fondimpresa-protected-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;

  width: 40px;
  height: 40px;
  padding: 0;

  color: #444;
  background: transparent;
  border: 0;
  border-radius: 50%;

  font-size: 30px;
  line-height: 38px;
  cursor: pointer;
}

.fondimpresa-protected-modal-close:hover,
.fondimpresa-protected-modal-close:focus {
  color: #000;
  background: #f0f0f0;
  outline: 2px solid transparent;
}

.fondimpresa-protected-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 64px;
  height: 64px;
  margin: 0 auto 18px;

  background: #f1f4f7;
  border-radius: 50%;

  font-size: 30px;
}

.fondimpresa-protected-modal-title {
  margin: 0 0 14px;

  color: #222;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
}

.fondimpresa-protected-modal-description {
  margin: 0 0 14px;

  color: #4d4d4d;
  font-size: 17px;
  line-height: 1.5;
}

.fondimpresa-protected-modal-filename {
  margin: 0 0 22px;
  padding: 12px 14px;

  color: #222;
  background: #f5f5f5;
  border-radius: 6px;

  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;

  overflow-wrap: anywhere;
  word-break: break-word;
}

.fondimpresa-protected-modal-status {
  min-height: 24px;
  margin: 0 0 10px;

  color: #18626B;
  font-size: 14px;
  line-height: 1.4;
}

.fondimpresa-protected-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.fondimpresa-protected-modal-button {
  min-width: 130px;
  min-height: 46px;
  padding: 11px 22px;

  border: 2px solid transparent;
  border-radius: 6px;

  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;

  cursor: pointer;
}

.fondimpresa-protected-modal-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.fondimpresa-protected-modal-button--primary {
  color: #fff;
  background: #18626B;
  border-color: #18626B;
}

.fondimpresa-protected-modal-button--primary:hover,
.fondimpresa-protected-modal-button--primary:focus {
  background: #2A7C86;
  border-color: #2A7C86;
}

.fondimpresa-protected-modal-button--secondary {
  color: #333;
  background: #fff;
  border-color: #777;
}

.fondimpresa-protected-modal-button--secondary:hover,
.fondimpresa-protected-modal-button--secondary:focus {
  background: #f2f2f2;
  border-color: #333;
}

@keyframes fondimpresa-protected-modal-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .fondimpresa-protected-modal-overlay {
    padding: 16px;
  }

  .fondimpresa-protected-modal {
    max-height: calc(100vh - 32px);
    padding: 34px 20px 22px;
    border-radius: 10px;
  }

  .fondimpresa-protected-modal-title {
    font-size: 22px;
  }

  .fondimpresa-protected-modal-description {
    font-size: 16px;
  }

  .fondimpresa-protected-modal-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .fondimpresa-protected-modal-button {
    width: 100%;
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fondimpresa-protected-modal {
    animation: none;
  }
}