/* ── BroHelpMe Payment Plugin v2 ─────────────────────────── */

/* Admin */
.bh-admin-wrap { max-width: 960px; margin: 20px auto; font-family: sans-serif; }
.bh-admin-wrap h1 { font-size: 1.6em; margin-bottom: 10px; }
.bh-admin-wrap h2 { font-size: 1.2em; margin: 24px 0 8px; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
.bh-admin-wrap h3 { font-size: 1.05em; margin: 18px 0 6px; }
.bh-tabs { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 4px; }
.bh-tabs a { display: inline-block; padding: 6px 14px; border: 1px solid #ccc; border-radius: 4px 4px 0 0; text-decoration: none; color: #333; background: #f5f5f5; }
.bh-tabs a.bh-tab-active { background: #fff; border-bottom-color: #fff; font-weight: 600; color: #0073aa; }
.bh-input-wide { width: 100%; max-width: 480px; }
.widefat { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.widefat th, .widefat td { padding: 8px 12px; border: 1px solid #e0e0e0; vertical-align: top; }
.widefat th { width: 200px; background: #fafafa; font-weight: 600; text-align: left; }
.description { color: #666; font-size: .85em; margin: 4px 0 0; }
.btn { display: inline-block; padding: 8px 18px; border-radius: 4px; cursor: pointer; font-size: .95em; text-decoration: none; border: none; }
.btn-submit { background: #0073aa; color: #fff; }
.btn-submit:hover { background: #005e8b; }
.bh-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .78em; font-weight: 600; }
.bh-badge-completed { background: #d4edda; color: #155724; }
.bh-badge-pending   { background: #fff3cd; color: #856404; }
.bh-badge-failed    { background: #f8d7da; color: #721c24; }
.bh-badge-refunded  { background: #d1ecf1; color: #0c5460; }
.bh-pagination { margin: 16px 0; display: flex; gap: 4px; }
.bh-pagination a { padding: 4px 10px; border: 1px solid #ccc; border-radius: 3px; text-decoration: none; color: #333; }
.bh-pagination a.bh-page-active { background: #0073aa; color: #fff; border-color: #0073aa; }

/* Plans page */
.bh-plans-page { max-width: 900px; margin: 40px auto; text-align: center; font-family: sans-serif; }
.bh-plans-page h1 { font-size: 2em; margin-bottom: 6px; }
.bh-plans-sub { color: #666; margin-bottom: 24px; }
.bh-toggle-wrap { display: inline-flex; border: 1px solid #ddd; border-radius: 30px; overflow: hidden; margin-bottom: 32px; }
.bh-toggle-btn { padding: 8px 22px; cursor: pointer; font-size: .95em; color: #555; transition: background .2s; }
.bh-toggle-btn.active { background: #0073aa; color: #fff; border-radius: 30px; }
.bh-save-badge { background: #e8f5e9; color: #2e7d32; font-size: .75em; padding: 1px 6px; border-radius: 8px; margin-left: 6px; }
.bh-plans-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.bh-plan-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 28px 24px; width: 260px; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,.06); text-align: left; transition: box-shadow .2s; }
.bh-plan-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.bh-plan-featured { border-color: #0073aa; box-shadow: 0 4px 16px rgba(0,115,170,.18); }
.bh-plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #0073aa; color: #fff; font-size: .75em; padding: 3px 14px; border-radius: 10px; white-space: nowrap; }
.bh-plan-card h2 { font-size: 1.3em; margin: 0 0 6px; }
.bh-plan-desc { color: #777; font-size: .88em; min-height: 36px; margin-bottom: 16px; }
.bh-price-big { font-size: 2.4em; font-weight: 700; color: #111; }
.bh-price-period { font-size: 1em; color: #888; }
.bh-plan-price { margin-bottom: 16px; }
.bh-plan-features { list-style: none; padding: 0; margin: 0 0 20px; }
.bh-plan-features li { padding: 5px 0; font-size: .9em; color: #444; }
.bh-plan-features li::before { content: '✓ '; color: #2e7d32; font-weight: 700; }
.bh-feature-no::before { content: '✗ ' !important; color: #c62828 !important; }
.bh-btn-plan { display: block; text-align: center; padding: 11px 0; border-radius: 8px; font-size: .95em; font-weight: 600; text-decoration: none; margin-bottom: 8px; transition: opacity .15s; }
.bh-btn-plan:hover { opacity: .88; }
.bh-btn-stripe { background: #635bff; color: #fff; }
.bh-btn-paypal { background: #ffc439; color: #111; }
.bh-btn-outline { border: 2px solid #0073aa; color: #0073aa; }

/* ── Promotion listing badges ─────────────────────────────── */
.bh-listing-premium { border: 2px solid #ffd600 !important; }
.bh-highlighted { transition: background .3s; }

/* ── Cart ─────────────────────────────────────────────────── */
.bh-cart-icon { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: #0073aa; color: #fff; border-radius: 20px; text-decoration: none; font-size: .9em; }
.bh-cart-count { background: #ff4444; color: #fff; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: .75em; font-weight: 700; }
.bh-cart-page { max-width: 700px; margin: 40px auto; font-family: sans-serif; }
.bh-cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.bh-cart-table th, .bh-cart-table td { padding: 10px 14px; border-bottom: 1px solid #eee; }
.bh-cart-table tfoot td { font-size: 1.05em; }
.bh-discount-row td { color: #2e7d32; }
.bh-total-row td { font-size: 1.2em; border-top: 2px solid #333; }
.bh-remove-btn { background: none; border: none; color: #c62828; font-size: 1.2em; cursor: pointer; }
.bh-voucher-form { display: flex; gap: 8px; margin: 16px 0; }
.bh-wallet-info { color: #0073aa; font-size: .95em; }
.bh-checkout-btns { margin-top: 20px; }
.bh-checkout-btns h3 { margin-bottom: 10px; }
.bh-cart-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #333; color: #fff; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 14px 20px; z-index: 999; }

/* ── Promote page ─────────────────────────────────────────── */
.bh-promote-page { max-width: 900px; margin: 40px auto; font-family: sans-serif; }
.bh-promo-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.bh-promo-card { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 20px; width: 260px; }
.bh-promo-card.bh-promo-active { border-color: #2e7d32; }
.bh-promo-card h3 { margin: 0 0 8px; font-size: 1.1em; }
.bh-promo-price { font-weight: 700; color: #0073aa; }
.bh-promo-dur { font-size: .82em; color: #888; margin-left: 6px; }
.bh-btn-promo { display: block; background: #0073aa; color: #fff; border: none; border-radius: 6px; padding: 8px 0; width: 100%; cursor: pointer; margin-top: 10px; font-size: .95em; }
.bh-btn-promo-sm { background: #0073aa; color: #fff; border: none; border-radius: 4px; padding: 4px 10px; cursor: pointer; font-size: .85em; margin-left: 6px; }
.bh-pkg-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bh-pkg-item { display: flex; align-items: center; gap: 8px; font-size: .9em; flex-wrap: wrap; }
.bh-promo-active-msg { color: #2e7d32; font-weight: 600; }

/* ── Account page ─────────────────────────────────────────── */
.bh-account-page { max-width: 800px; margin: 40px auto; font-family: sans-serif; }
.bh-wallet-big { font-size: 1.4em; margin-bottom: 14px; }
.bh-membership-bar { background: #e8f5e9; border: 1px solid #c8e6c9; padding: 10px 16px; border-radius: 8px; margin-top: 24px; font-size: .9em; }
.bh-membership-current { background: #fff8e1; border: 1px solid #ffe082; padding: 10px 16px; border-radius: 8px; margin-bottom: 20px; text-align: center; }
.bh-ref-box { margin: 16px 0; }
.bh-out-of-stock { color: #c62828; font-weight: 700; }

/* ── Buy box (ecommerce) ──────────────────────────────────── */
.bh-buy-box { background: #f9f9f9; border: 1px solid #ddd; padding: 16px; border-radius: 8px; margin: 16px 0; }
.bh-stock-qty { color: #2e7d32; font-size: .9em; margin-bottom: 10px; }
.bh-shipping-select { display: block; width: 100%; margin-bottom: 12px; padding: 6px; }
.bh-buy-form button { width: 100%; }

/* ── Admin v2 extras ──────────────────────────────────────── */
.bh-tabs-v2 { flex-wrap: wrap; }
.bh-banner-review { background: #fafafa; border: 1px solid #ddd; border-radius: 8px; padding: 14px; margin-bottom: 14px; }

/* Featured badge on listing */
.bh-featured-badge { display: inline-block; background: #ffc439; color: #111; font-size: .72em; font-weight: 700; padding: 2px 8px; border-radius: 8px; margin-left: 6px; vertical-align: middle; }

/* Boost button */
.bh-boost-btn { display: inline-block; background: #ffc439; color: #111; padding: 8px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: .9em; margin-top: 10px; }
.bh-boost-btn:hover { background: #f0b500; }

/* Result pages */
.bh-result-page { max-width: 480px; margin: 80px auto; text-align: center; font-family: sans-serif; }
.bh-result-icon { font-size: 4em; margin-bottom: 12px; }
.bh-result-success .bh-result-icon { color: #2e7d32; }
.bh-result-error .bh-result-icon, .bh-result-cancel .bh-result-icon { color: #c62828; }
.bh-result-page h1 { font-size: 1.8em; margin-bottom: 10px; }
.bh-result-page p { color: #555; margin-bottom: 24px; }
