/* static/css/mailsms/google_send_result_modal.css */
.google-send-result-modal[hidden] {
    display: none;
}

.google-send-result-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.google-send-result-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.google-send-result-modal__dialog {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(36rem, calc(100vw - 2rem));
    background: #ffffff;
    border: 0.0625rem solid #dbe3f0;
    border-radius: 1rem;
    box-shadow: 0 1.5rem 3.5rem rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.google-send-result-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem 0.75rem;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
    border-bottom: 0.0625rem solid #dbe3f0;
}

.google-send-result-modal__drag-handle {
    cursor: move;
    user-select: none;
}

.google-send-result-modal__header-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.google-send-result-modal__title {
    margin: 0;
    color: #1f2a44;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.google-send-result-modal__header-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex: 0 0 auto;
}

.google-send-result-modal__body {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0.875rem 1rem 1rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    scrollbar-gutter: stable;
    background: #ffffff;
}

.google-send-result-modal__panel {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 0.875rem;
    border: 0.0625rem solid #dbe3f0;
    border-radius: 0.875rem;
    background: #f8fbff;
}

.google-send-result-modal__row {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.google-send-result-modal__label {
    display: block;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1f2937;
}

.google-send-result-modal__text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #111827;
    word-break: break-all;
    white-space: pre-wrap;
}

.google-send-result-modal__content-box {
    max-height: 8rem;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 0.75rem;
    border: 0.0625rem solid #d6deeb;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #111827;
    font-size: 0.9375rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.google-send-result-modal__message-box {
    padding: 0.75rem;
    border: 0.0625rem solid #d6deeb;
    border-radius: 0.75rem;
    background: #f3f8ff;
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.google-send-result-modal__close {
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0.75rem;
    background: #e5e7eb;
    color: #111111;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
}

.google-send-result-modal__close:hover {
    background: #dbe3ea;
}

.google-send-result-modal__close:focus {
    outline: none;
    box-shadow: 0 0 0 0.1875rem rgba(47, 106, 230, 0.18);
}

.google-send-result-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.google-send-result-modal__primary-button,
.google-send-result-modal__secondary-button {
    min-width: 7rem;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    border: 0.0625rem solid #d6deeb;
}

.google-send-result-modal__primary-button {
    background: #2563eb;
    color: #ffffff;
}

.google-send-result-modal__secondary-button {
    background: #ffffff;
    color: #1f2937;
}

.google-send-result-modal__primary-button[disabled],
.google-send-result-modal__secondary-button[disabled] {
    opacity: 0.65;
    cursor: default;
}

@media (max-width: 40rem) {
    .google-send-result-modal__dialog {
        top: 0.5rem;
        left: 0.5rem;
        width: calc(100vw - 1rem);
        transform: none;
        border-radius: 0.875rem;
    }

    .google-send-result-modal__header {
        padding: 0.75rem;
    }

    .google-send-result-modal__body {
        padding: 0.75rem;
        max-height: calc(100vh - 5rem);
    }

    .google-send-result-modal__panel {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .google-send-result-modal__drag-handle {
        cursor: default;
    }
}