.mmt-copy-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mmt-copy-modal--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mmt-copy-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.mmt-copy-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-sizing: border-box;
    font-family: inherit;
}

.mmt-copy-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: none;
    background: #f1f3f5;
    color: #2b2f33;
    font-size: 1.25rem;
    line-height: 2rem;
    text-align: center;
    cursor: pointer;
}

.mmt-copy-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1c1f23;
}

.mmt-copy-instruction {
    font-size: 0.9rem;
    color: #6b7480;
}

.mmt-copy-value {
    border: 1px solid #d7dce0;
    background: #f8f9fb;
    border-radius: 10px;
    padding: 0.8rem;
    cursor: pointer;
    min-height: 3.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.mmt-copy-value:focus {
    outline: 2px solid #2d6cdf;
    outline-offset: 2px;
}

.mmt-copy-value-text {
    color: #1d1f21;
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-height: 10rem;
    overflow-y: auto;
    overflow-x: auto;
}

.mmt-copy-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: #198754;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mmt-copy-value--copied {
    border-color: #198754;
    background: #eef8f1;
}

.mmt-copy-value--copied .mmt-copy-status {
    opacity: 1;
}

.mmt-copy-error {
    font-size: 0.85rem;
    color: #b42318;
    min-height: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mmt-copy-error--show {
    opacity: 1;
}

@media (max-width: 360px) {
    .mmt-copy-dialog {
        padding: 1rem;
    }

    .mmt-copy-title {
        font-size: 1rem;
    }

    .mmt-copy-value {
        padding: 0.7rem;
    }
}
