﻿body
{
   
   font-family: -apple-system, 'Helvetica Neue', 'Arial', sans-serif; 
   color: #333;
   overflow: hidden;
}
h4 {
	font-family: "Open Sans", sans-serif;
	font-weight: 400;
	font-size: 20px;
	border-top: solid 1px #8eaa8e;
	padding-top: 24px;	
}
h4.border-no {
	border: 0;
	padding-top: 0px;
}
.hup-animate {
	padding-left: 0px;
	transition: padding-left 0.5s ease;
	margin-bottom: 12px;
}
.hup-pad-left 
{
	padding-left: 24px;
	padding-bottom: 12px;
}
 .hup-pad-bottom {
	 padding-bottom: 24px;
 }
.hup-hide
{
	display: none;
}
.address-error {
	margin-left: 8px;
    display: inline-block;
    position: absolute;
    top: -2px;
    left: 50px;
}
.ContentRight
{
    
}
.ContentHeader
{
    background-image:url('../Images/YellowTiny.jpg');
    height:20px;
    line-height:20px;
    background-repeat:no-repeat;
    background-position:bottom left;
    font-size:18px;
    clear:right;
    padding-left:20px;
    padding-top:0px;
    color:#1f4188;        
    margin-bottom:15px;
}
.ContentHeaderPadded
{
    margin-top:20px;
}
.ContentBodyText
{
    font-size:12px;
    float:left;
	clear:left;    
    padding-left:22px;
    margin-bottom:12px;
    color:#1f4188;        
	text-align:justify;
}

.FormItem
{
	position: relative;

}
.address-text {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    border-bottom: 1px solid #8eaa8e;
    padding-bottom: 32px;
}

.FormLabel
{
	font-size: 13px;
    line-height: 20px;
    display: inline-block;
    margin: 2px 0 4px 0;
    color: #0f131a;
    width: 100%;
}
.hup-printed {
	position: absolute;
    top: -34px;
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #9da7b1;
    left: 0px;
	
}
.hup-printed span{
	border: solid 1px #9da7b1;
    border-radius: 6px;
    padding: 3px;    
	padding-right: 10px;
	padding-left: 10px;
	text-transform: uppercase;
	background-color: #ffffff;
    font-size: 13px;
	font-weight: 400;
}
#cardNumberInput {
	
}
.cardtype {
	position: absolute;
	z-index: 2;
	right: 4px;
	top: 25px;
	overflow: hidden;
	
	height: 42px;
    width: 66px;
    background-color: #fff;
    border-radius: 0 6px 10px 0;
}
.cardtype img {
	width: 64px;
	position: relative;
	top: 0px;
}

input {
  width: calc(100% - 32px);
  padding: calc(9px) 16px;
  border: 1px solid #9da7b1;
  box-shadow: inset 0px 1px 2px rgba(102, 113, 123, 0.21);
  border-radius: 8px;
  line-height: 24px;
  font-size: 16px;
}

div.flex-section {
	display: flex;
	align-items: flex-start;	
	flex-wrap: wrap;	
}
div.flex-portion {
	display: flex;
	flex-grow: 1;
	flex-wrap: nowrap;
	border: solid 1px #9da7b1;
    border-radius: 10px;
    padding: 16px;
    order: 1;
    background-color: #ffffff;
	position: relative;
	justify-content: center;
}
div.flex-first {
	order: 0;
	background-color: transparent;
    border: 0;	
}
div.flex-portion div.FormItem {
	/*flex-grow: 1;*/
	
}

input:focus,
.pay-button:focus {
  outline: none;
}
input.valid {
  border: 1px solid #5c656f;
  box-shadow: inset 0px 1px 2px rgba(102, 113, 123, 0.21);
}
input.invalid {
  border: 1px solid #ff7559;
  box-shadow: inset 2px 2px 3px rgba(0, 0, 0, 0.02);
}
input.focused {
  border: 1px solid #3388ff;
  box-shadow: inset 0px 1px 2px rgba(102, 113, 123, 0.21);
}

select:focus,
.pay-button:focus {
  outline: none;
}
select.valid {
  border: 1px solid #5c656f;
  box-shadow: inset 0px 1px 2px rgba(102, 113, 123, 0.21);
}
select.invalid {
  border: 1px solid #ff7559;
  box-shadow: inset 2px 2px 3px rgba(0, 0, 0, 0.02);
}
select.focused {
  border: 1px solid #3388ff;
  box-shadow: inset 0px 1px 2px rgba(102, 113, 123, 0.21);
}

label {
	cursor: pointer;
}
.label {
  font-size: 13px;
  line-height: 20px;
  display: inline-block;
  margin: 2px 0 4px 0;
  color: #0f131a;
  width: 100%;
}

.error-message {
	background-color: #ff0000;
	color: #fff;
	border-radius: 8px;
	margin-left: 64px;
	margin-right: 64px;
	display:none;
}

.error-message p {
	padding: 6px;
	margin: 0px;
	text-align: center;
	font-weight: 700;
}
.FormItem .error.very-hidden {
	display: none;
}
.FormItem .error.postCode {
    position: absolute;
    visibility: visible;
    top: 48px;
    width: 250px;
}
#amexError {
	display: inline-block;
    margin-left: 8px;
}
div .hidden:before {
  visibility: hidden;
}

div .error:before {
  content: '.';
  background-position: center;
  background-image: url(../Images/error.svg);
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  display: inline-block;
  padding: 2px 10px 0 0;
  color: #fff; /* Fallback for older browsers */
  color: rgba(0, 0, 0, 0);
  margin-right: 4px;
}
.FormItem .error.hidden {
	visibility: hidden;
}
.FormItem .error {
    font-size: 13px;
    color: #ff7559;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    padding-top: 5px;
    display: block;
}

.FormSubmit
{
	text-align:center;
}


.ErrorMessage, .FormErrorMessage
{
	background-image: url(../Images/ErrorBig.jpg);
	background-repeat:no-repeat;
	background-position:center left;
	
    color: #f00;
    background-color: #fff;
    border: solid 2px #f00;
    padding: 20px 20px 20px 80px;
    font-weight:bold;
	text-align:center;
	margin-top:10px;
	margin-left:auto;
	margin-right:auto;
	margin-bottom:10px;
}

.SuccessMessage
{
	background-image: url(../Images/SuccessBig.jpg);
	background-repeat:no-repeat;
	background-position:center left;
	
    color: #0a0;
    background-color: #fff;
    border: solid 2px #0a0;
    padding: 20px 20px 20px 80px;
    font-weight:bold;
	text-align:center;
	margin-top:10px;
	margin-left:auto;
	margin-right:auto;
	margin-bottom:10px;
}

.WarningMessage
{
	background-image: url(../Images/WarningBig.jpg);
	background-repeat:no-repeat;
	background-position:center left;
	
    color: #960;
    background-color: #fff;
    border: solid 2px #960;
    padding: 20px 20px 20px 80px;
    font-weight:bold;
	text-align:center;
	margin-top:10px;
	margin-left:auto;
	margin-right:auto;
	margin-bottom:10px;
}

.InfoMessage
{
	background-image: url(../Images/InformationBig.jpg);
	background-repeat:no-repeat;
	background-position:center left;
	
    color: #33f;
    background-color: #fff;
    border: solid 2px #33f;
    padding: 20px 20px 20px 80px;
    font-weight:bold;
	text-align:center;
	margin-top:10px;
	margin-left:auto;
	margin-right:auto;
	margin-bottom:10px;
}
select {
	 font-size: 16px;
  background-color: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  padding-top: calc(9px);
  padding-right: 32px;
  padding-bottom: calc(9px);
  padding-left: 12px;
  background-image: url('../shared/select-arrows.svg');
  background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 140 140' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><g><path d='m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z' fill='rgb(142, 170, 142)'/></g></svg>") no-repeat;
  
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  border-radius: 8px;
  color: rgb(33, 41, 51);
  border: 1px solid #9da7b1;  
  cursor: pointer;
  height: 44px;
  background-color: #fff;
}
.address-edit {
    text-align: right;
    text-decoration: underline;
    color: rgb(73, 145, 111);
    font-size: 14px;
    cursor: pointer;
    font-family: 'Open Sans';
    margin-top: 8px;
}
select#addressLookup {
    width: calc(100% - 190px);
    padding: calc(9px) 16px;
    padding-right: 48px;
    line-height: 24px;
    font-size: 16px;
    border: 1px solid #9da7b1;
    box-shadow: inset 0px 1px 2px rgb(102 113 123 / 21%);
    border-radius: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url(https://book.portsonachan.com/images/dropdown.png);
    background-position-x: right;
	background-repeat: no-repeat;
}

    select#addressLookup.unactive {
        background: url(https://book.portsonachan.com/images/drop-deactive.png);
        background-position-x: right;
		background-repeat: no-repeat;
    }

    select#addressLookup::-ms-expand {
        display: none; /* Remove default arrow in Internet Explorer 10 and 11 */
    }

/* Target Internet Explorer 9 to undo the custom arrow */
@media screen and (min-width:0\0) {
    select#addressLookup {
        background: none\9;
        padding: 5px\9;
    }
}

div#postCodeCont {
    display: inline-flex;
}

input[name='PostCode'] {
    width: 100px !important;    
}

div#findPostCode {
    background: #49916f;
    border-radius: 8px;
    border: solid 1px #ddd;
    margin-right: 12px;
    cursor: pointer;
    margin-left: 6px;
}

p.address, p.edit-address {
    font-family: 'Karla';
    margin-bottom: 0px;
}

p.edit-address {
    text-align: right;
    text-decoration: underline;
    color: rgb(73, 145, 111);
    font-size: 14px;
    cursor: pointer;
    font-family: 'Open Sans';
}
div.address-lookup {
    margin-bottom: 16px;
}
body.hup-white {
    color: #fff;
}
.hup-white .FormLabel {
    color: #fff;
}
.hup-white p.edit-address {
    color: #fff;
    padding-right: 16px;
}
.hup-white h4.billing-address {
    border-top: solid 1px #333;
}
.hup-white select#addressLookup {
    background-color: #fff;
    background: #fff url(../images/dropdown_white.png);
    background-position-x: right;
    background-repeat: no-repeat;
    border: 1px solid #333;
}

.hup-white div#findPostCode {
    background: #222;    
    border-radius: 25px;
    border-color: #333;
}

.hup-white div#findPostCode:hover {
    background: #4d78aa;
}

.hup-white .flex-portion.if-printed-on-card {
    background: #222;
    border-color: #333;
}