/* Smartphone and small window */
.amazon-btn {
    padding: 15px 0;
    text-align: center;
}

.amazon-btn img {
    max-width: 100%;
}

.amazon-btn-right {
    clear: both;
    float: right;
}


.amazon-item-list.item-list td.order-payment-summary {
    min-width: 160px;
}


#addressBookWidgetDiv .widget-container,
#consentWidgetDiv .widget-container,
#walletWidgetDiv .widget-container,
#addressBookWidgetDiv iframe,
#consentWidgetDiv iframe,
#walletWidgetDiv iframe {
    width: 100% !important;
}

#addressBookWidgetDiv,
#walletWidgetDiv {
    min-width: 280px;
    max-width: 600px;
    width: 100%;
    height: 300px;
    padding : 0 0 40px;
}

#consentWidgetDiv {
    min-width: 300px;
    max-width: 600px;
    width: 100%;
    height: 140px;
    padding : 0 0 40px;
}

form legend {
    overflow: hidden; /* clearfix */
    clear: both;
}

.amazonheader {
    padding : 0 0 10px 0;
    margin : 0 0 0 -25px;
}

.amazonpopup {
    padding : 0 0 0px 50px;
}

.amazon-button {
    padding : 0 0 5px 0px;
}

/* Ignore all the user actions when the button is disabled */
.amazon-button[disabled] {
    pointer-events: none;
    position: relative;
}

.amazon-button[disabled] img {
    opacity: 0.6;
}

.amazon-button[disabled]:before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.billing-form{
    display: none;
}

.payment-message {
    color: #990000;
    font-size: 1em;
    padding-bottom: 10px;
}

/* Desktop and tablet */
@media only screen and (min-width: 768px) {
    #addressBookWidgetDiv {
        width: 450px;
        height: 300px;
        padding : 0 0 10px 50px;
    }

    #consentWidgetDiv {
        width: 400px;
        height: 140px;
        padding : 0 0 40px 50px;
    }
}

@media screen and (max-width: 959px) and (min-width: 768px) {
    .amazon-item-list.item-list td {
        padding: 1em 0.3em;
    }

    .primary-focus #secondary {
      width: 190px;
    }

}

.level-2 {z-index: 15}

 #overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  transition: opacity 1000ms;
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
}

.popup {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 30%;
  max-height: 350px;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  border: solid 1px #333;
}

#overlay {
  font-size: 100%;
}

.popup h5 {
  margin-top: 0;
  font-size: 1.8rem;
}
.popup .close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  border-style: none;
}
.popup .close:hover {
  color: #17a2b8;
}
.popup .content {
/*   overflow: auto; */
  font-size: 1.5rem;
  line-height: initial;
}
.amazon-btn {
  padding: 0px;
  margin: 20px;
}
@media screen and (max-width: 768px){
  .box{
    width: 70%;
  }
  .popup{
    width: 70%;
  }
}