/* ============================================================
   WC Price Manager – Checkout / Frontend Styles
   ============================================================ */

/* ── Price Table (product page + cart) ───────────────────── */

.wcpm-price-table {
    margin: 16px 0;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.wcpm-price-table--cart {
    margin: 0 0 16px;
}
.wcpm-price-table__header {
    background: #7c3aed;
    padding: 10px 16px;
}
.wcpm-price-table__title {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
}
.wcpm-price-table__rows { padding: 4px 0; }

.wcpm-price-table__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background .12s;
}
.wcpm-price-table__row:last-child { border-bottom: none; }
.wcpm-price-table__row:hover { background: #f9fafb; }

.wcpm-price-table__row--highlight {
    background: #f0fdf4 !important;
}
.wcpm-price-table__row--highlight:hover { background: #dcfce7 !important; }

.wcpm-pt-icon  { font-size: 16px; min-width: 22px; }
.wcpm-pt-label { flex: 1; color: #374151; font-size: 13px; }
.wcpm-pt-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}
.wcpm-pt-badge--discount  { background: #d1fae5; color: #059669; }
.wcpm-pt-badge--surcharge { background: #fee2e2; color: #dc2626; }

.wcpm-pt-price {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
    min-width: 90px;
    text-align: right;
}
.wcpm-price-table__row--highlight .wcpm-pt-price { color: #059669; }

.wcpm-pt-best {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #d1fae5;
    border-radius: 10px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* ── Gateway badges (next to payment method label) ────────── */

.wcpm-gw-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 6px;
    line-height: 1.6;
}
.wcpm-gw-badge.wcpm-gw-discount {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #6ee7b7;
}
.wcpm-gw-badge.wcpm-gw-surcharge {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* ── Checkout notice (below selected payment method) ─────── */

.wcpm-checkout-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    margin: 8px 0 4px;
    font-size: 13px;
    animation: wcpm-fadein .25s ease;
}
.wcpm-checkout-notice.wcpm-notice-discount {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}
.wcpm-checkout-notice.wcpm-notice-surcharge {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}
.wcpm-notice-icon { font-size: 16px; }
.wcpm-notice-text { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wcpm-notice-badge {
    font-weight: 700;
    font-size: 14px;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(0,0,0,.07);
}

@keyframes wcpm-fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Order review fee line ───────────────────────────────── */

.wcpm-fee-discount td,
.wcpm-fee-discount th {
    color: #059669 !important;
    font-weight: 600;
}
.wcpm-fee-surcharge td,
.wcpm-fee-surcharge th {
    color: #dc2626 !important;
    font-weight: 600;
}

/* ── Admin: gateway settings table ──────────────────────── */

.wcpm-gw-table { margin-top: 10px; }
.wcpm-gw-table tbody tr { transition: background .1s; }
.wcpm-gw-table tbody tr.wcpm-gw-installed { background: #f0fdf4; }
.wcpm-gw-table tbody tr.wcpm-gw-common { background: #fafafa; }
.wcpm-gw-table tbody tr:hover { background: #f5f3ff !important; }

.wcpm-gw-active-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    background: #d1fae5;
    color: #059669;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
