.online-editor {
    background: #f7f8fb;
    color: #172033;
    padding: 34px 0 56px;
}

.online-editor--memorial {
    background: #f6f7f4;
}

.online-editor .container {
    max-width: 1180px;
}

.online-editor__heading {
    align-items: flex-end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.online-editor__heading h1 {
    color: #101827;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    margin: 4px 0 8px;
}

.online-editor__heading p {
    color: #657084;
    font-size: 16px;
    margin: 0;
}

.online-editor__eyebrow {
    color: #0f766e !important;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 !important;
    text-transform: uppercase;
}

.online-editor__link,
.online-editor__download,
.online-editor__submit {
    align-items: center;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.online-editor__link,
.online-editor__download {
    background: #ffffff;
    border: 1px solid #dde4ee;
    color: #172033;
}

.online-editor__submit {
    background: #0f766e;
    color: #ffffff;
    min-width: 142px;
}

.online-editor__submit:hover,
.online-editor__link:hover,
.online-editor__download:hover {
    box-shadow: 0 10px 25px rgba(17, 24, 39, .1);
    transform: translateY(-1px);
}

.online-editor__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr);
}

.online-editor__panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

.online-editor__form {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.online-editor__field {
    display: grid;
    gap: 8px;
}

.online-editor__provider-field {
    display: none;
}

.online-editor__provider-static {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 12px;
}

.online-editor__provider-static span {
    color: #172033;
    font-size: 14px;
    font-weight: 800;
}

.online-editor__provider-static small {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.online-editor__label {
    color: #273449;
    font-size: 14px;
    font-weight: 800;
}

.online-editor select,
.online-editor textarea {
    background: #ffffff;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    color: #172033;
    font: inherit;
    outline: none;
    width: 100%;
}

.online-editor select {
    min-height: 44px;
    padding: 0 12px;
}

.online-editor textarea {
    line-height: 1.5;
    min-height: 138px;
    padding: 12px;
    resize: vertical;
}

.online-editor select:focus,
.online-editor textarea:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.online-editor textarea.is-invalid {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .12);
}

.online-editor__field-error {
    color: #b42318;
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    margin-top: 6px;
}

.online-editor__provider-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.online-editor__badge {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 10px;
    white-space: nowrap;
}

.online-editor--memorial .online-editor__eyebrow {
    color: #6b4f1d !important;
}

.online-editor--memorial .online-editor__submit {
    background: #6b4f1d;
}

.online-editor--memorial select:focus,
.online-editor--memorial textarea:focus {
    border-color: #6b4f1d;
    box-shadow: 0 0 0 3px rgba(107, 79, 29, .14);
}

.online-editor__modes {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.online-editor__modes input {
    position: absolute;
    opacity: 0;
}

.online-editor__modes span {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    min-height: 42px;
    padding: 0 10px;
}

.online-editor__modes input:checked + span {
    background: #e6fffb;
    border-color: #0f766e;
    color: #0f766e;
}

.online-editor__dropzone {
    align-items: center;
    background: #f8fbff;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    color: #475569;
    cursor: pointer;
    display: grid;
    gap: 5px;
    justify-items: center;
    min-height: 146px;
    padding: 22px;
    text-align: center;
}

.online-editor__dropzone input {
    display: none;
}

.online-editor__dropzone i {
    color: #2563eb;
    font-size: 28px;
}

.online-editor__dropzone strong {
    color: #172033;
    font-size: 16px;
}

.online-editor__dropzone span {
    font-size: 13px;
}

.online-editor__dropzone.is-dragging {
    background: #eef6ff;
    border-color: #2563eb;
}

.online-editor__dropzone.is-invalid {
    background: #fff5f5;
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .1);
}

.online-editor__thumbs {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.online-editor__thumb {
    aspect-ratio: 1;
    background: #eef2f7;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.online-editor__thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.online-editor__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.online-editor__chips button {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: #3730a3;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    min-height: 34px;
    padding: 0 12px;
}

.online-editor__actions {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.online-editor__size {
    display: grid;
    gap: 6px;
}

.online-editor__size span {
    color: #273449;
    font-size: 13px;
    font-weight: 800;
}

.online-editor__status {
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    min-height: 20px;
}

.online-editor__status.is-error {
    color: #b91c1c;
}

.online-editor__status.is-success {
    color: #0f766e;
}

.online-editor__result {
    display: grid;
    grid-template-rows: auto minmax(360px, 1fr);
    min-height: 100%;
    padding: 18px;
}

.online-editor__result-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.online-editor__result h2 {
    color: #101827;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    margin: 3px 0 0;
}

.online-editor__canvas {
    align-items: center;
    background:
        linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
        linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-color: #ffffff;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 420px;
    overflow: hidden;
}

.online-editor__canvas img {
    display: block;
    height: 100%;
    max-height: 680px;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.online-editor__empty {
    align-items: center;
    color: #64748b;
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 24px;
    text-align: center;
}

.online-editor__empty i {
    font-size: 44px;
}

.online-editor.is-loading .online-editor__submit {
    background: #64748b;
    pointer-events: none;
}

.online-editor__heading h1 {
    font-weight: 760;
}

.online-editor__eyebrow,
.online-editor__link,
.online-editor__download,
.online-editor__submit,
.online-editor__provider-static span,
.online-editor__provider-static small,
.online-editor__label,
.online-editor__badge,
.online-editor__modes span,
.online-editor__chips button,
.online-editor__size span,
.online-editor__status,
.online-editor__result h2 {
    font-weight: 650;
}

.online-editor__panel {
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}

.online-editor__submit {
    background: #0b7a75;
}

.online-editor__dropzone {
    background: #fbfcfe;
    border-color: #b6c2d2;
}

.online-editor__dropzone strong {
    font-weight: 650;
}

.online-editor__xu-box {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: space-between;
    padding: 12px;
}

.online-editor__xu-box div {
    display: grid;
    gap: 3px;
}

.online-editor__xu-box span,
.online-editor__xu-box small {
    color: #667085;
    font-size: 12px;
}

.online-editor__xu-box strong {
    color: #172033;
    font-size: 15px;
    font-weight: 700;
}

.online-editor__xu-box b {
    font-weight: 700;
}

.online-editor__xu-box a,
.online-editor__status-link {
    color: #0b7a75;
    font-weight: 700;
    text-decoration: none;
}

.online-editor__xu-box a:hover,
.online-editor__status-link:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .online-editor__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .online-editor__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .online-editor {
        padding: 24px 0 80px;
    }

    .online-editor__heading h1 {
        font-size: 28px;
    }

    .online-editor__provider-row,
    .online-editor__actions {
        grid-template-columns: 1fr;
    }

    .online-editor__modes,
    .online-editor__thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .online-editor__submit,
    .online-editor__link,
    .online-editor__download {
        width: 100%;
    }
}
