/*
 Theme Name:   LMPR (GeneratePress Child Theme)
 Theme URI:    https://lamper-design.nl
 Description:  GeneratePress child theme
 Author:       Team Lamper Design
 Author URI:   https://lamper-design.nl
 Template:     generatepress
 Version:      0.1
*/


@font-face {
	font-display: swap;
	font-family: "Work Sans";
	font-style: normal;
	font-weight: 400;
	src: url('assets/fonts/work-sans-v24-latin-regular.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: "Work Sans";
	font-style: normal;
	font-weight: 600;
	src: url('assets/fonts/work-sans-v24-latin-600.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: "Mansalva";
	font-style: normal;
	font-weight: 400;
	src: url('assets/fonts/mansalva-v16-latin-regular.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: "Instrument Serif";
	font-style: normal;
	font-weight: 400;
	src: url('assets/fonts/instrument-serif-v5-latin-regular.woff2') format('woff2');
}

/* Globals */

html {
    overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {

    html {
        scroll-behavior: smooth;
    }

}

p,
li:not(.comment),
figcaption {
    text-wrap: pretty;
    max-width: 75ch;
}

a {
    text-underline-offset: .125em;
}


input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--accent);
}

.gb-container p:last-child:last-of-type {
    margin-bottom: 0;
}

.scroll-offset,
[id] {
    scroll-margin-top: 2rem;
}

.site-header {
    border-top: 6px solid var(--canvas-accent);
    border-bottom: 1px solid var(--border-color);
}

/* Gravity forms */

.gform_required_legend {
    display: none;
}

.form-custom-legend {
    font-size: var(--text-small);
    margin-bottom: 0;
}

.gform_wrapper .label {
    margin-bottom: 0;
}

.gform-field-label  {
    font-size: var(--text-small) !important;
    color: var(--text-dark);
}

.gform_wrapper .gform_body .gform_fields :is(input:not([type="submit"],[type="checkbox"],[type="radio"]),select,textarea) {
    padding: 14px var(--space-xxs);
    border-color: #8E7A73;
    border-radius: var(--radius-small);
}

.gform_wrapper .gform_body .gform_fields :is(input:not([type="submit"],[type="checkbox"],[type="radio"]),select,textarea):is(:active,:focus) {
    border-color: var(--text-dark);
}

.gfield.gfield--type-address.gfield--input-type-address {
    margin-bottom: var(--space-sm);
}

.gfield--type-address.gfield--input-type-address legend.gfield_label {
    margin-bottom: 0;
}

.gform_wrapper .address_country.ginput_address_country {
    flex: 1 !important;
}

.gfield.gfield--type-product.gfield--input-type-singleproduct {
    grid-column: span 10 !important;
}

.gfield.gfield--type-product.gfield--input-type-singleproduct > .gform-field-label {
    font-size: var(--text-body) !important;
}

.gfield.gfield--type-product.gfield--input-type-singleproduct .gfield_description {
    margin: 0 !important;
    padding: 0 !important;
}

.gfield.gfield--type-product.gfield--input-type-singleproduct .ginput_product_price_label {
    color: var(--text-base);
}

.gfield.gfield--type-product.gfield--input-type-singleproduct .ginput_product_price {
    color: var(--text-dark);
    font-weight: 600;
}

.gfield--type-quantity.gfield--input-type-number {
    grid-column: span 2 !important;
}

.gfield--type-quantity.gfield--input-type-number .instruction  {
    display: none;
}

.gfield--type-shipping.gfield--input-type-singleshipping,
.gfield--type-total.gfield--input-type-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xs);
}

.gfield--type-shipping.gfield--input-type-singleshipping {
    padding-top: var(--space-xs);
    border-top: 1px solid var(--border-color);
}

.gfield--type-total.gfield--input-type-total {
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border-color);
}

.gfield--type-shipping.gfield--input-type-singleshipping label,
.gfield--type-total.gfield--input-type-total label {
    margin-bottom: 0 !important;
}

.gfield--type-shipping.gfield--input-type-singleshipping input,
.gfield--type-total.gfield--input-type-total input {
    padding: 0 !important;
    font-weight: 600;
    color: var(--text-dark) !important;
    text-align: right;
}

.gform_wrapper.gravity-theme .gform_validation_errors>h2 {
    font-family: 'Work Sans' !important;
    font-size: var(--text-small) !important;
    font-weight: 600 !important;
}


@media (max-width: 480px) {

    .gform_wrapper .gform_body .gform_fields :is(input:not([type="submit"],[type="checkbox"],[type="radio"]),select,textarea) {
        padding-block: 10px;
    }

    .gfield.gfield--type-product.gfield--input-type-singleproduct {
        grid-column: span 9 !important;
    }

    .gfield--type-quantity.gfield--input-type-number {
        grid-column: span 3 !important;
    }   

    .gfield--type-shipping.gfield--input-type-singleshipping input,
    .gfield--type-total.gfield--input-type-total input {
        field-sizing: content;
        inline-size: 8ch;
    }

}