.ekr-customize-design-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ekr-customize-design-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.ekr-customize-design-action:hover,
.ekr-customize-design-action:focus-visible {
    color: #1e40af;
    text-decoration: underline;
}

.ekr-customize-design-action svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.ekr-customize-design-modal {
    width: min(94vw, 920px);
    max-width: 920px;
    max-height: 92vh;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .3), 0 0 0 1px rgba(17, 24, 39, .06);
}

.ekr-customize-design-modal::backdrop {
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(2px);
}

.ekr-customize-design-modal__panel {
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.ekr-customize-design-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.ekr-customize-design-modal__eyebrow {
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ekr-customize-design-modal__title {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.ekr-customize-design-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    cursor: pointer;
}

.ekr-customize-design-modal__close:hover,
.ekr-customize-design-modal__close:focus-visible {
    background: #f3f4f6;
    color: #111827;
}

.ekr-customize-design-modal__body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    flex: 1 1 auto;
    padding: 24px;
    overflow: auto;
    background: #f8fafc;
}

.ekr-customize-design-modal__loading,
.ekr-customize-design-modal__error {
    padding: 32px;
    color: #4b5563;
    font-size: 14px;
    text-align: center;
}

.ekr-customize-design-modal__error {
    color: #991b1b;
}

.ekr-customize-design-modal__canvas {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min(66vh, 680px);
    min-height: 360px;
}

.ekr-customize-design-modal__canvas > svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.ekr-customize-design-modal__canvas[hidden],
.ekr-customize-design-modal__loading[hidden],
.ekr-customize-design-modal__error[hidden] {
    display: none;
}

.ekr-customize-design-modal__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.ekr-customize-design-modal__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}

.ekr-customize-design-modal__button:hover,
.ekr-customize-design-modal__button:focus-visible {
    background: #f8fafc;
}

.ekr-customize-design-modal__button--primary {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.ekr-customize-design-modal__button--primary:hover,
.ekr-customize-design-modal__button--primary:focus-visible {
    border-color: #1e40af;
    background: #1e40af;
    color: #fff;
}

@media (max-width: 640px) {
    .ekr-customize-design-modal {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        border-radius: 12px;
    }

    .ekr-customize-design-modal__panel {
        max-height: calc(100vh - 24px);
    }

    .ekr-customize-design-modal__header {
        padding: 14px 16px;
    }

    .ekr-customize-design-modal__title {
        font-size: 18px;
    }

    .ekr-customize-design-modal__body {
        min-height: 320px;
        padding: 16px;
    }

    .ekr-customize-design-modal__canvas {
        height: 60vh;
        min-height: 300px;
    }

    .ekr-customize-design-modal__footer {
        padding: 14px 16px;
    }
}
