:root {
    --gray-offset: rgba(0, 0, 0, 0.03);
    --gray-border: rgba(0, 0, 0, 0.15);
    --gray-light: rgba(0, 0, 0, 0.4);
    --gray-mid: rgba(0, 0, 0, 0.7);
    --gray-dark: rgba(0, 0, 0, 0.9);
    --body-color: var(--gray-mid);
    --headline-color: var(--gray-dark);
    --accent-color: #ed5f74;
    --radius: 6px;
    --grey: #F0F0F0;
    --green-1: #14A800;
    --green-2: #0D6B00;
}

/* Remove arrow buttons from <input type="number"/> */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

:root {
    --progColor: linear-gradient(100.48deg, #0D6B00 11.21%, #14A800 98.15%);
    --progHeight: 20px;
}

@media only screen and (max-width: 1000px) {
    .logo {
        display: block;
        flex: 0 0 100px;
        width: 100px;
        height: 27px;
        background: url(../images/logo.svg) no-repeat;
        background-size: 100% auto;
    }
}

.checkout-header {
    display: grid;
    gap: 20px;
    grid-template-areas: "logo menu";
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    align-items: center;
    margin-inline: auto;
}

.checkout-header .progress-container {
    display: none;
}

@media only screen and (min-width: 768px) {
    .checkout-header {
        grid-template-areas: "logo progress menu";
        grid-template-columns: 1fr 2fr 1fr;
    }

    .checkout-header .progress-container {
        display: block;
        margin-block-start: -12px;
        grid-area: progress;
        max-width: 291px;
        width: 100%;
        justify-self: center;
    }
}

.checkout-header .logo {
    grid-area: logo;
    justify-self: self-start;
}

.checkout-header .menu {
    grid-area: menu;
    justify-self: self-end;
}

.progress-bar {
    --set-offset: 3;
    --pct-offset: 33.333%;

    background-color: #14A800 !important;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 80px;
}

#checkoutSteps {
    --circle-width: 24px;

    height: 4px;
    background-color: #F6F6F6;
    border-radius: 80px;
}

input[disabled] ~ label {
    cursor: default !important;
}

h1 {
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
}

@media (min-width: 640px) {
    h1 {
        font-style: normal;
        font-weight: 600;
        font-size: 45px;
        line-height: 56px;
        color: #3D3D3D;
        letter-spacing: 0;
    }
}

@media (min-width: 992px) {
    h2 {
        font-size: 35px;
        line-height: 48px;
        letter-spacing: 0;
    }
}

h2 {
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
}

.card {
    background: #FFFFFF;
    border: 0.5px solid #14A800;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    text-align: center;
    color: #3D3D3D;
    transition: background 4s ease-out;
    -webkit-transition: background 4s ease-out;
    -moz-transition: background 4s ease-out;
    -o-transition: background 4s ease-out;
}

.card:hover {
    background: linear-gradient(100.48deg, #0D6B00 11.21%, #14A800 98.15%);
    border: 0.4px solid #F3F3F3;
    color: white;
}

.card:hover svg path {
    fill: #FFFFFF;
    color: #FFFFFF;
}

.primary-green {
    color: #14A800;
}

.card:hover .primary-green {
    color: #FFFFFF;
}

p {
    font-family: 'Work Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 21px;
}

.container {
    max-width: 1200px;
}

.impact-section {
    background-color: #F6F6F6;
}

.impact-section h2 {
    text-align: center;
}

.impact-section .card-img-top {
    width: 100px;
    height: 100px;
}

.impact-section .card {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.impact-section h3 {
    font-family: 'Work Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 28px;
    line-height: 40px;
}

.impact-section p {
    font-family: 'Work Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
}

.impact-section .card {
    transition: none;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
}

.impact-section .card:hover {
    background: white;
    border: initial;
    color: initial;
}

.button-primary {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 18px 25px 18px 25px;
    gap: 20px;
    background: #14A800;
    border-radius: 4px;
    font-family: 'Work Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 28px;
    line-height: 16px;
    color: #FFFFFF;
    height: 68px;
}

.button-primary:disabled {
    background-color: rgba(20, 168, 0, 0.63);;
}

.button-secondary {
    background: #14A800;
    border-radius: 4px;
    font-family: 'Work Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 16px;
    color: #FFFFFF;
    height: 48px;
}

.total {
    font-family: 'Work Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 28px;
    line-height: 48px;
}

.btn-link {
    font-family: 'Work Sans', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
    text-decoration-line: underline;
    color: #3D3D3D;
}

form {
    font-family: 'Work Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
}

.circle {
    width: var(--circle-width);
    height: var(--circle-width);
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
    background: #f6f6f6;
    position: absolute;
    font-family: 'Work Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #3D3D3D;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle.filled {
    background: #14A800;
    color: #FFFFFF;
    z-index: 1;
}

.circle::after {
    --text-offset: 26px;

    position: absolute;
    color: #BABABA;
    font-size: 11px;
    font-family: 'Work Sans', sans-serif;
    left: 50%;
    transform: translate(-50%, var(--text-offset));
    cursor: text;
}

.step1 {
    left: 0;
}

.step1::after {
    content: "Product";
}

.step2 {
    left: calc(var(--pct-offset) - var(--circle-width) * 1 / var(--set-offset));
}

.step2::after {
    content: "Location";
}

.step3 {
    left: calc(var(--pct-offset) * 2 - var(--circle-width) * 2 / var(--set-offset));
}

.step3::after {
    content: "No. of trees";
}

.stepLast {
    left: calc(100% - var(--circle-width));
}

.stepLast::after {
    content: "Finalize";
}

.circle.current {
    width: 32px;
    height: 32px;
    transform: translateX(calc((32px - var(--circle-width)) / -2));
    font-size: 15px;
    font-weight: 600;
}

.circle.current::after {
    font-size: 13px;
    font-weight: 400;
    color: #3D3D3D;
    transform: translate(-50%, calc(var(--text-offset) - 1px));
}

.hint {
    font-size: 11px;
}

main > :last-child {
    margin-block-end: 4rem;
}

#show-password {
    cursor: pointer;
}

#monthlyTreePlanting::before {
    content: "";
    position: absolute;
    top: 8px;
    left: -8px;
    background: url("../images/badge-most-popular.svg");
    width: 162px;
    height: 51px;
}

#payment-info-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

#payment-info {
    max-width: 30.938rem;
    width: 100%;
    border: 1px solid #BABABA;
    border-radius: 0.5rem;
    background: #FBFBFB;
    margin-inline: auto;
}

#info-spinner {
    margin-block: 3rem;
}

#payment-info .details {
    font-weight: 400;
    font-size: 12px;
}

#payment-info .light {
    color: #878787;
}

#payment-info .normal {
    color: #3D3D3D;
}

#payment-info .left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

#payment-info .right {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

#location-info, #tree-info, #subtotal-info, #vat-info, #price-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding-inline: 3.2rem;
}

#location-info, #tree-info, #subtotal-info, #vat-info {
    padding-block: 0.5rem;
    position: relative;
}

#location-info img, #tree-info img, #subtotal-info img, #vat-info img {
    position: absolute;
    left: 1.6rem;
    width: unset;
    top: 50%;
    transform: translate(-50%, -50%);
}

#payment-info #total-amount {
    margin-inline-start: 0.25rem;
}

#subtotal-info img {
    left: 1.55rem;
}

#vat-info img {
    height: 0.875rem;
}

#price-info {
    border-top: 1px solid #BABABA;
    padding-block: 1rem;
    font-weight: 600;
    font-size: 15px;
}

#total-addendum,
#location-info #location-rate {
    margin-inline-start: 0.25rem;
}

#total-addendum {
    font-size: 12px;
}

#currency-symbol {
    margin-inline-end: 0.25rem;
}

#sticky-banner {
    --_bg-color: #777;
    --_btn-color: #999;

    height: 4.375rem;
    width: 100%;
    background: var(--_bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    z-index: 999;
    transition: 0.5s all;
}

#sticky-banner:has(.location-selected),
#sticky-banner:has(button:not([disabled])) {
    --_bg-color: var(--green-2);
    --_btn-color: var(--green-1);
}

#sticky-banner button.continue {
    background: var(--_btn-color);
    transition: 0.5s all;
    height: 2rem;
    font-size: 1rem;
}

#sticky-banner button.continueLink {
    background: none;
    text-decoration: underline;
    transition: 0.5s all;
    font-size: 1rem;
    height: 1rem;
}

#sticky-banner .loader {
    color: #ffffff;
}

#selection-container {
    background-color: var(--color-bg);
    color: var(--color-font-primary);
    width: 37.938rem;
    max-width: 100%;
    align-items: center;
    padding-block: 1rem;
    border-radius: 0.5rem;
    margin-inline: auto;
}

#tree-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /*height: 9.2rem;*/
    width: 100%;
    /*max-width: 380px;*/
    margin-block-end: 1.5rem;
}

#sectionTree {
    padding: unset;
}

.form-trees__selection {
    margin-bottom: 1.5rem;
}

.form-trees__selection__input {
    z-index: 1;
    width: clamp(50px, 100%, 109px);
}

.form-trees__amount__label {
    margin-bottom: 0.5rem;
    font-size: 19px;
    display: flex;
    align-items: center;
}

.form-trees__amount__label span {
    line-height: 28px;
}

.question-mark {
    user-select: none;
    border-radius: 50%;
}

#tree-input-container .form-trees__hint {
    position: absolute;
    bottom: -1.25rem;
    margin: unset;
    width: fit-content;
    max-width: unset;
}

#form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-block-end: 0.25rem;
    padding: unset;
}

#input-button-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-block-start: 0.75rem;
}

#user-input-container {
    position: relative;
}

#treeline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

#form-trees__amount__control {
    text-align: center;
}

#form-trees__amount__control:focus {
    outline: 0.0625rem solid #BABABA !important;
}

#form-trees__amount__control[can-validate]:invalid,
#form-trees__amount__control:has(~ #treesErrorMessage:not([hidden])) {
    outline: 0.0625rem solid var(--treeapp-red) !important;
}

#form-trees__amount__control:focus:valid {
    outline: 0.0625rem solid var(--treeapp-primary) !important
}

#treesMinMessage {
    color: var(--treeapp-dark-grey);
}
#form-trees__amount__control[can-validate]:invalid ~ #treesMinMessage {
    color: var(--treeapp-red);
}

button.continue:focus,
button#right-amount-question:target {
    outline: 0.0625rem solid #BABABA !important;
}

#tree-number-form {
    display: block;
    max-width: 380px;
    width: 100%;
    padding-block-start: 1rem;
}

#selection-info {
    display: grid;
    grid-template-areas:
          "location location-amount"
          "total-text total-amount";
    grid-template-columns: 12fr 7fr;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    min-height: 5.8125rem;
}

#selection-info[vat] {
    grid-template-areas:
          "location location-amount"
          "vat vat-amount"
          "total-text total-amount";
    min-height: 8.625rem;
}

#selection-info .left {
    text-align: start;
}

#selection-info .right {
    text-align: end;
}

#selection-info #location {
    grid-area: location;
    font-weight: 600;
}

#selection-info #location-amount {
    grid-area: location-amount;
}

#selection-info #vat {
    grid-area: vat;
}

#selection-info #vat-amount {
    grid-area: vat-amount;
}

#selection-info #total-text {
    grid-area: total-text;
}

#selection-info #total-amount {
    grid-area: total-amount;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#total-text p,
#total-amount p {
    margin: unset;
    line-height: 1.5rem;
    font-size: 1.5rem;
}

#total-text p {
    text-align: left;
}

#total-amount p {
    text-align: right;
}

@media only screen and (min-width: 480px) {
    #total-text p,
    #total-amount p {
        font-size: 1.75rem;
    }

    #total-text p {
        line-height: 2rem;
    }

    #total-amount p {
        line-height: 1.75rem;
    }
}

#selection-info #total-text,
#selection-info #total-amount {
    padding: unset;
    margin: unset;
}

#extras-container {
    display: grid;
    margin-inline: auto;
    grid-template-areas:
            "code"
            "other";
    justify-items: center;
    width: 37.938rem;
    max-width: 100%;
    padding-block: 1rem;
    margin-block-end: 1rem;
}

#premiumCodeQuestion {
    grid-area: code;
    position: relative;
    text-align: center;
    width: fit-content;
}

#premiumCodeQuestion[disabled] {
    pointer-events: all;
    cursor: default;
}

#premiumCodeQuestion[disabled]::after {
    content: "Please select at least 10 trees";
    position: absolute;
    width: 10rem;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    visibility: hidden;
    background: var(--treeapp-primary);
    color: #FFF;
    border-radius: var(--radius);
    font-size: 1rem;
    text-align: center;
}

#premiumCodeQuestion:hover[disabled]::after {
    visibility: visible;
}

#selection-info.loading {
    grid-template-areas: "loading";
    grid-template-columns: 1fr;
    align-items: center;
    justify-content: center;
}

#info-loader {
    grid-area: loading;
    margin: 0 auto;
}

#subtotal {
    display: flex;
    text-decoration: line-through;
}

#total {
    display: flex;
    padding-inline-start: 1rem;
}

#totalPriceCurrency, #subtotalPriceCurrency {
    margin-inline-end: 0.5rem;
}

#extra {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1;
}

#premiumCodeApplied {
    font-size: 14px;
    align-items: center;
}

#right-amount-question {
    padding: unset;
    margin: 4px;
}

@media only screen and (min-width: 480px) {
    main > :last-child {
        margin-block-end: 5rem;
    }

    #sticky-banner {
        height: 6rem;
    }

    #sticky-banner button.continue {
        height: 4rem;
        font-size: 1.375rem;
    }

    #sticky-banner button.continueLink {
        height: 1rem;
        font-size: 1.375rem;
    }

    #extras-container {
        grid-template-areas: "code other";
        grid-template-columns: repeat(2, 1fr);
        justify-items: stretch;
    }

    #premiumCodeQuestion {
        text-align: left;
    }
}

@media only screen and (max-width: 480px) {
    #selection-container h3 {
        font-size: 1.25rem;
    }

    #tree-input-container label {
        font-size: 1rem;
    }
}