/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap'); */

/* Client Styles *********************************************************** */
/* Tabs Override */
body .wp-block-atbs-tabs .tabs-content {
    background-color: #fff;
}
body {
    /* Literally no styles. */
}
/* Stack columns on mobile. */
@media screen and (max-width: 782px) {
    .dh-portal-builder-swatches.wp-block-group {
        grid-template-columns: 1fr !important;
    }
}
/* Patch for p tag margin-block-start and margin-block-end being set to 1.25em by default. */
.dh-portal-builder-swatches p {
    margin-block-start: 0;
    margin-block-end: 0;
}
/* Patch for the has-background class auotmatically adding padding to the columns block. */
.dh-portal-builder-swatches :where(.wp-block-columns.has-background) {
    padding: inherit;
}

/* Swatch GROUP */
.dh-portal-builder-swatches {
    /* display: flex;
    flex-wrap: wrap;
    gap: 12px; */
    width: 100%;
    max-width: 100%;

}

/* Swatch Option Category Group */
.dh-portal-builder-swatches .swatch-option-group {
    align-items: flex-start;
}

/* Swatch captions */
.dh-portal-builder-swatches figure.swatch {
}
.dh-portal-builder-swatches figure.swatch figcaption {
    font-size: 12px;
    max-width: 64px;
    text-align: center;
    word-break: break-word;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: normal !important;
    /* color: #777; */
}

/* Admin Styles *********************************************************** */
/* Patch to prevent parent float. */
.wp-block-acf-dh-portal-builder-swatches.alignright,
.wp-block-acf-dh-portal-builder-swatches.alignleft {
    float: none !important;
}
/* Patch to prevent default header background color. */
body :where(.editor-styles-wrapper) .wp-block-acf-dh-portal-builder-swatches h5 {
    background-color: transparent !important;
}

/* Add logo to block in editor when selected. */
.wp-block-acf-dh-portal-builder-swatches.is-selected::before {
    content: "";
    position: absolute;
    top: -56px;
    left: -56px;
    right: auto;
    width: 46px;
    height: 46px;
    background: #fff url(digital-hill-logo.svg) no-repeat center center;
    background-size: 40px 40px;
    z-index: 2;
    border: 1px solid #1e1e1e;
}

/* Patch for Admin adding the background color to the whole editor section. */
.wp-block-acf-dh-portal-builder-swatches {
    background-color: transparent !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
/* Patch for Admin adding margin-block-start to all top-level blocks. */
.dh-portal-builder-swatchess {
    /* margin-block-start: 0 !important; */
    box-shadow: none !important;
    border-radius: 0 !important;
}
/* Patch for Admin applying the user-selected background color to the entire block, and not just the swatches. */
body :where(.editor-styles-wrapper) .has-base-background-color.wp-block-acf-dh-portal-builder-swatches,
body :where(.editor-styles-wrapper) .has-contrast-background-color.wp-block-acf-dh-portal-builder-swatches,
body :where(.editor-styles-wrapper) .has-accent-1-background-color.wp-block-acf-dh-portal-builder-swatches,
body :where(.editor-styles-wrapper) .has-accent-2-background-color.wp-block-acf-dh-portal-builder-swatches,
body :where(.editor-styles-wrapper) .has-accent-3-background-color.wp-block-acf-dh-portal-builder-swatches,
body :where(.editor-styles-wrapper) .has-accent-4-background-color.wp-block-acf-dh-portal-builder-swatches,
body :where(.editor-styles-wrapper) .has-accent-5-background-color.wp-block-acf-dh-portal-builder-swatches {
    background-color: transparent !important;
}
/* Prevent clicks on links in the editor */
.editor-styles-wrapper .wp-block-acf-dh-portal-builder-swatches a {
    cursor: default;
    pointer-events: none;
}
/* Set styles for debug area */
:root .editor-styles-wrapper .wp-block-acf-dh-portal-builder-swatches :where(.wp-block-code) {
    font-family: 'Montserrat', 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff !important;
    background-color: #333 !important;
    padding: 20px;
    border-radius: 8px;
}