:root {
    --bzkorm-toolbar-height: 3.5rem;
}

body:has(.bzkorm-embed) > .wp-site-blocks {
    padding-block-start: var(--bzkorm-toolbar-height);
}

.bzkorm-embed {
    --bzkorm-toolbar-top: var(--wp-admin--admin-bar--height, 0px);
}

.bzkorm-embed-toolbar {
    position: fixed;
    inset: var(--bzkorm-toolbar-top) 0 auto;
    z-index: 1000;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: var(--bzkorm-toolbar-height);
    padding-inline: 1rem;
    border-bottom: 2px solid #806644;
    background: #204b41 linear-gradient(#335d52, #193e36);
    box-shadow: 0 1px 0 #e2b67a, 0 4px 8px #142f2c36;
}

.bzkorm-embed-toggle {
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    inline-size: min(14rem, 100%);
    block-size: 2.625rem;
    text-align: center;
    white-space: nowrap;
    border: 2px solid #72532d;
    border-radius: 0.4375rem;
    padding: 0.375rem 0.75rem;
    background: #ecbd68 linear-gradient(#ffe7aa, #ecbd68 55%, #d99b47);
    color: #2c2116;
    box-shadow: inset 0 1px #fff3cc, 0 2px 0 #102b24, 0 3px 4px #102b2466;
    font: 650 0.9375rem/1.25 system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.bzkorm-embed-toggle:hover {
    background: #f6cf85 linear-gradient(#fff0c6, #f6cf85 58%, #e0a555);
    color: #2c2116;
}

.bzkorm-embed-toggle:active {
    box-shadow: inset 0 2px 3px #6e391b50;
}

.bzkorm-embed-toggle:focus-visible {
    outline: 3px solid #f5dbff;
    outline-offset: 2px;
}

.bzkorm-embed-scroll-lock {
    overflow: hidden;
}

.bzkorm-embed.bzkorm-embed-expanded {
    position: fixed;
    inset: 0;
    display: grid;
    box-sizing: border-box;
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    height: 100%;
    margin: 0;
    /* Expanded calculator fills the viewport outside the WordPress reading measure. */
    margin-inline: 0 !important;
    padding: calc(var(--bzkorm-toolbar-top) + var(--bzkorm-toolbar-height)) 0 0;
    border: 0;
    max-width: none !important;
    max-height: none;
    background: #dbe5df;
}

.bzkorm-embed-expanded iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border: 0;
}

.bzkorm-embed:not(.bzkorm-embed-expanded) iframe {
    border: 2px solid #536e64;
    border-radius: 10px;
    box-shadow: 0 3px 0 #536e6466, 0 7px 15px #143b3226;
}
