/* forms */
/* The Forms module's styles, [form id=1] in a text and the form part (forms.php). Plain css, so the module needs no build:
   modules_css() in frontend/modules.php puts it in dist/modules.css. The fields are in a grid of six columns: a field is
   all of them, half or a third from 768px, and all of them on a phone */
.form {
    text-align: left;
}
.form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.form label,
.form legend {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 0.25rem;
    padding: 0;
    font-size: inherit;
    font-weight: bold;
}
.form input[type=text],
.form input[type=email],
.form select,
.form textarea {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
    font: inherit;
    color: #1a1a1a;
    background-color: #fff;
    border: 1px solid #767676;
    border-radius: var(--radius, 4px);
}
.form .form-option {
    /* a choice: the box and its text on a row, the text isn't bold */
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}
.form .form-option input {
    flex: none;
    margin-top: 0.35em;
}
.form button {
    cursor: pointer;
}

.form-fields {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.form-field {
    grid-column: span 6;
    min-width: 0;
}
@media (min-width: 768px) {
    .form-field.form-field-50 {
        grid-column: span 3;
    }
    .form-field.form-field-33 {
        grid-column: span 2;
    }
}

/* the field for robots, out of sight */
.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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

/* the thanks after a form was sent, and the error above one that wasn't */
.form-message {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius, 4px);
}

.form-message > :last-child {
    margin-bottom: 0;
}

.form-thanks {
    color: #0f5132;
    background-color: #d1e7dd;
}

.form-error {
    color: #842029;
    background-color: #f8d7da;
}
/* logos */
/* The Logos module's styles: the logos of the companies one works with, all as wide as each other and centered, see
   logos.php. Plain css, so the module needs no build: modules_css() in frontend/modules.php puts it in dist/modules.css */

/* the space between the logos is the Gutter setting of the section (2rem until another is chosen, 'gutters' in module.php).
   A row that isn't full is at the middle of the width, and a logo that is lower than the others of its row at the middle
   of the row's height */
.logos {
    --logos-gap:var(--s-gutter-m, var(--s-gutter, 2rem));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--logos-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 768px) {
    .logos {
        --logos-gap:var(--s-gutter, 2rem);
    }
}

/* as many side by side as the list says. A hair narrower than its share, so a rounded width never sends the last one to the next row */
.logos-item {
    flex: 0 0 calc((100% - (var(--logos-cols-m, 2) - 1) * var(--logos-gap)) / var(--logos-cols-m, 2) - 0.01px);
    min-width: 0;
}
@media (min-width: 768px) {
    .logos-item {
        flex-basis: calc((100% - (var(--logos-cols, 5) - 1) * var(--logos-gap)) / var(--logos-cols, 5) - 0.01px);
    }
}
.logos-item img {
    display: block;
    width: 100%;
    height: auto;
}
/* news */
/* The News module's styles: the teasers from news() and the news page, see news.php. Plain css, so the module needs no
   build: modules_css() in frontend/modules.php puts it in dist/modules.css with the other modules' css */

/* the whole teaser is one link. The card is white on every background, so its text and heading have the Standard colors
   (the class background-color-0 on it gives it that color set) and not the colors of the background around it */
.news-card{
    display:flex;
    flex-direction:column;
    height:100%;
    overflow:hidden;
    font-weight:normal;
    color:var(--c-text, #333333);
    text-decoration:none;
    background-color:#fff;
    border-radius:6px;
    box-shadow:0 1px 3px rgba(0,0,0,.08);
    transition:box-shadow .2s, transform .2s;
}
.news-card:hover,
.news-card:focus-visible{
    color:var(--c-text, #333333);
    text-decoration:none;
    box-shadow:0 6px 20px rgba(0,0,0,.14);
    transform:translateY(-2px);
}
.news-card:hover .news-card-title,
.news-card:focus-visible .news-card-title{
    text-decoration:underline;
}
/* two classes, so it beats "img { height: auto }" of the containers */
.news-card .news-card-image{
    display:block;
    width:100%;
    height:auto;
}
.news-card-body{
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:16px 18px 20px;
}
.news-card-title{
    margin:0;
    font-size:1.2rem;
}
/* a little lighter than the text of the background it is on */
.news-card-excerpt{
    margin:0;
    opacity:.75;
}
.news-date{
    font-size:.85rem;
    opacity:.75;
}

/* older and newer pages of the news list */
.news-pages{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:24px;
    margin-top:32px;
}
/* one news item */
.news-article{
    max-width:800px;
    margin:0 auto;
}
.news-article h1{
    margin-top:4px;
}
.news-article .news-article-image{
    display:block;
    width:100%;
    height:auto;
    margin-bottom:24px;
    border-radius:6px;
}
.news-article-body{
    margin:24px 0 40px;
}
.news-scheduled{
    padding:8px 12px;
    background-color:#fff3cd;
    border-radius:4px;
}

/* the space between the teasers is the Gutter setting of their section, 1.5rem until another is chosen. It is Bootstrap's
   own gutter (g-4) with another value, 0 puts the cards edge to edge */
.row.news-grid{
    --bs-gutter-x:var(--s-gutter-m, var(--s-gutter, 1.5rem));
    --bs-gutter-y:var(--s-gutter-m, var(--s-gutter, 1.5rem));
}
@media (min-width:768px){
    .row.news-grid{
        --bs-gutter-x:var(--s-gutter, 1.5rem);
        --bs-gutter-y:var(--s-gutter, 1.5rem);
    }
}
/* personal */
/* The Personal module's styles, see personal.php. Plain css, so the module needs no build: modules_css() in
   frontend/modules.php puts it in dist/modules.css with the other modules' css */

/* a person is a card like a news teaser: white on every background, so its text and heading have the Standard colors
   (the class background-color-0 on it gives it that color set) and not the colors of the background around it.
   The cards on a row are equally high */
.person-card{
    height:100%;
    padding:16px 18px 20px;
    color:var(--c-text, #333333);
    background-color:#fff;
    border-radius:6px;
    box-shadow:0 1px 3px rgba(0,0,0,.08);
}
/* the staff's photos, the shape is set on the admin page Personal */
.person-round img{
    border-radius:50%;
}
/* shop */
/* The Shop module's styles: the cards, the shop page, a product's page and the cart, see shop.php. Plain css, so the module
   needs no build: modules_css() in frontend/modules.php puts it in dist/modules.css with the other modules' css */

/* a card is one link, white on every background like a news teaser (background-color-0 gives it the Standard colors) */
.shop-card{
    display:flex;
    flex-direction:column;
    height:100%;
    overflow:hidden;
    font-weight:normal;
    color:var(--c-text, #333333);
    text-decoration:none;
    background-color:#fff;
    border-radius:6px;
    box-shadow:0 1px 3px rgba(0,0,0,.08);
    transition:box-shadow .2s, transform .2s;
}
.shop-card:hover,
.shop-card:focus-visible{
    color:var(--c-text, #333333);
    text-decoration:none;
    box-shadow:0 6px 20px rgba(0,0,0,.14);
    transform:translateY(-2px);
}
.shop-card:hover .shop-card-title,
.shop-card:focus-visible .shop-card-title{
    text-decoration:underline;
}
/* two classes, so it beats "img { height: auto }" of the containers */
.shop-card .shop-card-image{
    display:block;
    width:100%;
    height:auto;
}
.shop-card-noimage,
.shop-noimage{
    display:block;
    aspect-ratio:1;
    background-color:#f1f1f1;
}
.shop-card-body{
    display:flex;
    flex-direction:column;
    gap:4px;
    padding:14px 16px 18px;
}
.shop-card-title{
    font-size:1.1rem;
    font-weight:bold;
}
.shop-card-price{
    opacity:.8;
}
/* the space between the cards is the Gutter setting of their section, 1.5rem until another is chosen */
.row.shop-grid{
    --bs-gutter-x:var(--s-gutter-m, var(--s-gutter, 1.5rem));
    --bs-gutter-y:var(--s-gutter-m, var(--s-gutter, 1.5rem));
}
@media (min-width:768px){
    .row.shop-grid{
        --bs-gutter-x:var(--s-gutter, 1.5rem);
        --bs-gutter-y:var(--s-gutter, 1.5rem);
    }
}

/* the categories above the list, the one that is shown is filled */
.shop-categories{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:24px;
}
.shop-categories a{
    padding:4px 14px;
    text-decoration:none;
    border:1px solid currentColor;
    border-radius:999px;
}
.shop-categories a[aria-current]{
    color:#fff;
    background-color:#1a1a1a;
    border-color:#1a1a1a;
}
.shop-pages{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:24px;
    margin-top:32px;
}

/* a product's page: the images beside what is bought from 992px, above it below */
.shop-product{
    display:grid;
    gap:32px;
    text-align:left;
}
@media (min-width:992px){
    .shop-product:has(.shop-gallery){
        grid-template-columns:1fr 1fr;
        align-items:start;
    }
}
.shop-product img{
    display:block;
    width:100%;
    height:auto;
    border-radius:6px;
}
/* the large image: one slide is shown, the one whose radio button is checked (the thumbnails are its labels) */
.shop-slide{
    display:none;
}
.shop-stage > .shop-slide:only-child,
.shop-view:checked + .shop-slide{
    display:block;
}
/* a value's own image is shown in place of the main image by the css of shop_variant_css() */
.shop-product .shop-variant-image{
    display:none;
}
.shop-thumbs{
    display:grid;
    grid-template-columns:repeat(7, 1fr);
    gap:8px;
    margin-top:8px;
}
.shop-thumb{
    cursor:pointer;
    opacity:.7;
    border-radius:6px;
    transition:opacity .2s;
}
.shop-thumb:hover{
    opacity:1;
}
@media (max-width:575px){
    .shop-thumbs{
        grid-template-columns:repeat(4, 1fr);
    }
}
.shop-product-name{
    margin-bottom:4px;
}
.shop-product-price{
    font-size:1.4rem;
}
.shop-product-body{
    margin-top:24px;
}

/* an option: its values are buttons, a radio button each, out of sight, with its label as the button */
.shop-option{
    min-width:0;
    margin:0 0 16px;
    padding:0;
    border:0;
}
.shop-option legend{
    float:none;
    margin-bottom:6px;
    font-size:inherit;
    font-weight:bold;
}
.shop-values{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.shop-value{
    min-width:3rem;
    padding:6px 14px;
    text-align:center;
    cursor:pointer;
    background-color:#fff;
    color:#1a1a1a;
    border:1px solid #767676;
    border-radius:var(--radius, 4px);
}
.shop-value-input:checked + .shop-value{
    color:#fff;
    background-color:#1a1a1a;
    border-color:#1a1a1a;
}
.shop-value-input:focus-visible + .shop-value{
    outline:2px solid currentColor;
    outline-offset:2px;
}
.shop-value-price{
    opacity:.75;
    font-size:.9em;
}
.shop-add{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    gap:12px;
    margin-top:8px;
}
.shop-quantity span{
    display:block;
    margin-bottom:4px;
    font-weight:bold;
}
.shop-quantity input,
.shop-cart-quantity{
    width:5rem;
    padding:.5rem .6rem;
    font:inherit;
    color:#1a1a1a;
    background-color:#fff;
    border:1px solid #767676;
    border-radius:var(--radius, 4px);
}

/* a message after a form of the shop, and a note */
.shop-message{
    margin:0 0 16px;
    padding:.75rem 1rem;
    border-radius:var(--radius, 4px);
}
.shop-message > :last-child{
    margin-bottom:0;
}
.shop-message-done{
    color:#0f5132;
    background-color:#d1e7dd;
}
.shop-message-error{
    color:#842029;
    background-color:#f8d7da;
}
.shop-message-note{
    color:#664d03;
    background-color:#fff3cd;
}
.shop-message a{
    color:inherit;
}

/* the cart */
.shop-cart-page{
    text-align:left;
}
.shop-cart-table{
    width:100%;
    border-collapse:collapse;
}
.shop-cart-table th,
.shop-cart-table td{
    padding:12px 8px;
    vertical-align:middle;
    border-bottom:1px solid rgba(0,0,0,.15);
}
.shop-cart-table thead th{
    font-size:.9rem;
    opacity:.75;
}
.shop-cart-table .shop-cart-sum{
    text-align:right;
    white-space:nowrap;
}
.shop-cart-table .shop-cart-subtotal th,
.shop-cart-table .shop-cart-subtotal td{
    padding-top:6px;
    padding-bottom:6px;
    font-weight:normal;
}
.shop-cart-live .shop-cart-update{
    display:none;
}
.shop-cart-item{
    display:flex;
    align-items:center;
    gap:12px;
}
.shop-cart-item > span{
    display:flex;
    flex-direction:column;
}
.shop-cart-page .shop-cart-image{
    width:64px;
    height:64px;
    object-fit:cover;
    border-radius:4px;
}
.shop-cart-variant,
.shop-cart-vat{
    font-size:.9rem;
    opacity:.75;
}
.shop-cart-remove{
    margin-left:8px;
    padding:0;
    font:inherit;
    font-size:.9rem;
    color:inherit;
    text-decoration:underline;
    cursor:pointer;
    background:none;
    border:0;
}
.shop-cart-actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin:16px 0 32px;
}
.shop-cart-text{
    margin-bottom:24px;
}

/* the order form: two fields side by side from 768px, the address, the message and the check the whole width */
.shop-form{
    max-width:720px;
}
.shop-fields{
    display:grid;
    grid-template-columns:1fr;
    gap:1rem 1.5rem;
    margin-bottom:1.5rem;
}
@media (min-width:768px){
    .shop-fields{
        grid-template-columns:1fr 1fr;
    }
    .shop-field-address,
    .shop-field-message,
    .shop-field-gdpr{
        grid-column:span 2;
    }
}
.shop-field label{
    display:block;
    margin:0 0 .25rem;
    font-weight:bold;
}
.shop-field input[type=text],
.shop-field input[type=email],
.shop-field input[type=tel],
.shop-field textarea{
    display:block;
    width:100%;
    padding:.6rem .75rem;
    font:inherit;
    color:#1a1a1a;
    background-color:#fff;
    border:1px solid #767676;
    border-radius:var(--radius, 4px);
}
.shop-field .shop-check{
    display:flex;
    align-items:flex-start;
    gap:.5rem;
    font-weight:normal;
    cursor:pointer;
}
.shop-check input{
    flex:none;
    margin-top:.35em;
}
.shop-order-total{
    font-size:1.1rem;
}
/* the field for robots, out of sight */
.shop-trap{
    position:absolute;
    left:-9999px;
    width:1px;
    height:1px;
    overflow:hidden;
}

/* a whole product in a text, [product id=1 view=full]: the same as on its page, with air around it */
.shop-embed{
    margin:32px 0;
}

/* the menu item of the cart (shop_cart_menu()): the icon with a small number on it. In the top bar only the icon, among
   the bar's links like the search's glass; in the slide-out menu the icon and its text */
.shop-cart-menu{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    color:inherit;
}
.shop-cart-icon{
    flex-shrink:0;
}
.menu-shortcuts .shop-cart-bar{
    justify-content:center;
    width:32px;
    height:32px;
    margin:-6px 0;
}
.shop-cart-count{
    position:absolute;
    top:-4px;
    left:14px;
    min-width:18px;
    padding:0 4px;
    font-size:11px;
    font-weight:bold;
    line-height:18px;
    text-align:center;
    color:#fff;
    background-color:#d63638;
    border-radius:9px;
}
.menu .shop-cart-menu{
    display:flex;
}
