/*
 * CSS for both editor and front-end.
 */

/* Button */
.is-style-elisen-food-flat-button .wp-block-button__link,
.is-style-elisen-food-flat-button .wp-block-button__link:active,
.is-style-elisen-food-flat-button .wp-block-button__link:focus,
.is-style-elisen-food-flat-button .wp-block-button__link:hover,
.is-style-elisen-food-flat-button .wp-block-button__link:visited {
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    margin-top: 0
}

/* Box shadow */
.is-style-elisen-food-box-shadow {
    box-shadow: var(--wp--preset--shadow--natural)
}

/* List */
.is-style-elisen-food-list-underline li {
    border-bottom: 1px solid
}
.is-style-elisen-food-list-underline ul {
    border-top: 1px solid
}
.is-style-elisen-food-list-underline ul li {
    border: none
}
details.is-style-elisen-food-plus>summary {
    list-style-type: "+ "
}
details[open].is-style-elisen-food-plus>summary {
    list-style-type: "- "
}
details.is-style-elisen-food-plus>summary::marker {
    font-family: var(--wp--preset--font-family--monospace);
    font-size: 1em;
    font-weight: 700
}

/* WooCommerce */
.wc-block-grid .wc-block-grid__product-onsale,
.wc-block-grid__product-image .wc-block-grid__product-onsale,
.woocommerce span.onsale {
    background-color: var(--wp--preset--color--primary);
    border: none;
    border-radius: 100%;
    color: var(--wp--preset--color--contrast);
    font-size: 1rem;
    height: 3.7rem;
    line-height: 3.236;
    text-align: center;
    text-transform: capitalize;
    width: 3.7rem
}
.woocommerce div.product .stock {
    color: var(--wp--preset--color--primary)
}

/* Latest posts */
.wp-block-latest-posts li {
    margin-bottom: 40px;
}

.entry-content a {
  text-decoration: underline;
}
a:where(:not(.wp-element-button)):hover {
    text-decoration: underline;
}

/*
 * Article tables.
 *
 * This shared stylesheet is loaded in both the editor and the front-end.
 * Cover block tables, Classic HTML tables and tables pasted into the editor.
 */
:where(.wp-block-post-content, .entry-content, .editor-styles-wrapper) .wp-block-table {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(31, 35, 40, 0.08);
    margin-block: clamp(1.75rem, 4vw, 2.75rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

:where(.wp-block-post-content, .entry-content, .editor-styles-wrapper) table {
    background: #ffffff;
    border: 2px solid #c9ced3;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: clamp(0.9rem, 0.2vw + 0.85rem, 1rem);
    line-height: 1.55;
    margin-block: clamp(1.75rem, 4vw, 2.75rem);
    width: 100%;
}

:where(.wp-block-post-content, .entry-content, .editor-styles-wrapper) .wp-block-table table {
    margin: 0;
    min-width: 720px;
}

:where(.wp-block-post-content, .entry-content, .editor-styles-wrapper) table :where(th, td) {
    border: 1px solid #cfd4d8 !important;
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: top;
}

:where(.wp-block-post-content, .entry-content, .editor-styles-wrapper) table thead th {
    background: var(--wp--preset--color--heading, #25282b);
    border-color: #555b60 !important;
    color: #ffffff;
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.4;
    text-transform: uppercase;
}

:where(.wp-block-post-content, .entry-content, .editor-styles-wrapper) table tbody tr:nth-child(even) {
    background: #fff8f4;
}

:where(.wp-block-post-content, .entry-content, .editor-styles-wrapper) table tbody tr {
    transition: background-color 160ms ease;
}

:where(.wp-block-post-content, .entry-content, .editor-styles-wrapper) table tbody tr:hover {
    background: #fff1e9;
}

:where(.wp-block-post-content, .entry-content, .editor-styles-wrapper) table tbody :where(th, td:first-child) {
    color: var(--wp--preset--color--heading, #25282b);
    font-weight: 600;
}

:where(.wp-block-post-content, .entry-content, .editor-styles-wrapper) :where(.wp-block-table figcaption, table caption) {
    color: #6f7479;
    font-size: 0.78rem;
    line-height: 1.5;
    padding: 0.75rem 1rem;
    text-align: left;
}

@media (max-width: 781px) {
    :where(.wp-block-post-content, .entry-content, .editor-styles-wrapper) .wp-block-table {
        border-radius: 8px;
        margin-inline: -0.25rem;
    }

    :where(.wp-block-post-content, .entry-content, .editor-styles-wrapper) table :where(th, td) {
        padding: 0.75rem 0.85rem;
    }
}
