/**********************
Global
**********************/
@import url("fonts.css");

:root {
    --primary-green: #338c45;
    --lime-green: #95CA57;
    --lime-green-transparent: #95ca5742;
    --barn-red: #E0564C;
    --darkgrey: #494949;
    --grey: #8D8D8D;
    --mediumgrey: #CBCBCB;
    --lightgrey: #F7F7F7;
    --orange: #F68C3D;
    --potato-brown: #694B2C;
    --plate-pass-brown: #48321E;
    --corn-yellow: #FAD467;
    --corn-yellow-transparent: rgba(250, 212, 103, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: "Rebrand", sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.noscroll {
    overflow-y: hidden;
}


main {
    min-height: calc(100vh - 700px);
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
optgroup,
select,
textarea {
    font: inherit;
    color: inherit;
    background-color: transparent;
    display: block;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    border: none;
}

input,
select,
textarea {
    border: 1px solid lightgray;
    padding: 10px;
}

textarea {
    resize: none;
}

input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: var(--lime-green) auto 1px;
}

input.error:focus-visible{
    outline: var(--barn-red) auto 1px;
}

img,
picture,
video {
    display: block;
    height: auto;
    width: 100%;
}


/*********
SWAL
***********/
body.swal2-height-auto {
    height: 100% !important;
}

/*********
Container
***********/

.container {
    max-width: 400px;
    padding: 40px 32px;
    margin: 0 auto;
}

.container.w500 {
    max-width: 500px;
}

.container.w600 {
    max-width: 600px;
}

.container.w800 {
    max-width: 800px;
}

.container.w1000 {
    max-width: 1000px;
}

.container.w1200 {
    max-width: 1200px;
}

@media (max-width: 1000px) {
    .container {
        padding: 20px 16px;
    }
}

/*********
Header
***********/

.h1 {
    text-align: center;
}

/************
Button
************/
.button {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-green);
    color: white;
    border-radius: 6px;
    text-transform: uppercase;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 45px;
    appearance: none;
    cursor: pointer;
    width: 100%;
    line-height: 24px;
    z-index: 2;
}

.button.noHover:hover {
    background-color: var(--primary-green);
}

.button:hover {
    background-color: var(--lime-green);
}

.button:focus-visible {
    outline: var(--lime-green) auto 1px;
}

.button.outlined {
    background: transparent;
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
}

.button.outlined:hover {
    background-color: var(--lime-green-transparent);
}

.button.lime {
    background-color: var(--lime-green);
}

.button.brown {
    background-color: var(--potato-brown);
}

.button.text {
    color: var(--darkgrey);
    background: transparent;
    border-color: transparent;
}

.button.loading {
    position: relative !important;
    pointer-events: none !important;
    color: transparent !important;
}

.button.loading::after,
.button.loading.outlined::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: loading 1s ease infinite;
}

.button.loading::after {
    border-top-color: #fff;
}

.button.loading.outlined::after {
    border-top-color: var(--primary-green);
}

.button svg {
    fill: white;
}

.button.loading svg {
    fill: transparent;
}

.button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.fixedButton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: var(--primary-green);
    text-align: center;
    padding: 25px 20px;
    font-family: "Eames Century Modern", sans-serif;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0;
    text-transform: none;
}

.fixedButton:hover {
    background-color: var(--lime-green);
}

.fixedButton svg {
    fill: white;
}

.fixedButton.loading {
    position: fixed !important;
}

.fixedButton.loading svg {
    fill: transparent;
}

.linkButton {
    color: var(--primary-green);
    text-decoration: underline;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
}

@keyframes loading {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/************
Inputs
************/

.floatingLabelInput {
    position: relative;
}

.floatingLabelInput input {
    padding-top: 16px;
}

.floatingLabelInput label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    transition: 200ms;
    line-height: 15px;
    pointer-events: none;
    color: var(--darkgrey);
}

.floatingLabelInput label::after {
    content: attr(data-label);
    opacity: 1;
}

.floatingLabelInput input:not(:placeholder-shown) + label,
.floatingLabelInput input:focus + label {
    top: 10px;
    font-size: 11px;
}

.floatingLabelSelect {
    position: relative;
}

.floatingLabelSelect label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    transition: 200ms;
    line-height: 15px;
    pointer-events: none;
    color: var(--darkgrey);
}

.floatingLabelSelect label::after {
    content: attr(data-label);
    opacity: 1;
}

.floatingLabelSelect select:not(:invalid) + label {
    top: 10px;
    font-size: 11px;
}

.floatingLabelTextArea {
    position: relative;
}

.floatingLabelTextArea textarea {
    padding-top: 25px;
}

.floatingLabelTextArea label {
    position: absolute;
    top: 14px;
    left: 16px;
    transition: 200ms;
    line-height: 15px;
    pointer-events: none;
    color: var(--darkgrey);
}

.floatingLabelTextArea label::after {
    content: attr(data-label);
    opacity: 1;
}

.floatingLabelTextArea textarea:not(:placeholder-shown) + label,
.floatingLabelTextArea textarea:focus + label {
    top: 10px;
    font-size: 11px;
}

.selectBox {
    position: relative;
    font-family: "Eames Century Modern", sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: var(--primary-green);
    text-align: center;
    display: flex;
    border: 1px solid var(--primary-green);
    border-radius: 6px;
    line-height: 1;
    height: 100%;
    align-items: center;
}

.selectBox input[type="checkbox"], .selectBox input[type="radio"] {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.selectBox label {
    width: 100%;
    pointer-events: none;
    padding: 19px 12px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.selectBox.outlined:hover input:not(:checked) ~ label {
    background: var(--lime-green-transparent);
}

.selectBox.outlined:hover input:not(:checked) ~ .selectBoxActions {
    background: var(--lime-green-transparent);
}

.selectBox input:checked + label {
    background: var(--primary-green);
    color: white;
}

.selectBox input[type="checkbox"]:disabled, .selectBox input[type="radio"]:disabled {
    cursor: not-allowed;
}

.textarea.error + label {
    color: var(--barn-red);
}

.textarea.error::placeholder {
    color: var(--barn-red);
}

.input, .select, .textarea {
    background: white;
}

.input.error + label {
    color: var(--barn-red);
}

input.error::placeholder {
    color: var(--barn-red);
}

.inputIcon {
    position: relative;
}

.inputIcon::before {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    z-index: 2;
}

.inputIcon .input {
    padding-left: 32px;
}

.inputIcon label {
    padding-left: 16px;
}

.inputIcon.money::before {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMzIwIDUxMiI+PCEtLSEgRm9udCBBd2Vzb21lIEZyZWUgNi40LjIgYnkgQGZvbnRhd2Vzb21lIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20gTGljZW5zZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tL2xpY2Vuc2UgKENvbW1lcmNpYWwgTGljZW5zZSkgQ29weXJpZ2h0IDIwMjMgRm9udGljb25zLCBJbmMuIC0tPjxzdHlsZT5zdmd7ZmlsbDojNDk0OTQ5fTwvc3R5bGU+PHBhdGggZD0iTTE2MCAwYzE3LjcgMCAzMiAxNC4zIDMyIDMyVjY3LjdjMS42IC4yIDMuMSAuNCA0LjcgLjdjLjQgLjEgLjcgLjEgMS4xIC4ybDQ4IDguOGMxNy40IDMuMiAyOC45IDE5LjkgMjUuNyAzNy4ycy0xOS45IDI4LjktMzcuMiAyNS43bC00Ny41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
    font-size: 14px;
    font-weight: lighter;
}

.input,
.select,
textarea {
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid var(--mediumgrey);
    font-size: 16px;
    color: var(--darkgrey);
}

.select {
    appearance: none;
    background-image: url("/assets/img/icons/select_arrow.svg");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: calc(100% - 18px);
}

.select.error + label {
    color: var(--barn-red);
}

.input:disabled {
    background-color: gainsboro;
}

.input::placeholder {
    color: var(--darkgrey);
}

.customCheckbox {
    position: relative;
    display: flex;
    column-gap: 10px;
}

.customCheckbox .smallLabel, .customCheckbox .smallLabel a {
    font-size: 12px;
    font-weight: lighter;
    color: var(--darkgrey);
}

.customCheckbox input[type=checkbox] {
    background-color: white;
}

.customCheckbox input[type=checkbox]:checked + label::after {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48c3R5bGU+LmF7b3BhY2l0eTouOTtmaWxsOiMzNDhlNDZ9PC9zdHlsZT48cGF0aCBjbGFzcz0iYSIgZD0ibTAgNjFsMTEtMTAgMjAgMjQgNTctNzVoMWwxMSAxMHYxbC03MCA4OWgtMWwtMjktMzh6Ii8+PC9zdmc+);
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    color: var(--primary-green);
    text-align: center;
    position: absolute;
    left: 12px;
    top: 12px;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 24px;
    line-height: 24px;
}

.checkbox {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 1px solid var(--mediumgrey);
    border-radius: 0px;
}

input.error, select.error, textarea.error {
    border-color: var(--barn-red);
    font-weight: normal;
    color: var(--darkgrey);
}

.quantityInput {
    position: relative;
    width: fit-content;
    border-radius: 4px;
    border: 1px solid var(--mediumgrey);
    max-width: 80px;
}

.quantityInputDecrease, .quantityInputIncrease {
    width: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    background: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.quantityInputDecrease {
    left: 1px;
    padding-left: 14px;
}

.quantityInputIncrease {
    right: 1px;
    padding-right: 14px;
}

.quantityInput input {
    border: none;
    padding: 10px 30px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--darkgrey);
}

.quantityInput input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type=number] {
    -moz-appearance: textfield;
}

/************
Credit Card Form
************/
#creditCardInputs .floatingLabelInput, #creditCardInputs .floatingLabelSelect {
    margin-bottom: 14px;
}

#creditCardInputs .floatingLabelInput:last-of-type {
    margin-bottom: 25px;
}

/************
Loader
************/

.loader {
    display: none;
}

.loader.active {
    animation: spin 1s linear infinite;
    color: #338e4578;
    width: 24px;
    height: 24px;
    display: block;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    100% {
        transform: rotate(1turn);
    }
}

/************
Dialog
************/
.dialog {
    display: none;
    border: none;
    width: 100%;
    height: 100%;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    position: fixed;
    z-index: 999999999999999;
    padding: 0;
    top: 0;
    left: 0;
    background-color: white;
}

.dialog[open] {
    display: block;
}

.dialogBody {
    max-width: 400px;
    padding: 0 20px 100px 20px;
    margin: 0 auto;
    position: relative;
}

.dialogTopBar {
    display: grid;
    grid-template-columns: 1fr min-content;
    background: var(--primary-green);
    align-items: center;
    padding: 20px;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 3;
}

.dialogTopBarTitle {
    font-family: "Eames Century Modern", sans-serif;
    color: white;
    font-size: 18px;
    font-weight: bold;
    justify-self: center;
    text-align: center;
}

.dialogTopBarClose {
    width: auto;
    color: white;
    cursor: pointer;
}

.dialogTitle {
    color: var(--primary-green);
    font-family: "Eames Century Modern", sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.dialogSubTitle {
    color: var(--darkgrey);
    text-align: center;
    font-weight: lighter;
    font-size: 16px;
}

.dialogLoader.active {
    position: absolute;
    left: 0;
    height: 100%;
    width: 100%;
    background: white;
    z-index: 2;
}

.dialog form .button {
    margin-top: 20px;
}

@media (max-width: 1000px) {
    .dialogTopBar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

mt-modal:not(:defined) {
    display: none;
}

/************
Links
************/
.link {
    font-size: 14px;
    text-decoration: underline;
    color: var(--darkgrey);
    font-weight: lighter;
}

/************
Swal
************/

.mtSwal .swal2-actions {
    padding: 0 1em;
}

.mtSwal .swal2-actions button {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-transform: uppercase;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 45px;
    appearance: none;
    cursor: pointer;
    width: 100%;
    line-height: 24px;
    z-index: 2;
}

.mtSwal .swal2-actions button.swal2-confirm {
    background: var(--primary-green);
}

.mtSwal .swal2-actions button.swal2-deny {
    background: var(--barn-red);
}

.mtSwal .swal2-actions button.swal2-cancel {
    background: var(--darkgrey);
}

.noBorder {
    border: none;
}

.swalOopsIcon {
    border: none;
    width: 150px;
    height: auto;
}

.mtSwal hgroup {
    margin-bottom: 20px;
}

.swalTitle {
    font-family: "Eames Century Modern", sans-serif;
}

.mtSwal h2, .mtSwal h4 {
    font-family: "Eames Century Modern", sans-serif;
}

/************
Utility
************/

.error {
    color: var(--barn-red);
    font-size: 16px;
    font-weight: bold;
    position: relative;
}

/* don't apply margin to floating inputs */
.error:not([placeholder=" "]) {
    margin-bottom: 20px;
}

/****
One Trust
 */

#ot-sdk-btn-floating {
    display: none;
}

#ot-sdk-btn {
    text-align: center;
    border: none !important;
    color: white !important;
    text-decoration: underline;
    max-width: 300px;
    margin: 20px auto 0;
}

/******
App
 */

html.app main {
    padding-bottom: 74px;
}

html.app #attentive_overlay,
html.app .needsclick,
html.app .kl-private-reset-css-Xuajs1 {
    display: none !important;
}

/******
Surcharge
 */

#surcharge {
    background-color:  #95ca57;
    font-size: 20px;
    padding: 5px 10px 3px 10px;
    line-height: 1;
    text-align: center;
    width: 100%;
    color: #FFFFFF;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.kl-teaser-VWqG8t, .kl-teaser-QVniSn {
    bottom: 28px !important;
    z-index: 9 !important;
}

@media(max-width: 800px) {
    .kl-teaser-VWqG8t, .kl-teaser-QVniSn {
        bottom: 48px !important;
    }
}
