﻿/* 
    app.css - contains core styles in checkout/account that we wish to share between gateways
    as a general rule, smile will contain its own definitions, so just using this for menus, etc
*/

h1, h2, h3, h4 { color: var(--gateway-colour-1); }
html, body, td, p, div { font-family: Verdana; font-size: 11pt; }

/* menu ( checkout / my account)  */

div.menu {
    width: 100%;
    display: table; /* could/should  be flex? */
    margin-bottom: 12px;
    border-bottom: 18px solid var(--gateway-colour-1);
}

div.menu ul {
    font: 300 62.5%/1.5 'Oswald', Arial, sans-serif;
    display: table;
    table-layout: fixed;
    background-color: transparent;
    height: 37px;
    width: calc(100% - 24px);
    border-spacing: 1px 0px;
    border-collapse: separate;
    margin-left: -28px; /* for IE / Edge */
    -webkit-margin-before: 0px;
    -webkit-margin-after: 0;
    -webkit-margin-start: 12px;
    -webkit-margin-end: 0;
    -webkit-padding-start: 0px;
    -moz-margin-before: 0px;
    -moz-margin-after: 0;
    -moz-margin-start: 12px;
    -moz-margin-end: 0;
    -moz-padding-start: 0px;
    margin-bottom: 0px;
    cursor: default;
}

div.menu ul > li {
    /* width: calc(20%);*/
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    padding: 0;
    margin-left: 0px;
    height: 48px;
    box-sizing: border-box;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background: var(--gateway-colour-2);
    cursor: default;
}

div.menu.checkout ul > li {
    height: 74px;
}

div.menu.checkout ul > li.enabled {
    background: #459924;
}


div.menu ul > li.current {
    background-color: var(--gateway-colour-1);
}

div.menu ul > li a {
    font-size: 23px;
    line-height: 30px;
    width: 100%;
    display: block;
    padding: 0 4px;
}

div.menu ul * {
    box-sizing: border-box;
}

div.menu ul li {
    list-style: none;
}

div.menu ul a {
    color: white;
    text-decoration: none;
}

div.menu ul ul a:hover {
    text-decoration: underline;
}


div.menu ul > li:hover {
    cursor: pointer;
}

div.menu ul > li.disabled:hover, div.menu ul > li.disabled {
    background-color: #ccc;
    cursor: default;
}

div.menu ul > li.disabled:hover a {
    color: #fff;
}


div.pager a:hover { cursor: pointer; }

div.pager .text-style > div,
div.pager .text-style > div > div { margin: 0; padding: 0; display: table-cell; }

div.pager .text-style > div:first-child { padding-right: 6px; }
div.pager .text-style > div.prev { padding-right: 6px; padding-left: 6px; }

div.pager .button-style span { padding: 0 6px; }
div.pager .button-style a,
div.pager .button-style a i { color: var(--gateway-colour-1); }
div.pager .button-style a.disabled,
div.pager .button-style a.disabled i { color: #ccc; }



/* tmp until we can sort out the odd issue with the spinner (e.g. basket-contents.vue) */
/* can't do <i class="fas fa-spinner fa-spin"> because of fa svg issues */
/* MB-20060 */
.vue-loading-container { position: relative; }
.vue-loading-container.login { position: inherit; }
.vue-loading-container .vue-loading {
    position: absolute;
    top: 0;
    bottom: 0;
    /*min-height: 600px;*/
    height: 100%;
    width: 100%;
    background: #fff;
    opacity: .6;
    z-index: 99999;
    padding-top: 120px;
    text-align: center;
}
.vue-loading-container .vue-loading i.fa-spinner { font-size: 60px; color: #cccccc; } 




.webform.contact-details.ro .show-if-ro,
.webform.contact-details.edit .show-if-edit { display: block; }

.webform.contact-details.ro a.show-if-ro,
.webform.contact-details.edit a.show-if-edit { display: inline-block; }

.webform.contact-details.edit .show-if-ro,
.webform.contact-details.ro .show-if-edit { display: none; }





div.productInfoTooltip_main { width: 120px; }
div.productInfoTooltip_popup { width: 300px; }
div.productInfoTooltip_popup div.image img { width: 300px; }
div.productInfoTooltip_popup div.info { padding: 6px;line-height: 24px; }


/* ugh, kinda tied to the color! */
.small-grey, .small-grey a { color: #8A8A8A; font-size: 8pt; font-family: Verdana; font-style: italic; }
.small-grey a:active,
.small-grey a:visited,
.small-grey a { color: #8A8A8A; text-decoration: underline;}


/* delivery method */
table.delivery-method-list, table.deliveryInfo
{
	margin: 0px;
	padding: 0px;
	border: none;
}

table.delivery-method-list tr td,
table.deliveryInfo tr td
{
	padding: 5px 1px 4px 0px;
	vertical-align: top;
}

table.delivery-method-list td.labels > div { display: inline-block;width: auto;vertical-align: top;max-width: 350px;}
table.delivery-method-list td.labels > div.info { width: 20px;height: 20px;}
.webform table.delivery-method-list td.labels > div.info a.infoTip { float: none;margin: 0px;width: 18px;height: 18px;display: inline-block;}


table.delivery-method-list tr td.labels { padding-right: 8px; min-width: 386px;}
table.delivery-method-list div.text span.info { width: 100%; display: block; padding-top: 6px; line-height: 17px;}


.webform .radios { display: table-row;}
.webform .radios > div { display: table-cell; padding: 4px 0}

/* opayo-pi - Sage / Opayo Pi integration */

.opayo-pi { position: relative; width: 100%; }
.opayo-pi * { box-sizing: border-box; }

/* #pnlMid required for certain overrides in pb */

.opayo-pi input[type=text], #pnlMid .opayo-pi input[type=text] { padding: 6px; width: 369px; height: 44px; }

.opayo-pi select {
    width: 371px;
    height: 44px;
    font-family: Roboto;
    font-size: 16px;
    border: 2px solid #ccc;
    background: #fff;
    border-radius: 4px;
    padding: 6px;
    outline: none;
}
.opayo-pi select:focus { border: 2px solid var(--gateway-colour-1); }

.opayo-pi input[type=text],
#pnlMid .opayo-pi input[type=text] { padding: 6px; background: #fff; }

.opayo-pi .card-details input[type=text].card-number,
#pnlMid .opayo-pi .card-details input[type=text].card-number { width: 234px; padding-left: 54px; }

.opayo-pi .card-details input[type=text].card-expiry,
#pnlMid .opayo-pi .card-details input[type=text].card-expiry { width: 66px; }

.opayo-pi .card-details input[type=text].card-security-code,
#pnlMid .opayo-pi .card-details input[type=text].card-security-code { width: 50px; }


.chunky-input.card-number label {
    left: 52px;
}

.opayo-pi input[type=text].error,
#pnlMid .opayo-pi input[type=text].error {
    border: 2px solid red;
}

.opayo-pi input:disabled { opacity: 0.5; }

.opayo-pi .entry { padding: 12px 0 0 0;}
.opayo-pi .authorise { padding: 6px 0;}

.opayo-pi .entry > div { padding: 6px 6px 6px 0; }
.opayo-pi .entry > div.number-and-card-type { position: relative; height: 70px; }
.opayo-pi .entry > div.number-and-card-type > * { display: inline-block; }

.opayo-pi .card-details div.card-type { width: 46px; position: absolute; top: 14px; left: 6px; }
.opayo-pi .card-details div.card-type img { width: 46px; }

.opayo-pi .new-address > div { margin: 12px 0 0 0; }
.opayo-pi .new-address > div:first-child { margin: 0; }

.opayo-pi .submit-payment { margin: 12px 0 0 0; }

.opayo-pi .chunky-input  { margin: 0 }



.opayo-pi a.button { padding: 3px 3px 6px 3px; }
.opayo-pi div.checkout-buttons a.button {
    position: relative;
    width: 371px;
    height: 63px;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    background: #459924;
    color: #fff;
}
.opayo-pi div.checkout-buttons a.button.go-shopping { background: #aaa; }

.opayo-pi .info { padding: 6px; border: 1px solid #ccc; margin: 12px 0;}
.opayo-pi .info div { padding: 4px 0; }
.opayo-pi .info div.error { color: red; }

.opayo-pi .cardholder-address > h4 { margin-bottom: 6px; }

.opayo-pi table td { padding: 6px 6px 6px 0; }
.opayo-pi table tr.heading td,
.opayo-pi table th td { font-weight: bold; }
.opayo-pi table tr.heading td label { font-weight: normal; }

.opayo-pi input:disabled { opacity: 0.5; }

.opayo-pi .error-box span.error { color: red; display: inline; font-weight: bold;}
.opayo-pi .error-box div.error { color: red; display: block; font-weight: bold; }
.opayo-pi .errorBox.bordered { padding-bottom: 12px; }

.opayo-pi .error-box div.error { color: red; display: block; font-weight: bold; }

.opayo-pi .test-panel { width: auto; padding: 8px; margin: 8px 0 12px 0; border: 1px solid #ccc; background: lightgoldenrodyellow; }
.opayo-pi .test-panel table { width: auto; margin-top: 12px  }
.opayo-pi .test-panel table td { padding: 2px; }
.opayo-pi .test-panel table td:first-child { width: auto; }
.opayo-pi .test-panel table tr.break td { padding-top: 18px; }
.opayo-pi .test-panel * { font-size: 9pt; color: #777; }
.opayo-pi .test-panel a { color: #1f7dc4; }
.opayo-pi .test-panel select { width: 150px; padding: 2px; height: 32px;}
.opayo-pi .test-panel i.far,
.opayo-pi .test-panel i.fas { color: var(--gateway-colour-1); font-size: 18px; }
.opayo-pi .test-panel div.cha { padding: 4px 0 0 0; }
.opayo-pi .test-panel a.remove { position: absolute; right: 8px; }
.opayo-pi .test-panel a.remove i { color: red;  }

.opayo-pi div.waiting
{
    padding: 24px 0 12px 0;
    width: auto;
    height: auto;
    background: none;
    text-align: left;
}

.opayo-pi div.waiting > * { display: table-cell; vertical-align: middle; }
.opayo-pi div.waiting > div.message { padding-left: 12px; color: #aaa; }
.opayo-pi div.waiting > div.spinner i.fas { color: var(--gateway-colour-1); font-size: 30px; }



/* inline-block and explicit widths prevent the .debug and <pre> busting the width (even with  word-wrap: break-word;) */
.opayo-pi-errors div.icon-box > * { display: inline-block; width: calc(100% - 66px); }  
.opayo-pi-errors div.icon-box > div.icon { width: 60px; }

.opayo-pi-errors div.debug {
    position: relative;
    margin-top: 8px;
    font-size: 11px;
    line-height: 14px;
    border-color: #000;
    width: 100%;
    background: #eee;
    padding: 8px;
    width: auto;
}
.opayo-pi-errors div.debug pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.opayo-pi-errors div.debug a.remove {
    position: absolute;
    right: 8px;
    color: red;
}

.opayo-pi-errors div.errorBox h4,
#pnlMid .opayo-pi-errors div.errorBox h4 {
    margin-bottom: 8px;
}

.opayo-pi-errors div.help { color: #666; }
.opayo-pi-errors .errorBox div.help p { margin: 8px 0 }
.opayo-pi-errors div.help ul { margin: 4px 0 0 0; }
.opayo-pi-errors div.help h5 {
    color: var(--gateway-colour-1);
    margin: 12px 0 4px 0;
    font-weight: 700;
    font-family: "Merriweather";
    font-size: 18px;
}
.opayo-pi-errors div.help h5 i { margin: 0 6px 0 0 }

.opayo-pi-errors div.icon-bullet { padding: 2px 0; }
.opayo-pi-errors div.icon-bullet > * { display: table-cell; vertical-align: top; }
.opayo-pi-errors div.icon-bullet > div.icon { padding: 2px 6px 0 0; }
.opayo-pi-errors div.icon-bullet > span { padding: 0; }
.opayo-pi-errors div.icon-bullet > div.icon i { color: var(--gateway-colour-1); font-size: 20px; width: 24px; text-align: center; }

.opayo-pi-errors a.button.show-hide { background: #aaa; margin: 8px 0 0 0; width: 120px; }

.opayo-pi-errors div.errorBox div.note,
.opayo-pi-errors div.errorBox div.note a { font-size: 11pt; font-style: italic; }
.opayo-pi-errors div.errorBox div.note { color: #666; }

.opayo-pi-errors .client-error div.send-basket { padding-top: 12px; }
.opayo-pi-errors .client-error div.send-basket span.email { font-weight: bold; }
.opayo-pi-errors .client-error div.send-basket a.button {
    background: #459924;
    width: 200px;
    height: 44px;
    padding-top: 8px;
    font-weight: bold;
}

.opayo-pi h4 a.info-tip
#pnlMid .opayo-pi h4 a.info-tip { font-size: 18px; }

.opayo-pi .main-container {width: 100%; display: table; }

.opayo-pi .main,
.opayo-pi .right-panel { display: table-cell; width: 376px; vertical-align: top; }

.opayo-pi .right-panel {
    padding: 56px 0 0 0;
    width: calc(100% - 376px);
}

.opayo-pi .right-panel .container {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}
.opayo-pi .right-panel .container > div { text-align: center; vertical-align: top; padding: 0; height: 300px; }

.opayo-pi .right-panel .container > div.shield { width: 198px; vertical-align: middle; }  
.opayo-pi .right-panel .container > div.separator { width: 2px; background: #eee; }  
.opayo-pi .right-panel .container > div.images { width: 372px; display: flex; justify-content: space-evenly;}  
.opayo-pi .right-panel .container > div.images > .col-1 { width: 91px; }  
.opayo-pi .right-panel .container > div.images > .col-2 { width: 245px; }


.opayo-pi .right-panel .container > div.shield div {
    width: 198px;
    height: 100%;
    margin: auto;
}  

.opayo-pi .right-panel img { display: block; margin: auto; width: 245px; opacity: 0.7; margin-bottom: 14px; }
.opayo-pi .right-panel div.col-1 img { width: 91px }
.opayo-pi .right-panel div img:last-child { margin-bottom: 0px; } 
.opayo-pi .right-panel .ready img { opacity: 0.25; transition: opacity 3s ease-in; }


.opayo-pi .opayo-pi-test-panel .quick-link {
    margin-left: 2px;
}


/* 
    opayo-3ds-response - challenge blockui/iframe response 
    vue: .block-ui.opayo-3ds .post-order-processing
    Mvc: .opayo-3ds-response
*/

.block-ui.opayo-3ds .post-order-processing,
.opayo-3ds-response {
    width: 100%;
    height: 100%;
}

.block-ui.opayo-3ds .post-order-processing > div,
.opayo-3ds-response > div {
    width: 60px;
    height: 60px;
    margin: auto;
    padding-top: 120px;
    text-align: center;
}

.block-ui.opayo-3ds .post-order-processing > div i,
.opayo-3ds-response > div i {
    color: #ccc;
    font-size: 60px;
}

.opayo-3ds-response > div.error i { color: red; }
.opayo-3ds-response > i.fas { color: #ccc; }

.block-ui.opayo-3ds .post-order-processing > div {
    width: 200px;
    height: 200px;
}

.block-ui.opayo-3ds .post-order-processing > div > div {
    padding: 48px 0 0 0;
    color: #ccc;
}



/* chunky-input */
/* was placeholder-shift-input from training.css (admin) && _Phishex - this one has transitioning (animating) labels rather than show/hide */

.chunky-input {
    margin-top: 24px;
    position: relative;
}

.chunky-select,
.chunky-input input[type=text] {
    border: 2px solid #ccc;
    background: #fff;
    border-radius: 4px;
    outline: none;
    color: rgb(32, 33, 36);
    font-family: Verdana;
    font-size: 11pt;
    height: 44px;
    margin: 2px;
    padding: 12px;
    width: 369px;
    z-index: 1;
}

.chunky-select.selecting,
.chunky-input.has-focus input,
.chunky-input input:focus {
    border: 2px solid var(--gateway-colour-1);
}

.chunky-input label {
    background: #fff;
    color: #aaa;
    position: absolute;
    padding: 0 3px;
}

/* labels (w transitions) */
.chunky-input label {
    display: block;
    top: 14px;
    left: 6px;
    font-size: 11pt;
    transition: 0.3s;
}

.chunky-input.has-value label,
.chunky-input.has-focus label {
    display: block;
    top: -6px;
    left: 6px;
    font-size: 12px;
}

.chunky-input.has-focus label {
    color: var(--gateway-colour-1)
}



.chunky-select { min-height: 40px; height: auto; line-height: 22px; position: relative; padding: 0; }

.chunky-select .icon { position: absolute; right: 4px; top: 9px;  }
.chunky-select .icon i { color: #ccc; }
.chunky-select.selecting .icon { display: none; }

.chunky-select.selecting {
    height: auto;
    max-height: 400px;
    overflow: auto;
    overflow-y: scroll;
    overflow-x: hidden;
}

.chunky-select .selected {
    width: 100%;
    max-width: 100%;
    position: relative;
    padding: 9px 20px 6px 8px;
    height: 42px;
}
.chunky-select .selected a {
    cursor: pointer;
    color: #000;
    display: inline-block;
    width: calc(100% - 4px);
    max-width: calc(100% - 4px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chunky-select.selecting .options .option { padding: 9px 6px 9px 8px; cursor: pointer; }

.chunky-select.selecting .options .option { border-bottom: 1px solid #ccc; }
.chunky-select.selecting .options .option.current { font-weight: bold;}
.chunky-select.selecting .options .option:hover { background: #eee;}


/* voucher alert - style guide in BUGZ 7636 - uses merchant overrides in merchant.css for backgrounds etc */
div.voucher-alert
{
     margin-top: 0px; 
     height: 400px; 
     width: 600px;
     padding: 0px;
     background: #ccc;
}
div.voucher-alert div.inner
{
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 60px;
}
div.voucher-alert div.inner div.image { float: left; margin-right: 20px;width: 120px; }
div.voucher-alert div.inner div.title
{
    color: var(--gateway-colour-1); 
    font-size: 30pt;
    line-height: 42px;
    vertical-align: bottom;
    margin-top: 8px;
    margin-bottom: 24px;
}
div.voucher-alert div.inner div.info {
     color: #333; 
     float: left; 
     width: 380px;
    font-family: verdana;
    font-size: 14px;
    line-height: 18px;
}
div.voucher-alert div.inner div.info div.top { min-height: 86px; }
div.voucher-alert div.inner div.info input[type=text] { width: 300px; }
div.voucher-alert div.inner div.buttons { margin-top: 32px; margin-bottom: 18px;margin-left: 140px; height: 30px;}
div.voucher-alert div.inner div.buttons a.no-thanks { margin-left: 20px; margin-top: 26px; }


.voucher-alert div.inner .buttons a.button { width: 120px; height: 55px; float: none; display: inline-block; vertical-align: middle;}
.voucher-alert div.inner .buttons a.button.load-voucher { margin-right: 12px;}
.voucher-alert div.inner .buttons a.button.no-thanks { margin: 0px;padding-top: 14px;}



div.voucher-reminder { padding: 7px; margin: 0px 0px 12px 0px; border-top: 1px solid #e9e9e9;background: none; height: auto; }
div.voucher-reminder > div { display: inline-block; width: 132px; vertical-align: top;}
div.voucher-reminder > div.text { width: calc(100% - 140px); }
div.voucher-reminder img { margin: 2px; margin-right: 8px;margin-bottom: 6px; border: 1px solid #e9e9e9;}
div.voucher-reminder p.note {font-style: normal; font-size: 8.5pt;}

div.my-orders-container a.button.re-order span.added.short { display: none; }
div.my-orders-container .set-panel-states i { color: var(--gateway-colour-1); }



/* basket item tooltips */
#tooltip.image-tooltip:has(div.basket-item-tooltip),
#tooltip:has(div.basket-item-tooltip) .body,
div.basket-item-tooltip,
div.basket-item-tooltip.voucher-tooltip {
    width: 180px;
    min-width: 180px;
    height: 180px;
    padding: 0;
}

div.basket-item-tooltip .image img { width: 180px; height: 180px; }



