/*
 * PrintPosters.in — Canvas floater frame: LOVE / BUY1GET1 offer cards
 * Scope: /canvas-floater-frame only (body wrapper carries .pp-floater-page).
 *
 * The offer markup (partials/canvas/qty-offer-blocks) is shared with the canvas
 * hub, but its styles live in canvas-premium.css and are scoped to .pp-canvas-page,
 * which the floater page never loads or matches. Without them the two cards fall
 * through to the global `button { width:100px; height:40px; background:#0872ba }`
 * rule in style.css and render as blue boxes with overflowing text.
 *
 * This file is a .pp-floater-page-scoped copy of those rules. Keep it in sync with
 * the .pp-canvas-qty-offers block in canvas-premium.css if that one changes.
 */

.pp-floater-page {
    --cff-offer-font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", Helvetica, Arial, sans-serif;
    --cff-offer-ink: #201d19;
}

.pp-floater-page .pp-canvas-qty-offers-wrap {
    margin: 8px 0 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.pp-floater-page .pp-canvas-qty-offers-wrap--lead {
    margin-top: 2px;
}

.pp-floater-page .pp-canvas-qty-offers {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 9px 9px;
    background: linear-gradient(180deg, #faf4e8 0%, #f6efdf 100%);
    border: 1px solid #d9c49d;
    border-radius: 8px;
    font-family: var(--cff-offer-font);
    color: var(--cff-offer-ink);
    box-sizing: border-box;
    overflow: hidden;
}

.pp-floater-page .pp-canvas-qty-offers__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 7px;
}

.pp-floater-page .pp-canvas-qty-offers__label b {
    font-size: 10px !important;
    color: #2f2a22 !important;
    font-weight: 700 !important;
}

.pp-floater-page .pp-canvas-qty-offers__label span {
    font-size: 8px !important;
    color: #7a6e5c !important;
}

/* Always side-by-side; cards compact to fit narrow widths */
.pp-floater-page .pp-canvas-qty-offers__options {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 6px !important;
    width: 100%;
    min-width: 0;
}

/* Beat global `button { width:100px; height:40px; background:#0872ba }` from style.css */
.pp-floater-page button.pp-canvas-qty-offers__card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 8px 7px !important;
    border: 1.5px solid #ded3c0 !important;
    background: #fffefa !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: border .18s, background .18s, box-shadow .18s;
    font: inherit !important;
    font-family: var(--cff-offer-font) !important;
    border-radius: 6px !important;
    color: #201d19 !important;
    box-shadow: none !important;
    text-transform: none !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: hidden !important;
}

.pp-floater-page button.pp-canvas-qty-offers__card.is-selected {
    border-color: #9a7945 !important;
    background: #f3e9d4 !important;
    box-shadow: inset 0 0 0 1px #c3a56f !important;
}

/* Hide radio circle — selection is on the whole card */
.pp-floater-page .pp-canvas-qty-offers__radio,
.pp-floater-page button.pp-canvas-qty-offers__card.is-selected .pp-canvas-qty-offers__radio {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.pp-floater-page .pp-canvas-qty-offers__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.pp-floater-page .pp-canvas-qty-offers__copy strong {
    font-size: 11px !important;
    line-height: 1.2;
    color: #2c261e !important;
    font-weight: 700 !important;
    padding-right: 36px; /* room for save badge */
}

.pp-floater-page button.pp-canvas-qty-offers__card.is-selected .pp-canvas-qty-offers__copy strong {
    color: #6e5228 !important;
}

.pp-floater-page .pp-canvas-qty-offers__copy small {
    font-size: 8px !important;
    line-height: 1.3;
    color: #6f6455 !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pp-floater-page .pp-canvas-qty-offers__copy small[data-canvas-bogo-math],
.pp-floater-page .pp-canvas-qty-offers__copy small[data-canvas-love-math] {
    font-size: 8px !important;
    font-weight: 600 !important;
    line-height: 1.25;
    color: #8b711d !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.pp-floater-page .pp-canvas-qty-offers__chip {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 3px !important;
    margin-top: 1px;
    padding: 2px 5px !important;
    background: #f0e2c3 !important;
    border: 1px dashed #ad8a4d !important;
    border-radius: 3px !important;
    color: #6b4d20 !important;
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box;
}

.pp-floater-page .pp-canvas-qty-offers__chip small {
    display: inline !important;
    font-size: 7px !important;
    letter-spacing: 0.4px;
    color: #8d7248 !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
}

.pp-floater-page .pp-canvas-qty-offers__chip b,
.pp-floater-page .pp-canvas-qty-offers__chip strong {
    display: inline !important;
    font-size: 9px !important;
    letter-spacing: 0.2px;
    line-height: 1 !important;
    color: #6b4d20 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    writing-mode: horizontal-tb !important;
}

.pp-floater-page .pp-canvas-qty-offers__save {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    margin: 0 !important;
    padding: 2px 5px !important;
    border-radius: 3px !important;
    background: #f0e2c3 !important;
    font-style: normal;
    font-size: 9px !important;
    letter-spacing: 0.2px;
    color: #6e5228 !important;
    font-weight: 700 !important;
    white-space: nowrap;
    line-height: 1.2 !important;
}

.pp-floater-page button.pp-canvas-qty-offers__card.is-selected .pp-canvas-qty-offers__save {
    background: #e5d2a8 !important;
}

.pp-floater-page .pp-canvas-qty-offers__footnote {
    margin: 6px 0 0;
    font-size: 8px !important;
    color: #74685a !important;
    line-height: 1.4;
}

@media (max-width: 780px) {
    .pp-floater-page .pp-canvas-qty-offers {
        padding: 8px 7px 7px;
    }

    .pp-floater-page .pp-canvas-qty-offers__options {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 5px !important;
    }

    .pp-floater-page button.pp-canvas-qty-offers__card {
        padding: 7px 7px 6px !important;
        gap: 2px !important;
    }

    .pp-floater-page .pp-canvas-qty-offers__copy strong {
        font-size: 10px !important;
        padding-right: 32px;
    }

    .pp-floater-page .pp-canvas-qty-offers__copy small,
    .pp-floater-page .pp-canvas-qty-offers__copy small[data-canvas-bogo-math],
    .pp-floater-page .pp-canvas-qty-offers__copy small[data-canvas-love-math] {
        font-size: 8px !important;
        -webkit-line-clamp: 2;
    }

    .pp-floater-page .pp-canvas-qty-offers__chip {
        padding: 2px 4px !important;
        gap: 2px !important;
    }

    .pp-floater-page .pp-canvas-qty-offers__chip small {
        font-size: 6px !important;
    }

    .pp-floater-page .pp-canvas-qty-offers__chip b,
    .pp-floater-page .pp-canvas-qty-offers__chip strong {
        font-size: 8px !important;
    }

    .pp-floater-page .pp-canvas-qty-offers__save {
        top: 5px !important;
        right: 5px !important;
        padding: 2px 4px !important;
        font-size: 8px !important;
    }

    .pp-floater-page .pp-canvas-qty-offers__footnote {
        font-size: 7px !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}
