/* Peptira Pack Selector — Frontend */

.pps-swatches {
    margin: 16px 0 20px;
    font-family: inherit;
}

/* ── Swatch Group ──────────────────────────────────────────────────────────── */

.pps-swatch-group {
    margin-bottom: 20px;
}

.pps-swatch-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 10px;
}

.pps-swatch-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Base Swatch Button ────────────────────────────────────────────────────── */

.pps-swatch-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    min-width: 72px;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.pps-swatch-btn:hover:not(.pps-single-mg) {
    border-color: #072ed2;
    color: #072ed2;
    background: #f0f7ff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,71,126,0.12);
}

.pps-swatch-btn.pps-active {
    border-color: #072ed2;
    background: #072ed2;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,71,126,0.3);
    transform: translateY(-1px);
}

/* Single MG — display only */
.pps-single-mg {
    cursor: default;
    pointer-events: none;
    opacity: 0.85;
}

/* ── Pack Size Buttons ─────────────────────────────────────────────────────── */

.pps-pack-btn {
    min-width: 100px;
    padding: 12px 16px;
    position: relative;
}

.pps-pack-size {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.pps-pack-savings {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 20px;
    display: inline-block;
}

.pps-swatch-btn:not(.pps-active) .pps-pack-savings {
    color: #166534;
    background: #dcfce7;
}

.pps-swatch-btn.pps-active .pps-pack-savings {
    color: #fff;
    background: rgba(255,255,255,0.22);
}

/* ── Price Display ─────────────────────────────────────────────────────────── */

.pps-price-display {
    margin: 20px 0 6px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-height: 44px;
}

.pps-price-amount {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
    transition: all 0.2s ease;
}

.pps-price-amount.pps-flash {
    transform: scale(1.04);
    color: #072ed2;
}

.pps-price-compare {
    font-size: 15px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

.pps-price-per {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
    align-self: flex-end;
    margin-bottom: 4px;
}

/* ── Cart meta display ─────────────────────────────────────────────────────── */

.pps-cart-meta {
    color: #6b7280;
    font-size: 0.9em;
    font-weight: 400;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media ( max-width: 600px ) {
    .pps-swatch-btn {
        padding: 9px 13px;
        font-size: 12px;
        min-width: 60px;
    }

    .pps-pack-btn {
        min-width: 85px;
    }

    .pps-price-amount {
        font-size: 26px;
    }
}
