.lotto-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.lotto-modal.is-open {
  display: block;
}

.lotto-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.lotto-modal-dialog {
  position: relative;
  z-index: 2;
  width: calc(100% - 24px);
  max-width: 860px;
  margin: 12px auto;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 12px;
  overflow-x: hidden;
}


.lotto-modal-close {
    position: absolute;
    padding: 0px 9px;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    font-weight: 400;
}

.lotto-modal-body {
  padding: 0;
}

.lotto-modal-inner {
  display: flex;
  flex-wrap: wrap;
}

.lotto-modal-image,
.lotto-modal-content {
  width: 100%;
}

.lotto-modal-image img {
  display: block;
  width: 100%;
  height: auto;
}

.lotto-modal-content {
    padding: 30px;
    margin-bottom: 20px;
}

.lotto-modal-title {
    margin: 25px 0 15px;
    font-size: 40px;
    line-height: 1.2;
    text-align: center;
    font-weight: 800;
    color: #0c5b97;
    font-family: "Roboto";
}

.lotto-modal-meta {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.lotto-modal-excerpt {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
}

.lotto-modal-actions {
  margin-top: 24px;
}

.lotto-modal-link {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  background: #111;
  color: #fff;
}

.lotto-modal-loading,
.lotto-modal-error {
  padding: 40px 28px;
  text-align: center;
  font-size: 16px;
}

body.lotto-modal-open {
  overflow: hidden;
}

.lotto-modal-builder-content {
  margin-top: 18px;
}

.lotto-modal-builder-heading {
    margin: 0 0 30px;
    font-size: 22px;
    line-height: 1.3;
    font-family: "Roboto";
    text-align: center;
}

.lotto-modal-builder-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lotto-modal-builder-row {
  padding-bottom: 12px;
  border-bottom: 1px solid #ce4239;
}
.lotto-modal-builder-row:first-child {
    border-top: 1px solid #ce4239;
    padding-top: 15px;
}

.lotto-modal-builder-row span:first-child {
    display: inline-block;
    min-width: 280px;
    font-weight: 500;
    color: #ce4239;
}
.lotto-modal-builder-row span:last-child {
    font-weight: 600;
    color: #41495f;
}


.lotto-modal-builder-visual {
  margin-bottom: 18px;
}

.lotto-modal-builder-visual h4,
.lotto-modal-builder-visual p {
  margin-bottom: 12px;
}

@media (max-width: 767px) {
    .lotto-modal-builder-row span:last-child,
    .lotto-modal-builder-row span:first-child {
        display: block;
    }
}