@media (min-width:769px) {

  .sub-fab,
  .sub-modal,
  .sub-overlay {}
}




.sub-fab {
  position: fixed;
  right: 66px;
  bottom: 4px;
  z-index: 99999;
  border: 0;
  padding: 10px 8px;
  /* border-radius:999px; */
  background: #DE3333;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}

.sub-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 99998;
}

.sub-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 99999;
  /* responsive width: min/max with viewport fallback */
  width: clamp(320px, 90vw, 520px);
  padding: 16px;
  box-sizing: border-box;
}

.sub-open .sub-overlay {
  opacity: 1;
  pointer-events: auto;
}

.sub-open .sub-modal {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* On very small screens make modal use full width spacing and sit near bottom */
@media (max-width:420px) {
  .sub-modal {
    left: 50%;
    top: auto;
    bottom: 12px;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: none;
    border-radius: 12px;
    padding: 12px;
  }

  .sub-open .sub-modal {
    transform: translateX(-50%) scale(1);
  }
}

/* Ensure modal doesn't exceed viewport height on small screens and becomes scrollable */
@media (max-width:600px) {
  .sub-modal {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sub-modal>div {
    /* keep inner spacing and allow content to scroll */
    box-sizing: border-box;
  }
}

.msf_item_group {
  width: 100%;
}

.msf_item_group .title_item {
  font-size: 14px;
  margin-bottom: 16px;
}

.msf_item_group .msf_item {
  width: 100%;
  /* margin-top: 6px; */
  margin-bottom: 16px;
  padding: 10px;
  box-sizing: border-box;
  /* Bootstrap-like border width/color and radius */
  border: 1px solid #e9ecef;
  /* similar to .border */
  border-width: 1px;
  /* explicit border width utility */
  border-radius: 8px;

  background: #D9D9D9;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.msf_item_inline_group {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.msf_item_inline_group .msf_item {
  margin-bottom: 16px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #e9ecef;
  /* similar to .border */
  border-width: 1px;
  /* explicit border width utility */
  border-radius: 8px;

  background: #D9D9D9;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.msf_item_group .msf_item:hover {
  border-color: #ced4da;
  /* slightly darker on hover */
  box-shadow: 0 0 0 0.125rem rgba(52, 58, 64, 0.04);
}

.msf_check_term {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  align-items: center;
  font-size: 12px;
}

.msf_text_color_primary {
  color: #DE3333;
}

.msf_btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: #DE3333;
  color: #fff;
  border: 0;
  border-radius: 8px;
}

.msf_text_h2 {
  font-size: 14px;
}

.sub-close {
  border: none;
  background: transparent;
  cursor: pointer;
}

.msf_btn_secondary {
  padding: 10px;
  background: #D9D9D9;
  border: 0;
  border-radius: 8px;
}

.msf_sign_tip {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: #56A7F2;
}

.msf_header_container {
  text-align: center;
  position: relative;
}

.sub-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.msf_header_container .msf_header {
  text-align: center;
}