/**
 * Property Tax Calc Engine - Embed panel styles
 * Enqueued on full calculator pages by the panel renderer. Without this
 * file loading, the code box collapses to the browser default cols width.
 */

.ptce-embed-panel {
    border-top: 1px solid #D8DFE5;
    margin-top: 1.25rem;
    padding-top: 0.75rem;
}

.ptce-embed-summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: #6b7280;
    user-select: none;
}

.ptce-embed-summary:hover {
    color: #AF4F22;
}

.ptce-embed-body {
    margin-top: 0.75rem;
}

.ptce-embed-code {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre;
    overflow: auto;
    min-height: 170px;
    resize: vertical;
    background: #F8FAFB;
    border: 1px solid #D8DFE5;
    border-radius: 8px;
    padding: 10px 12px;
    color: #1E374D;
}

.ptce-embed-code:focus {
    outline: none;
    border-color: var(--ptce-accent, #AF4F22);
}

.ptce-embed-copy {
    margin-top: 0.6rem;
    padding: 0.5rem 1.1rem;
    border: none;
    border-radius: 8px;
    background: var(--ptce-accent, #AF4F22);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.ptce-embed-copy:hover {
    filter: brightness(0.92);
}

.ptce-embed-license {
    margin: 0.9rem 0 0;
    padding: 0.4rem 0;
    line-height: 1.5;
    font-size: 0.8rem;
    color: #6b7280;
}

@media (max-width: 480px) {
    /* iOS zooms the page when focusing any input under 16px; a readonly
       code box must not trigger that. */
    .ptce-embed-code {
        font-size: 16px;
    }
}
