/* Modern message dialog popups. */
.PopupPanel {
  position:absolute;
  z-index:100;
  display:none;
  width:420px;
  max-width:calc(100vw - 28px);
  color:#222222;
  font-family:Arial, sans-serif;
  text-align:left;
  border:1px solid rgba(0,0,0,0.10);
  border-radius:18px;
  background:#ffffff;
  box-shadow:0 24px 70px rgba(0,0,0,0.30);
  box-sizing:border-box;
  overflow:hidden;
}
.PopupPanel .caption {
  display:flex;
  align-items:center;
  min-height:48px;
  padding:0 18px;
  color:#222222;
  background:#ffffff;
  border-bottom:1px solid rgba(0,0,0,0.08);
  font-size:18px;
  line-height:1.2;
  font-weight:800;
  cursor:move;
  box-sizing:border-box;
}
.PopupPanel .caption [action="close"] {
  flex:0 0 auto;
  margin-left:auto;
  min-width:0;
  cursor:pointer;
}
.PopupPanel .caption .caption_text {
  display:block;
}
.PopupPanel .Inner {
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:14px;
  padding:20px 20px 14px;
  background:#ffffff;
  box-sizing:border-box;
}
.PopupPanel .message_text {
  display:block;
  max-width:100%;
  margin:0;
  color:#555555;
  font-size:14px;
  line-height:1.45;
  vertical-align:top;
  box-sizing:border-box;
}
.PopupPanel .message_text strong {
  display:block;
  margin:0 0 6px 0;
  color:#222222;
  font-size:18px;
  line-height:1.25;
  font-weight:800;
}
.PopupPanel .checkout_alert_message strong {
  color:#e3262e;
}
.PopupPanel .message_text span {
  display:block;
}
.PopupPanel .Inner:has(.checkout_alert_message) {
  grid-template-columns:minmax(0, 1fr);
}
.PopupPanel .Inner:has(.checkout_alert_message) .message_icon {
  display:none;
}
.PopupPanel .message_icon {
  display:none;
}
.PopupPanel .message_icon:before {
  content:"\f06a";
  font-family:"Font Awesome 5 Free";
  font-weight:900;
  font-size:21px;
}
.PopupPanel .buttons_bar {
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:2px;
}
.PopupPanel .buttons_bar .DefaultButton,
.PopupPanel .buttons_bar button,
.PopupPanel .buttons_bar input[type="button"] {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:96px;
  min-height:42px;
  padding:0 22px;
  border:0;
  border-radius:14px;
  background:#e3262e;
  color:#ffffff;
  font-size:14px;
  line-height:42px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(227,38,46,0.22);
  box-sizing:border-box;
}
.PopupPanel .buttons_bar .DefaultButton:hover,
.PopupPanel .buttons_bar button:hover,
.PopupPanel .buttons_bar input[type="button"]:hover {
  background:#c91f27;
}
.icon_close_popup,
.icon_info,
.icon_question,
.icon_error {
  background-image:none;
}
.PopupPanel .exception_link {
  display:block;
  color:#e3262e;
  font-weight:bold;
}
.PopupPanel .exception_details {
  display:none;
  visibility:hidden;
}
@media (max-width:520px) {
  .PopupPanel {
    width:calc(100vw - 20px);
    max-width:calc(100vw - 20px);
  }
  .PopupPanel .Inner {
    grid-template-columns:minmax(0, 1fr);
    gap:12px;
    padding:18px 14px 12px;
  }
  .PopupPanel .message_icon {
    display:none;
  }
  .PopupPanel .buttons_bar {
    justify-content:stretch;
  }
  .PopupPanel .buttons_bar .DefaultButton,
  .PopupPanel .buttons_bar button,
  .PopupPanel .buttons_bar input[type="button"] {
    width:100%;
  }
}
