/**
 * SRP print styles: when printing or saving to PDF, only the result content
 * is shown. Buttons, menus, headers, footers and sidebars are hidden.
 */
@media print {
    /* Hide these when printing */
    .srp-print-buttons,
    header, footer, nav,
    .site-header, .site-footer,
    #wpadminbar,
    .elementor-location-header,
    .elementor-location-footer,
    .srp-search-wrap {
        display: none !important;
    }

    /* Tighter page margins */
    @page {
        margin: 12mm;
    }

    body {
        background: #fff !important;
    }

    /* Let the result content use the full width */
    .srp-card,
    .srp-result-print-area {
        box-shadow: none !important;
        max-width: 100% !important;
    }

    /* Keep colours accurate, including background colours */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* On-screen button styling */
.srp-print-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.srp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s, background .2s;
    line-height: 1;
}

.srp-btn svg {
    width: 18px;
    height: 18px;
}

.srp-btn:hover {
    opacity: .88;
}

/* Print button: outline style */
.srp-btn-print {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

/* Download button: solid */
.srp-btn-download {
    background: #e0a911;
    color: #1a1a2e;
}

/* Back button: subtle */
.srp-btn-back {
    background: #f5f5f7;
    color: #555;
}
