/**
 * Pet Match Pro - Bulk Poster Print (8.21.0)
 *
 * Styles the on-screen "Print Posters" button + progress chrome, and handles
 * multi-poster stacking/pagination in the print view. The individual poster
 * templates already carry their own @media print layout (8.5x11, page sizing);
 * this file only adds the button/progress chrome and the one-per-page stacking.
 *
 * Class-based only, no inline CSS, no !important (specificity handles overrides).
 */

/* ------------------------------------------------------------------ *
 * On-screen chrome
 * ------------------------------------------------------------------ */
.pmp-poster-print-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

/* Defaults mirror the Search CTA button (var(--pmp-color-cta) background,
 * var(--pmp-color-primary) hover) so the button matches the configured CTA
 * button out of the box. The dedicated Poster Print Button color settings, when
 * set, emit higher-priority rules that override these. */
.pmp-poster-print-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--pmp-color-cta, #F38D81);
    color: #FFFFFF;
    border: 1px solid var(--pmp-color-cta, #F38D81);
    border-radius: 4px;
    font-size: var(--pmp-font-size-search-button, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.pmp-poster-print-btn:hover,
.pmp-poster-print-btn:focus {
    background-color: var(--pmp-color-primary, #024463);
    border-color: var(--pmp-color-primary, #024463);
}

.pmp-poster-print-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.pmp-poster-print-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.pmp-poster-print-progress-label {
    font-size: 0.9rem;
    color: var(--pmp-color-primary, #024463);
    white-space: nowrap;
}

.pmp-poster-print-progress-bar {
    display: inline-block;
    position: relative;
    flex: 1 1 auto;
    height: 8px;
    min-width: 120px;
    background-color: #e2e6ea;
    border-radius: 4px;
    overflow: hidden;
}

.pmp-poster-print-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background-color: var(--pmp-color-primary, #024463);
    transition: width 0.2s ease-in-out;
}

/* Posters are printed inside an isolated hidden iframe (see
 * pet-match-pro-poster-print.js), which carries its own print CSS. The on-page
 * container element is unused for printing and stays hidden. */
.pmp-poster-print-container {
    display: none;
}
