/* ====================================
   Centershop Plugin Styles
   Konsolideret styling til butikker
   ==================================== */

/* Social Media Icons */
.fb-logo {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMinYMin meet' viewBox='0 0 262 266.895'><path id='path3087' fill='%23000' d='M182.409,262.307v-99.803h33.499l5.016-38.895h-38.515V98.777c0-11.261,3.127-18.935,19.275-18.935 l20.596-0.009V45.045c-3.562-0.474-15.788-1.533-30.012-1.533c-29.695,0-50.025,18.126-50.025,51.413v28.684h-33.585v38.895h33.585 v99.803H182.409z'></path></svg>");
    display: inline-block;
    position: relative;
    width: 23px;
    height: 23px;
    left: 2px;
}

.insta-logo {
    background-image: url('data:image/svg+xml;utf8, <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Instagram icon</title><path d="M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"/></svg>');
    display: inline-block;
    position: relative;
    top: 1px;
    left: 8px;
    width: 20px;
    height: 20px;
    margin: 0 0 0 0px;
}

.www-logo {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 48h-.7c-55.4.2-107.4 21.9-146.6 61.1C69.6 148.4 48 200.5 48 256s21.6 107.6 60.8 146.9c39.1 39.2 91.2 60.9 146.6 61.1h.7c114.7 0 208-93.3 208-208S370.7 48 256 48zm180.2 194h-77.6c-.9-26.7-4.2-52.2-9.8-76.2 17.1-5.5 33.7-12.5 49.7-21 22 28.2 35 61.6 37.7 97.2zM242 242h-61.8c.8-24.5 3.8-47.7 8.8-69.1 17.4 3.9 35.1 6.3 53 7.1v62zm0 28v61.9c-17.8.8-35.6 3.2-53 7.1-5-21.4-8-44.6-8.8-69H242zm28 0h61.3c-.8 24.4-3.8 47.6-8.8 68.9-17.2-3.9-34.8-6.2-52.5-7V270zm0-28v-62c17.8-.8 35.4-3.2 52.5-7 5 21.4 8 44.5 8.8 69H270zm109.4-117.9c-12.3 6.1-25 11.3-38 15.5-7.1-21.4-16.1-39.9-26.5-54.5 24 8.3 45.9 21.6 64.5 39zM315 146.8c-14.7 3.2-29.8 5.2-45 6V79.4c17 9.2 33.6 33.9 45 67.4zM242 79v73.7c-15.4-.8-30.6-2.8-45.5-6.1 11.6-33.8 28.4-58.5 45.5-67.6zm-45.6 6.4c-10.3 14.5-19.2 32.9-26.3 54.1-12.8-4.2-25.4-9.4-37.5-15.4 18.4-17.3 40.1-30.5 63.8-38.7zm-82.9 59.5c15.8 8.4 32.3 15.4 49.2 20.8-5.7 23.9-9 49.5-9.8 76.2h-77c2.6-35.4 15.6-68.8 37.6-97zM75.8 270h77c.9 26.7 4.2 52.3 9.8 76.2-16.9 5.5-33.4 12.5-49.2 20.8-21.9-28.1-34.9-61.5-37.6-97zm56.7 117.9c12.1-6 24.7-11.2 37.6-15.4 7.1 21.3 16 39.6 26.3 54.2-23.7-8.4-45.4-21.5-63.9-38.8zm64-22.6c14.9-3.3 30.2-5.3 45.5-6.1V433c-17.2-9.1-33.9-33.9-45.5-67.7zm73.5 67.3v-73.5c15.2.8 30.3 2.8 45 6-11.4 33.6-28 58.3-45 67.5zm45-5.7c10.4-14.6 19.4-33.1 26.5-54.5 13 4.2 25.8 9.5 38 15.6-18.6 17.3-40.6 30.6-64.5 38.9zm83.5-59.8c-16-8.5-32.6-15.5-49.7-21 5.6-23.9 8.9-49.4 9.8-76.1h77.6c-2.7 35.5-15.6 68.9-37.7 97.1z"/></svg>');
    display: inline-block;
    position: relative;
    top: 2px;
    left: 5px;
    width: 23px;
    height: 23px;
}

.mail-logo {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460.6 147.3L353 256.9c-.8.8-.8 2 0 2.8l75.3 80.2c5.1 5.1 5.1 13.3 0 18.4-2.5 2.5-5.9 3.8-9.2 3.8s-6.7-1.3-9.2-3.8l-75-79.9c-.8-.8-2.1-.8-2.9 0L313.7 297c-15.3 15.5-35.6 24.1-57.4 24.2-22.1.1-43.1-9.2-58.6-24.9l-17.6-17.9c-.8-.8-2.1-.8-2.9 0l-75 79.9c-2.5 2.5-5.9 3.8-9.2 3.8s-6.7-1.3-9.2-3.8c-5.1-5.1-5.1-13.3 0-18.4l75.3-80.2c.7-.8.7-2 0-2.8L51.4 147.3c-1.3-1.3-3.4-.4-3.4 1.4V368c0 17.6 14.4 32 32 32h352c17.6 0 32-14.4 32-32V148.7c0-1.8-2.2-2.6-3.4-1.4z"/><path d="M256 295.1c14.8 0 28.7-5.8 39.1-16.4L452 119c-5.5-4.4-12.3-7-19.8-7H79.9c-7.5 0-14.4 2.6-19.8 7L217 278.7c10.3 10.5 24.2 16.4 39 16.4z"/></svg>');
    display: inline-block;
    position: relative;
    top: 2px;
    left: 0px;
    width: 23px;
    height: 23px;
}

.no-sociallogo-for-shop {
    height: 30px;
}

/* Butik kategorier */
ul.butikskategorier {
    text-align: center;
    list-style: none;
}

li.butikskategori-overskrift, .butikskategorier li {
    list-style: none;
    display: inline-block;
    margin: .5rem 1rem .5rem 0;
    padding: 1.5rem;
    width: 227px;
    background-color: #efefef;
    font-size: 1.2rem;
    text-align: center;
    transition: 200ms ease-in-out all;
}

li.butikskategori-overskrift:hover {
    transform: scale(1.05);
    cursor: pointer;
}

li.butikskategori-overskrift.active {
    box-shadow: 1px 1px 10px 1px;
}

h4.kategori-overskrift {
    margin: 4rem 0 0;
    font-size: 2.4rem;
}

@media only screen and (max-width: 550px) {
    h4.kategori-overskrift {
        display: none;
    }

    ul.butikskategorier {
        display: none;
    }
}

/* Butiksliste */
ul.butiksliste {
    list-style: none;
}

li.butik-paa-liste {
    list-style: none;
    display: inline-block;
    margin: 1rem .1% 0rem;
    width: 49%;
    vertical-align: text-top;
}

.butik-info-venstre {
    display: inline-block;
    width: 49%;
    vertical-align: top;
    height: 330px;
    background-color: #efefef;
}

.butik-info-hojre {
    display: inline-block;
    width: 49%;
    height: 330px;
}

@media only screen and (max-width: 550px) {
    .butik-info-hojre, .butik-info-venstre {
        min-height: 300px;
        flex: 1;
    }
}

/* Butik billede/logo */
.link-butikbillede {
    display: block;
}

img.listbutiklogo {
    position: relative;
    width: auto !important;
    max-width: 160px !important;
    max-height: 103px !important;
    margin-top: 1rem;
}

/* Butik info */
.butikinfo {
    background-color: #efefef;
    font-size: .9rem;
    line-height: 1.2;
}

.butiksliste .butikinfo, .listbutiklogo {
    padding: 0 2rem;
}

h4.butikerhvervnavn {
    font-size: 1.3rem;
    margin-bottom: .5rem;
    line-height: 1;
    letter-spacing: -.1px;
    hyphens: manual;
}

.cpt-mailadress {
    text-decoration: none;
}

/* Åbningstider */
.aabningstider-box {
    background-color: #efefef;
    padding: 1rem 1rem 0;
    height: 100%;
}

.aabningstider-box table {
    width: 100%;
}

.aabningstider-box h5 {
    margin-bottom: 0;
    font-size: 1.3rem;
    border-bottom: 1px solid;
}

.aabningstider-box tr {
    line-height: 5px;
}

.aabningstider-box td {
    font-size: .9rem;
}

/* Single butik side */
.butiksnavn {
    margin-top: 3rem;
    font-size: 2.6rem;
    font-weight: 900;
}

/* Gutenberg Blocks Styling */
.centershop-block-list, .centershop-single-block {
    padding: 20px 0;
}

/* Grid layout for list block */
.centershop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 0;
}

/* Shared item styles */
.centershop-single-block .centershop-item {
    max-width: 600px;
    margin: 0 auto;
}

/* Layout: Logo left, Info right */
.centershop-layout {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* Logo left */
.centershop-logo-left {
    flex-shrink: 0;
    width: 100px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.centershop-logo-left a {
    display: block;
}

.centershop-logo-left img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

/* Info right */
.centershop-info-right {
    flex: 1;
    min-width: 0;
}

/* Title */
.centershop-title {
    font-size: 28px;
    line-height: 1;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* Address and phone */
.centershop-address, .centershop-phone {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Icons row */
.centershop-icons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

.centershop-icon {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.centershop-icon:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 550px) {
    .centershop-grid {
        grid-template-columns: 1fr;
    }

    .centershop-logo-left {
        width: 80px;
    }

    .centershop-logo-left img {
        max-height: 80px;
    }

    .centershop-title {
        font-size: 16px;
    }

    .centershop-address, .centershop-phone {
        font-size: 13px;
    }

    li.butik-paa-liste {
        display: flex;
        width: 100%;
    }

    .butikinfo {
        font-size: 1rem;
    }

    .aabningstider-box tr td {
        font-size: .9rem;
    }
}

/* Editor specific styles */
.block-editor-block-list__block .centershop-block-list, .block-editor-block-list__block .centershop-single-block {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.block-editor-block-list__block .centershop-single-block .centershop-item {
    margin: 0 auto;
}

p.centershop-address, p.centershop-phone {
    padding: 0;
    margin: 0;
}
