/* EFL popup container and iframe sizing.
   EFL popup.js appends an iframe into #eflLonPopupDiv but does not style it. */

#eflLonPopupDiv {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;

  /* Center content */
  align-items: center;
  justify-content: center;

  /* Backdrop */
  background: rgba(0, 0, 0, 0.55);
  padding: 16px;
}

/* The iframe created by EFL popup.js */
#eflLonPopupIframe {
  width: min(1100px, 96vw);
  height: min(760px, 92vh);
  background: #fff;
  border: 0;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

/* ----------------------------------------------------------
   EFL buttons
---------------------------------------------------------- */

.efl-leasing-block button.btn.disabled,
.efl-leasing-block button.btn.disabled:hover,
.efl-leasing-block button,
.efl-leasing-block a.btn,
.efl-leasing-block a.btn:hover,
.efl-ui-preview .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  max-width: 100%;

  padding: 8px 24px 8px 88px !important;

  border: none;
  border-radius: 4px;

  background-color: #009597 !important;
  color: #ffffff !important;

  text-align: center;
  white-space: normal;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: anywhere;

  outline: none;
  box-shadow: none;
  appearance: none;

  cursor: pointer;

  background-image: url("../img/efl-logo-white.svg") !important;
  background-size: 64px auto;
  background-position: 16px center;
  background-repeat: no-repeat;

  transition: background-color 0.2s ease-in-out;
}

.efl-leasing-block button:hover,
.efl-leasing-block a.btn:hover,
.efl-ui-preview .btn:hover {
  background-color: #007384 !important;
  color: #ffffff !important;
}

.efl-leasing-block button.btn.disabled,
.efl-leasing-block button.btn.disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
}

.efl-leasing-block a.btn,
.efl-leasing-block a.btn:hover {
  text-decoration: none !important;
}

/* ----------------------------------------------------------
   Variant without logo
---------------------------------------------------------- */

.efl-leasing-block button.efl-btn--no-logo,
.efl-leasing-block button.efl-btn.efl-btn--no-logo.disabled,
.efl-leasing-block button.efl-btn--no-logo:disabled,
.efl-leasing-block button.efl-btn--no-logo[disabled],
.efl-leasing-block button.efl-btn--no-logo.disabled:hover,
.efl-leasing-block a.btn.efl-btn--no-logo,
.efl-leasing-block a.btn.efl-btn--no-logo:hover,
.efl-ui-preview .btn.efl-btn--no-logo {
  background-image: none !important;
  padding: 8px 24px !important;
}

/* ----------------------------------------------------------
   Alerts
---------------------------------------------------------- */

.efl-leasing-block .alert {
  margin-top: 12px;
}

/* ----------------------------------------------------------
   Mobile
---------------------------------------------------------- */

@media (max-width: 480px) {
  .efl-leasing-block button,
  .efl-leasing-block a.btn,
  .efl-ui-preview .btn {
    width: 100%;
    min-height: 56px;

    padding: 10px 16px 10px 80px !important;

    background-size: 48px auto;
    background-position: 16px center;

    font-size: 14px;
  }

  .efl-leasing-block button.efl-btn--no-logo,
  .efl-leasing-block a.btn.efl-btn--no-logo,
  .efl-ui-preview .btn.efl-btn--no-logo {
    padding: 10px 16px !important;
  }
}