/* Custom Modal Block - Frontend Styles */
.wp-block-custom-modal-block-modal {
  margin: 20px 0;
}

/* Custom Modal Button Styles */
.custom-modal-btn {
  display: inline-block;
  color: #fff;
  background-color: transparent;
  font-family: "notesesa", sans-serif;
  letter-spacing: 0.0875rem;
  text-transform: uppercase;
  overflow-wrap: break-word;
  border: 2px solid #fff;
  border-radius: 0.5rem;
  padding: 0.6rem 1.66rem;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  margin: 10px 0;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}

.custom-modal-btn:hover {
  text-decoration: none;
  opacity: 0.8;
}

.custom-modal-btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Button Sizes */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.2rem;
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  border-radius: 0.3rem;
}

/* Custom Modal Styles */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal.show {
  opacity: 1;
  visibility: visible;
}

.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #003247d9;
}

.custom-modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
  z-index: 1050;
}

.custom-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 40rem;
  margin: auto;
  pointer-events: auto;
  background-color: #001f2c;
  background-clip: padding-box;
  border: none;
  border-radius: 0.75rem;
  outline: 0;
  color: #fff;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.custom-modal.show .custom-modal-content {
  transform: scale(1);
}

.custom-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-modal-title {
  margin: 0;
  line-height: 1.5;
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
}

.custom-modal-close {
  padding: 0;
  background-color: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  opacity: 0.8;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal-close:hover {
  color: #fff;
  opacity: 1;
}

.custom-modal-close:focus {
  outline: 0;
  opacity: 1;
}

.custom-modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
  color: #fff;
}

.custom-modal-body p {
  color: #fff;
  margin-bottom: 1rem;
}

.custom-modal-body p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (min-width: 576px) {
  .custom-modal-dialog {
    max-width: 40rem;
    margin: 1.75rem auto;
    top: 4rem;
    min-height: calc(100% - 3.5rem);
  }
}
