.company-logo-editor {
    max-width: 100%;
}

.company-logo-editor [hidden] {
    display: none !important;
}

.company-logo-editor .btn {
    width: auto;
    flex: 0 0 auto;
    font-size: 0.875rem;
    font-weight: 400;
    border: 1px solid var(--bs-btn-border-color, currentColor);
}

.company-logo-editor__summary,
.company-logo-editor__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.company-logo-editor__summary {
    margin-top: 1rem;
    align-items: flex-start;
}

.company-logo-editor__card {
    flex: 0 0 148px;
    width: 148px;
    max-width: 100%;
    text-align: center;
}

.company-logo-editor__frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e7e9ee;
    border-radius: 10px;
    background: #fff;
}

.company-logo-editor__frame img,
.company-logo-editor__frame canvas {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.company-logo-editor__name {
    margin: 0.35rem 0 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
    color: #555;
}

.company-logo-editor__dialog {
    width: min(960px, calc(100% - 32px));
    max-width: 960px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #212529;
    box-shadow: 0 20px 70px rgb(0 0 0 / 25%);
    overflow: auto;
}

.company-logo-editor__dialog::backdrop {
    background: rgb(0 0 0 / 55%);
}

.company-logo-editor__header,
.company-logo-editor__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
}

.company-logo-editor__header {
    border-bottom: 1px solid #e7e9ee;
}

.company-logo-editor__header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.company-logo-editor__body {
    padding: 1.25rem;
}

.company-logo-editor__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 1.5rem;
}

.company-logo-editor__stage {
    height: clamp(240px, 45vh, 400px);
    overflow: hidden;
    background: #f0f2f5;
}

.company-logo-editor__stage > img {
    display: block;
    max-width: 100%;
}

.company-logo-editor__live h4 {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.company-logo-editor__footer {
    position: sticky;
    bottom: 0;
    justify-content: flex-end;
    border-top: 1px solid #e7e9ee;
}

@media (max-width: 600px) {
    .company-logo-editor__stage {
        height: 240px;
    }

    .company-logo-editor__workspace {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .company-logo-editor__live {
        display: grid;
        grid-template-columns: 148px minmax(0, 1fr);
        gap: 0.5rem 1rem;
        align-items: start;
    }

    .company-logo-editor__live h4 {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .company-logo-editor__live .company-logo-editor__card {
        grid-row: span 2;
    }

    .company-logo-editor__body {
        padding: 1rem;
    }
}
