/* 
Please include the min-width, max-width, min-height 
and max-height if you plan to use a relative CSS unit 
measurement to make sure the widget renders in the 
optimal size allowed.    
*/

#addressBookWidgetDiv {
  min-width: 300px; 
  max-width: 100%;
  min-height: 200px; 
  height: 200px;
	margin-bottom:20px;
}
/* The following are only required when you use the read-only widgets: */
#readOnlyAddressBookWidgetDiv {
  min-width: 266px; 
  max-width:100%; 
  height: 165px;
}
#get_details_response {
  font-family: monospace;
  white-space: pre;
}
#addressform,#addressBookWidgetDiv {
	/*display:none;*/
}
/* 
Please include the min-width, max-width, min-height 
and max-height if you plan to use a relative CSS unit 
measurement to make sure the widget renders in the 
optimal size allowed.    
*/

#walletWidgetDiv {
  min-width: 300px; 
  /*width: 600px;  width can be removed and the widget will take up all the page width*/
  max-width: 100%;
  min-height: 228px; 
  height: 240px;
	margin-bottom:30px;
}
			
/* The following are only required when you use the read-only widgets: */
#readOnlyWalletWidgetDiv {
  min-width: 266px; 
  max-width: 100%; 
  height: 165px;
}


.validation-error {
  animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

.amazonpay-button-microtext img{
  margin-top: 2px;
  height: 6px;
}

#AmazonPayButton{
  width: 100% !important;
}

#walletWidgetDiv{
  position: relative;
}

#walletWidgetDiv > i{
  position: absolute;
  top: -0.5rem;
  left: -0.75rem;
  background: white;
  font-size: 26px;
}

#walletWidgetDiv > div{
  width: 49%;
}


#walletWidgetDiv #changePayment{
  cursor: pointer;
  text-decoration: underline;
  padding: 5px;
  display: flex;
  justify-content: right;
}

/* SignIn Page Styling */
.amazon-checkout-buttons{
  display:flex;
  justify-content:space-between;
  width:100%;
  align-items:center;
}

.amazon-checkout-buttons .cell,
.amazon-checkout-buttons .continue-button .checkout-button{
  margin-bottom: 0;
  width: 260px;
}

.amazon-checkout-buttons .amazon-divider{
  font-weight: bold;
}

/* Postage Page Styling */
#payment_method_amazonpay .rc-selection__block{
  padding:1em .5rem;
  min-height: 93px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 1400px) {
  .amazon-checkout-buttons .cell,
  .amazon-checkout-buttons .continue-button .checkout-button{
    max-width: 200px;
  }
}

@media screen and (max-width: 640px) {
  #walletWidgetDiv{
    text-align: "center";
  }
  #walletWidgetDiv > div{
    width: 100%;
  }

  .amazon-checkout-buttons .continue-button .checkout-button{
    margin-bottom: 0.8rem;
  }
  .amazon-checkout-buttons .amazon-divider{
    width: 100%;
    text-align: center;
    margin-bottom: 0.8rem;
  }
  .amazon-checkout-buttons{
    justify-content:space-around;
  }

}

@media screen and (max-width: 520px) {
  .amazon-checkout-buttons .cell,
  .amazon-checkout-buttons .continue-button .checkout-button{
    max-width: 300px;
  }

  .amazon-checkout-buttons{
    flex-wrap: wrap;
    flex-direction: column-reverse;
  }

}
