/* Import semantic styles */

@import "../css/forms.css";
@import "../css/colors.css";
@import "../css/template.css";
@import "../css/tables.css";

/* ——————————————————————————————————————————————————
    Mobile breakpoints
—————————————————————————————————————————————————— */

:root {
    --breakpoint-xs: 480px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-2xl: 1400px;
    --breakpoint-3xl: 1600px;
}

/* ——————————————————————————————————————————————————
    Standard Variables
—————————————————————————————————————————————————— */

:root {
    --font-heading: "Open Sans", sans-serif;
    --font-body: "Open Sans", sans-serif;
    --font-display: "Playfair Display", serif;
    --font-script: "Style Script", cursive;
    --font-hand: "Caveat", cursive;
    --font-code: "Inconsolata", monospace;
    --font-icon: "Font Awesome 6 Pro";
    --color-body: var(--color-default--500);
    --transition: 0.2s ease-in-out;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

body {
    color: var(--color-body);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    background-color: #fff;
}

p,
ul,
ol {
    margin-bottom: 0.5rem;
}

ul,
ol {
    margin-top: 0;
    margin-left: 2rem;
}

ul > li,
ol > li {
    margin-bottom: 0.5rem;
}

code,
textarea.code {
    padding: 0.25em 0.5em;
    width: 100%;
    height: auto;
    background-color: var(--color-terminal--50);
    border: 0.1em solid var(--color-terminal--100);
    border-radius: 0.2em;
    overflow: hidden;
}

textarea.code {
    padding: 1rem;
}

blockquote {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1em 1em 1em 2em;
    font-size: 1.5rem;
    font-weight: 300;
    background-color: var(--color-default--50);
}

blockquote footer {
    color: var(--color-primary--700);
    font-weight: 600;
}

/* ——————————————————————————————————————————————————
    Typography
—————————————————————————————————————————————————— */

h1,
.h1 {
    margin-bottom: 0.5em;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

h2,
.h2 {
    margin-bottom: 0.5em;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

h3,
.h3 {
    margin-bottom: 0.5em;
    font-size: 1.25rem;
    font-weight: 600;
}

h4,
.h4 {
    margin-bottom: 0.5em;
    font-size: 1.25rem;
}

h5,
.h5 {
    margin-bottom: 0.5em;
    font-size: 1rem;
    font-weight: 600;
}

h6,
.h6 {
    font-size: 1rem;
}

code,
textarea.code {
    color: var(--color-terminal--600);
    font-family: var(--font-code);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Font families */

.text-heading {
    font-family: var(--font-heading) !important;
}
.text-body {
    font-family: var(--font-body) !important;
}
.text-display {
    font-family: var(--font-display) !important;
}
.text-script {
    font-family: var(--font-script) !important;
}
.text-hand {
    font-family: var(--font-hand) !important;
}
.text-code {
    font-family: var(--font-code) !important;
}
.text-icon {
    font-family: var(--font-icon) !important;
}

/* Text styles */

.text-bold {
    font-weight: 700 !important;
}

.text-italic {
    font-style: italic !important;
}

.text-underline {
    text-decoration: underline !important;
}

.text-strike {
    text-decoration: line-through !important;
}

/* Text transformation */

.text-uppercase {
    text-transform: uppercase !important;
}

.text-lowercase {
    text-transform: lowercase !important;
}

.text-capitalize {
    text-transform: capitalize !important;
}

/* Text alignment */

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-justify {
    text-align: justify !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

/* ——————————————————————————————————————————————————
    Backgrounds positioning
—————————————————————————————————————————————————— */

.background-initial,
.background-initial .row-bg.using-image,
.background-initial .column-image-bg {
    background-size: initial !important;
}

.background-cover,
.background-cover .row-bg.using-image,
.background-cover .column-image-bg {
    background-size: cover !important;
}

.background-contain,
.background-contain .row-bg.using-image,
.background-contain .column-image-bg {
    background-size: contain !important;
}

.background-w100,
.background-w100 .row-bg.using-image,
.background-w100 .column-image-bg {
    background-size: 100% auto !important;
}

.background-h100,
.background-h100 .row-bg.using-image,
.background-h100 .column-image-bg {
    background-size: auto 100% !important;
}

.background-repeat,
.background-repeat .row-bg.using-image,
.background-repeat .column-image-bg {
    background-repeat: repeat !important;
}

.background-no-repeat,
.background-no-repeat .row-bg.using-image,
.background-no-repeat .column-image-bg {
    background-repeat: no-repeat !important;
}

/* ——————————————————————————————————————————————————
    Container
—————————————————————————————————————————————————— */

.container {
    margin-right: auto;
    margin-left: auto;
    padding: 0;
    width: 100%;
    max-width: 1200px;
}


/* ——————————————————————————————————————————————————
    Margins and paddings
—————————————————————————————————————————————————— */

/* Vertical margins */

.my-auto {
    margin-top: auto !important;
    margin-bottom: auto !important;
}

.my-0 {
    margin-top: 0rem !important;
    margin-bottom: 0rem !important;
}

.my-1 {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.my-3 {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.my-4 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.my-5 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* Horizontal margins */

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.mx-0 {
    margin-left: 0rem !important;
    margin-right: 0rem !important;
}

.mx-1 {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
}

.mx-2 {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
}

.mx-3 {
    margin-left: 0.75rem !important;
    margin-right: 0.75rem !important;
}

.mx-4 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}

.mx-5 {
    margin-left: 1.5rem !important;
    margin-right: 1.5rem !important;
}

/* Top margins */

.mt-auto {
    margin-top: auto !important;
}

.mt-0 {
    margin-top: 0rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 0.75rem !important;
}

.mt-4 {
    margin-top: 1rem !important;
}

.mt-5 {
    margin-top: 1.5rem !important;
}

/* Left margins */

.ml-auto {
    margin-left: auto !important;
}

.ml-0 {
    margin-left: 0rem !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.ml-3 {
    margin-left: 0.75rem !important;
}

.ml-4 {
    margin-left: 1rem !important;
}

.ml-5 {
    margin-left: 1.5rem !important;
}

/* Bottom margins */

.mb-auto {
    margin-bottom: auto !important;
}

.mb-0 {
    margin-bottom: 0rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-5 {
    margin-bottom: 1.5rem !important;
}

/* Right margins */

.mr-auto {
    margin-right: auto !important;
}

.mr-0 {
    margin-right: 0rem !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.mr-3 {
    margin-right: 0.75rem !important;
}

.mr-4 {
    margin-right: 1rem !important;
}

.mr-5 {
    margin-right: 1.5rem !important;
}

/* Vertical paddings */

.py-auto {
    padding-top: auto !important;
    padding-bottom: auto !important;
}

.py-0 {
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Horizontal paddings */

.px-auto {
    padding-left: auto !important;
    padding-right: auto !important;
}

.px-0 {
    padding-left: 0rem !important;
    padding-right: 0rem !important;
}

.px-1 {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}

.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.px-3 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* Top paddings */

.pt-auto {
    padding-top: auto !important;
}

.pt-0 {
    padding-top: 0rem !important;
}

.pt-1 {
    padding-top: 0.25rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.pt-3 {
    padding-top: 0.75rem !important;
}

.pt-4 {
    padding-top: 1rem !important;
}

.pt-5 {
    padding-top: 1.5rem !important;
}

/* Left paddings */

.pl-auto {
    padding-left: auto !important;
}

.pl-0 {
    padding-left: 0rem !important;
}

.pl-1 {
    padding-left: 0.25rem !important;
}

.pl-2 {
    padding-left: 0.5rem !important;
}

.pl-3 {
    padding-left: 0.75rem !important;
}

.pl-4 {
    padding-left: 1rem !important;
}

.pl-5 {
    padding-left: 1.5rem !important;
}

/* Bottom paddings */

.pb-auto {
    padding-bottom: auto !important;
}

.pb-0 {
    padding-bottom: 0rem !important;
}

.pb-1 {
    padding-bottom: 0.25rem !important;
}

.pb-2 {
    padding-bottom: 0.5rem !important;
}

.pb-3 {
    padding-bottom: 0.75rem !important;
}

.pb-4 {
    padding-bottom: 1rem !important;
}

.pb-5 {
    padding-bottom: 1.5rem !important;
}

/* Right paddings */

.pr-auto {
    padding-right: auto !important;
}

.pr-0 {
    padding-right: 0rem !important;
}

.pr-1 {
    padding-right: 0.25rem !important;
}

.pr-2 {
    padding-right: 0.5rem !important;
}

.pr-3 {
    padding-right: 0.75rem !important;
}

.pr-4 {
    padding-right: 1rem !important;
}

.pr-5 {
    padding-right: 1.5rem !important;
}

/* ——————————————————————————————————————————————————
    Widths and heights
—————————————————————————————————————————————————— */

.w-25 {
    width: 25% !important;
}

.w-33 {
    width: 33.333% !important;
}

.w-50 {
    width: 50% !important;
}

.w-66 {
    width: 66.666% !important;
}

.w-75 {
    width: 75% !important;
}

.w-99 {
    width: 99.999% !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

/* ——————————————————————————————————————————————————
    Aspect Ratios
—————————————————————————————————————————————————— */

.aspect-ratio-1x1 {
    aspect-ratio: 1 / 1;
}

.aspect-ratio-2x1 {
    aspect-ratio: 2 / 1;
}

.aspect-ratio-1x2 {
    aspect-ratio: 1 / 2;
}

.aspect-ratio-4x3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-3x4 {
    aspect-ratio: 3 / 4;
}

.aspect-ratio-16x9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-9x16 {
    aspect-ratio: 9 / 16;
}

/* ——————————————————————————————————————————————————
    Display
—————————————————————————————————————————————————— */

/* Block */

.d-block {
    display: block !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

/* Flexbox */

.flex-center-all {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flex-direction-row {
    flex-direction: row !important;
}

.flex-direction-column {
    flex-direction: column !important;
}

.align-items-stretch {
    align-items: stretch !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.justify-content-stretch {
    justify-content: stretch !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-start {
    justify-content: flex-start !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-around {
    justify-content: space-around !important;
}

.flex-direction-column .nectar-button,
.flex-direction-column .nectar-cta {
    margin-top: auto !important;
}

/* Box sizing */

.box-sizing-content {
    box-sizing: content-box; /*  */
}

.box-sizing-border {
    box-sizing: border-box;
}

/* Mobile Display */

.mobile-hide {
    display: none !important;
}

.desktop-hide {
    display: block !important;
}

@media (min-width: 992px) {
    .mobile-hide {
        display: block !important;
    }

    .desktop-hide {
        display: none !important;
    }
}

/* ——————————————————————————————————————————————————
    Lists
—————————————————————————————————————————————————— */

ul,
ol,
li,
li > span {
    line-height: 1.5;
}

.list-col-2 {
    columns: 2 !important;
}

.list-col-3 {
    columns: 3 !important;
}

body.login {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--color-default--50);
    background-image: url('../img/bg-login.svg');
    background-size: 150%;
    background-position: 25% 0;
    background-repeat: no-repeat;
}

#template__login {
    width: 100%;
    max-width: 25rem;
    padding: 3rem 3rem 1rem;
    background-color: #fff;
    border: 1px solid var(--color-default--200);
    border-radius: 0.5rem;
}

#template__login .logo {
    display: block;
    margin: 0 auto 2rem;
    width: 65%;
}

/* ——————————————————————————————————————————————————
    Checkout page
—————————————————————————————————————————————————— */

.checkout__text {
    padding: 2rem;
    font-size: 1.1rem;
}
