/* CSS Document */

/************************************************************/

.dgs-content {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  padding: 5px;
  margin: 20px 0;
}

.dgs-content-text {
  background-color: #f5f5f5;
  padding: 15px 40px;
  text-align: center;
}

.dgs-content-text p {
  font-family:
    Arial,
    Helvetica Neue,
    Helvetica,
    sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #666;
  margin-bottom: 20px;
}

.dgs-content-btn {
  text-align: center;
}

a.btn-default {
  display: inline-block;
  background-color: var(--primary);
  border: 1px solid var(--primary);
  font-size: 13px;
  color: #fff;
  padding: 8px 20px;
  width: 150px;
  text-align: center;
  margin: 5px;
  border-radius: 30px;
}

a.btn-default:hover {
  background-color: var(--white);
  color: var(--primary);
}

@media (max-width: 576px) {
  .dgs-content-text {
    padding: 15px 30px;
  }

  a.btn-default {
    width: 120px;
    margin: 3px;
  }
}

@media (max-width: 360px) {
  .dgs-content-text {
    padding: 15px 20px;
  }
}

.modal-backdrop {
  background-color: #fff;
}

.modal-dgs {
  background-color: #cce2fe;
  border: 0;
  border-radius: 0;
}

.modal-dgs .modal-body {
  padding: 30px 20px;
  text-align: center;
}

.modal-content small,
.dgs-popup small {
  font-size: 12px;
  font-family: "DM Sans", sans-serif;
}

.modal-content div:has(small),
.dgs-popup div:has(small) {
  padding-bottom: 12px;
}

.dgs-close {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 5;
}

.dgs-popup {
  position: relative;
  padding: 30px 15px;
}

.dgs-popup .popup-title {
  font-family: "DM Serif Text", serif;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
  margin-block: 24px;
  padding-top: 20px;
  letter-spacing: 0.7px;
}

.--f30px {
  font-size: 30px !important;
}

.dgs-popup .popup-title span {
  color: #060d81;
}

.dgs-popup .popup-text {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.dgs-popup .popup-text.title {
  font-size: 18px;
  line-height: 1.3;
  margin-top: 13px;
}

.dgs-popup .popup-ps {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #424242;
  margin-bottom: 12px;
}

.dgs-popup .popup-btn {
  margin-bottom: 8px;
}

.dgs-popup .popup-btn .btn--default {
  display: inline-block;
  background-color: var(--black);
  border: 1px solid var(--black);
  font-family: "DM Serif Text", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  padding: 11px 30px;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
}

.dgs-popup .popup-btn .btn--default span {
  font-size: 18px;
  font-weight: bold;
}

.dgs-popup .popup-btn .btn--default:hover {
  background-color: var(--white);
  color: var(--black);
}

.dgs-popup .popup-text a {
  color: #2053bf;
  text-decoration: underline;
}

.dgs-popup .popup-text a:hover {
  text-decoration: none;
}

@media (max-width: 576px) {

  /******* 2608-31 *********/
  div.modal-dialog.modal-dialog-centered {
    margin: 12px;
  }

  /*************************/

  .modal-dgs .modal-body {
    padding: 30px 15px;
  }

  .dgs-popup .popup-btn .btn--default {
    font-size: 18px;
    padding: 10px 25px;
  }

  .dgs-popup .popup-text.title {
    font-size: 15px;
  }
}

/************************************************************/
/************************************************************/

.section--force_login .container,
.article--force_login article {
  position: relative;
}

.section--force_login .divbtn-more {
  display: none;
}

.force_login--popup {
  position: relative;
  margin: -150px auto 0;
  width: 100%;
  z-index: 998;
  background-color: rgba(255, 255, 255, 0.9);
}

.article--force_login .force_login--popup,
.postbag--force_login .force_login--popup {
  width: 100%;
}

.postbag--force_login .force_login--popup {
  margin-top: -250px;
}

.force_login--popup::before {
  content: "";
  background: linear-gradient(rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 25%,
      rgba(255, 255, 255, 0.65) 50%,
      rgba(255, 255, 255, 0.9) 100%);
  display: block;
  height: 6rem;
  margin-top: -6rem;
  width: 100%;
}

.force_login--container {
  padding: 30px 15px;
  padding-top: 0px;
  background-color: #fff;
  color: var(--black);
  transition: bottom 0.5s ease;
}

.force_login--container h2 {
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 10px;
  text-align: center;
}

.force_login--popup.sticky {
  position: sticky;
  bottom: 0;
  background-color: white;
  width: calc(100% + 2rem);
  margin-left: -1rem;
}

.force_login--popup.wide {
  position: relative;
  bottom: auto;
  background-color: #fff;
  width: 100%;
  margin-left: 0;
  margin-top: -60px;
  z-index: 10;
}

.force_login--popup.sticky::before,
.divpopup-dgs::before,
.force_login--popup.dgs-sticky-bottom::before {
  content: "";
  position: absolute;
  margin-top: 0;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
}

.force_login--popup.wide::before {
  content: "";
  position: absolute;
  margin-top: 0;
  top: -200px;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 30%,
      rgba(255, 255, 255, 0.85) 70%,
      rgba(255, 255, 255, 1) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
}

.divpopup-dgs {
  background-color: white;
}

/*.force_login--popup.sticky .force_login--container {
  padding: 0 1rem;
}*/
@media (max-width: 576px) {
  .force_login--popup.sticky {
    bottom: 120px;
  }
}

.inputgroup--form {
  max-width: 480px;
  margin: 0 auto;
}

.inputgroup--col .form-control,
.inputgroup--col .btn-submit {
  border-radius: 3px;
  font-family: var(--font-text);
  height: 40px;
}

.inputgroup--col .btn-submit {
  padding: 5px 20px;
  font-size: 1rem;
}

label.form-check-label {
  font-family: var(--font-text);
  font-size: 13px;
}

.inputgroup--form .form-check {
  margin-bottom: 0;
}

.inputgroup--form .form-check .form-check-input {
  margin-top: 0.1rem;
}

.postbag--force_login .postbag-bar {
  margin-top: 30px;
}

@media (max-width: 991px) {
  /* .postbag--force_login .force_login--popup{ margin-bottom: 40px; } */
}

@media (max-width: 576px) {
  .force_login--container h2 {
    font-size: 18px;
  }

  .inputgroup--form .form-check .form-check-input {
    margin-top: 0;
  }
}

.is-paywalled h2,
.is-paywalled h3,
.is-paywalled h4,
.is-paywalled p,
.is-paywalled li,
.is-paywalled .articlePhotoCenter,
.is-paywalled .articlePhotoLeft,
.is-paywalled .articlePhotoRight,
.is-paywalled .box-img,
.is-paywalled .embed-responsive-content {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

/*.dgs-sticky-bottom {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  align-self: flex-end;
}*/
/*.force_login--popup::before {
                        background: linear-gradient(
                          rgba(255, 255, 255, 0) 0%,
                          rgba(228, 233, 241, 1) 100%
                        );
                      }*/
/*.force_login--container {
                        padding: 30px 20px;
                        background-color: rgba(228, 233, 241, 1);
                        color: var(--black);
                        border-radius: 0 0 10px 10px;
                        padding-bottom: 3rem;
                      }*/
#force-login-popup {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
}

.--bottom-bar {
  margin-top: 20px;
}

#force-login-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#postbag-wrap.shrink {
  display: block;
  height: 100vh;
  overflow: hidden;
  transition: height 0.4s ease-in-out;
}

.modal-body .popup-logo,
.force_login--container .popup-logo,
.dgs-popup .popup-logo {
  display: block;
  margin: 0 auto 1rem;
  aspect-ratio: auto;
  height: 25px;
  padding-block-end: 1rem;
  background: url("https://static.bangkokpost.com/v3/assets/images/logo/logo-black.svg") no-repeat center;
  background-size: 115px auto;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.popup-logo.--top7 {
  top: 7%;
}

.popup-logo.--top12 {
  top: -12%;
}

/*****************************************/
/********* Pop-up Wide 2608-11 ***********/
/*****************************************/

.force_login--popup.wide .popup-title {
  font-family: "DM Serif Text", serif;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 400;
  margin-block: 24px;
  padding-top: 20px;
  letter-spacing: 0.7px;
}

.flex-popup {
  display: flex;
  flex-wrap: wrap;
  place-content: center;
  padding-inline: 0px;
}

.flex-popup .top,
.flex-popup .bottom {
  justify-content: center;
  padding-inline: 0px;
}

.flex-popup .right,
.flex-popup .left {
  justify-content: center;
  padding-inline: 0px;
}

.flex-popup .right,
.flex-popup .top {
  position: relative;
  order: 0;
  border-bottom: 1px solid lightgray;
  align-content: center;
}

.flex-popup .right::after {
  content: "";
  display: none;
  position: absolute;
}

.flex-popup .right small {
  font-size: 10px;
  font-family: "DM Sans", sans-serif;
}

.flex-popup .right .dgs-popup,
.flex-popup .top .dgs-popup,
.flex-popup .bottom .dgs-popup {
  position: relative;
  padding-right: 0px;
  padding-left: 0px;
}

.flex-popup .right div:has(small) {
  padding-bottom: 16px;
}

.flex-popup .bottom .dgs-popup {
  padding-top: 28px;
}

.flex-popup .popup-logo.left,
.flex-popup .bottom .popup-logo.left,
.flex-popup .left .popup-logo.left {
  display: none !important;
}

.flex-popup .left .popup-title-left {
  margin-bottom: 16px;
}

.flex-popup .bottom .popup-title-left {
  margin-bottom: 20px;
}

.flex-popup .bottom .popup-title-left h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.force_login--popup.wide .popup-btn .btn--default {
  font-size: 14px;
  padding: 10px 25px;
}

.flex-popup .left .popup-title-left h3,
.flex-popup .bottom .popup-title-left h3 {
  text-align: center;
  font: normal normal normal 18px/18px DM Serif Text;
  letter-spacing: 0.6px;
  color: #000000;
}

.flex-popup .left .popup-title-left p,
.flex-popup .bottom .popup-title-left p {
  text-align: center;
  font: normal normal normal 14px/24px DM Sans;
  letter-spacing: 0.35px;
  color: #000000;
  padding-bottom: 0px;
}

.flex-popup .benefits ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

.flex-popup .left li::before,
.flex-popup .bottom li::before,
.flex-popup .benefits li::before {
  content: url("https://static.bangkokpost.com/v3/assets/images/icon-new/dgs-check.svg");
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  margin-right: 12px !important;
  /*background-color: #000;*/
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0 !important;
  /* Prevents the circle from shrinking if text is long */
  line-height: 1 !important;
}

.flex-popup .left li,
.flex-popup .bottom li,
.flex-popup .benefits li {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 8px !important;
  text-align: left !important;
  padding: 0 !important;
}

.flex-popup .left li:last-child,
.flex-popup .bottom li:last-child,
.flex-popup .benefits li:last-child {
  margin-bottom: 0px !important;
}

.flex-popup .left li p,
.flex-popup .bottom li p,
.flex-popup .benefits li p {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 13px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: 0px !important;
  color: #000000 !important;
}

.flex-popup .left li span,
.flex-popup .bottom li span,
.flex-popup .left li p span,
.flex-popup .bottom li p span,
.flex-popup .benefits li p span {
  display: inline;
  text-align: left !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0px !important;
  color: #000000 !important;
}

.dgs-popup.flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 835px) {
  .flex-popup {
    padding-inline: 15px;
  }

  .flex-popup .right div:has(small) {
    padding-bottom: 1.5rem;
  }

  .force_login--popup.wide .popup-btn .btn--default {
    font-size: 18px;
    padding: 10px 25px;
  }

  .force_login--popup.wide .popup-title {
    font-size: 24px;
  }

  .flex-popup .left .popup-title-left h3,
  .flex-popup .bottom .popup-title-left h3 {
    text-align: center;
    font: normal normal normal 24px/24px DM Serif Text;
    letter-spacing: 0.6px;
    color: #000000;
  }

  .flex-popup .left .popup-title-left p,
  .flex-popup .bottom .popup-title-left p {
    text-align: center;
    font: normal normal normal 14px/24px DM Sans;
    letter-spacing: 0.35px;
    color: #000000;
    padding-bottom: 0px;
  }

  .flex-popup .right {
    order: 1;
    padding-left: 60px;
    border-bottom: 0;
  }

  .flex-popup .right::after {
    content: "";
    display: block;
    position: absolute;
    top: 25%;
    left: 0;
    border-right: 1px solid lightgray;
    height: 70%;
  }

  .flex-popup .left {
    padding-right: 60px;
  }

  /*.flex-popup .left .popup-title-left {
    margin-block: 24px;
    padding-top: 20px;
  }*/

  .flex-popup .bottom .popup-title-left {
    margin-bottom: 24px;
  }

  .flex-popup .bottom .dgs-popup {
    padding-top: 36px;
  }

  .flex-popup .left .popup-title-left h3,
  .flex-popup .bottom .popup-title-left h3 {
    text-align: center;
  }

  .flex-popup .left .popup-title-left p,
  .flex-popup .bottom .popup-title-left p {
    text-align: center;
  }

  .flex-popup .right .dgs-popup,
  .flex-popup .top .dgs-popup,
  .flex-popup .bottom .dgs-popup {
    position: relative;
    padding-right: 15px;
    padding-left: 15px;
  }

  /*.force_login--popup.wide {
    position: absolute;
    top: 0;
    bottom: 0;
    margin-top: -150px;
  }*/
}

/******* 2608-31 *********/
div.modal-dialog.modal-dialog-centered {
  max-width: 300px;
  margin: 28px auto;
}

div.modal-dialog.modal-dialog-centered .modal-content {
  max-height: 300px;
}

.dgs-popup .popup-title.--f20px {
  font-size: 19px;
  padding-top: 0px;
}

.modal-body .dgs-popup .--f16px {
  font-size: 16px;
  padding-inline: 16px;
}

/*************************/

/******* 2609-09 *********/
.force_login--popup.wide.v1,
.force_login--popup.wide.v2 {
  position: fixed;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.force_login--popup.wide.v1.show,
.force_login--popup.wide.v2.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wide.v1 .dgs-popup.flex,
.wide.v2 .dgs-popup.flex {
  align-items: center;
  position: relative;

  h3 {
    text-align: center;
  }

  div.popup-logo.--top7 {
    display: block;
  }

  div.popup-logo.left {
    display: none;
  }
}

.wide.v2 .left .dgs-popup.flex {
  div.benefits p {
    font-size: 14px;
  }
}

div.sticky.v2 {
  .dgs-popup .popup-text.title {
    font-size: 18px;
    line-height: 1.3;
    margin-top: -13px;
    margin-bottom: 13px;
  }
}

@media (min-width: 1024px) {

  .wide.v1 .left .dgs-popup.flex,
  .wide.v2 .left .dgs-popup.flex {
    align-items: start;

    h3,
    p {
      text-align: start;
    }

    div.popup-logo.left {
      display: none !important;
    }

    div.popup-title-left {
      padding-top: 16px;
    }
  }

  .wide.v1 .right .dgs-popup.flex,
  .wide.v2 .right .dgs-popup.flex {
    div.popup-title {
      padding-top: 0px;
    }

    div.popup-logo.--top7 {
      display: block;
    }
  }
}

/*************************/