/*
Theme Name: Lærke FSE
Description: Child theme of Twenty Twenty-Five for Lærke Egefjord art site
Template: twentytwentyfive
Version: 1.0.0
Author: Lærke Egefjord
Text Domain: laerke-fse
*/

/* ============================
   CLIP-PATH POLYGON (replaces EA Image Masking)
   ============================ */
.hero-clip-path,
.wp-block-image.clip-path-polygon img,
.clip-path-polygon {
    clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);
}

/* ============================
   SITE TITLE
   ============================ */
/* Site title: Roboto 600 #6A6A6A — matches prod widget 8e27e98 override */
.wp-block-site-title a {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #6A6A6A;
    text-decoration: none;
    letter-spacing: 0.05em;
}

/* ============================
   NAVIGATION
   ============================ */
.wp-block-navigation {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.wp-block-navigation a {
    color: #6A6A6A;
    text-decoration: none;
}

.wp-block-navigation a:hover {
    color: #86bdbf;
}

/* Active nav item — underline matching the current page */
.wp-block-navigation a[aria-current="page"] {
    border-bottom: 2px solid #6A6A6A;
    padding-bottom: 2px;
}

/* Desktop nav: force horizontal display at 600px+ */
@media (min-width: 600px) {
    /* Show the nav container as a regular inline block */
    .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: block !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        background-color: transparent !important;
        overflow: visible !important;
    }

    /* Nav items laid out horizontally */
    .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    /* Hide hamburger button on desktop */
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none !important;
    }

    /* Hide close button when menu is not open */
    .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close {
        display: none !important;
    }

    /* Ensure submenu toggle is a small icon, not a checkbox */
    .wp-block-navigation__submenu-icon {
        background: none !important;
        border: none !important;
        width: 0.6em !important;
        height: 0.6em !important;
    }

    /* WooCommerce nav icons - keep them inline with nav */
    .wp-block-navigation.is-layout-flex {
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    /* WooCommerce customer account and mini cart icons - size them properly */
    .wp-block-woocommerce-customer-account,
    .wc-block-mini-cart {
        flex-shrink: 0;
        display: inline-flex !important;
        align-items: center;
    }
    
    .wc-block-mini-cart__button,
    .wc-block-customer-account__account-icon {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Header nav area - position WooCommerce icons inline */
@media (min-width: 600px) {
    /* Make the nav's parent container relative */
    .wp-block-group:has(> nav.wp-block-navigation) {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* WooCommerce icons absolutely positioned to the right */
    .wp-block-group > .wp-block-woocommerce-customer-account {
        position: absolute !important;
        right: 2.5rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .wp-block-group > .wp-block-woocommerce-mini-cart,
    .wp-block-group > .wc-block-mini-cart {
        position: absolute !important;
        right: 0.5rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
}

/* ============================
   HERO SECTION
   ============================ */
/* Add breathing room between the title banner and the hero image on the front page */
.home .wp-block-post-content > .wp-block-cover:first-child,
.page-template-front-page .wp-block-post-content > .wp-block-cover:first-child {
    margin-top: 32px !important;
}
.wp-block-cover.alignfull,
.wp-block-cover.alignwide {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    aspect-ratio: 2560 / 1903 !important;
    min-height: unset !important;
    height: auto !important;
}

.wp-block-cover.alignfull .wp-block-cover__image-background,
.wp-block-cover.alignwide .wp-block-cover__image-background {
    object-fit: contain !important;
    object-position: top center !important;
    width: 100% !important;
    height: 100% !important;
}

.laerke-hero {
    min-height: 46vw;
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laerke-hero-text {
    font-family: 'Bad Script', cursive;
    font-size: 2.6rem;
    text-align: center;
    color: #54595F;
    background-color: rgba(251, 240, 224, 0.65);
    padding: 20px 40px;
    max-width: 600px;
}

/* Remove block gap above/below the hero cover */
.wp-block-post-content > .wp-block-cover:first-child,
.entry-content > .wp-block-cover:first-child {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* Tighten gap between hero and next section */
.wp-block-post-content > .wp-block-cover + *,
.entry-content > .wp-block-cover + * {
    margin-block-start: 0 !important;
}

/* ============================
   CATEGORY CARD GRID
   ============================ */
.laerke-category-card {
    position: relative;
    overflow: visible;
}

.laerke-category-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.laerke-category-card:hover img {
    transform: scale(1.03);
}

/* ============================
   GALLERY / PRODUCT GRID
   ============================ */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.woocommerce .product img {
    width: 100%;
    height: auto;
}

/* Solgt badge — overlaid on product image in shop loop */
.woocommerce ul.products li.product {
    position: relative;
}

.laerke-solgt-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(251, 240, 224, 0.92);
    color: #54595F;
    font-family: 'Roboto', sans-serif;
    font-size: 1.43rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 2px;
    pointer-events: none;
    white-space: nowrap;
}

/* "Out of stock" availability text on single product page */
.woocommerce .stock.out-of-stock {
    color: #54595F;
    font-weight: 600;
}

/* ============================
   NEWSLETTER FORM (MC4WP)
   ============================ */
.mc4wp-form input[type="email"],
.mc4wp-form input[type="text"] {
    border: 1px solid #86bdbf;
    padding: 8px 16px;
    border-radius: 2px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    width: 100%;
    max-width: 320px;
    margin-bottom: 8px;
}

.mc4wp-form input[type="submit"] {
    background-color: #86bdbf;
    color: #ffffff;
    border: none;
    padding: 8px 24px;
    border-radius: 2px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mc4wp-form input[type="submit"]:hover {
    background-color: #6ea8ab;
}

/* ============================
   CONTACT FORM (WPForms)
   ============================ */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container textarea {
    border: 1px solid #86bdbf;
    border-radius: 2px;
    font-family: 'Roboto', sans-serif;
}

.wpforms-container .wpforms-submit {
    background-color: #86bdbf;
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    border-radius: 2px;
    cursor: pointer;
}

/* ============================
   IMAGES - max 1200px centered
   ============================ */
.wp-block-image img,
.wp-block-columns .wp-block-image img {
    max-width: 1200px;
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-image.aligncenter,
.wp-block-image.size-large,
.wp-block-image.size-full {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Front page bio photo - constrain reasonably */
.wp-block-columns .wp-block-image img {
    max-width: 100%;
}

/* ============================
   HEADER SEPARATOR (grey line under site title, full width, 3px)
   ============================ */
.laerke-header-divider,
hr.laerke-header-divider,
.wp-block-separator.laerke-header-divider {
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important;
    height: 3px !important;
    min-height: 3px !important;
    background-color: #6A6A6A !important;
    border: none !important;
    border-top: none !important;
    margin: 8px auto 0 auto !important;
    opacity: 1 !important;
    padding: 0 !important;
}

/* ============================
   CONTENT MAX-WIDTH 1200px CENTERED
   ============================ */

/* Core CSS variables */
:root {
    --wp--style--global--content-size: 1200px;
    --wp--style--global--wide-size: 1200px;
}

/* The post-content uses is-layout-flow so we must manually constrain alignwide children */
.wp-block-post-content .alignwide,
.entry-content .alignwide {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* alignfull colored-background groups: background stays full-width,
   but their direct content children are capped at 1200px */
.wp-block-post-content .wp-block-group.alignfull > *,
.entry-content .wp-block-group.alignfull > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

/* alignfull groups using is-layout-constrained get width via WP variables */
.wp-block-post-content .wp-block-group.alignfull.is-layout-constrained,
.entry-content .wp-block-group.alignfull.is-layout-constrained {
    padding-left: max(1rem, calc((100% - 1200px) / 2));
    padding-right: max(1rem, calc((100% - 1200px) / 2));
    box-sizing: border-box;
}

/* ============================
   GENERAL LAYOUT
   ============================ */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #FFFAF3;
    color: #222329;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Fix overflow on html element too */
html {
    overflow-x: hidden;
}

/* WooCommerce mini-cart button sizing */
.wc-block-mini-cart__button {
    font-size: inherit !important;
}

/* Prevent WooCommerce preloaders from showing as large circles */
.wc-block-components-spinner,
.woocommerce-placeholder,
.wc-block-components-loading-mask {
    max-width: 100px;
}

h1, h2, h3 {
    color: #222329;
}

a {
    color: #86bdbf;
}

a:hover {
    color: #6ea8ab;
}

.wp-block-separator {
    border-color: #fde2cf;
    opacity: 1;
}

/* ============================
   MOBILE RESPONSIVE — TABLET (≤768px)
   ============================ */
@media (max-width: 768px) {
    .laerke-hero-text {
        font-size: 1.6rem;
        padding: 16px 24px;
    }

    .woocommerce .products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    /* Reduce root padding on tablet */
    body {
        --wp--style--root--padding-left: 24px !important;
        --wp--style--root--padding-right: 24px !important;
    }

    /* Stack ALL columns on tablet — override inline flex-basis too */
    .wp-block-columns {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }

    .wp-block-column {
        width: 100% !important;
        flex-basis: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Override WP-baked inline flex-basis percentages */
    .wp-block-column[style*="flex-basis"] {
        flex-basis: 100% !important;
    }

    /* Category grid: 2-column grid on tablet (exception to stacking rule) */
    .laerke-category-grid .wp-block-columns {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
    }

    .laerke-category-grid .wp-block-column {
        width: auto !important;
        flex-basis: auto !important;
        max-width: 100% !important;
    }

    /* Reduce category image height on tablet */
    .laerke-category-grid .wp-block-column figure.wp-block-image > a {
        height: 220px !important;
    }

    /* Hero cover on tablet: drop fixed aspect ratio */
    .wp-block-cover.alignfull,
    .wp-block-cover.alignwide {
        aspect-ratio: unset !important;
        min-height: 360px !important;
        height: auto !important;
    }

    .wp-block-cover.alignfull .wp-block-cover__image-background,
    .wp-block-cover.alignwide .wp-block-cover__image-background {
        object-fit: cover !important;
        object-position: center center !important;
    }

    /* Bio / Om Mig text: readable size */
    .wp-block-column .wp-block-html p {
        font-size: 1.2rem !important;
        line-height: 1.7em !important;
    }

    /* Kontakt portrait: override inline width:730px */
    .wp-block-image.aligncenter.is-resized img,
    .wp-block-image.aligncenter img {
        width: 100% !important;
        max-width: 440px !important;
        height: auto !important;
    }

    /* Kontakt WPForms textarea: full width */
    #wpforms-0 textarea.wpforms-field-medium {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Fix mobile hero text overflow */
@media (max-width: 600px) {
    /* Hero cover: drop fixed aspect ratio, use a sensible min-height instead */
    .wp-block-cover.alignfull,
    .wp-block-cover.alignwide {
        aspect-ratio: unset !important;
        min-height: 260px !important;
        height: auto !important;
    }

    /* Hero background image: switch to cover so it fills the block properly */
    .wp-block-cover.alignfull .wp-block-cover__image-background,
    .wp-block-cover.alignwide .wp-block-cover__image-background {
        object-fit: cover !important;
        object-position: center center !important;
    }

    /* Constrain cover block container with padding */
    .wp-block-cover {
        overflow: hidden !important;
    }

    .wp-block-cover__inner-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Prevent text overflow on hero */
    .wp-block-cover__inner-container p,
    .laerke-hero-tagline {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 16px !important;
        font-size: clamp(1.1rem, 4.5vw, 1.6rem) !important;
    }

    /* Testimonial and other paragraph overflow */
    .wp-block-group p,
    .wp-block-columns p {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        max-width: 100% !important;
    }

    /* Mobile WooCommerce icons - position inline with hamburger */
    .wp-block-woocommerce-customer-account,
    .wp-block-woocommerce-mini-cart,
    .wc-block-mini-cart {
        position: static !important;
        transform: none !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Make header nav group flex row so icons sit beside hamburger */
    .wp-block-group:has(> .wp-block-navigation) {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }
}

/* ============================
   GLOBAL MOBILE OVERFLOW FIX
   ============================ */
@media (max-width: 600px) {
    /* Reduce root padding on mobile so content isn't squeezed AND alignfull
       blocks can properly escape it without overflowing the viewport */
    body {
        --wp--style--root--padding-left: 16px !important;
        --wp--style--root--padding-right: 16px !important;
    }

    /* Category grid: single column on phone */
    .laerke-category-grid .wp-block-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .laerke-category-grid .wp-block-column {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Reduce category image height on phone */
    .laerke-category-grid .wp-block-column figure.wp-block-image > a {
        height: 200px !important;
    }

    /* Bio columns: stack and add padding */
    .wp-block-columns {
        flex-direction: column !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    .wp-block-column {
        width: 100% !important;
        flex-basis: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Bio text font size */
    .wp-block-column .wp-block-html p {
        font-size: 1.1rem !important;
        line-height: 1.7em !important;
        text-align: left !important;
    }

    /* Override WP-baked inline flex-basis percentages on phone */
    .wp-block-column[style*="flex-basis"] {
        flex-basis: 100% !important;
    }

    /* Kontakt portrait: full width on phone, centered */
    .wp-block-image.aligncenter.is-resized img,
    .wp-block-image.aligncenter img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* Kontakt WPForms textarea: full width on phone */
    #wpforms-0 textarea.wpforms-field-medium {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Images on all pages: never overflow */
    .wp-block-image img {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }

    /* All constrained content inside needs padding */
    .wp-block-group.alignfull > .is-layout-constrained,
    .wp-block-group > * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Force any paragraph/text to stay in bounds */
    p, h1, h2, h3, h4, h5, h6, blockquote, cite {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        max-width: 100% !important;
    }

    /* Constrained layout inner content on mobile */
    .is-layout-constrained > :not(.alignfull):not(.alignwide) {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }
}

/* ============================
   TESTIMONIAL
   ============================ */
/* Right-align the author cite within the testimonial quote */
.wp-block-group .wp-block-paragraph cite,
.wp-block-group p cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-size: 0.9rem;
}

/* ============================
   ROOT PADDING OVERRIDE ON MOBILE
   ============================ */
@media (max-width: 480px) {
    /* Already set at 600px above; keep for 480px specificity */
    body {
        --wp--style--root--padding-right: 12px !important;
        --wp--style--root--padding-left: 12px !important;
    }
    
    /* Reduce hero tagline font size on very small screens */
    .laerke-hero-tagline,
    .wp-block-cover__inner-container p {
        font-size: clamp(0.95rem, 3.8vw, 1.4rem) !important;
    }
    
    /* Testimonial text on mobile */
    .wp-block-group.alignfull .has-text-align-center {
        padding-left: 16px !important;
        padding-right: 16px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ============================
   CATEGORY IMAGES
   ============================ */
/* Equal-height category image cards — matches original site's 350px fixed height.
   Scoped to .laerke-category-grid so bio/other columns are NOT affected.
   Note: .wp-block-image IS the <figure> element — target it directly. */

/* Equal column widths only inside the category grid */
.laerke-category-grid .wp-block-column {
    flex: 1 1 0;
}

/* figure: normal flow, no clip */
.laerke-category-grid .wp-block-column figure.wp-block-image {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* <a> is the clip container — fixed height 350px, overflow hidden */
.laerke-category-grid .wp-block-column figure.wp-block-image > a {
    display: block !important;
    width: 100% !important;
    height: 350px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* img fills the <a> clip box absolutely */
.laerke-category-grid .wp-block-column figure.wp-block-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    max-width: none !important;
}

/* figcaption flows naturally below the clip box — matches original:
   Roboto, weight 600, color #7A7A7A (--e-global-color-text), margin-top 19px */
.laerke-category-grid .wp-block-column figure.wp-block-image figcaption {
    display: block !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #7A7A7A !important;
    text-align: center !important;
    margin-top: 19px !important;
    padding: 0 !important;
    font-style: normal !important;
    text-decoration: none !important;
    text-transform: none !important;
}

/* ============================
   MALERIER PAGE — PRODUCT GRID
   ============================ */
/* 1-column layout: products stacked, each full width */
.woocommerce.columns-3 ul.products,
.woocommerce ul.products.columns-3 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.woocommerce ul.products.columns-3 li.product {
    width: 100% !important;
    max-width: 860px !important;
    margin: 0 auto 40px auto !important;
}
/* Images: natural aspect ratio, centred, with shadow */
.woocommerce ul.products li.product a img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    box-shadow: 5px 5px 5px 0 rgb(0 0 0 / 50%) !important;
}

/* Hide results count and sorting dropdown */
.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

/* Center product title and price under the image */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
    text-align: center !important;
}

/* Malerier på Bestilling — query loop post titles black */
.page-id-4888 .wp-block-post-title a,
.page-id-4888 .wp-block-post-title {
    color: #000000 !important;
}

/* Hide "Add to cart" button on product listing pages */
.woocommerce ul.products li.product .button {
    display: none !important;
}

/* Price color black on product listing pages */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount {
    color: #000000 !important;
}

/* ============================
   MC4WP NEWSLETTER FORM
   ============================ */
.mc4wp-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.mc4wp-form .mc4wp-field-group {
    margin: 0 0 16px 0;
}

.mc4wp-form label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #7A7A7A;
    margin-bottom: 6px;
}

.mc4wp-form .mc4wp-required {
    color: #d63638;
}

.mc4wp-form input[type="text"],
.mc4wp-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #333;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.mc4wp-form input[type="text"]:focus,
.mc4wp-form input[type="email"]:focus {
    border-color: #54595F;
}

.mc4wp-form .mc4wp-field-submit {
    margin-top: 8px;
}

.mc4wp-form input[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    background-color: #54595F;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mc4wp-form input[type="submit"]:hover {
    background-color: #3d4147;
}

.mc4wp-response p {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    margin-top: 12px;
    color: #54595F;
}

/* ============================
   KONTAKT PAGE - WPFORMS COMPACT
   ============================ */

/* Tighten WPForms field spacing to match production Elementor form */
#wpforms-form-4883 {
    --wpforms-field-size-input-spacing: 2px;
}

/* Reduce gap between fields */
div.wpforms-container-full #wpforms-form-4883 .wpforms-field {
    margin-bottom: 14px !important;
}

/* Tighter label-to-input gap */
div.wpforms-container-full #wpforms-form-4883 .wpforms-field-label {
    margin: 0 0 2px 0 !important;
    font-size: 13px;
}

/* Smaller input/textarea padding */
div.wpforms-container-full #wpforms-form-4883 input[type="text"],
div.wpforms-container-full #wpforms-form-4883 input[type="email"],
div.wpforms-container-full #wpforms-form-4883 input[type="tel"],
div.wpforms-container-full #wpforms-form-4883 textarea {
    padding: 7px 10px !important;
    font-size: 14px;
}

/* Name field sub-labels (First / Last) */
div.wpforms-container-full #wpforms-form-4883 .wpforms-field-sublabel {
    font-size: 11px;
}

/* Remove excess container padding */
div.wpforms-container-full#wpforms-4883,
div#wpforms-0.wpforms-container {
    padding: 0 !important;
}

/* Align left column text top with first form field label */
.wp-block-column:first-child > p:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* ============================
   KONTAKT PAGE - WPFORMS COMPACT (corrected selectors)
   ============================ */

/* Override CSS vars on the inline style block target */
#wpforms-4883 {
    --wpforms-field-size-input-spacing: 2px !important;
    --wpforms-field-size-input-height: 36px !important;
    --wpforms-container-padding: 0px !important;
}

/* Reduce gap between fields */
#wpforms-0 .wpforms-field {
    margin-bottom: 14px !important;
}

/* Tighter label-to-input gap */
#wpforms-0 .wpforms-field-label {
    margin: 0 0 2px 0 !important;
    font-size: 13px !important;
}

/* Smaller inputs */
#wpforms-0 input[type="text"],
#wpforms-0 input[type="email"],
#wpforms-0 textarea {
    padding: 6px 10px !important;
    font-size: 14px !important;
    height: auto !important;
    min-height: unset !important;
}

/* Sub-labels (First/Last) */
#wpforms-0 .wpforms-field-sublabel {
    font-size: 11px !important;
}

/* No extra padding on container */
#wpforms-0.wpforms-container {
    padding: 0 !important;
}

/* Besked textarea - 4 rows height */
#wpforms-0 #wpforms-0-field_3 {
    height: calc(4 * 1.5em + 12px) !important;
    min-height: unset !important;
    resize: vertical;
}

/* Align left column first paragraph top with form first field */
.wp-block-column:first-child > p:first-of-type {
    margin-top: 0 !important;
}

/* Align WPForms container top with left column text on kontakt page */
.wp-block-column #wpforms-0.wpforms-container {
    margin-top: 0 !important;
}

/* Fix: <style> tag is first child so wpforms-container is second child and gets 1.2rem margin */
#wpforms-0.wpforms-container {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* WPForms container has margin:24px auto by default - zero the top */
div.wpforms-container-full:not(:empty)#wpforms-0 {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* Besked textarea - match input field width (60%) */
#wpforms-0 textarea.wpforms-field-medium {
    max-width: 60% !important;
    width: 60% !important;
    box-sizing: border-box !important;
}

/* Match production font style for left column contact info text */
.wp-block-column:first-child p,
.wp-block-column:first-child div {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400 !important;
    font-size: 17px !important;
    color: #7A7A7A !important;
    line-height: 1.6 !important;
}
/* Bold headers keep their weight */
.wp-block-column:first-child strong {
    font-weight: 700 !important;
    color: #7A7A7A !important;
}

/* Vertically center left column content within the row */
.wp-container-core-columns-is-layout-133cf375 {
    align-items: center !important;
}

/* Override wp-block-columns core align-items:normal!important for this specific container */
.wp-block-columns.wp-container-core-columns-is-layout-133cf375 {
    align-items: center !important;
}

/* Newsletter form (4926) - center fields and green submit button */
#wpforms-form-4926 .wpforms-field-container {
    max-width: 400px;
    margin: 0 auto;
}
#wpforms-form-4926 .wpforms-submit-container {
    text-align: center;
}
#wpforms-form-4926 .wpforms-submit {
    background-color: #61CE70 !important;
    border-color: #61CE70 !important;
    color: #ffffff !important;
}
#wpforms-form-4926 .wpforms-submit:hover {
    background-color: #4db85c !important;
}

/* Newsletter button icon via CSS */
#wpforms-form-4926 .wpforms-submit::before {
    content: "✉ ";
}
