/* ============================================================
   PostGuard Product Print — frontend print button styles
   ============================================================ */

/* Merge adjacent action-button wrappers into one visual row */
.single-product .summary .bpt-action-buttons-wrapper + .bpt-action-buttons-wrapper {
    margin-top: -8px;
}

/* Make all wrappers flow as a single flex row group */
.single-product .summary .bpt-action-buttons-wrapper {
    display: inline-flex !important;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 15px 0 0;
    vertical-align: middle;
}

.single-product .summary .bpt-action-buttons-wrapper:first-of-type {
    margin-top: 15px;
}

/* ----------------------------------------------------------------
   Print button anchor — match size guide computed styles exactly
   (doc 2: inline-flex, align-items center, margin 0 12px 0 0,
    margin-inline-end 20px, vertical-align middle — no font overrides)
   ---------------------------------------------------------------- */

/* Print + Download sit side-by-side */
.pg-print-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.pg-print-wrap a.pg-print-btn {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 12px 0 0 !important;
    margin-inline-end: 20px;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 100%;
    text-decoration: none;
    box-sizing: border-box;
}

.pg-print-wrap a.pg-print-btn:hover {
    opacity: 0.7;
}

.pg-print-wrap a.pg-print-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
}

/* Hide print button when printing the main product page */
@media print {
    .pg-print-wrap { display: none !important; }
}
