.inpaint-dialog {
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

the-inpaint {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    gap: 1rem;
    outline: none;
    width: calc(100% - 2rem);
    max-width: 60rem;
    align-self: center;
}

the-inpaint .close-inpaint {
    position: absolute;
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, .75);
    border-radius: 50%;
    padding: .75rem;
    cursor: pointer;
    overflow: hidden;
    top: .5rem;
    right: .5rem;
}

the-inpaint .close-inpaint svg {
    filter: drop-shadow(0 .25rem .25rem rgba(var(--primary-rgb), var(--glow-intensity)));
    pointer-events: none;
    width: 100%;
    height: 100%;
}
the-inpaint .close-inpaint svg path {
    stroke: var(--primary-color);
}

the-inpaint div.divider {
    flex: 0 0 1px;
    background-color: rgba(var(--primary-rgb), .25);
    align-self: stretch;

}

the-inpaint img {
    flex: 1 1 auto;
    object-fit: contain;
    aspect-ratio: 1;
    min-width: 0;
    min-height: 0;
    display: block;
}

the-inpaint .image-container {
    flex: 1 1 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}

the-inpaint .inpaint-canvas {
    position: absolute;


    cursor: crosshair;
    touch-action: none;
    pointer-events: auto;
    mix-blend-mode: overlay;
}


the-inpaint .inpaint-tools {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .5rem;

    border: 1px solid rgba(var(--primary-rgb), .5);
    background: rgba(0, 0, 0, .75);
    border-radius: .25rem;
    position: relative;
    backdrop-filter: blur(1rem);
    box-shadow: 0px .25rem 1rem 0 rgb(0 0 0 / 50%), inset 0 0 2rem 0 rgba(var(--primary-rgb), calc(var(--glow-intensity) / 3));
    transition: opacity .5s;
    overflow: hidden;
    min-height: 3rem;
}

the-inpaint .tool-button {

    flex: 0 0 auto;
    height: 3rem;
    background: rgba(0, 0, 0, 0);
    padding: .5rem;
    cursor: pointer;
    overflow: hidden;


    border: none;
    border-radius: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}




the-inpaint .tool-button.active {


}

the-inpaint .tool-button.active svg {
    fill: var(--input-color);
}

the-inpaint .tool-button svg {

    width: 100%;
    height: 100%;
    fill: var(--primary-color);

    filter: drop-shadow(0 .25rem .25rem rgba(var(--primary-rgb), var(--glow-intensity)));
}

the-inpaint .tool-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0);
}

the-inpaint .tool-button:disabled svg {
    filter: none;
}

the-inpaint .inpaint-tools label {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

the-inpaint .brush-size-slider {
    cursor: pointer;
    width: 10rem;
    margin: 0 1rem;
}


the-inpaint .inpaint-prompt {
    flex: 0 0 auto;
    width: 100%;
    padding: 0.25rem;
    background: #000000;
    border: 1px solid var(--primary-color);
    border-radius: .25rem;
    color: var(--input-color);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    resize: none;
    overflow: hidden;
    box-sizing: border-box;

    min-height: 4rem;
    box-shadow: 0 .5rem 1.5rem rgba(var(--primary-rgb), calc(var(--glow-intensity) / 5));
}

the-inpaint .brush-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
}

the-inpaint .brush-size-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

the-inpaint .buttons {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 1rem;
    padding-bottom: 1rem;
}

the-inpaint .buttons button.cancel {
    border: none;
    background: rgba(0, 0, 0, 0);
    outline: none;
    cursor: pointer;
    font-weight: 400;
    color: var(--secondary-color);
    text-transform: uppercase;
    text-shadow: 0 .5rem 1.5rem rgba(var(--secondary-rgb), calc(var(--glow-intensity) / 5));
}
the-inpaint .buttons button.ok {
    background: rgba(0, 0, 0, 0);
    outline: none;
    cursor: pointer;
    font-weight: 800;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: .25rem;
    text-shadow: 0 .5rem 1.5rem rgba(var(--primary-rgb), calc(var(--glow-intensity) / 5));
    box-shadow: 0 .5rem 1.5rem rgba(var(--primary-rgb), calc(var(--glow-intensity) / 5));
    padding: .25rem .75rem;
    text-transform: uppercase;
    font-size: 1rem;
}
the-inpaint .buttons button.ok:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0);
}

@media only screen and (max-width: 720px) {

    the-inpaint {
        gap: .5rem;
        width: calc(100% - 1rem);
    }


    the-inpaint .image-container,
    the-inpaint .inpaint-tools,
    the-inpaint .inpaint-prompt,
    the-inpaint .buttons {


    }

    the-inpaint .inpaint-tools {
        padding: 0;
        gap: 0;
    }

    the-inpaint .tool-button {
        width: 2.5rem;
        height: 2.5rem;
    }

    the-inpaint .brush-size-slider {
        width: 8rem;
        margin: 0 .5rem;
    }

    the-media-viewer .close-the-media-viewer {
        top: 0;
        right: 0;
    }
}
