@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    font-family: 'DM Sans', sans-serif;
    color: #f5efe6;
    background: #20272b;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box
}

*,
*::before,
*::after {
    box-sizing: inherit
}

html,
body {
    margin: 0;
    min-width: 320px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip
}

body {
    min-height: 100vh;
    background: #20272b
}

.roofer-toolbar {
    position: fixed;
    z-index: 10000;
    inset: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    width: 100%;
    min-width: 0;
    padding: 0 8px 8px;
    border-bottom: 4px solid #e18b45;
    background: rgba(28, 35, 39, .99);
    color: #f5efe6;
    box-shadow: 0 8px 26px #10151755
}

.roofer-home {
    flex: 0 0 auto;
    width: 77px;
    height: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid #e18b45;
    border-radius: 3px;
    color: #ffe0c2;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap
}

.roofer-home:hover {
    background: #ffe0c2;
    color: #20272b;
    text-decoration: none
}

.roofer-control {
    display: flex;
    flex: 1 1 145px;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    gap: 4px;
    margin: 0;
    color: #d6d0c8;
    font-size: 11px;
    font-weight: 700
}

.roofer-control>span {
    display: block;
    min-height: 14px;
    line-height: 1.1
}

.roofer-control input,
.roofer-control select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 38px;
    min-height: 38px;
    padding: 6px 9px;
    border: 1px solid #657078;
    border-radius: 3px;
    background: #f7f5ef;
    color: #172127;
    font-size: 13px
}

.roofer-control input[type=color] {
    width: 100%;
    padding: 3px
}

.roofer-design {
    flex-basis: 190px
}

.roofer-color {
    flex: 0 0 70px
}

.roofer-business {
    max-width: none
}

.roofer-phone {
    max-width: 160px
}

.roofer-settings {
    position: static;
    display: block;
    flex: 0 0 auto
}

.roofer-settings summary {
    box-sizing: border-box;
    width: 121px;
    height: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid #e18b45;
    border-radius: 3px;
    background: #e18b45;
    color: #20272b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    list-style: none
}

.roofer-settings summary::-webkit-details-marker {
    display: none
}

.roofer-settings summary::after {
    content: '+';
    font: 700 16px/1 'DM Sans', sans-serif
}

.roofer-settings[open] summary::after {
    content: '−'
}

.roofer-status {
    display: none
}

.roofer-settings-panel {
    position: fixed;
    z-index: 10001;
    top: var(--roofer-toolbar-height, 76px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 70dvh;
    overflow: auto;
    display: grid;
    box-sizing: border-box;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px clamp(12px, 2vw, 28px) 20px;
    border: 1px solid #56616a;
    border-top: 2px solid #e18b45;
    background: #20272b;
    color: #f5efe6;
    box-shadow: 0 18px 34px #10151788
}

.roofer-settings[open] .roofer-settings-panel {
    animation: roofer-settings-in .15s ease-out
}

@keyframes roofer-settings-in {
    from {
        opacity: .65;
        transform: translateY(-5px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.roofer-settings-panel .roofer-control {
    min-width: 0;
    align-self: start
}

.roofer-settings-panel .roofer-control input,
.roofer-settings-panel .roofer-control textarea {
    width: 100%;
    min-width: 0
}

.roofer-settings-panel .roofer-control textarea {
    height: 94px;
    min-height: 94px;
    padding: 8px;
    font: 12px/1.4 'DM Sans', sans-serif;
    resize: vertical
}

.roofer-wide {
    grid-column: span 2
}

.roofer-settings-panel small {
    display: block;
    color: #d4c1b1;
    font-size: 11px;
    line-height: 1.35
}

.roofer-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    color: #f5efe6;
    font-size: 12px
}

.roofer-toggle input {
    width: 17px;
    height: 17px;
    accent-color: #e18b45
}

.roofer-note {
    grid-column: 1/-1;
    margin: 0;
    color: #d4c1b1;
    font-size: 12px
}

.roofer-stage {
    width: 100%;
    max-width: 100%;
    padding-top: var(--roofer-toolbar-height, 76px);
    overflow-x: clip
}

.roofer-stage iframe {
    display: block;
    width: 100%;
    height: calc(100dvh - var(--roofer-toolbar-height, 76px));
    min-height: 600px;
    border: 0;
    background: #f3efe6
}

.roofer-loading {
    padding: 20px;
    color: #f5efe6;
    text-align: center
}

@media(max-width:1120px) {
    .roofer-toolbar {
        gap: 8px 12px
    }

    .roofer-design {
        flex-basis: 165px
    }

}

@media(max-width:760px) {
    .roofer-toolbar {
        padding: 0 10px 6px;
        gap: 7px 9px;
        justify-content: center
    }

    .roofer-control {
        flex-basis: calc(50% - 8px);
        font-size: 10px
    }

    .roofer-color {
        flex: 0 0 58px
    }

    .roofer-design,
    .roofer-business,
    .roofer-phone {
        flex-basis: calc(50% - 8px);
        width: auto
    }

    .roofer-design,
    .roofer-business {
        max-width: none
    }

    .roofer-settings summary {
        padding-inline: 8px;
        font-size: 11px
    }

    .roofer-settings-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 62dvh;
        padding: 12px
    }

    .roofer-stage iframe {
        height: calc(100dvh - var(--roofer-toolbar-height, 150px));
        min-height: 560px
    }
}

@media(max-width:430px) {
    .roofer-toolbar {
        gap: 7px 9px;
        padding-inline: 10px
    }

    .roofer-control input,
    .roofer-control select {
        font-size: 12px;
        padding-inline: 6px
    }

    .roofer-settings summary {
        width: 108px;
        padding-inline: 8px;
        font-size: 11px
    }

}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important
    }
}