/* CSS imports */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* CSS variables */
:root {
    --color-primary-blue: #111827;
    --color-primary-beige: #F3EDE8;
    --color-blue-shade: #D1D7E2;
    --color-secondary: #FEF2F2;
    --color-signal-error: #B00005;

    --color-banner-background: var(--color-primary-beige);
    --color-banner-text: var(--color-black);

    --color-black: #1b1b1b;
    --color-gray-1: #E9E9E9;
    --color-gray-2: #BEC5C8;
    --color-gray-3: #828789;
    --color-gray-4: #626667;
    --color-white: #fff;

    --border-main-clr: rgba(225, 230, 239, 1);

    --side-spacing: min(80px, calc(100% * (80 / 1440)));
    --max-page-width: 1440px;
    --background-placeholder: url(https://cdn.erply.com/images/519899/logo-ilma-sloganita.jpg);
    --primary-font: 'Raleway', sans-serif;
    --modal-overlay-background: rgba(28, 28, 28, 0.5);
    --modal-content-background: var(--color-white);
    --mobile-view-start: 600px;
    /* This currently sadly can't yet be used inside a media query argument */
    --border-radius: 2px;
}


/* Global style overwrites */
* {
    box-sizing: border-box;
    overflow-wrap: break-word;
    font-family: var(--primary-font);
}

html,
body {
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: var(--primary-font);
    font-size: 16px;
    font-style: normal;
    line-height: 24px;
    min-height: 100vh;
    scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 70px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    letter-spacing: -5%;
    line-height: 110%;
    margin: .75rem 0;
}

h1 {
    font-size: 72px;
    margin: 32px 0;
}

h2 {
    font-size: 48px;
    line-height: 123%;
    margin: 22px 0;
}

h3 {
    font-size: 42px;
}

h4 {
    font-size: 36px;
}

h5 {
    font-size: 24px;
    line-height: 140%;
}

h6 {
    font-size: 20px;
    line-height: 120%;
}

h7 {
    font-size: 20px;
}

h8 {
    font-size: 18px;
}

img.product-image:not([src]),
img.product-image[src=""],
img.product-image[src="about:blank"],
img.product-image[src="undefined"],
img.product-image[src="null"],
img.product-image[src="javascript:void(0)"] {
    border: 1px solid var(--color-gray-1);
    background-image: var(--background-placeholder);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}

img[src] {
    display: block;
}

input, textarea {
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: -0.48px;
    background-color: transparent;
    border: none;
}

textarea:focus,
input:focus {
    outline: none;
}

label {
    font-variant-numeric: lining-nums proportional-nums;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: -0.32px;
}

.input-wrapper {
    border-bottom: 1px solid rgba(0, 0, 0, 0.20);
}

.input-bordered {
    border: 1px solid rgba(191, 191, 191, 0.3);
    font-size: 14px;
    padding: .5rem;
    background-color: transparent;
}

/* 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;
}

/* BUTTONS */

button,
svg,
a,
.actionable {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.button {
    border-radius: 2rem;
    padding: .5rem 1.5rem;
    cursor: pointer;
    justify-content: center;
    text-align: center;
    align-content: center;
    font-weight: normal;
    box-shadow: none;
    border: none;
    min-width: fit-content;
}

.button-black {
    background-color: rgb(40, 40, 40);
    color: white;
}

.button-black:hover {
    background-color: #5c5c5c;
    color: white;
}

.button-black:disabled {
    background-color: #868686;
    color: white;
    cursor: not-allowed;
}

.button-white {
    border: 2px solid white;
    background-color: white;
    color: black;
}

.button-white:hover {
    background-color: black;
    color: white;
}

.button-transparent {
    border: 1px solid;
    border-color: #cbcbcb;
    color: #888;
    background-color: transparent;
}

.button-transparent:hover {
    border-color: #888;
    color: black;
}

.button-round {
    border-radius: 50%;
    padding: .25rem .25rem;
}

.category-button {
    min-width: fit-content;
    margin: 1rem;
    padding: .5rem;
    color: rgba(0, 0, 0, 0.50);
}

.category-chosen {
    border-radius: .5rem;
    border: 1px solid #ccc;
    color: black;
}

/* CUSTOM CHECKBOX STYLES */
.checkbox-item {
    display: block;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #FFF;
    border: 1px solid #ccc;
}

.checkbox-item:hover input~.checkmark {
    background-color: #fff;
}

.checkbox-item input:checked~.checkmark {
    background-color: #000000;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-item input:checked~.checkmark:after {
    display: block;
}

.checkbox-item .checkmark:after {
    left: 6px;
    top: 3px;
    width: 3px;
    height: 6px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* LINKS */
a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a:hover {
    color: rgb(107, 107, 107);
}

.show-link {
    text-decoration: undeline;
    color: -webkit-link;
}

.login-link {
    color: #085aba;
}

.login-link:hover {
    color: #4285f4;
}

/* PAGINATION DOT */

.pagination-dot {
    height: 10px;
    width: 10px;
    background-color: #dedede;
    border-radius: 50%;
    display: inline-block;
}

.dot-active {
    background-color: black;
}

.black-hover:hover {
    color: black;
    cursor: pointer;
}

/* ERRORS */

.error {
    color: var(--color-signal-error) !important;
}

.toast-container {
    display: flex;
    position: fixed;
    bottom: 32px;
    left: 32px;
    right: 32px;
    max-width: calc(var(--mobile-view-start)-64px);
    flex-flow: column-reverse;
    gap: 8px;
    z-index: 10;
}

.toast-container>div {
    padding: 8px;
    display: flex;
    width: fit-content;
    border-radius: var(--border-radius);
    background-color: var(--modal-content-background);
    -webkit-box-shadow: 10px 10px 10px -10px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 10px 10px 10px -10px rgba(0, 0, 0, 0.75);
    box-shadow: 10px 10px 10px -10px rgba(0, 0, 0, 0.75);
    animation: slide-out 15s ease .5s 1 normal forwards;
}

@keyframes slide-out {

    0% {
        animation-timing-function: ease-out;
        transform: translateX(0);
        }
    1% {
        animation-timing-function: ease-in;
        transform: translateX(15px);
    }

    2% {
        animation-timing-function: ease-out;
        transform: translateX(0)
    }

    3% {
        animation-timing-function: ease-in;
        transform: translateX(-15px);
    }

    4% {
        animation-timing-function: ease-out;
        transform: translateX(0)
    }

    5% {
        animation-timing-function: ease-in;
        transform: translateX(15px);
    }

    6% {
        animation-timing-function: ease-out;
        transform: translateX(0)
    }

    85% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-200%);
        display: none;
    }
}

.error-wrapper {
    width: 100%;
    background-color: rgba(186, 8, 8, 0.05);
    color: #ba0808;
    padding: 1rem;
    align-content: center;
    text-align: center;
    margin: 2rem 0;
}

/* GENERAL SMALL STYLE SNIPPETS */

.border-red {
    border-color: rgb(186, 8, 8) !important;
}

.bg-blue {
    background-color: hsla(205, 36%, 74%, 0.8);
}

.bg-green {
    background-color: hsla(169, 37%, 71%, 0.8);
}

.bg-lilac {
    background-color: hsla(257, 37%, 71%, 0.8);
}

.bg-gray {
    background-color: hsla(0, 0%, 0%, 0.03);
}

.font-white {
    color: white;
}

.font-red {
    color: #ba0808;
}

.font-gray {
    color: rgba(0, 0, 0, 0.50);
}

.font-blue {
    color: #7e90b3;
}

.gray-badge {
    color: rgba(0, 0, 0, 0.50);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 123%;
    letter-spacing: -0.32px;
}

.border-top {
    margin-top: 1rem;
    border-top: 1px solid #0000002a;
}

.border-bottom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.20);
}

.m-auto {
    margin: auto;
}

.op-0 {
    opacity: 0;
}

.bottom-70 {
    bottom: -70px;
}

.horizontal-line {
    border: none;
    width: 40%;
    height: 1px;
    border-top: 1px solid #cbcbcb;
}

/* SITES WIDE DISPLAY STYLES */
.container {
    max-width: 1240px;
}

.block-wrapper {
    margin-top: 100px;
    border-top: 1px solid rgba(0, 0, 0, 0.20);
}

.mb-100px {
    margin-bottom: 100px;
}

/* HERO */
.hero {
    height: 230px;
    position: relative;
    overflow: hidden;
}

.hero-text-wrapper {
    z-index: 2;
}

.hero-image {
    position: absolute;
    right: 0px;
    width: 983px;
}

.category-hero {
    height: 380px;
}

.about-us-hero {
    object-position: 100%;
}

.rights-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.20);
    ;
    padding-top: 32px;
}

.rights {
    color: rgba(255, 255, 255, 0.50);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    /* 15.6px */
    letter-spacing: -0.24px;
}

@media screen and (max-width: 1300px) {
    h1 {
        font-size: 64px;
    }

    .container {
        max-width: 950px;
    }

    .hero {
        height: 480px;
    }
}

@media screen and (max-width: 1000px) {
    .container {
        max-width: 870px;
    }
}

@media screen and (max-width: 900px) {
    .container {
        max-width: 740px;
        padding: 0px 16px;
    }

    h1 {
        font-size: 56px;
    }

    h2 {
        font-size: 48px;
    }

    h3 {
        font-size: 32px;
    }

    h4 {
        font-size: 24px;
    }
}

@media screen and (max-width: 900px) {
    .bottom-70 {
        bottom: 0;
    }
}

@media screen and (max-width: 700px) {
    .container {
        max-width: 540px;
        padding: 0px 16px;
    }

    .hero {
        height: 300px;
    }

    .hero img {
        height: 100%;
        object-fit: cover;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }
}

/* rokem  kui 600 st tablet v desktop */
@media only screen and (min-width: 650px) {
    .mobile-only {
        display: none !important;
    }
}


@media only screen and ((max-width: 650px) or (min-width: 1000px)) {
    .tablet-only {
        display: none !important;
    }
}


@media only screen and (max-width: 1000px) {
    .desktop-only {
        display: none !important;
    }
}

/* Set up media queries to not show desktop only content on mobiles */
@media only screen and (max-width: 600px) {
    .flex {
        flex-direction: column;
    }
    
    .keep-flex {
        flex-direction: row;
    }
}

@media screen and (max-width: 520px) {       
    .container {
        max-width: 430px;
        padding: 0px 8px;
    }
}

@media screen and (max-width: 420px) {
    .container {
        max-width: 350px;
        padding: 0px 8px;
    }
}