/**
 * @file Cocoons Modal Window Styles
 * @version 0.000.006
 * @description Core styles for layouts, animations, overlays, and controls of Cocoons modals.
 */

body.cocon-overflow-hidden {
  overflow: hidden;
}
.cocons {
  display: none;
}
.cocon,
.cocon-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cocon-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.cocon-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.cocon-overlay.is-active .cocon-inner {
  transform: translate(-50%, -50%);
}
.cocon-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}
.cocon-close-btn:hover {
  color: #000;
}
.cocon-close-btn:focus {
  outline: 2px solid #007bff;
  border-radius: 4px;
}
.cocon-body h3 {
    margin-bottom: 1em;
}
