/**
 * WooCommerce Product Sync CSS
 * Pricing Table Multi Payment Gateway Bridge
 */

/* Product Sync Container */
.wc-sync-table-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

/* Product Sync Table */
.wc-sync-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wc-sync-table th,
.wc-sync-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.wc-sync-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    position: sticky;
    top: 0;
    z-index: 10;
}

.wc-sync-table tbody tr:hover {
    background: #f8fafc;
}

/* Product Image */
.product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* Product Name */
.product-name {
    font-weight: 600;
    color: #1f2937;
    max-width: 200px;
    word-wrap: break-word;
}

/* Product ID */
.product-id {
    font-family: monospace;
    color: #6b7280;
    font-size: 12px;
}

/* Product SKU */
.product-sku {
    font-family: monospace;
    color: #374151;
    font-size: 12px;
}

/* Product Status */
.product-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.product-status.publish {
    background: #d1fae5;
    color: #065f46;
}

.product-status.draft {
    background: #fef3c7;
    color: #92400e;
}

.product-status.private {
    background: #e0e7ff;
    color: #3730a3;
}

/* Product Price */
.product-price {
    font-weight: 600;
    color: #059669;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-style: italic;
}

/* Table Header */
.wc-sync-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.wc-sync-table-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

/* Column Controls */
.wc-column-controls {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.wc-column-controls h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.column-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.column-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.column-dropdown-btn:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.column-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.column-dropdown-menu label {
    display: block;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.column-dropdown-menu label:hover {
    background: #f8fafc;
}

.column-dropdown-menu label:last-child {
    border-bottom: none;
}

.column-dropdown-menu input[type="checkbox"] {
    margin-right: 8px;
}

.select-all-option {
    font-weight: 600;
    background: #f8fafc;
}

.column-dropdown-menu hr {
    margin: 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Sync Actions Footer */
.wc-sync-actions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.selected-count {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Auto Sync Modern Card */
.ptmpgb-auto-sync-modern-card {
    margin-bottom: 24px;
}

.ptmpgb-auto-sync-modern-form {
    padding: 0;
}

.ptmpgb-auto-sync-modern-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.ptmpgb-auto-sync-modern-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.ptmpgb-auto-sync-modern-icon-wrap .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.ptmpgb-auto-sync-modern-copy {
    flex: 1;
}

.ptmpgb-auto-sync-modern-copy h3 {
    margin: 0 0 4px 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
}

.ptmpgb-auto-sync-modern-copy p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.ptmpgb-auto-sync-modern-pill {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ptmpgb-auto-sync-modern-pill.is-on {
    background: #d1fae5;
    color: #065f46;
}

.ptmpgb-auto-sync-modern-pill.is-off {
    background: #fee2e2;
    color: #991b1b;
}

/* Auto Sync Toggle */
.ptmpgb-auto-sync-modern-toggle-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ptmpgb-auto-sync-modern-toggle-row:hover {
    background: #f8fafc;
}

.ptmpgb-auto-sync-modern-switch {
    position: relative;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.ptmpgb-auto-sync-modern-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ptmpgb-auto-sync-modern-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.ptmpgb-auto-sync-modern-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .ptmpgb-auto-sync-modern-slider {
    background-color: #3b82f6;
}

input:checked + .ptmpgb-auto-sync-modern-slider:before {
    transform: translateX(24px);
}

.ptmpgb-auto-sync-modern-toggle-copy {
    flex: 1;
}

.ptmpgb-auto-sync-modern-toggle-copy strong {
    display: block;
    color: #1f2937;
    font-size: 16px;
    margin-bottom: 4px;
}

.ptmpgb-auto-sync-modern-toggle-copy small {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

/* Auto Sync Grid */
.ptmpgb-auto-sync-modern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
}

.ptmpgb-auto-sync-modern-panel {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
}

.ptmpgb-auto-sync-modern-panel h4 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.ptmpgb-auto-sync-modern-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ptmpgb-auto-sync-modern-panel li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.ptmpgb-auto-sync-modern-panel li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

.ptmpgb-auto-sync-modern-note {
    margin-top: 16px;
    padding: 12px;
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    border-radius: 4px;
    font-size: 13px;
    color: #0c4a6e;
}

/* Auto Sync Actions */
.ptmpgb-auto-sync-modern-actions {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
}

/* Auto Sync Attempt */
.ptmpgb-auto-sync-modern-attempt {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.ptmpgb-auto-sync-modern-attempt-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.ptmpgb-auto-sync-modern-attempt-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ptmpgb-auto-sync-modern-attempt-body {
    flex: 1;
}

.ptmpgb-auto-sync-modern-attempt-body strong {
    display: block;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 8px;
}

.ptmpgb-auto-sync-attempt-meta {
    display: block;
    font-family: monospace;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.ptmpgb-auto-sync-attempt-ok {
    display: block;
    color: #059669;
    font-size: 13px;
    font-weight: 500;
}

.ptmpgb-auto-sync-attempt-error {
    display: block;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
}

.ptmpgb-auto-sync-attempt-empty {
    display: block;
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
}

.ptmpgb-auto-sync-attempt-response {
    display: block;
    font-family: monospace;
    font-size: 11px;
    color: #4b5563;
    margin-top: 4px;
    word-break: break-all;
}

/* Product Management Modern Card */
.ptmpgb-product-mgmt-modern-card {
    margin-top: 24px;
}

.ptmpgb-product-mgmt-intro {
    margin-bottom: 20px;
}

.ptmpgb-product-mgmt-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ptmpgb-product-mgmt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e0f2fe;
    color: #0c4a6e;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.ptmpgb-product-mgmt-chip .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.ptmpgb-product-mgmt-table-header {
    margin-bottom: 0;
}

.ptmpgb-product-mgmt-refresh {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ptmpgb-product-mgmt-columns {
    margin-bottom: 0;
}

.ptmpgb-product-mgmt-consent {
    margin-top: 20px;
    margin-bottom: 0;
}

.ptmpgb-product-mgmt-footer {
    margin-top: 0;
}

/* Notifications */
.ptmpgb-notification {
    position: relative;
    padding: 12px 40px 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
    font-size: 14px;
}

.ptmpgb-notification-info {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.ptmpgb-notification-success {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.ptmpgb-notification-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.ptmpgb-notification p {
    margin: 0;
}

.ptmpgb-notification-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.ptmpgb-notification-close:hover {
    opacity: 1;
}

/* Enhanced Connection UI Styles */
.ptmpgb-wc-sync-disconnected {
    background: #2271b1;
    border: none;
    box-shadow: 0 10px 30px rgba(34, 113, 177, 0.25);
    overflow: hidden;
    position: relative;
}

.ptmpgb-wc-sync-disconnected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.ptmpgb-wc-sync-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.ptmpgb-wc-sync-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.ptmpgb-wc-sync-hero-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #ffffff;
}

.ptmpgb-wc-sync-hero-content {
    flex: 1;
}

.ptmpgb-wc-sync-hero-title {
    margin: 0 0 12px 0;
    color: #ffffff !important;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ptmpgb-wc-sync-hero-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ptmpgb-wc-sync-steps {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 32px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.ptmpgb-wc-sync-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

.ptmpgb-wc-sync-step-badge {
    width: 48px;
    height: 48px;
    background: #ffffff;
    color: #2271b1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ptmpgb-wc-sync-step-text {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.ptmpgb-wc-sync-instructions {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 40px;
    background: #ffffff;
    position: relative;
    z-index: 1;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ptmpgb-wc-sync-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Make cards share available row space so they appear side-by-side */
.ptmpgb-wc-sync-instructions .ptmpgb-wc-sync-card {
    flex: 1 1 calc((100% - 48px) / 3);
    min-width: 220px;
    max-width: 100%;
}

.ptmpgb-wc-sync-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.ptmpgb-wc-sync-card--highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
}

.ptmpgb-wc-sync-card--highlight::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 16px 0 60px;
}

.ptmpgb-wc-sync-card--highlight .ptmpgb-wc-sync-card__title,
.ptmpgb-wc-sync-card--highlight .ptmpgb-wc-sync-card__subtitle {
    color: #ffffff;
}

.ptmpgb-wc-sync-card--highlight .dashicons {
    color: #ffffff;
}

.ptmpgb-wc-sync-card__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.ptmpgb-wc-sync-card__header .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #667eea;
    margin-top: 4px;
    flex-shrink: 0;
}

.ptmpgb-wc-sync-card__title {
    margin: 0 0 8px 0;
    color: #1a202c;
    font-size: 18px;
    font-weight: 700;
}

.ptmpgb-wc-sync-card__subtitle {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}

.ptmpgb-wc-sync-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ptmpgb-wc-sync-card__list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: #2d3748;
    font-size: 14px;
    line-height: 1.6;
}

.ptmpgb-wc-sync-card--highlight .ptmpgb-wc-sync-card__list li {
    color: rgba(255, 255, 255, 0.9);
}

.ptmpgb-wc-sync-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #48bb78;
    font-weight: 700;
    font-size: 16px;
}

.ptmpgb-wc-sync-card--highlight .ptmpgb-wc-sync-card__list li::before {
    color: #ffffff;
}

.ptmpgb-wc-sync-actions {
    text-align: center;
    padding: 40px;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.ptmpgb-wc-sync-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #2271b1;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
    position: relative;
    overflow: hidden;
}

.ptmpgb-wc-sync-connect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

/* Ensure overlay stays behind the button text */
.ptmpgb-wc-sync-connect-btn::before {
    z-index: 1;
}
.ptmpgb-wc-sync-connect-btn,
.ptmpgb-wc-sync-connect-btn .dashicons {
    position: relative;
    z-index: 2;
}

.ptmpgb-wc-sync-connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 113, 177, 0.45);
}

/* Ensure text and icon remain white on hover/focus/active states */
.ptmpgb-wc-sync-connect-btn,
.ptmpgb-wc-sync-connect-btn .dashicons,
.ptmpgb-wc-sync-connect-btn span {
    color: #ffffff !important;
}
.ptmpgb-wc-sync-connect-btn:hover,
.ptmpgb-wc-sync-connect-btn:focus,
.ptmpgb-wc-sync-connect-btn:active {
    background: #135e96 !important;
    color: #ffffff !important;
    border-color: #135e96 !important;
}
.ptmpgb-wc-sync-connect-btn:hover .dashicons,
.ptmpgb-wc-sync-connect-btn:focus .dashicons,
.ptmpgb-wc-sync-connect-btn:active .dashicons {
    color: #ffffff !important;
}

.ptmpgb-wc-sync-connect-btn:hover::before {
    left: 100%;
}

.ptmpgb-wc-sync-connect-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ptmpgb-wc-sync-hint {
    margin: 20px 0 0 0;
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Design for Connection UI */
@media (max-width: 1024px) {
    .ptmpgb-wc-sync-instructions {
        display: flex;
        flex-direction: column;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .ptmpgb-wc-sync-steps {
        flex-direction: column;
        gap: 24px;
    }
    
    .ptmpgb-wc-sync-hero {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .ptmpgb-wc-sync-hero-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .ptmpgb-wc-sync-hero,
    .ptmpgb-wc-sync-steps,
    .ptmpgb-wc-sync-instructions,
    .ptmpgb-wc-sync-actions {
        padding: 24px;
    }
    
    .ptmpgb-wc-sync-hero-title {
        font-size: 24px;
    }
    
    .ptmpgb-wc-sync-hero-subtitle {
        font-size: 16px;
    }
    
    .ptmpgb-wc-sync-connect-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Enhanced Connection UI Styles */
@media (max-width: 1200px) {
    .ptmpgb-auto-sync-modern-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wc-sync-table-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .wc-sync-actions-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .ptmpgb-auto-sync-modern-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .ptmpgb-auto-sync-modern-toggle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ptmpgb-product-mgmt-toolbar {
        justify-content: center;
    }
}

/* Force a strict three-column row on wide admin screens so cards don't wrap */
@media (min-width: 1025px) {
    .ptmpgb-wc-sync-instructions {
        flex-wrap: nowrap;
        overflow-x: hidden;
    }

    .ptmpgb-wc-sync-instructions .ptmpgb-wc-sync-card {
        flex: 0 0 33.3333%;
        min-width: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    /* Ensure all cards stretch to equal height */
    .ptmpgb-wc-sync-instructions .ptmpgb-wc-sync-card > * {
        flex: 0 0 auto;
    }
    .ptmpgb-wc-sync-instructions .ptmpgb-wc-sync-card .ptmpgb-wc-sync-card__list {
        margin-top: auto;
    }
}
/* Product Sync Notifications */
.ptmpgb-notification {
    position: relative;
    padding: 12px 40px 12px 16px;
    margin: 16px 0;
    border-radius: 8px;
    border-left: 4px solid;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ptmpgb-notification-success {
    border-left-color: #10b981;
    background: #f0fdf4;
    color: #065f46;
}

.ptmpgb-notification-error {
    border-left-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

.ptmpgb-notification-info {
    border-left-color: #3b82f6;
    background: #eff6ff;
    color: #1e40af;
}

.ptmpgb-notification-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.ptmpgb-notification-close:hover {
    opacity: 1;
}

/* Loading spinner for send button */
.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button states */
#send-selected:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#refresh-products:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Consent checkbox styling */
.ptmpgb-product-mgmt-consent {
    margin: 20px 0;
}

.ptmpgb-consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.ptmpgb-consent-checkbox-input {
    margin: 0;
    transform: scale(1.2);
}

.ptmpgb-consent-text {
    flex: 1;
}

.ptmpgb-consent-text strong {
    display: block;
    margin-bottom: 4px;
    color: #374151;
}

.ptmpgb-consent-text small {
    color: #6b7280;
    line-height: 1.4;
}

/* Selected count styling */
.selected-count {
    color: #6b7280;
    font-size: 14px;
    margin-left: 16px;
}

/* Product table improvements */
.wc-sync-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.wc-sync-table th,
.wc-sync-table td {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.wc-sync-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.wc-sync-table tbody tr:hover {
    background: #f9fafb;
}

.product-checkbox {
    transform: scale(1.1);
}

#select-all {
    transform: scale(1.1);
}

.product-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.product-name {
    font-weight: 500;
    color: #374151;
}

.product-id {
    font-family: monospace;
    color: #6b7280;
}

.product-sku {
    font-family: monospace;
    font-size: 13px;
}

.product-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.product-status.publish {
    background: #dcfce7;
    color: #166534;
}

.product-status.draft {
    background: #fef3c7;
    color: #92400e;
}

.product-status.private {
    background: #e0e7ff;
    color: #3730a3;
}

.product-price {
    font-weight: 500;
}

/* Column controls */
.column-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.column-dropdown-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.column-dropdown-btn:hover {
    background: #e5e7eb;
}

.column-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.column-dropdown-menu label {
    display: block;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.column-dropdown-menu label:hover {
    background: #f9fafb;
}

.column-dropdown-menu input[type="checkbox"] {
    margin-right: 8px;
}

.select-all-option {
    font-weight: 600;
    background: #f9fafb;
}

.column-dropdown-menu hr {
    margin: 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}