/**
 * Mypowerly Pricing Table Multipayment Gateways Bridge - Admin Styles
 *
 * @package ptmpgb_Maker
 * @author MyPowerly
 * @license GPL-2.0-or-later
 * @link https://mypowerly.com
 */
.ptmpgb-admin-wrap {
    max-width: none;
    margin: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #f0f2f5;
    min-height: calc(100vh - 40px);
    border-radius: 12px;
    padding: 20px;
}

.ptmpgb-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Auto Update Card */
.ptmpgb-auto-update-card {
    width: 100%;
    max-width: none;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f8fafc 100%);
    border: 2px solid rgba(59, 130, 246, 0.35);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 12px 0 18px 0;
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.12);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ptmpgb-auto-update-card::before {
    content: "";
    position: absolute;
    top: -28px;
    right: -28px;
    width: 96px;
    height: 96px;
    background: rgba(59, 130, 246, 0.10);
    border-radius: 50%;
}

.ptmpgb-auto-update-card::after {
    content: "";
    position: absolute;
    bottom: -34px;
    left: -34px;
    width: 120px;
    height: 120px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
}

.ptmpgb-auto-update-card:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 14px 34px rgba(59, 130, 246, 0.16);
}

.ptmpgb-auto-update-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.ptmpgb-auto-update-card__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ptmpgb-auto-update-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
    flex: 0 0 auto;
}

.ptmpgb-auto-update-card__icon .dashicons {
    color: #ffffff;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ptmpgb-auto-update-card__content {
    min-width: 0;
}

.ptmpgb-auto-update-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.ptmpgb-auto-update-card__subtitle {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.45;
    margin-top: 3px;
}

.ptmpgb-auto-update-card__status {
    margin-top: 10px;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

/* Toggle Switch (Auto Updates) */
.ptmpgb-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
}

.ptmpgb-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ptmpgb-toggle__track {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 999px;
    transition: 0.2s;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.ptmpgb-toggle__knob {
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 999px;
    transition: 0.2s;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

.ptmpgb-toggle:focus-within .ptmpgb-toggle__track {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Header Styles */
.ptmpgb-header {
    background: #2271b1;
    color: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.15);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ptmpgb-header-left {
    flex: 1;
}

.ptmpgb-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
}

.ptmpgb-live-connection {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ptmpgb-connection-dot {
    width: 8px;
    height: 8px;
    background: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.3);
    animation: pulse-green 2s infinite;
}

.ptmpgb-connection-text {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ptmpgb-disconnect-small {
    background: #d63638;
    color: #ffffff;
    border: 1px solid #d63638;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    min-height: 36px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(214, 54, 56, 0.2);
}

.ptmpgb-disconnect-small:hover {
    background: #b32d2e;
    border-color: #b32d2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(214, 54, 56, 0.3);
}

.ptmpgb-disconnect-small:focus {
    outline: 2px solid #d63638;
    outline-offset: 2px;
}

/* WordPress.org Compliant Button Base Styles */
.ptmpgb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.4;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 44px;
    box-sizing: border-box;
}

.ptmpgb-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Primary Button - WordPress Blue */
.ptmpgb-btn-primary {
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
}

.ptmpgb-btn-primary:hover:not(:disabled) {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.ptmpgb-btn-primary:active:not(:disabled) {
    background: #0d4b7d;
    border-color: #0d4b7d;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

/* Secondary Button */
.ptmpgb-btn-secondary {
    background: #ffffff;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.ptmpgb-btn-secondary:hover:not(:disabled) {
    background: #f6f7f7;
    color: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.15);
}

/* Success Button */
.ptmpgb-btn-success {
    background: #00a32a;
    color: #ffffff;
    border: 1px solid #00a32a;
}

.ptmpgb-btn-success:hover:not(:disabled) {
    background: #008d23;
    border-color: #008d23;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 163, 42, 0.3);
}

/* Danger Button */
.ptmpgb-btn-danger {
    background: #d63638;
    color: #ffffff;
    border: 1px solid #d63638;
}

.ptmpgb-btn-danger:hover:not(:disabled) {
    background: #b32d2e;
    border-color: #b32d2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(214, 54, 56, 0.3);
}

/* Link Button */
.ptmpgb-btn-link {
    background: transparent;
    color: #2271b1;
    border: 1px solid transparent;
    box-shadow: none;
    text-decoration: underline;
}

.ptmpgb-btn-link:hover:not(:disabled) {
    color: #135e96;
    background: #f6f7f7;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

/* Small Button Variant */
.ptmpgb-btn-small {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
}

/* Large Button Variant */
.ptmpgb-btn-large {
    padding: 16px 32px;
    font-size: 16px;
    min-height: 52px;
}

/* Button Icons */
.ptmpgb-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ptmpgb-btn-small .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.ptmpgb-btn-large .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Legacy Button Class Mappings */
.ptmpgb-go-mypowerly-btn {
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
    min-height: 36px;
    box-sizing: border-box;
}

.ptmpgb-go-mypowerly-btn:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.ptmpgb-go-mypowerly-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-go-mypowerly-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ptmpgb-disconnect-small:hover {
    background: #b32d2e;
    border-color: #b32d2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(214, 54, 56, 0.3);
}

.ptmpgb-connect-header-btn {
    background: #00a32a;
    color: #ffffff;
    border: 1px solid #00a32a;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 2px 4px rgba(0, 163, 42, 0.2);
    min-height: 44px;
    box-sizing: border-box;
}

.ptmpgb-connect-header-btn:hover {
    background: #008d23;
    border-color: #008d23;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 163, 42, 0.3);
}

.ptmpgb-connect-header-btn:focus {
    outline: 2px solid #00a32a;
    outline-offset: 2px;
}

.ptmpgb-connect-header-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ptmpgb-title {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ptmpgb-title .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.ptmpgb-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.ptmpgb-benefits {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ptmpgb-benefits h3 {
    color: #2271b1;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.ptmpgb-premium-features {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    color: #1d2327;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ptmpgb-premium-features .ptmpgb-features-grid {
    gap: 16px;
    margin-top: 16px;
}

/* Improved Widget Selection UI */
.ptmpgb-page-positions-header {
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
    color:#0f172a;
    font-weight:700;
}

.ptmpgb-page-positions-grid {
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:12px;
}

/* Highlight and notice for widget position prompt */
.ptmpgb-widget-position-highlight {
    animation: ptmpgb-pulse 1800ms ease-in-out 1;
    box-shadow: 0 8px 30px rgba(59,130,246,0.12) !important;
    border-color: #3b82f6 !important;
}

.ptmpgb-position-notice {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #1e3a8a;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}

@keyframes ptmpgb-pulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.ptmpgb-page-position-row {
    background: #ffffff;
    border: 1px solid #e6f0fb;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ptmpgb-page-position-title {
    flex-wrap: wrap; /* allow items to wrap to prevent overflow */
    font-weight: 600;
    color: #0f172a;
}

.ptmpgb-page-position-select,
.ptmpgb-page-widget-select,
#ptmpgb_all_pages_widget_select,
#ptmpgb_shortcode_widget_select,
.ptmpgb-page-widget-select {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #cfe3ff;
    background: #fff;
    color: #0f172a;
    min-width: 180px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.ptmpgb-page-position-select { min-width: 120px; }
.ptmpgb-page-position-row select,
.ptmpgb-page-position-row .ptmpgb-page-widget-select {
    max-width: 48%;
    min-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}


.ptmpgb-widget-position-card {
    max-width: 100%;
    box-sizing: border-box;
}
.ptmpgb-page-widget-select option[ value = "" ] {
    color: #6b7280;
}

.ptmpgb-selected-page-tag {
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:#eef6ff;
    color:#0f172a;
    padding:6px 10px;
    border-radius:999px;
    margin:6px 6px 6px 0;
    border:1px solid #dbeefe;
}

.ptmpgb-selected-pages-list { margin: 10px 0 0 0; display:flex; flex-wrap:wrap; }

.ptmpgb-widget-enabled-row.hidden { display: none !important; }

/* Make layout responsive on narrow screens */
@media (max-width: 860px) {
    .ptmpgb-page-positions-grid { grid-template-columns: 1fr; }
    .ptmpgb-page-position-row { flex-direction: column; align-items: stretch; }
    .ptmpgb-page-position-title { margin-bottom:6px; }
}

/* Collapsible chips for large selections */
.ptmpgb-chips-collapsed { max-height: 96px; overflow: hidden; position: relative; }
.ptmpgb-chips-expanded { max-height: none; }
.ptmpgb-chips-collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}
.ptmpgb-show-more-btn {
    display:inline-block;
    margin-top:8px;
    background:#fff;
    border:1px solid #d1d5db;
    color:#374151;
    padding:6px 10px;
    border-radius:6px;
    cursor:pointer;
    font-size:13px;
}
.ptmpgb-show-more-btn:hover{ background:#f8fafc; }

/* Page settings expand control */
.ptmpgb-page-settings-wrapper { position:relative; }
.ptmpgb-page-settings-expanded { max-height: none !important; }
.ptmpgb-page-settings-toggle {
    position:absolute;
    right:12px;
    top:8px;
    background:#f3f4f6;
    border:1px solid #e5e7eb;
    color:#374151;
    padding:6px 10px;
    border-radius:6px;
    cursor:pointer;
    font-size:12px;
}

/* Selected pages positions container: allow expansion and scrolling */
#ptmpgb_selected_pages_positions {
    max-height: min(700px, 55vh);
    overflow-y: auto;
    padding-right: 6px; /* space for scrollbar */
}

.ptmpgb-premium-features h3 {
    color: #1d2327;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.ptmpgb-premium-feature {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    position: relative;
    color: #1d2327;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ptmpgb-premium-feature:hover {
    border-color: #4a90e2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.12);
    transform: translateY(-2px);
}

.ptmpgb-premium-feature::before {
    content: none;
}

.ptmpgb-premium-star {
    color: #4a90e2;
}

.ptmpgb-section-header {
    margin: 0 0 16px 0;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.ptmpgb-section-header--compact {
    margin-top: 24px;
}

.ptmpgb-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.ptmpgb-section-subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.ptmpgb-section-desc {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #64748b;
}

.ptmpgb-lock-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    color: #94a3b8;
    opacity: 0.7;
}

.ptmpgb-feature-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #4a90e2;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 4px;
    padding: 2px 6px;
    margin-bottom: 8px;
}

.ptmpgb-premium-feature .ptmpgb-feature-title {
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.ptmpgb-premium-feature p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.ptmpgb-premium-cta {
    margin-top: 40px;
}

.ptmpgb-cta-card {
    background: #ffffff;
    border: 2px solid #2271b1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
}

.ptmpgb-cta-card h3 {
    color: #2271b1;
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
}

.ptmpgb-cta-card p {
    color: #475569;
    margin: 0 0 25px 0;
    font-size: 16px;
    line-height: 1.6;
}

.ptmpgb-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.ptmpgb-premium-btn {
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
    min-height: 48px;
    box-sizing: border-box;
}

.ptmpgb-premium-btn:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.ptmpgb-premium-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-contact-btn {
    background: #ffffff;
    color: #2271b1;
    border: 2px solid #2271b1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    box-sizing: border-box;
}

.ptmpgb-contact-btn:hover {
    background: #2271b1;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.ptmpgb-contact-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-benefits ul {
    margin: 0;
    padding-left: 20px;
    color: #333333;
}

.ptmpgb-benefits li {
    margin-bottom: 5px;
}

.ptmpgb-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.ptmpgb-feature-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ptmpgb-feature-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
    border-color: #2271b1;
}

.ptmpgb-feature-title {
    color: #2271b1;
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 6px 0;
}

.ptmpgb-feature-desc-preview,
.ptmpgb-feature-desc-full {
    color: #333333;
    font-size: 13px;
    line-height: 1.45;
}

.ptmpgb-read-more-btn {
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 1px 3px rgba(34, 113, 177, 0.2);
    min-height: 32px;
    box-sizing: border-box;
}

.ptmpgb-read-more-btn:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.3);
}

.ptmpgb-read-more-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Widget Settings Card */
.ptmpgb-widget-settings-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.ptmpgb-widget-settings-card:hover {
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.ptmpgb-widget-settings-content {
    padding: 30px;
}

.ptmpgb-info-box {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ptmpgb-info-box .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #4a90e2;
    flex-shrink: 0;
    margin-top: 2px;
}

.ptmpgb-info-box strong {
    display: block;
    color: #1d2327;
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
}

.ptmpgb-info-box p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.ptmpgb-steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ptmpgb-widget-settings-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
}

.ptmpgb-steps-list h4 {
    color: #1e3c72;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.ptmpgb-steps-list ol {
    margin: 0;
    padding-left: 24px;
    color: #334155;
}

.ptmpgb-steps-list li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

/* Widget Code Card */
.ptmpgb-widget-code-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.ptmpgb-widget-code-card:hover {
    box-shadow: 0 4px 16px rgba(30, 60, 114, 0.1);
}

.ptmpgb-widget-code-content {
    padding: 30px;
}

.ptmpgb-code-description {
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ptmpgb-code-description strong {
    display: block;
    color: #1e3c72;
    font-size: 15px;
    margin-bottom: 6px;
}

.ptmpgb-code-description p {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.ptmpgb-generate-widget-btn {
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    box-sizing: border-box;
}

.ptmpgb-generate-widget-btn:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.ptmpgb-generate-widget-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-generate-widget-btn:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.2);
}

.ptmpgb-generate-widget-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ptmpgb-widget-code-result-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ptmpgb-widget-code-result-content label {
    display: block;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 12px;
    font-size: 15px;
}

.ptmpgb-code-help {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

.ptmpgb-widget-code-display {
    margin-top: 20px;
}

.ptmpgb-widget-code-display label {
    display: block;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 8px;
    font-size: 14px;
}

.ptmpgb-widget-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
    resize: vertical;
    min-height: 150px;
}

.ptmpgb-widget-textarea:focus {
    outline: none;
    border-color: #4a90e2;
    background: #ffffff;
}

.ptmpgb-widget-result-area {
    margin-top: 20px;
}

/* Get Widget Code Card */
.ptmpgb-get-widget-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.ptmpgb-get-widget-card:hover {
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.08);
}

.ptmpgb-get-widget-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#ptmpgb_get_widget_btn {
    align-self: flex-start;
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
    min-height: 44px;
    box-sizing: border-box;
}

#ptmpgb_get_widget_btn:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

#ptmpgb_get_widget_btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

#ptmpgb_get_widget_btn:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.2);
}

.ptmpgb-widget-result {
    margin-top: 20px;
}

.ptmpgb-widget-result h4 {
    color: #1e3c72;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.ptmpgb-widget-result .ptmpgb-code-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ptmpgb-widget-result pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}

.ptmpgb-copy-embed-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 1px 3px rgba(34, 113, 177, 0.2);
    min-height: 32px;
    box-sizing: border-box;
}

.ptmpgb-copy-embed-btn:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.3);
}

.ptmpgb-copy-embed-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-widget-result .description {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

/* Display Settings Card */
.ptmpgb-display-settings-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.ptmpgb-display-settings-card:hover {
    box-shadow: 0 4px 16px rgba(30, 60, 114, 0.1);
}

.ptmpgb-card-header-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 30px;
    background: #2271b1;
    color: #ffffff;
}

.ptmpgb-card-icon {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ptmpgb-card-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #2271b1;
}

.ptmpgb-card-header-modern h2 {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    border: none;
    padding: 0;
}

.ptmpgb-card-header-modern .ptmpgb-card-subtitle {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.ptmpgb-display-settings-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px;
}

.ptmpgb-widget-enabled-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 20px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ptmpgb-widget-enabled-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2271b1, #4a90e2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ptmpgb-widget-enabled-row:hover {
    border-color: #2271b1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 113, 177, 0.15);
}

.ptmpgb-widget-enabled-row:hover::before {
    transform: scaleX(1);
}

.ptmpgb-widget-enabled-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 700;
    color: #1d2327;
    font-size: 15px;
}

.ptmpgb-widget-enabled-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2271b1;
    cursor: pointer;
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.ptmpgb-widget-enabled-label input[type="checkbox"]:hover {
    transform: scale(1.2);
}

.ptmpgb-widget-enabled-text {
    position: relative;
    transition: color 0.3s ease;
}

.ptmpgb-widget-enabled-label:hover .ptmpgb-widget-enabled-text {
    color: #2271b1;
}

.ptmpgb-widget-position-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 10px;
    margin-top: 20px;
}

.ptmpgb-widget-position-grid.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.ptmpgb-widget-position-option label {
    display: block;
    cursor: pointer;
}

.ptmpgb-widget-position-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ptmpgb-widget-position-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 16px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 110px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.ptmpgb-widget-position-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2271b1, #4a90e2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ptmpgb-widget-position-card .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #2271b1;
    transition: all 0.3s ease;
}

.ptmpgb-widget-position-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.ptmpgb-widget-position-option label:hover .ptmpgb-widget-position-card {
    border-color: #2271b1;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(34, 113, 177, 0.2);
    background: linear-gradient(145deg, #ffffff, #f0f7ff);
}

.ptmpgb-widget-position-option label:hover .ptmpgb-widget-position-card::before {
    transform: scaleX(1);
}

.ptmpgb-widget-position-option label:hover .ptmpgb-widget-position-card .dashicons {
    transform: scale(1.1);
    color: #1e5ba8;
}

.ptmpgb-widget-position-option input[type="radio"]:checked + .ptmpgb-widget-position-card {
    border-color: #2271b1;
    background: linear-gradient(135deg, rgba(34, 113, 177, 0.12), rgba(19, 94, 150, 0.08));
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(34, 113, 177, 0.25);
}

.ptmpgb-widget-position-option input[type="radio"]:checked + .ptmpgb-widget-position-card::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, #2271b1, #4a90e2, #2271b1);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.ptmpgb-widget-position-option input[type="radio"]:checked + .ptmpgb-widget-position-card .dashicons {
    color: #1e5ba8;
    transform: scale(1.15);
}

.ptmpgb-widget-position-option input[type="radio"]:checked + .ptmpgb-widget-position-card .ptmpgb-widget-position-title {
    color: #1e5ba8;
    font-weight: 800;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.ptmpgb-selected-pages-positions {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.ptmpgb-page-positions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e3c72;
    margin-bottom: 12px;
}

.ptmpgb-page-positions-header .dashicons {
    color: #2271b1;
}

.ptmpgb-page-positions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ptmpgb-page-position-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.ptmpgb-page-position-title {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ptmpgb-page-position-select {
    min-width: 130px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    background: #ffffff;
    color: #1d2327;
}

.ptmpgb-shortcode-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ptmpgb-shortcode-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ptmpgb-shortcode-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 13px;
}

.ptmpgb-shortcode-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #2271b1;
    background: #2271b1;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.ptmpgb-shortcode-copy:hover {
    background: #135e96;
    border-color: #135e96;
}

.ptmpgb-shortcode-help {
    margin: 10px 0 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.ptmpgb-shortcode-steps {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.ptmpgb-shortcode-steps-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    font-size: 14px;
}

.ptmpgb-shortcode-steps-list {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.ptmpgb-shortcode-steps-list li {
    margin: 6px 0;
}

.ptmpgb-howto-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ptmpgb-howto-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.ptmpgb-howto-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.ptmpgb-howto-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.ptmpgb-howto-desc {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.ptmpgb-howto-list {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.ptmpgb-howto-list li {
    margin: 6px 0;
}

@media (max-width: 960px) {
    .ptmpgb-howto-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .ptmpgb-widget-position-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ptmpgb-page-positions-grid {
        grid-template-columns: 1fr;
    }
}

.ptmpgb-display-options-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.ptmpgb-display-option {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.ptmpgb-display-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #2271b1, #4a90e2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.ptmpgb-display-option:hover {
    border-color: #2271b1;
    background: linear-gradient(145deg, #ffffff, #f0f7ff);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 113, 177, 0.2);
}

.ptmpgb-display-option:hover::before {
    transform: scaleY(1);
}

.ptmpgb-display-option.selected {
    border-color: #2271b1;
    background: linear-gradient(135deg, rgba(34, 113, 177, 0.12), rgba(19, 94, 150, 0.08));
    box-shadow: 0 8px 25px rgba(34, 113, 177, 0.25);
    transform: scale(1.02);
}

.ptmpgb-display-option.selected::before {
    transform: scaleY(1);
    background: linear-gradient(180deg, #2271b1, #4a90e2, #2271b1);
    background-size: 100% 200%;
    animation: shimmerVertical 2s infinite;
}

@keyframes shimmerVertical {
    0% { background-position: 0% -100%; }
    100% { background-position: 0% 100%; }
}

.ptmpgb-option-label {
    display: flex;
    align-items: stretch;
    cursor: pointer;
    margin: 0;
}

.ptmpgb-option-label input[type="radio"] {
    margin: 20px;
    accent-color: #4a90e2;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.ptmpgb-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 20px 0;
    flex: 1;
}

.ptmpgb-option-icon {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.ptmpgb-option-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #4a90e2;
}

.ptmpgb-display-option.selected .ptmpgb-option-icon {
    background: #4a90e2;
}

.ptmpgb-display-option.selected .ptmpgb-option-icon .dashicons {
    color: #ffffff;
}

.ptmpgb-option-title {
    font-weight: 700;
    font-size: 16px;
    color: #1e3c72;
    margin-bottom: 4px;
    line-height: 1.3;
    display: block;
}

.ptmpgb-option-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: block;
}

/* Display instruction cards shown below display options */
.ptmpgb-display-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
    align-items: start;
}

.ptmpgb-instruction-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(16,24,40,0.03);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ptmpgb-instruction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(34,113,177,0.08);
}

.ptmpgb-instruction-card h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #1e3c72;
}

.ptmpgb-instruction-card p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .ptmpgb-display-instructions {
        grid-template-columns: 1fr;
    }
}

.ptmpgb-option-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e8f4fd, #f0f9ff);
    color: #1e3c72;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    border: 1px solid #4a90e2;
}

.ptmpgb-pages-section {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 0;
}

.ptmpgb-pages-section-outer {
    padding: 20px;
    margin-top: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
}

.ptmpgb-pages-section-inner {
    padding: 20px;
    margin: 16px 20px 20px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
}

.ptmpgb-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #1e3c72;
    font-size: 15px;
}

.ptmpgb-section-label .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #4a90e2;
}

/* Quick actions for selected pages */
.ptmpgb-pages-quick-actions {
    display: flex;
    gap: 8px;
    margin: 8px 0 12px;
}

.ptmpgb-toggle-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
}

/* Modern Dropdown Styles */
.ptmpgb-pages-dropdown-wrapper {
    position: relative;
    margin-bottom: 20px;
    z-index: 1000;
}

.ptmpgb-pages-dropdown-wrapper.ptmpgb-dropdown-open .ptmpgb-dropdown-menu {
    display: flex !important;
}

.ptmpgb-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.ptmpgb-dropdown-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.03), transparent);
    transition: left 0.6s ease;
}

.ptmpgb-dropdown-trigger:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.ptmpgb-dropdown-trigger:hover::before {
    left: 100%;
}

.ptmpgb-dropdown-trigger.active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.ptmpgb-dropdown-text {
    flex: 1;
    text-align: left;
}

.ptmpgb-dropdown-count {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 1;
}

.ptmpgb-dropdown-trigger .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ptmpgb-dropdown-trigger.active .dashicons {
    transform: rotate(180deg);
}

.ptmpgb-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    display: none;
    flex-direction: column;
    max-height: 60vh;
    overflow: hidden;
    min-width: 100%;
    min-height: 200px;
}

.ptmpgb-dropdown-menu[style*="display: block"] {
    display: flex !important;
}

.ptmpgb-dropdown-search {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    flex-shrink: 0;
}

.ptmpgb-dropdown-search input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.ptmpgb-dropdown-search input:focus {
    border-color: #4a90e2;
}

.ptmpgb-dropdown-actions {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.ptmpgb-select-all-btn,
.ptmpgb-clear-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
    box-sizing: border-box;
}

.ptmpgb-select-all-btn:hover {
    background: #2271b1;
    color: #ffffff;
    border-color: #2271b1;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.3);
}

.ptmpgb-clear-btn:hover {
    background: #d63638;
    color: #ffffff;
    border-color: #d63638;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(214, 54, 56, 0.3);
}

.ptmpgb-select-all-btn:focus,
.ptmpgb-clear-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-select-all-btn .dashicons,
.ptmpgb-clear-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ptmpgb-dropdown-list {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 320px;
    max-height: 45vh !important;
    min-height: 180px !important;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-content: start;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 8px;
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.ptmpgb-dropdown-list::-webkit-scrollbar {
    width: 12px;
}

.ptmpgb-dropdown-list::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.ptmpgb-dropdown-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 6px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.ptmpgb-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.ptmpgb-dropdown-list::-webkit-scrollbar-corner {
    background: #f1f5f9;
}

.ptmpgb-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ptmpgb-dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: left 0.5s ease;
}

.ptmpgb-dropdown-item:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.ptmpgb-dropdown-item:hover::before {
    left: 100%;
}

.ptmpgb-dropdown-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #3b82f6;
    cursor: pointer;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.ptmpgb-dropdown-item span {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ptmpgb-dropdown-item:hover span {
    color: #1e40af;
}

.ptmpgb-dropdown-item input[type="checkbox"]:checked + span {
    color: #1e40af;
    font-weight: 600;
}

.ptmpgb-dropdown-item span {
    line-height: 1.4;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ptmpgb-no-pages {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
    margin: 12px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Selected Pages List */
.ptmpgb-selected-pages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 50px;
    padding: 16px;
    background: #ffffff;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    align-items: center;
}

.ptmpgb-selected-pages-list:empty::before {
    content: "No pages selected. Click 'Select Pages' above to choose pages.";
    color: #94a3b8;
    font-size: 14px;
    font-style: italic;
}

.ptmpgb-selected-page-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #2271b1;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease;
    box-shadow: 0 1px 3px rgba(34, 113, 177, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ptmpgb-selected-page-tag:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.3);
}

.ptmpgb-remove-page {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ptmpgb-remove-page:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.2);
}

.ptmpgb-remove-page .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ptmpgb-pages-header h4 {
    color: #1e3c72;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.ptmpgb-pages-header .description {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.ptmpgb-page-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

#ptmpgb_select_all_pages,
#ptmpgb_deselect_all_pages {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 8px 16px;
    box-sizing: border-box;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#ptmpgb_select_all_pages:hover,
#ptmpgb_deselect_all_pages:hover {
    background: #2271b1;
    color: #ffffff;
    border-color: #2271b1;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.3);
}

#ptmpgb_select_all_pages:focus,
#ptmpgb_deselect_all_pages:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

#ptmpgb_select_all_pages .dashicons,
#ptmpgb_deselect_all_pages .dashicons {
    font-size: 16px;
    flex: 0 0 220px;
    max-width: 220px;
    width: 16px;
    height: 16px;
}

.ptmpgb-pages-selector {
    display: flex;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    padding-right: 6px;
    flex-direction: column;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ptmpgb-page-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}
    #ptmpgb_selected_pages_positions {
        max-height: calc(5 * 64px); /* approx 5 rows of ~64px each */
        overflow-y: auto;
        overflow-x: hidden; /* prevent horizontal scrollbar */
        transition: max-height 220ms ease, padding 200ms ease;
        padding-right: 6px; /* space for vertical scrollbar */
    }

    .ptmpgb-page-settings-expanded {
        max-height: none !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
    }

    .ptmpgb-page-position-row {
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: space-between;
        padding: 12px 14px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 0 rgba(16,24,40,0.02);
    }

    .ptmpgb-page-position-title {
        flex: 1 1 60%;
        max-width: 60%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ptmpgb-page-position-row select {
        flex: 0 0 180px;
        max-width: 180px;
    }

    /* Hide native horizontal arrow on IE/Edge for select when possible */
    select::-ms-expand { display: none; }

    /* Tidy placeholder area for Show all button */
    #ptmpgb_chips_controls_placeholder {
        margin: 8px 0 12px 0;
    }

    /* Ensure no horizontal overflow inside positions grid */
    .ptmpgb-page-positions-grid { overflow-x: hidden; }

.ptmpgb-page-checkbox:hover {
    background: #f1f5f9;
}

.ptmpgb-page-checkbox input[type="checkbox"] {
    margin: 0;
    accent-color: #4a90e2;
    width: 16px;
    height: 16px;
}

.ptmpgb-settings-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.ptmpgb-settings-footer-modern {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 2px solid #e5e7eb;
}

.ptmpgb-save-btn-modern {
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    box-sizing: border-box;
}

.ptmpgb-save-btn-modern:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.ptmpgb-save-btn-modern:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-save-btn-modern:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.2);
}

.ptmpgb-save-btn-modern .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

#ptmpgb_save_display_settings {
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    box-sizing: border-box;
}

#ptmpgb_save_display_settings:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

#ptmpgb_save_display_settings:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

#ptmpgb_save_display_settings .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.dashicons.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ptmpgb-status {
    font-size: 14px;
    font-weight: 600;
}

.ptmpgb-status.success {
    color: #00a32a;
}

.ptmpgb-status.error {
    color: #d63638;
}

/* Card Styles */
.ptmpgb-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.ptmpgb-card:hover {
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.ptmpgb-card h2 {
    color: #1d2327;
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 15px;
}

/* Consent Card */
.ptmpgb-consent-card {
    border-left: 4px solid #00a32a;
}

.ptmpgb-description {
    color: #50575e;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.ptmpgb-consent-box {
    background: #f6f7f7;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    padding: 25px;
}

.ptmpgb-consent-box h3 {
    color: #1d2327;
    margin: 0 0 20px 0;
    font-size: 18px;
}

/* Checkbox Styles */
.ptmpgb-checkbox-wrapper {
    margin: 20px 0;
}

.ptmpgb-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.ptmpgb-checkbox-custom {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #8c8f94;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    background: white;
}

.ptmpgb-checkbox-label input[type="checkbox"] {
    display: none;
}

.ptmpgb-checkbox-label input[type="checkbox"]:checked + .ptmpgb-checkbox-custom {
    background: #2271b1;
    border-color: #2271b1;
}

.ptmpgb-checkbox-label input[type="checkbox"]:checked + .ptmpgb-checkbox-custom::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ptmpgb-checkbox-text {
    color: #2c3338;
    font-size: 16px;
    line-height: 1.5;
}

.ptmpgb-checkbox-text small {
    color: #646970;
    font-size: 14px;
}

/* Button Styles */
.ptmpgb-primary-btn {
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
    min-height: 48px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

.ptmpgb-primary-btn:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.ptmpgb-primary-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-primary-btn:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.2);
}

/* Legal Links */
.ptmpgb-legal-links {
    margin: 15px 0;
}

.ptmpgb-link {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
}

.ptmpgb-link:hover {
    text-decoration: underline;
}

/* Status Card */
.ptmpgb-status-card {
    border-left: 4px solid #00a32a;
}

.ptmpgb-status-top {
    border-left: 4px solid #004d40;
    background: linear-gradient(135deg, #f8fffe, #ffffff);
    box-shadow: 0 4px 12px rgba(0, 77, 64, 0.08);
    margin-bottom: 25px;
}

.ptmpgb-status-top h2 {
    color: #004d40;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ptmpgb-status-top h2 .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #004d40;
}

.ptmpgb-connected-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 8px 0;
}

.ptmpgb-connected-left {
    flex: 1;
}

.ptmpgb-connected-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #004d40;
    margin-bottom: 6px;
}

.ptmpgb-connected-dot {
    width: 12px;
    height: 12px;
    background: #00e676;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.2);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.ptmpgb-connected-subtext {
    color: #555;
    font-size: 14px;
    margin-left: 22px;
}

.ptmpgb-connected-actions {
    margin-left: 20px;
}

.ptmpgb-disconnect-btn {
    background: #d63638;
    color: #ffffff;
    border: 1px solid #d63638;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 36px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(214, 54, 56, 0.2);
}

.ptmpgb-disconnect-btn:hover {
    background: #b32d2e;
    border-color: #b32d2e;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(214, 54, 56, 0.3);
}

.ptmpgb-disconnect-btn:focus {
    outline: 2px solid #d63638;
    outline-offset: 2px;
}

.ptmpgb-connected-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ptmpgb-connected-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ptmpgb-connected-subtext {
    color: #646970;
    font-size: 13px;
    line-height: 1.4;
}

.ptmpgb-connected-actions {
    flex-shrink: 0;
}

.ptmpgb-status-details {
    background: #f6f7f7;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.ptmpgb-status-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.ptmpgb-status-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ptmpgb-status-label {
    font-weight: 600;
    color: #2c3338;
    min-width: 160px;
}

.ptmpgb-status-value {
    color: #50575e;
}

.ptmpgb-status-connected {
    display: flex;
    align-items: center;
    gap: 8px;
    color: hsl(194, 100%, 32%);    font-weight: 600;
}

.ptmpgb-status-indicator {
    width: 12px;
    height: 12px;
    background: #00a32a;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Button Group */
.ptmpgb-button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ptmpgb-button-group .button {
    padding: 10px 24px;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ptmpgb-button-group .button-primary {
    background: #2271b1;
    border: 1px solid #2271b1;
    color: #ffffff;
}

.ptmpgb-button-group .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.3);
}

.ptmpgb-button-group .button-primary:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Steps Card */
.ptmpgb-steps-card {
    border-left: 4px solid #dba617;
}

.ptmpgb-steps-card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ptmpgb-instructions {
    margin: 15px 0 0 0;
    padding-left: 20px;
    color: #50575e;
}

.ptmpgb-instructions li {
    margin: 10px 0;
    line-height: 1.5;
}

.ptmpgb-steps {
    display: grid;
    gap: 20px;
    margin-top: 25px;
}

.ptmpgb-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
}

.ptmpgb-step-number {
    background: #2271b1;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

.ptmpgb-step-content h3 {
    margin: 0 0 8px 0;
    color: #1d2327;
    font-size: 18px;
}

.ptmpgb-step-content p {
    margin: 0;
    color: #646970;
    line-height: 1.5;
}

/* Widget Code Card */
.ptmpgb-widget-card {
    border-left: 4px solid #2271b1;
}

/* Plugins Card */
.ptmpgb-plugins-card {
    border-left: 4px solid #764ba2;
}

.ptmpgb-plugins-card-modern {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.ptmpgb-plugins-card-modern:hover {
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.15);
}

.ptmpgb-plugins-content {
    padding: 30px;
}

.ptmpgb-plugins-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.ptmpgb-stat-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.ptmpgb-stat-box:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.ptmpgb-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #4a90e2;
    line-height: 1;
    margin-bottom: 8px;
}

.ptmpgb-stat-text {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ptmpgb-plugins-info {
    background: #f8fafc;
    border-left: 4px solid #4a90e2;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.ptmpgb-plugins-info p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.ptmpgb-plugins-consent-box {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.ptmpgb-consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.ptmpgb-consent-checkbox-input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #4a90e2;
    cursor: pointer;
    flex-shrink: 0;
}

.ptmpgb-consent-text {
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.ptmpgb-consent-text strong {
    font-weight: 700;
    color: #1e293b;
}

.ptmpgb-consent-text small {
    color: #64748b;
    font-size: 13px;
    display: block;
    margin-top: 6px;
    line-height: 1.5;
}

.ptmpgb-consent-text a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
}

.ptmpgb-consent-text a:hover {
    text-decoration: underline;
}

.ptmpgb-sync-btn-modern {
    width: 100%;
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    box-sizing: border-box;
}

.ptmpgb-sync-btn-modern:hover:not(:disabled) {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.ptmpgb-sync-btn-modern:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-sync-btn-modern:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.2);
    opacity: 0.7;
}

.ptmpgb-sync-btn-modern .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ptmpgb-sync-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: none;
}

.ptmpgb-sync-status.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    display: block;
}

.ptmpgb-sync-status.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

.ptmpgb-sync-status.loading {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    display: block;
}

.ptmpgb-plugins-simple {
    margin-top: 12px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 14px 16px;
}

.ptmpgb-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.ptmpgb-card-subtitle {
    margin: 6px 0 0 0;
    color: #646970;
}

.ptmpgb-plugins-list {
    margin-top: 18px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
    max-height: 360px;
    overflow: auto;
}

.ptmpgb-plugins-meta {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}

.ptmpgb-plugins-meta-item {
    flex: 1;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ptmpgb-plugins-meta-label {
    color: #646970;
    font-weight: 600;
}

.ptmpgb-plugins-meta-value {
    color: #1d2327;
    font-weight: 800;
}

.ptmpgb-plugins-table {
    margin-top: 14px;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.ptmpgb-plugins-table .ptmpgb-plugins-list {
    margin-top: 0;
    border: none;
    border-radius: 0;
    max-height: 320px;
}

.ptmpgb-plugins-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f6f7f7 0%, #f0f0f1 100%);
    border-bottom: 1px solid #dcdcde;
}

.ptmpgb-plugins-table-title {
    font-weight: 800;
    color: #1d2327;
}

.ptmpgb-plugin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f1;
}

.ptmpgb-plugin-item:last-child {
    border-bottom: none;
}

.ptmpgb-plugin-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f0f0f1;
    flex-shrink: 0;
}

.ptmpgb-plugin-meta {
    flex: 1;
    min-width: 0;
}

.ptmpgb-plugin-name {
    font-weight: 700;
    color: #1d2327;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ptmpgb-plugin-version {
    margin-top: 4px;
    color: #646970;
    font-size: 13px;
}

.ptmpgb-plugin-status {
    flex-shrink: 0;
}

.ptmpgb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.ptmpgb-badge-active {
    background: #e7f7ef;
    color: #006d3a;
}

.ptmpgb-badge-inactive {
    background: #f6f7f7;
    color: #50575e;
}

.ptmpgb-plugins-footer {
    margin-top: 16px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 14px;
}

.ptmpgb-plugins-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 12px 0;
}

.ptmpgb-plugins-consent-checkbox {
    margin-top: 2px;
}

.ptmpgb-plugins-consent-text {
    color: #50575e;
    line-height: 1.4;
}

.ptmpgb-plugins-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ptmpgb-send-now-btn {
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 10px 22px;
    border-radius: 8px;
    min-width: 180px;
    min-height: 44px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
    transition: all 0.2s ease;
}

.ptmpgb-send-now-btn:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.ptmpgb-send-now-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-send-status {
    color: #646970;
    font-size: 13px;
}

.ptmpgb-code-section {
    background: #1d2327;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.ptmpgb-code-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.ptmpgb-code-display code {
    background: #2c3338;
    color: #f2f2f2;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    flex-grow: 1;
    border: 1px solid #3c434a;
}

.ptmpgb-copy-btn {
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

.ptmpgb-copy-btn:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.ptmpgb-copy-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-code-help {
    color: #a7aaad;
    font-size: 14px;
    margin: 10px 0 0 0;
}

/* Display Settings Card */
.ptmpgb-display-card {
    border-left: 4px solid #646970;
}

.ptmpgb-display-note {
    color: #646970;
    font-style: italic;
    margin: 0 0 25px 0;
}

/* Radio Button Styles */
.ptmpgb-radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ptmpgb-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    padding: 12px;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ptmpgb-radio-label:hover {
    border-color: #8c8f94;
    background: #f6f7f7;
}

.ptmpgb-radio-label input[type="radio"]:checked + .ptmpgb-radio-custom {
    background: #2271b1;
    border-color: #2271b1;
}

.ptmpgb-radio-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #8c8f94;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.ptmpgb-radio-label input[type="radio"]:checked + .ptmpgb-radio-custom::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ptmpgb-radio-label input[type="radio"] {
    display: none;
}

/* Page Selection */
.ptmpgb-page-selection {
    margin-left: 32px;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 6px;
    border: 1px solid #dcdcde;
}

.ptmpgb-page-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 6px;
}

.ptmpgb-page-dropdown-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #646970;
    border-bottom: 2px solid #646970;
    transform: rotate(45deg);
    margin-left: 10px;
}

.ptmpgb-page-dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
}

.ptmpgb-page-dropdown-panel {
    margin-top: 10px;
}

.ptmpgb-page-checkboxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 16px;
    max-height: 220px;
    overflow: auto;
    padding: 8px;
    background: white;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.ptmpgb-page-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
}

.ptmpgb-page-checkbox:hover {
    background: #f6f7f7;
    border-color: #dcdcde;
}

.ptmpgb-page-checkbox-input {
    display: inline-block;
    margin: 0;
}

.ptmpgb-page-checkbox-text {
    color: #2c3338;
    line-height: 1.2;
}

.ptmpgb-multiselect {
    width: 100%;
    min-height: 120px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 8px;
    background: white;
}

.ptmpgb-field-note {
    color: #646970;
    font-size: 13px;
    margin: 8px 0 0 0;
}

/* Safety Card */
.ptmpgb-safety-card {
    background: linear-gradient(135deg, #f6f7f7 0%, #f0f0f1 100%);
    border-left: 4px solid #72aee6;
}

.ptmpgb-info-icon {
    font-size: 24px;
    margin-bottom: 15px;
}

.ptmpgb-safety-list {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.ptmpgb-safety-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3338;
}

.ptmpgb-safety-item .dashicons {
    color: hsl(194, 100%, 32%);    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ptmpgb-important-note {
    background: #fff8e5;
    border-left: 4px solid #dba617;
    padding: 15px;
    border-radius: 4px;
    margin: 25px 0 0 0;
    color: #2c3338;
}

/* Debug Panel */
.ptmpgb-debug-card {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
}

.ptmpgb-debug-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 15px;
    text-align: left;
    cursor: pointer;
    color: #646970;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ptmpgb-debug-toggle:hover {
    color: #2271b1;
}

.ptmpgb-toggle-arrow {
    margin-left: auto;
    border: solid #646970;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.ptmpgb-debug-toggle.active .ptmpgb-toggle-arrow {
    transform: rotate(-135deg);
}

.ptmpgb-debug-content {
    padding: 20px;
    border-top: 1px solid #dcdcde;
    background: white;
}

.ptmpgb-debug-table {
    width: 100%;
    border-collapse: collapse;
}

.ptmpgb-debug-table th,
.ptmpgb-debug-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}

.ptmpgb-debug-table th {
    font-weight: 600;
    color: #1d2327;
    width: 200px;
}

.ptmpgb-debug-table td {
    color: #50575e;
    font-family: 'Courier New', monospace;
}

/* Modal Styles */
.ptmpgb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Premium Features Page - Compact & User-Friendly Design */

.ptmpgb-premium-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 0;
}

.ptmpgb-premium-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: #2271b1;
    color: #ffffff;
}

.ptmpgb-premium-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ptmpgb-premium-card-icon .dashicons {
    color: #2271b1;
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.ptmpgb-premium-card-header-text {
    min-width: 0;
}

.ptmpgb-premium-card-title {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.ptmpgb-premium-card-subtitle {
    margin: 4px 0 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.4;
}

.ptmpgb-premium-card-body {
    padding: 22px;
}

.ptmpgb-premium-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.ptmpgb-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: #f0f7ff;
    color: #1e3c72;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ptmpgb-premium-cta-compact {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ptmpgb-premium-cta-note {
    color: #94a3b8;
    font-size: 12px;
}

.ptmpgb-premium-reminder {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
}

.ptmpgb-premium-reminder-inner {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.ptmpgb-premium-reminder-inner strong {
    color: #1d2327;
}

/* Notice Card */
.ptmpgb-premium-notice-card {
    margin-bottom: 30px;
}

.ptmpgb-badge-pill {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #e8f4fd, #f0f9ff);
    color: #1e3c72;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid #4a90e2;
}

/* Features Card - Compact List Design */
.ptmpgb-premium-features-card {
    margin-bottom: 30px;
}

.ptmpgb-premium-features-compact {
    padding: 20px 30px;
}

.ptmpgb-premium-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.ptmpgb-premium-feature-item:last-child {
    margin-bottom: 0;
}

.ptmpgb-premium-feature-item:hover {
    background: #ffffff;
    border-color: #2271b1;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.15);
}

.ptmpgb-feature-icon-small {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.ptmpgb-feature-content {
    flex: 1;
    min-width: 0;
}

.ptmpgb-feature-content h4 {
    color: #2271b1;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.ptmpgb-feature-content p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.ptmpgb-feature-badge {
    display: inline-block;
    background: #2271b1;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(34, 113, 177, 0.2);
}

/* Compact CTA Button */
.ptmpgb-premium-cta-button-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2271b1;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
    text-transform: none;
    letter-spacing: normal;
    min-height: 44px;
    box-sizing: border-box;
}

.ptmpgb-premium-cta-button-compact:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.ptmpgb-premium-cta-button-compact:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-premium-cta-button-compact .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Disclaimer Card */
.ptmpgb-premium-disclaimer-card {
    border: 2px dashed #cbd5e1;
}

/* Responsive Design */
@media (max-width: 782px) {
    .ptmpgb-premium-card-header {
        padding: 16px 18px;
    }

    .ptmpgb-premium-card-body {
        padding: 18px;
    }

    .ptmpgb-premium-badges {
        gap: 8px;
    }

    .ptmpgb-premium-badge {
        font-size: 11px;
        padding: 5px 9px;
    }

    .ptmpgb-premium-features-compact {
        padding: 15px 20px;
    }
    
    .ptmpgb-premium-feature-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }
    
    .ptmpgb-feature-badge {
        align-self: flex-start;
    }
}

/* Old Upgrade Page Styles - Keep for compatibility */
.ptmpgb-upgrade-card {
    border-left: 4px solid #667eea;
}

.ptmpgb-premium-info-card {
    border-left: 4px solid #1e3c72;
}

.ptmpgb-premium-info-card h2 {
    color: #1d2327;
    font-size: 22px;
    margin: 0 0 10px 0;
}

.ptmpgb-upgrade-features {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.ptmpgb-upgrade-feature {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 14px 16px;
}

.ptmpgb-upgrade-feature-title {
    font-weight: 800;
    color: #1d2327;
    margin-bottom: 6px;
}

.ptmpgb-upgrade-feature-desc {
    color: #50575e;
    line-height: 1.5;
}

.ptmpgb-upgrade-cta {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.ptmpgb-upgrade-btn {
    background: #2271b1;
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    min-height: 48px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
    transition: all 0.2s ease;
}

.ptmpgb-upgrade-btn:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.ptmpgb-upgrade-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ptmpgb-modal-content h3 {
    margin: 0 0 15px 0;
    color: #1d2327;
}

.ptmpgb-modal-content p {
    margin: 0 0 10px 0;
    color: #50575e;
}

.ptmpgb-warning-text {
    color: #d63638 !important;
    font-weight: 600;
    margin: 15px 0 25px 0 !important;
}

.ptmpgb-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.ptmpgb-modal-buttons .button {
    padding: 10px 24px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 782px) {
    .ptmpgb-admin-wrap {
        margin: 10px;
    }

    .ptmpgb-features-grid {
        grid-template-columns: 1fr;
    }

    .ptmpgb-connected-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0 4px 0;
    }
    
    .ptmpgb-connected-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .ptmpgb-disconnect-btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
    
    .ptmpgb-status-top h2 {
        font-size: 18px;
    }
    
    .ptmpgb-status-top h2 .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
    
    .ptmpgb-connected-title {
        font-size: 16px;
    }
    
    .ptmpgb-connected-subtext {
        font-size: 13px;
        margin-left: 0;
    }
    
    .ptmpgb-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .ptmpgb-header-right {
        align-self: stretch;
        justify-content: space-between;
        gap: 12px;
    }
    
    .ptmpgb-live-connection {
        padding: 5px 10px;
    }
    
    .ptmpgb-connection-text {
        font-size: 12px;
    }
    
    .ptmpgb-disconnect-small {
        padding: 6px 12px;
        font-size: 12px;
    }

    .ptmpgb-go-mypowerly-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .ptmpgb-card {
        padding: 20px;
    }
    
    .ptmpgb-button-group {
        flex-direction: column;
    }
    
    .ptmpgb-code-display {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ptmpgb-copy-btn {
        width: 100%;
    }
}


/* Hide any debug elements in production */
.ptmpgb-debug-info,
.ptmpgb-oauth-debug,
[class*="debug-info"],
[class*="oauth-debug"] {
    display: none !important;
}


/* ========================================
   ULTRA-MODERN CONNECTION SCREEN - PRO MAX
   ======================================== */

/* Connection Card - High-Class Design */
.ptmpgb-connection-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 60, 114, 0.15);
    position: relative;
}

.ptmpgb-connection-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4a90e2 0%, #357abd 50%, #4a90e2 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Hero Section */
.ptmpgb-connection-hero {
    text-align: center;
    padding: 50px 40px 30px;
    background: #2271b1;
    position: relative;
    overflow: hidden;
}

.ptmpgb-connection-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 20px) rotate(5deg); }
}

/* Connection Icon */
.ptmpgb-connection-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.ptmpgb-connection-icon-circle {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border: 3px solid #ffffff;
    animation: iconPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ptmpgb-connection-icon-circle .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    color: #2271b1;
}

.ptmpgb-connection-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.ptmpgb-connection-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.ptmpgb-connection-desc {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Section */
.ptmpgb-connection-content {
    padding: 40px;
}

/* Modern Consent Box */
.ptmpgb-consent-modern {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.ptmpgb-consent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.ptmpgb-consent-header .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #4a90e2;
}

.ptmpgb-consent-header h3 {
    color: #1e3c72;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* Modern Checkbox */
.ptmpgb-checkbox-modern {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    margin-bottom: 25px;
}

.ptmpgb-checkbox-modern input[type="checkbox"] {
    display: none;
}

.ptmpgb-checkbox-box {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.ptmpgb-checkbox-modern:hover .ptmpgb-checkbox-box {
    border-color: #4a90e2;
    transform: scale(1.1);
}

.ptmpgb-checkbox-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: #4a90e2;
    border-radius: 3px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ptmpgb-checkbox-modern input[type="checkbox"]:checked + .ptmpgb-checkbox-box {
    background: #2271b1;
    border-color: #2271b1;
}

.ptmpgb-checkbox-modern input[type="checkbox"]:checked + .ptmpgb-checkbox-box .ptmpgb-checkbox-check {
    transform: translate(-50%, -50%) scale(1);
    background: #ffffff;
}

.ptmpgb-checkbox-label-text {
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

.ptmpgb-checkbox-label-text small {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-top: 6px;
    font-style: italic;
}

/* Legal Links - Modern */
.ptmpgb-legal-modern {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ptmpgb-legal-modern a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.ptmpgb-legal-modern a:hover {
    background: #e8f4fd;
    transform: translateX(3px);
}

.ptmpgb-legal-modern a .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Ultra-Modern Connect Button */
.ptmpgb-connect-btn-modern {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #2271b1;
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: normal;
    min-height: 56px;
    box-sizing: border-box;
    border: 1px solid #2271b1;
}

.ptmpgb-connect-btn-modern:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.ptmpgb-connect-btn-modern:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ptmpgb-connect-btn-modern:active {
    transform: translateY(0);
}

.ptmpgb-connect-btn-modern:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.2);
    opacity: 0.7;
}

.ptmpgb-btn-icon,
.ptmpgb-btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.ptmpgb-btn-icon .dashicons,
.ptmpgb-btn-arrow .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ptmpgb-connect-btn-modern:hover .ptmpgb-btn-icon {
    transform: scale(1.1);
}

.ptmpgb-connect-btn-modern:hover .ptmpgb-btn-arrow {
    transform: translateX(2px);
}

.ptmpgb-btn-text {
    flex: 1;
}

/* Responsive */
@media (max-width: 782px) {
    .ptmpgb-connection-hero {
        padding: 40px 25px 25px;
    }
    
    .ptmpgb-connection-title {
        font-size: 26px;
    }
    
    .ptmpgb-connection-desc {
        font-size: 14px;
    }
    
    .ptmpgb-connection-content {
        padding: 30px 25px;
    }
    
    .ptmpgb-consent-modern {
        padding: 25px 20px;
    }
    
    .ptmpgb-legal-modern {
        flex-direction: column;
        gap: 10px;
    }
    
    .ptmpgb-connect-btn-modern {
        padding: 16px 30px;
        font-size: 14px;
    }
}

/* Widget Selector Grid Styles */
.ptmpgb-widgets-selector-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.ptmpgb-widgets-selector-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
}

.ptmpgb-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ptmpgb-widget-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ptmpgb-widget-card:hover {
    border-color: #2271b1;
    box-shadow: 0 8px 16px rgba(34, 113, 177, 0.12);
    transform: translateY(-2px);
}

.ptmpgb-widget-card.selected {
    background: #f0f7ff;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.ptmpgb-widget-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2271b1;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.ptmpgb-widget-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.ptmpgb-widget-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    word-break: break-word;
}

.ptmpgb-widget-card-slug {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
    background: #f1f5f9;
    padding: 6px 8px;
    border-radius: 4px;
    word-break: break-all;
}

.ptmpgb-widget-card-status {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
}

.ptmpgb-widget-card-status.published {
    background: #d1fae5;
    color: #065f46;
}

.ptmpgb-widget-card-status.draft {
    background: #fef3c7;
    color: #78350f;
}

.ptmpgb-widget-card-action {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}

.ptmpgb-widget-card-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ptmpgb-widget-card-btn.select {
    background: #2271b1;
    color: #ffffff;
}

.ptmpgb-widget-card-btn.select:hover {
    background: #1860a0;
}

.ptmpgb-widget-card-btn.copy {
    background: #e2e8f0;
    color: #334155;
}

.ptmpgb-widget-card-btn.copy:hover {
    background: #cbd5e1;
}

/* Selected Widget Info */
.ptmpgb-selected-widget-info {
    background: #f0f7ff;
    border-left: 4px solid #2271b1;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.ptmpgb-selected-widget-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e293b;
}

.ptmpgb-selected-widget-info p {
    margin: 10px 0;
    font-size: 14px;
    color: #475569;
}

.ptmpgb-selected-widget-info strong {
    color: #1e293b;
}

#ptmpgb_copy_widget_code_btn {
    margin-top: 15px;
}

/* Loading State */
.ptmpgb-widgets-loading {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.ptmpgb-widgets-loading .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ptmpgb-widgets-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 6px;
}

.ptmpgb-widgets-empty .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    opacity: 0.5;
}


/* Widget Selector Styles */
.ptmpgb-widgets-selector {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.ptmpgb-widgets-selector h4 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.ptmpgb-widget-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    color: #1e293b;
}

.ptmpgb-widget-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.ptmpgb-page-widget-select {
    min-width: 180px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font-size: 13px;
    color: #1e293b;
}

.ptmpgb-page-widget-select:focus {
    outline: none;
    border-color: #2271b1;
}

.ptmpgb-page-position-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
}

@media (max-width: 782px) {
    .ptmpgb-page-position-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .ptmpgb-page-widget-select,
    .ptmpgb-page-position-select {
        width: 100%;
    }
}

/* Strong admin-scoped overrides to ensure display-mode cards render correctly
   and are not overridden by other admin/theme styles. These use the
   `.wrap.ptmpgb-admin-wrap` scope and `!important` only where necessary. */
.wrap.ptmpgb-admin-wrap .ptmpgb-display-option .ptmpgb-option-label,
.wrap.ptmpgb-admin-wrap .ptmpgb-mode-card,
.wrap.ptmpgb-admin-wrap .ptmpgb-pages-section-outer {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    color: #374151 !important;
}

.wrap.ptmpgb-admin-wrap .ptmpgb-option-title,
.wrap.ptmpgb-admin-wrap .ptmpgb-mode-card-header h4,
.wrap.ptmpgb-admin-wrap .ptmpgb-section-label,
.wrap.ptmpgb-admin-wrap .ptmpgb-mode-list li {
    color: #1f2937 !important;
}

.wrap.ptmpgb-admin-wrap .ptmpgb-option-label {
    padding: 16px 20px !important;
    border-radius: 12px !important;
}

.wrap.ptmpgb-admin-wrap .ptmpgb-mode-card {
    padding: 18px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.wrap.ptmpgb-admin-wrap .ptmpgb-option-icon .dashicons {
    color: #3b82f6 !important;
}

.wrap.ptmpgb-admin-wrap .ptmpgb-option-title {
    font-size: 15px !important;
    font-weight: 600 !important;
}

.wrap.ptmpgb-admin-wrap .ptmpgb-mode-card-header {
    border-bottom-color: #f3f4f6 !important;
}

.wrap.ptmpgb-admin-wrap .ptmpgb-mode-list li::before {
    color: #3b82f6 !important;
}

/* Ensure radio marker & checked states are visible inside admin */
.wrap.ptmpgb-admin-wrap .ptmpgb-display-option input[type="radio"]:checked + .ptmpgb-option-label {
    border-color: #3b82f6 !important;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%) !important;
}


