/* Persiennbutiken look, modelled on www.persienner-online.se (Semantic UI, Lato). */
:root {
    --pb-black: #1b1c1d;
    --pb-blue: #2185d0;
    --pb-teal: #00b5ad;
    --pb-red: #db2828;
    --pb-green: #27ae60;
    --bs-body-font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
    --bs-body-font-size: 14px;
    --bs-body-color: rgba(0, 0, 0, .87);
    --bs-primary: #2185d0;
    --bs-primary-rgb: 33, 133, 208;
    --bs-link-color: #4183c4;
    --bs-link-color-rgb: 65, 131, 196;
    --bs-link-hover-color: #1e70bf;
    --bs-link-hover-color-rgb: 30, 112, 191;
}

html {
    font-size: 14px;
}

body {
    font-family: var(--bs-body-font-family);
    font-size: 14px;
    line-height: 1.4285em;
}

h1, h2, h3, h4, h5 {
    font-family: var(--bs-body-font-family);
    font-weight: 700;
}

.btn-primary {
    --bs-btn-bg: var(--pb-blue);
    --bs-btn-border-color: var(--pb-blue);
    --bs-btn-hover-bg: #1678c2;
    --bs-btn-hover-border-color: #1678c2;
    --bs-btn-active-bg: #1a69a4;
}

/* Header */
.pb-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--pb-black);
    color: rgba(255, 255, 255, .9);
    font-size: 1.07rem;
}

.pb-header__bar {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: 0 1.25rem;
    min-height: 60px;
}

.pb-header__brand {
    display: flex;
    align-items: center;
    margin-right: 1em;
}

.pb-header__brand img {
    max-height: 52px;
    width: auto;
}

.pb-header__brand img.d-sm-none {
    max-height: 44px;
}

.pb-header__link,
.pb-header .btn-link {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    padding: .9em .8em;
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    border: 0;
}

.pb-header__link:hover,
.pb-header .btn-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.pb-header .icon {
    width: 1.3em;
    height: 1.3em;
}

.pb-header__right {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: .25rem;
}

.pb-header__badge {
    position: absolute;
    top: .3em;
    left: .2em;
    min-width: 1.5em;
    padding: .1em .4em;
    border-radius: 1em;
    background: var(--pb-teal);
    color: #fff;
    font-size: .75em;
    font-weight: 700;
    line-height: 1.3;
}

.pb-search {
    display: flex;
    align-items: stretch;
}

.pb-search input {
    width: 11em;
    padding: .45em .8em;
    border: 1px solid rgba(34, 36, 38, .15);
    border-right: 0;
    border-radius: .28rem 0 0 .28rem;
    font-size: .85rem;
}

.pb-search button {
    padding: 0 .7em;
    border: 0;
    border-radius: 0 .28rem .28rem 0;
    background: #e0e1e2;
    color: rgba(0, 0, 0, .6);
}

.pb-search button .icon {
    width: 1.1em;
    height: 1.1em;
}

/* Desktop menu with flyouts */
.pb-menu,
.pb-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pb-menu {
    align-self: stretch;
}

.pb-menu__top {
    position: relative;
    display: flex;
    align-items: center;
}

.pb-menu__toggle {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.14em;
    cursor: pointer;
    user-select: none;
}

.pb-menu__top:hover > .pb-menu__toggle,
.pb-menu__top:focus-within > .pb-menu__toggle {
    background: rgba(255, 255, 255, .08);
}

.pb-menu__caret {
    width: .9em;
    height: .9em;
    margin-left: .4em;
    opacity: .8;
}

.pb-menu__dropdown,
.pb-menu__flyout {
    position: absolute;
    display: none;
    min-width: max-content;
    padding: .3em 0 !important;
    background: rgba(0, 0, 0, .87);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    border-radius: 0 0 .28rem .28rem;
}

.pb-menu__dropdown {
    top: 100%;
    left: 0;
    z-index: 20;
}

.pb-menu__flyout {
    top: 0;
    left: 100%;
    z-index: 21;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: .28rem;
}

.pb-menu__top:hover > .pb-menu__dropdown,
.pb-menu__top:focus-within > .pb-menu__dropdown,
.pb-menu__item--group:hover > .pb-menu__flyout {
    display: block;
}

.pb-menu__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
}

.pb-menu__item > a,
.pb-menu__item > span {
    flex: 1;
    padding: .7em 1.2em;
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    white-space: nowrap;
}

.pb-menu__item--group > .pb-menu__caret {
    margin-right: .8em;
}

.pb-menu__item:hover {
    background: rgba(255, 255, 255, .08);
}

.pb-menu__item > a:hover {
    color: #fff;
}

/* Mobile menu */
.pb-mobile-menu {
    background: var(--pb-black);
    color: #fff;
    max-width: 320px;
}

.pb-mobile-menu .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.pb-mobile-menu__link {
    display: block;
    width: 100%;
    padding: .9em .2em;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: none;
    color: rgba(255, 255, 255, .9);
    text-align: left;
    text-decoration: none;
}

.pb-mobile-menu__sublink {
    display: block;
    padding: .55em 1em;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.pb-mobile-menu__sublink--child {
    padding-left: 2em;
}

.pb-mobile-menu a:hover {
    color: #fff;
}

/* Footer */
.pb-footer {
    margin-top: 3em;
    padding: 5em 0;
    background: var(--pb-black);
    color: rgba(255, 255, 255, .9);
}

.pb-footer .row > div + div {
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.pb-footer h4 {
    margin-bottom: .8em;
    color: #fff;
    font-size: 1.28em;
}

.pb-footer a {
    display: block;
    padding: .21em 0;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
}

.pb-footer a:hover {
    color: #fff;
}

.pb-footer p {
    margin: 0;
    padding: .21em 0;
    color: rgba(255, 255, 255, .9);
}

.pb-footer__payments {
    display: flex;
    align-items: center;
    gap: .6em;
}

.pb-footer__card {
    width: 3.5em;
    height: 3.5em;
    color: #fff;
}

.pb-footer__payments img {
    height: 3em;
    width: auto;
}

@media (max-width: 767.98px) {
    .pb-footer .row > div + div {
        border-left: 0;
    }
}

/* Edit shortcuts, only rendered for store staff. Same idea as NG's .admin-edit-link. */
.pb-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 6px 1.25rem;
    background: linear-gradient(90deg, #1b1c1d 0%, #2d2e2f 100%);
    color: #fff;
    font-size: 13px;
}

.pb-admin-toolbar__links {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.pb-admin-toolbar__label {
    color: #00d4ff;
    font-weight: 700;
}

.pb-admin-toolbar a {
    color: #fff;
    text-decoration: none;
    padding: 2px 10px;
    background: rgba(255, 255, 255, .1);
    border-radius: 4px;
}

.pb-admin-toolbar__env {
    background: #ffa500;
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 700;
}

.pb-admin-edits {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.pb-admin-edit {
    display: inline-block;
    margin-left: .4em;
    color: #2185d0 !important;
    font-size: .85em;
    font-weight: 400;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.pb-admin-edit::before {
    content: '✎ ';
}

.pb-admin-edit:hover {
    text-decoration: underline;
}

.pb-admin-edit--block {
    display: inline-flex;
    align-items: center;
    margin: 0 5px 5px 0;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.pb-admin-edit--block:hover {
    background: #2185d0;
    color: #fff !important;
    border-color: #2185d0;
    text-decoration: none;
}

/* Homepage, matching www.persienner-online.se */
.pb-hero {
    background-color: #e0e0e0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 4vh;
}

.pb-hero__panel {
    position: relative;
    display: block;
    width: auto;
    margin: 15vh 1em 0;
    padding: 7vh 1.5em 2em;
    border: 1px solid #fff;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.pb-hero__panel:hover {
    color: #fff;
}

.pb-hero__logo {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.pb-hero__panel img.pb-hero__logo--standing {
    top: 0;
    left: 0;
    right: 0;
    height: 15vh !important;
    width: auto !important;
    max-width: none !important;
    margin: -13vh auto 0;
    transform: none;
}

.pb-hero__panel img.pb-hero__logo--mobile {
    display: none !important;
}

.pb-hero__panel h1,
.pb-hero__panel h2 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.pb-hero__panel h1 {
    margin-bottom: .35em;
}

.pb-home {
    width: auto;
    margin: 0 1em 3rem;
}

.pb-home__heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2em 0 1em;
    color: rgba(0, 0, 0, .87);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.pb-home__heading:first-child {
    margin-top: 1.5em;
}

.pb-home__heading::before,
.pb-home__heading::after {
    content: '';
    flex: 1 1 auto;
    border-top: 1px solid rgba(34, 36, 38, .15);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.pb-home__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    align-items: stretch;
}

.pb-home-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1em;
    border: 1px solid rgba(34, 36, 38, .15);
    border-radius: .28571429rem;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(34, 36, 38, .15);
    color: rgba(0, 0, 0, .87);
    text-align: center;
    text-decoration: none;
}

.pb-home-card:hover {
    color: rgba(0, 0, 0, .87);
    box-shadow: 0 2px 6px 0 rgba(34, 36, 38, .18);
}

.pb-home-card img {
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
    flex: 0 0 auto;
}

.pb-home-card h3 {
    margin: 1rem 0 .4rem;
    color: #000;
    font-size: 1.28rem;
    font-weight: 700;
}

.pb-home-card p {
    margin: 0;
}

.pb-home-notice,
.pb-home-seo__block {
    margin-top: 1.5em;
    padding: 1em 1.25em;
    border: 1px solid rgba(34, 36, 38, .15);
    border-radius: .28571429rem;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(34, 36, 38, .15);
    text-align: left;
}

.pb-home-notice {
    margin-top: 2.5em;
    border-color: #e6e6e6;
    background: #f7f7f7;
    box-shadow: none;
    text-align: center;
}

.pb-home-notice h2,
.pb-home-seo__block h2 {
    margin: 0 0 .6em;
    color: rgba(0, 0, 0, .87);
    font-size: 1.7rem;
    font-weight: 700;
}

.pb-home-notice p,
.pb-home-seo__block p {
    margin: 0 0 .8em;
    line-height: 1.55;
}

.pb-home-notice__cta {
    margin-bottom: 0;
}

.pb-home-notice__cta a {
    color: #222;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, .35);
}

.pb-home-seo {
    margin-top: 2.5em;
}

.pb-home-seo__block h3 {
    margin: 1.1em 0 .35em;
    padding-top: .75em;
    border-top: 1px solid rgba(34, 36, 38, .1);
    font-size: 1.1em;
    font-weight: 700;
}

.pb-home-seo__block h3:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.pb-home-seo__links {
    margin-bottom: 0;
}

.pb-home-seo__links a {
    color: #4183c4;
    text-decoration: none;
}

.pb-home-seo__links a:hover {
    color: #1e70bf;
    text-decoration: underline;
}

.pb-home-seo__links span {
    margin: 0 .35em;
}

.pb-home-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    margin: 1.25rem 0 .25rem;
    padding: .6rem;
    background: #f8f9fa;
    border-radius: 5px;
    color: #666;
}

.pb-home__section-edit {
    text-align: center;
    margin: -.4rem 0 .8rem;
}

.pb-home-card__tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
}

.pb-home-card__tools form {
    display: inline;
    margin: 0;
}

.pb-home-btn {
    display: inline-flex;
    align-items: center;
    gap: .25em;
    padding: .4em .7em;
    border-radius: .285rem;
    border: 1px solid transparent;
    background: #e0e1e2;
    color: rgba(0, 0, 0, .6);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.pb-home-btn--orange { background: #f2711c; color: #fff; }
.pb-home-btn--purple { background: #a333c8; color: #fff; }
.pb-home-btn--green { background: #21ba45; color: #fff; }
.pb-home-btn--olive { background: #b5cc18; color: #fff; }
.pb-home-btn--blue { background: #2185d0; color: #fff; }
.pb-home-btn--line { background: #fff; border-color: #2185d0; color: #2185d0; }
.pb-home-btn--line-green { background: #fff; border-color: #21ba45; color: #16ab39; }
.pb-home-btn--line-teal { background: #fff; border-color: #00b5ad; color: #009c95; }
.pb-home-btn--line-red { background: #fff; border-color: #db2828; color: #db2828; }

.pb-home-card__url {
    margin-top: 3px;
    color: #666;
    font-size: 11px;
    text-align: center;
    word-break: break-all;
}

.pb-home-card__inactive {
    margin: 0 0 .6rem;
    padding: .6rem;
    background: #fffaf3;
    border: 1px solid #c9ba9b;
    color: #573a08;
    text-align: left;
}

@media (min-width: 768px) {
    .pb-hero__panel,
    .pb-home {
        width: 723px;
        margin-left: auto;
        margin-right: auto;
    }

    .pb-hero__panel {
        margin-top: 15vh;
    }
}

@media (min-width: 992px) {
    .pb-hero__panel,
    .pb-home {
        width: 933px;
    }
}

@media (min-width: 1200px) {
    .pb-hero__panel,
    .pb-home {
        width: 1127px;
    }
}

@media (max-width: 767.98px) {
    .pb-hero {
        padding-bottom: 2vh;
    }

    .pb-hero__panel {
        margin-top: 14vh;
        margin-bottom: 2vh;
        padding: 5vh 1em 1em;
        font-size: .5em;
    }

    .pb-hero__panel img.pb-hero__logo--standing {
        display: none !important;
    }

    .pb-hero__panel img.pb-hero__logo--mobile {
        display: block !important;
        position: absolute;
        left: 0;
        right: 0;
        height: 11vw !important;
        width: auto !important;
        max-width: none !important;
        margin: -9vw auto 0;
    }

    .pb-home__grid {
        grid-template-columns: 1fr;
    }

    .pb-home__heading::before,
    .pb-home__heading::after {
        display: none;
    }

    .pb-home__heading {
        display: block;
        text-align: left;
    }
}
