﻿html {
    height: 100%;
}

body {
    min-height: 96%;
    display: grid;
    grid-template-rows: 1fr auto; /* two rows for sticky footer */
    margin: 0;
    padding: 0;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-family: Ilisarniq Regular, sans-serif;
    font-family: Inter, sans-serif;
    color: #6d6e78;
}

a:link, a:visited, a:active, a:focus, .link-button {
    color: navy;
    text-decoration: none;
}

a:hover, .link-button:hover {
    text-decoration: underline;
}

/* 
-----------------
Dropdown Styles 
-----------------
*/
.dropdown-container {
    display: inline-block;
    padding: 10px;
}
.dropdown-container .dropdown {
    position: relative;
}
.dropdown-container .dropdown[open] .with-down-arrow::after {
    content: "";
}
.dropdown-container .dropdown[open] summary {
    background: #ffffff10;
}
.dropdown-container .dropdown summary {
    list-style: none;
    display: inline-block;
    cursor: pointer;
    border-radius: 6px;
}
.dropdown-container .dropdown summary.avatar {
    border-radius: 50px;
}
.dropdown-container .dropdown summary.avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50px;
    display: inline-block;
    margin: 0;
}
.dropdown-container .dropdown summary .with-down-arrow {
    display: inline-flex;
    padding: 5px;
    align-items: center;
    color: #fff;
    line-height: 1;
}
.dropdown-container .dropdown summary .with-down-arrow::after {
    content: "";
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}
.dropdown-container .dropdown.left ul {
    left: 0;
}
.dropdown-container .dropdown.right ul {
    right: 0;
}
.dropdown-container .dropdown ul {
    padding: 0;
    margin: 0;
    box-shadow: 0 0 10px #00000030;
    min-width: max-content;
    position: absolute;
    top: 100%;
    border-radius: 10px;
    background-color: #fff;
    z-index: 2;
}
.dropdown-container .dropdown ul li {
    list-style-type: none;
    display: block;
    /* If you use divider & borders, it's best to use top borders */
    /*border-top: 1px solid #ccc;*/
}
.dropdown-container .dropdown ul li:first-of-type {
    border: none;
    background-color: #f2f2f2;
}
.dropdown-container .dropdown ul li p {
    padding: 10px 15px;
    margin: 0;
}
.dropdown-container .dropdown ul li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 15px;
    text-decoration: none;
    line-height: 1;
    color: #333;
}
.dropdown-container .dropdown ul li a:hover {
    color: #ff34b2;
}
.dropdown-container .dropdown ul li:first-of-type {
    border-radius: 10px 10px 0 0;
}
.dropdown-container .dropdown ul li:last-of-type {
    border-radius: 0 0 10px 10px;
}
.dropdown-container .dropdown ul li.divider {
    border: none;
    border-bottom: 1px solid #333;
    /* 
     * removes border from Li after the divider element
     * best used in combination with top borders on other LIs 
     */
}
.dropdown-container .dropdown ul li.divider ~ li {
    border: none;
}

.block {
    display: block;
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.test-mode {
    position: fixed;
    bottom: 22px;
    right: 18px;
    width: 180px;
    background-color: #c4ffc585;
    border: 3px solid #189036;
}
.test-mode h3 {
    margin: 8px 0;
    text-align: center;
    color: #157516;
}

.link-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: initial;
    box-shadow: none;
    font-weight: initial;
    padding: 0 4px;
    color: navy;
}

.header {
    height: 48px;
    background-color: #E7E7E7;
    border-bottom: 1px solid #bbb3b3;
    box-shadow: 0px 4px 20px -2px rgb(201, 201, 201);
}

.header a {
    padding: 6px 0;
}

footer {
    grid-row-start: 2;
    grid-row-end: 3;
}

.container {
    width: 920px;
    margin: 0 auto;
}

.inline-block {
    display: inline-block;
}

.flex {
    display: flex;
}
.flex-column {
    flex-direction: column;
}
.flex-row {
    flex-direction: row;
}
.justify-centre {
    justify-content: center;
}
.justify-self-end {
    justify-self: end;
}
.space-between {
    justify-content: space-between;
}
.space-evenly {
    justify-content: space-evenly;
}
.space-around {
    justify-content: space-around;
}
.align-items-center {
    align-items: center;
}
.align-items-end {
    align-items: end;
}

.text-align-right {
    text-align: right;
}

.head-user-box img {
    width: 26px;
    height: auto;
    margin-left: 10px;
}

.basket-summary {
    position: relative;
    top: -1px;
    min-width: 172px;
    height: fit-content;
    padding: 10px 14px;
    background-color: #f9f9f9;
    background: rgb(231,231,231);
    background: linear-gradient(180deg, rgba(231,231,231,1) 16%, rgba(249,249,249,1) 100%);
    border-top: 2px dotted #515151;
    border-right: 1px solid #bbb3b396;
    border-bottom: 1px solid #bbb3b396;
    border-left: 1px solid #bbb3b396;
    box-shadow: 0px 4px 20px -2px rgb(201, 201, 201);
}

.basket-summary button {
    display: inline-block;
    padding: 0;
    font-weight: initial;
    background-color: initial;
    color: initial;
    border-radius: initial;
    text-align: center;
    font-size: initial;
    box-shadow: none;
}

.basket-summary img {
    width: 18px;
}

.basket-summary .basket-contents-summary {
    padding: 0 0 12px 0;
    max-height: 122px;
    overflow: auto;
}

.basket-summary .basket-contents-summary div {
    line-height: 2;
    margin: 0;
    padding: 0;
    align-items: center;
    border: none;
    box-shadow: none;
}

.search-box-wrap {
    padding: 60px 80px;
    background-color: #E7E7E7; /* #afa156   yellowgreen   */
    border-radius: 12px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.search-box {
    min-width: 420px;
    padding: 8px 8px;
    font-size: 22px;
}

.results {
    max-width: 900px;
}
.grid-basket {
    max-width: auto;
}

.results, .grid-basket {
    margin: 40px 0;
    padding: 0;
    font-size: 20px;
    background-color: #f9f9fb;
}

.results div.result, .grid-basket-row {
    margin: 12px 0 0 0;
    padding: 14px 18px;
    align-items: center;
    border: 2px solid #E1E2E3;
    box-shadow: 0px 6px 12px rgba(225,226,227,0.3);
}

div.result:nth-child(1) {
    margin: 0;
}

.results .result div:first-of-type {
    margin-bottom: 20px;
    margin-bottom: initial;
}

.results .result span:first-of-type {
    min-width: 38%;
    overflow-x: hidden;
    text-overflow: ellipsis;
    max-width: 540px;
}

.title-row {
    font-weight: bold;
    background: rgba(235, 236, 240, 0.4);
}

.header-row {
    font-weight: bold;
}

.subgrid {
    display: grid;
    grid-template-columns: subgrid;
}

.subgrid-row {
    align-items: center;
    padding: 14px 22px;
}

.subgrid-row:hover:not(.title-row) {
    background-color: rgb(235,235,235);
}

.grid-row {
    margin: 4px 0;
    padding: 14px 18px;
    align-items: center;
    border: 2px solid #E1E2E3;
    box-shadow: 0px 6px 12px rgba(225,226,227,0.3);
}

.border-top {
    border-top: 0.07rem solid #EBECF0;
}

.border-bottom {
    border-right: 0.07rem solid #EBECF0;
    border-bottom: 0.07rem solid #EBECF0;
    border-left: 0.07rem solid #EBECF0;
}

.border-bottom-radius {
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

.results div.result:hover, .grid-row:hover {
    background-color: #fae7f9;
}

.place-items-centre{
    place-items: center;
}

.grid-1fr-col {
    grid-template-columns: 1fr;
}

.grid-2-cols {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr);
}

.grid-2-cols-auto {
    grid-template-columns: auto auto;
}

.grid-2-cols-25-75 {
    grid-template-columns: 25% 75%;
}

.grid-2-cols-card {
    grid-template-columns: 150px 150px;
}

.sub-grid-2-cols {
    grid-column: span 2;
    grid-template-columns: subgrid;
}

.grid-3-cols {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr);
}

.grid-3-cols-order-list {
    grid-template-columns: minmax(148px, 0.8fr) minmax(166px, 0.8fr) minmax(150px, 2.4fr);
    font-size: 14px;
}

.sub-grid-3-cols {
    grid-column: span 3;
    grid-template-columns: subgrid;
}

.subgrid-4-cols {
    grid-column: span 4;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    column-gap: 10px;
}

.subgrid-5-cols {
    grid-column: span 5;
    grid-template-columns: 2fr 0.6fr 0.6fr 1fr 1fr;
    column-gap: 10px;
}

.validation-summary-errors {
    margin: 4% 20%;
    display: flex;
    justify-content: center;
    background-color: #c53c3c1a;
    border-radius: 6px;
    border-style: solid;
    border-color: #e12b06;
    border-width: 1px;
    box-shadow: 3px 4px 0px 0px #b90a0a;
}

.validation-summary-errors ul {
    list-style: initial;
    color: #9f0000;
}

.field-validation-error {
    color: indianred;
}

input.input-validation-error {
    border: 1px solid #e80c4d !important;
} 

a.order-row:link {
    text-decoration: none;
}

.tab {
    order: 1;
    margin-right: 0.1rem;
    cursor: pointer;
    background: #90CAF9;
    font-weight: bold;
    transition: background ease 0.2s;
}

.tab.active {
    background: #efefef;
    border-left: 4px solid navy;
}

.tab a {
    display: block;
    padding: 1rem 2rem;    
}

.add-dns-container {
    border: 1px solid #797a83;
    width: fit-content;
    align-items: center;
    text-align: center;
    margin: 24px auto 30px auto;
    border-radius: 4px;
    padding: 10px 24px;
    background-color: #f7f7f9;
}

.card {
    position: relative;
    width: 285px;
    height: 180px;
    margin: 20px;
    padding: 0;
    background-image: url(/imgs/credit-card-bg-285x180.png);
    background-size: contain;
    color: #7a5f0f;
    font-size: 18px;
    font-weight: bold;
}

.card input[type=radio] {
    position: absolute;
    top: 134px;
    right: 30px;
    scale: 1.6;
}

.card .card-brand {
    position: absolute;
    top: 20px;
    right: 30px;
}

.card .card-funding {
    position: absolute;
    top: 50px;
    right: 30px;
}

.card .card-num {
    position: absolute;
    top: 108px;
    left: 28px;
}

.card .card-expires {
    position: absolute;
    top: 136px;
    left: 28px;
}


.w12-5 {
    width: 12.5%;
}

.w25 {
    width: 25%;
}

.w50 {
    width: 50%;
}

.w100 {
    width: 100%;
}

.mt20 {
    margin-top: 20px;
}

.mb04 {
    margin-bottom: 4px;
}

.mb20 {
    margin-bottom: 20px;
}

.mr20 {
    margin-right: 20px;
}

.ml20 {
    margin-left: 20px;
}
.ml60 {
    margin-left: 60px;
}

label {
    font-size: 14px;
}

input[type=text], input[type=password], input[type=number] {
    padding: 8px 8px;
    font-size: 18px;
}

.capitalise {
    text-transform: uppercase;
}

select {
    padding: 8px 8px;
    font-size: 18px;
    background-color: transparent;
    border-style: solid;
    border-color: #898989;
    border-width: 1px;
    border-radius: 2px;
}

.partial label {
    display: flex;
    flex-direction: column;
}

.partial > label {
    margin: 22px 0;
}

.disabled {
    cursor: not-allowed !important;
}

.label-text {
    display: inline-block;
    width: fit-content;
    padding: 8px 8px 8px 8px;
    color: #393939;
    background-color: #f4f4f4;
    border: .1rem solid #c6c6c6;
    border-radius: 8px;
    font-size: 18px;
}

/* ref: https://uiverse.io/adamgiebl/new-bird-34 */
.cssbuttons-io-button {
    background: #824bd5;
    color: white;
    font-family: inherit;
    padding: 0.35em;
    padding-left: 1.2em;
    font-size: 17px;
    font-weight: 500;
    border-radius: 0.4em;
    border: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 1.6em -0.6em #714da6;
    overflow: hidden;
    position: relative;
    height: 2.8em;
    padding-right: 3.3em;
    margin-left: 4px;
    cursor: pointer;
}

.cssbuttons-io-button .icon {
    background: white;
    margin-left: 1em;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
    border-radius: 0.7em;
    box-shadow: 0.1em 0.1em 0.6em 0.2em #7b52b9;
    right: 0.3em;
    transition: all 0.3s;
}

.cssbuttons-io-button:hover .icon {
    /*width: calc(100% - 0.6em);*/
}

.cssbuttons-io-button:hover {
    background-color: #be0fef;
}

.cssbuttons-io-button .icon svg {
    width: 1.1em;
    transition: transform 0.3s;
    color: #7b52b9;
}

.cssbuttons-io-button:hover .icon svg {
    transform: translateX(0.1em);
}

.cssbuttons-io-button:active .icon {
    transform: scale(0.95);
}

/*

moved to ~line 609, this code is for a blue button

.button {
    display: inline-block;
    padding: 8px 22px;
    margin: 10px;
    font-size: 18px;
    font-weight: normal;
    color: #fff;
    background-image: linear-gradient(to bottom right, #00c6ff, #0072ff);
    border: none;
    border-radius: 8px;
    box-shadow: 0px 4px 0px #0072ff;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 0px #0072ff;
}

.button:active {
    transform: translateY(0px);
    box-shadow: none;
    background-image: linear-gradient(to bottom right, #0072ff, #00c6ff);
}
*/

button:disabled {
    color: initial;
    background-image: none;
    box-shadow: none;
    cursor: not-allowed;
}

button.inactive, button.inactive:hover {
    opacity: 0.4;
}

.grid {
    display: grid;
}

.sub-grid-4-cols {
    grid-column: span 4;
    grid-template-columns: subgrid;
}

.grid-row:hover {
}

.grid-basket {
    position: relative;
    grid-template-columns: repeat(3, 1fr) 42px;
    column-gap: 10px;
}

.grid-basket-row {
}

.grid-basket-row img {
    width: 28px;
    height: auto;
}

.select-label {
    font-size: 14px;
}

input, select {
    color: #393939;
    background-color: #f4f4f4;
    border: .1rem solid #c6c6c6;
    border-radius: 8px;
}

.contact-names-row {
    border-bottom: 2px solid silver;
    margin-bottom: 20px;
    background-color: #fdf2ff;
    padding: 8px 12px;
    border-radius: 6px;
}

/*https://codepen.io/randhawa/pen/PjvEmg */
.select-menu {
    max-width: 330px;
    max-width: initial;
    margin: 50px auto;
    margin: 2px 0;
}

.select-menu .select-btn {
    display: flex;
    height: 55px;
    background: #fff;
    padding: 20px;
    padding: 4px 0;
    font-size: 16px;
    font-weight: 400;
    border-radius: 8px;
    align-items: center;
    cursor: pointer;
    justify-content: space-between;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.select-menu .options {
    position: absolute;
    left: -9999px;
    width: 330px;
    overflow-y: auto;
    max-height: 295px;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation-name: fadeInDown;
    -webkit-animation-name: fadeInDown;
    animation-duration: 0.35s;
    animation-fill-mode: both;
    -webkit-animation-duration: 0.35s;
    -webkit-animation-fill-mode: both;
}

.select-menu .options .option {
    display: flex;
    height: fit-content;
    min-height: 75px;
    cursor: pointer;
    padding: 0 16px;
    border-radius: 8px;
    align-items: center;
    background: #fff;
}

.select-menu .options .option:hover {
    background: #f2f2f2;
}

.select-menu .options .option .option-text {
    font-size: 14px;
}

.select-menu.active .options {
    left: initial;
    display: block;
    opacity: 0;
    z-index: 10;
    animation-name: fadeInUp;
    -webkit-animation-name: fadeInUp;
    animation-duration: 0.4s;
    animation-fill-mode: both;
    -webkit-animation-duration: 0.4s;
    -webkit-animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        transform: translate3d(0, 30px, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }

    to {
        transform: translate3d(0, 20px, 0);
        opacity: 0;
    }
}

/* modal confirm dialog */
.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1;
}

.modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: space-evenly;
    left: 38%;
    gap: 0.4rem;
    width: 450px;
    padding: 1.0rem 1.3rem;
    min-height: 250px;
    position: absolute;
    top: 20%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    z-index: 2;
}

.modal .flex {
    display: flex;
    align-items: center;
}

.modal input {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
}

.modal p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

button {
    cursor: pointer;
    border: none;
    font-weight: 600;
}

button {
    display: inline-block;
    padding: 0.8rem 1.4rem;
    font-weight: 700;
    background-color: #8d4c9a;
    color: white;
    border-radius: 5px;
    text-align: center;
    font-size: 1em;
    box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.45);
}

button:hover {
    opacity: 0.92;
}

button:active {
    background-color: #3e8e41;
    box-shadow: 0 1px #666;
    transform: translateY(3px);
}

.button-close {
    padding: 0.5rem 0.7rem;
    background: rgb(153, 63, 160);
    border-radius: 25%;
    position: absolute;
    top: 18px;
    right: 14px;
}
/* end modal dialog */

.button, a.button {
    display: inline-block;
    margin: 10px;
    padding: 0.8rem 1.4rem;
    background-image: none;
    border: none;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-weight: 700;
    background-color: #8d4c9a;
    color: white;
    text-align: center;
    font-size: 1em;
    box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.45);
}

a.button:hover {
    text-decoration: none;
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    background-color: #3e8e41;
    box-shadow: 0 1px #666;
    transform: translateY(3px);
    transform: translateY(0px);
    box-shadow: inherit;
    background-image: linear-gradient(to bottom right, #0072ff, #00c6ff);
    background-image: none;
}

/* spinner */
.lds-spinner,
.lds-spinner div,
.lds-spinner div:after {
    box-sizing: border-box;
}

.lds-spinner {
    color: currentColor;
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3.2px;
    left: 36.8px;
    width: 6.4px;
    height: 17.6px;
    border-radius: 20%;
    background: currentColor;
}

.lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}

.lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}

.lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}

.lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}

.lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}

.lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}

.lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}

.lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}

.lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}

.lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}

.lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}

.lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}

@keyframes lds-spinner {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}
/* end spinner */

.payment-line-item {
    margin: 0 0 4px 0;
    line-height: 1.6;
}

/* small spinner */
.custom-loader {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 135deg at top,#5E36F4 90deg, #0000 0) 0 calc(50% - 2px)/8.5px 4.25px, radial-gradient(farthest-side at bottom left,#0000 calc(100% - 3px),#5E36F4 calc(100% - 2.5px) 99%,#0000) top right/50% 50% content-box content-box, radial-gradient(farthest-side at top,#0000 calc(100% - 3px),#5E36F4 calc(100% - 2.5px) 99%,#0000) bottom /100% 50% content-box content-box;
    background-repeat: no-repeat;
    animation: s1 2s infinite linear;
}

@keyframes s1 {
    100% {
        transform: rotate(1turn)
    }
}
/* end small spinner */