html,
body,
iframe {
    min-height: calc(100vh - 3rem) !important;
    margin: 0;
    font-family: sans-serif;
}

#custom-header {
    background: black;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
}

.btn-group {
    display: flex;
    gap: 0.25rem;
}

#copy-success {
    position: fixed;
    top: 0;
    inset: unset;
    left: 0;
    background: green;
    color: white;
    border: unset;
    font-family: sans-serif;
}

#import-templates:popover-open {
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
}

#import-templates h3 {
    margin: 0;
}

button {
    border-radius: 0;
    background: white;
    border: 1px solid rgb(212, 212, 212);
    padding: 0.45rem;
    transition: background 0.2s;
}

button:hover {
    background: #e4e4e4;
    cursor: pointer;
}

.blockbuilder-branding {
    display: none !important;
}

#template-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.35rem;
}

.config-lockup {
    display: grid;
    /* grid-template-columns: 20rem auto; */
}

#export-config,
#export-html,
#import-customConfig {
    padding: 1rem;
}

#export-config>h3,
#export-html>h3,
#import-customConfig>h3 {
    margin: 0;
    margin-bottom: 0.875rem;
}

.config-lockup>input,
#import-custom-input {
    border-radius: 0;
    border: 1px solid rgb(212, 212, 212);
    padding: 0.5rem;
    background: #dff3f7;
}

#file-drop-container {
    width: 91%;
    border: 2px dashed #24af64;
    padding: 1rem;
    background: #e1f7df;
    margin-bottom: 2rem;
    transition: border 0.3s, background 0.3s;
    position: relative;
}

#file-drop-container::after {
    content: "Drop a file, or click here to select one";
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

#file-drop-container:hover {
    background: #24af64;
    cursor: pointer;
}

#file-drop-container>input:hover {
    cursor: pointer;
}

#file-drop-container>input::after {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
}

#file-drop-container>input {
    color: inherit;
    text-decoration: none;
    opacity: 0;
}

/* Popover styles */
[popover].basic-popover {
    transition: opacity 0.2s, transform 0.2s, display 0.2s allow-discrete, overlay 0.3s allow-discrete;
    opacity: 0;
    display: none;
    transform: translateY(1rem);
    z-index: 6942069;
    border: 1px solid #e4e4e4;
}

[popover].basic-popover:popover-open {
    opacity: 1;
    display: block;
    transform: none;
}

@starting-style {
    [popover].basic-popover:popover-open {
        opacity: 0;
        transform: translateY(1rem);
    }
}

[popover].basic-popover::backdrop {
    background-color: rgb(0 0 0 / 0%);
    backdrop-filter: blur(0px);
    transition:
        display 0.7s allow-discrete,
        overlay 0.7s allow-discrete,
        background-color 0.7s allow-discrete,
        backdrop-filter 0.7s allow-discrete;

}

[popover].basic-popover:popover-open::backdrop {
    background-color: rgb(0 0 0 / 25%);
    backdrop-filter: blur(2px);
}

@starting-style {
    [popover].basic-popover:popover-open::backdrop {
        background-color: rgb(0 0 0 / 0%);
        backdrop-filter: blur(0px);
    }
}

/* End popover styles */