html, body {
  margin: 0;
  height: 100%;
  background: #3f3f3f;
}
body {
  display: flex;
  flex-direction: column;
}

#main-wrapper {
  display: flex;
  flex: 1 0 auto;
  background: white;
  flex-wrap: wrap;
  justify-content: flex-start;
  flex-direction: column;
  width: 100%;
}

#main-wrapper > header {
  flex-shrink: 1;
  flex-grow: 0;
  flex: 0 1;

}

#main-wrapper > section {
  display: flex;
  /* flex: 1 0 ; */
  flex: 1 0 auto;
  flex-direction: row;
  flex-wrap: wrap;
}

#main-wrapper > section > main {
  flex: 1 0 ;
  flex-direction: column;

}

#main-wrapper > section > aside {
  flex-shrink: 0;
  min-width: 300px  ;
}

@media (max-width: 768px) {
  aside {
    order: -1;
  }
}

footer {
  flex-shrink: 0;
  text-align: left;
  padding: 10px 0;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* background with opacity for footer */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: .2;
  z-index: -1;
}

footer a, footer a:visited {
  color: #f1b31c
}
footer a:hover {
  color: #fcea2b
}
footer label {
  text-align: right;
}

footer .row .col-md-4 {
  text-align: right;
}
footer form > *{
  margin: 20px 0;
}
footer pre {
  text-align: left;
}
footer .copyright {
  text-align: center;
  margin: 10px;
}

#message-placeholder {
  border: 1px dotted red;
  background:#fcea2b;
  /* margin: 1em; */
  padding: 0.5em;
  border-radius: 5px;

  animation-name: bounce;
  animation-duration: 0.5s;
}

.deko.badge > .d {
  color: #ff6374ff;
}
.deko.badge > .e {
  color: #12b59fff;
}
.deko.badge > .k {
  color: #f4a526ff;
}
.deko.badge > .o {
  color: #ddd;
}

td.price, th.price {
  text-align: right;
}

.address-container {
  display: flex;
}
.address-container div {
  display: flex;
  justify-content: center;
}

.buttons-container {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-newpay, .btn-newpay-bh {
  --np-fg-color: #283237;
  --np-bg-color: #05E1AA;
  --np-bg-color-darken: #04C897;
  --np-bg-color-lighten: #05FABD;

  background-color: var(--np-bg-color);
  color: var(--np-fg-color);
  border: 2px solid var(--np-bg-color);
  font-weight: 600;

  &:hover, &:focus {
    color: var(--np-fg-color);
    background-color: var(--np-bg-color-darken);
    border-color: var(--np-bg-color-darken);
  }

  &.disabled, &:disabled {
    color: var(--np-fg-color);
    background-color: var(--np-bg-color-lighten);
    border-color: var(--np-bg-color-lighten);
  }
}

.btn-black-horse-flexpay {
  --bh-fg-color: white;
  --bh-bg-color: #107EB1;
  --bh-bg-color-darken: #0E6E9A;

  background-color: var(--bh-bg-color);
  color: var(--bh-fg-color);
  border: 2px solid var(--bh-bg-color);
  font-weight: 600;

  &:hover, &:focus {
    color: var(--bh-fg-color);
    background-color: var(--bh-bg-color-darken);
    border-color: var(--bh-bg-color-darken);
  }
}

.btn {
  transition: filter 0.3s ease;
}

.extrahint-wrapper {
  margin-bottom: 15px;
}

#imega-widget-anchor *, #imega-widget * {
  all: initial;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 12px;
  box-sizing: border-box;
}

#imega-widget-anchor div, #imega-modal, #imega-modal div, #imega-modal h3 {
  display: block;
}

#imega-widget-anchor div.imega-anchor-top {
  margin: 15px 0;
  position: relative;
}
#imega-widget-anchor div, #imega-modal, #imega-modal div, #imega-modal h3 {
  display: block;
}

#pdp-el-tagline {
  font-size: 13px !important;
  font-weight: bold !important;
}

#imega-widget-anchor *, #imega-widget * {
  all: initial;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 12px;
  box-sizing: border-box;
}

#pdp-el-logo {
  height: 20px !important;
}

#imega-widget-anchor .imega-anchor-top img {
  height: 24px;
  width: auto;
}

#imega-widget-anchor img {
  display: inline-block;
  height: 35px;
  vertical-align: middle;
  left: 0;
}

#imega-widget-anchor *, #imega-widget * {
  all: initial;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 12px;
  box-sizing: border-box;
}

#imega-widget-anchor {
  border: 2px solid #12373e;
  border-radius: 0.5rem;
  background: white;
  box-sizing: border-box;
  padding: 10px;
  position: relative;
  max-width: 100%;
}

.imega-slug {
  display: block;
  text-align: left;
  font-size: 12px;
}

img {
  border: 0;
  vertical-align: top;
  max-width: 100%;
  max-height: 24px;
}

.navbar-brand {
  overflow: hidden;
}

.tagline {
  display: block;
  font-size: small;
  width: 15rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid lightgrey;
  border-radius: 4px;
}

/*
  This code has been obtained from:
  https://github.com/daneden/animate.css/blob/master/source/attention_seekers/bounce.css
*/
@keyframes bounce {
  from,
  20%,
  53%,
  80%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -9px, 0);
  }

  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -5px, 0);
  }

  90% {
    transform: translate3d(0, -2px, 0);
  }
}
