/* =================================================================
   GGM COMMERCE - ADMIN DASHBOARD STYLES
   Extracted from inline <style> blocks in class-admin.php
   ================================================================= */

/* =================================================================
   DASHBOARD
   ================================================================= */
.ggmc-dashboard-wrap { max-width: 1400px; }

.ggmc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ggmc-stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    position: relative;
}

.ggmc-stat-card.highlight { border-left: 4px solid var(--ggmc-primary, #0F766E); }
.ggmc-stat-card.warning   { border-left: 4px solid #dba617; }
.ggmc-stat-card.alert     { border-left: 4px solid #d63638; }
.ggmc-stat-card.success   { border-left: 4px solid #00a32a; }

.ggmc-stat-card h3 {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: var(--ggmc-text-light, #64748b);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ggmc-stat-number {
    font-size: 32px;
    font-weight: 600;
    color: var(--ggmc-secondary, #1E293B);
    line-height: 1.2;
    margin-bottom: 10px;
}

.ggmc-stat-card .dashicons {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #dcdcde;
}

.ggmc-stat-subtext {
    font-size: 13px;
    color: var(--ggmc-text-light, #64748b);
}

.ggmc-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .ggmc-dashboard-grid { grid-template-columns: 1fr; }
}

.ggmc-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.ggmc-card-header {
    padding: 12px 20px;
    border-bottom: 1px solid #c3c4c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ggmc-card-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.ggmc-card-body { padding: 0; }
.ggmc-card-body table { margin: 0; }
.ggmc-card-body .wp-list-table { border: none; }

.ggmc-card-body .wp-list-table th,
.ggmc-card-body .wp-list-table td {
    padding: 12px 16px;
}

.ggmc-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--ggmc-text-light, #64748b);
}

.ggmc-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ggmc-quick-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* =================================================================
   STATUS BADGES (shared across dashboard, categories, tags, orders)
   ================================================================= */
.ggmc-status-badge,
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.ggmc-status-pending    { background: #f0f0f1; color: #646970; }
.ggmc-status-processing { background: #e5f5fa; color: #0073aa; }
.ggmc-status-shipped    { background: #fcf9e8; color: #996800; }
.ggmc-status-completed  { background: #edfaef; color: #00a32a; }
.ggmc-status-cancelled  { background: #fcf0f1; color: #d63638; }
.ggmc-stock-low         { color: #996800; font-weight: 600; }
.ggmc-stock-out         { color: #d63638; font-weight: 600; }
.status-active          { background: #d4edda; color: #155724; }
.status-inactive        { background: #f8d7da; color: #721c24; }

.ggmc-default-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #fff8e5;
    border: 1px solid #dba617;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #996800;
}

/* =================================================================
   PRODUCT FORM (add + edit product pages)
   ================================================================= */
.ggmc-product-form {
    max-width: 1200px;
}

.ggmc-product-section {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.ggmc-product-section h2 {
    margin: 0;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #c3c4c7;
    background: #f6f7f7;
    border-radius: 4px 4px 0 0;
}

.ggmc-product-section .form-table {
    margin: 0;
}

.ggmc-product-section .form-table th {
    padding: 15px 20px;
    width: 200px;
}

.ggmc-product-section .form-table td {
    padding: 15px 20px 15px 10px;
}

.ggmc-section-footer {
    padding: 12px 20px;
    border-top: 1px solid #c3c4c7;
    background: #f6f7f7;
    text-align: right;
    border-radius: 0 0 4px 4px;
}

/* =================================================================
   PREMIUM NOTICES
   ================================================================= */
.ggmc-premium-notice {
    background: var(--ggmc-primary, #0F766E);
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    max-width: 400px;
}

.ggmc-premium-notice strong {
    display: block;
    margin-bottom: 5px;
}

.ggmc-premium-notice p {
    margin: 5px 0 10px 0;
    opacity: 0.9;
}

.ggmc-premium-notice .button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.ggmc-premium-notice .button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.ggmc-premium-locked {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-style: italic;
}

.ggmc-premium-locked .dashicons {
    color: var(--ggmc-primary, #0F766E);
}

.ggmc-premium-link {
    color: var(--ggmc-primary, #0F766E);
    text-decoration: none;
    font-style: normal;
}

.ggmc-premium-link:hover {
    text-decoration: underline;
}

/* =================================================================
   INFO NOTICES
   ================================================================= */
.ggmc-info-notice {
    background: #f0f6fc;
    border: 1px solid #c8d9ea;
    color: var(--ggmc-secondary, #1E293B);
    padding: 12px 15px;
    border-radius: 6px;
    max-width: 400px;
}

.ggmc-info-notice .dashicons {
    color: var(--ggmc-primary, #0F766E);
    margin-right: 5px;
}

.ggmc-info-notice p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #50575e;
}

/* =================================================================
   IMAGE UPLOAD
   ================================================================= */
.ggmc-image-upload,
.ggmc-gallery-upload {
    margin: 10px 0;
}

.image-preview,
.gallery-preview {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-item {
    position: relative;
    display: inline-block;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #f9f9f9;
}

.image-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}

.remove-single-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.remove-single-image:hover {
    background: rgba(255, 0, 0, 1);
}

.upload-image-button,
.upload-gallery-button {
    margin-right: 10px !important;
}

.ggmc-image-preview img {
    max-width: 150px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* =================================================================
   ADMIN MODALS (shared across shipping, categories, edit product)
   ================================================================= */
.ggmc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ggmc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ggmc-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ggmc-modal-content,
.ggmc-modal-overlay > .ggmc-modal {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: auto;
}

.ggmc-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
}

.ggmc-modal-header h2,
.ggmc-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.ggmc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
}

.ggmc-modal-close:hover {
    color: #d63638;
}

.ggmc-modal-body {
    padding: 20px;
}

.ggmc-modal-body .form-table th {
    width: 140px;
    padding: 10px 10px 10px 0;
    vertical-align: middle;
}

.ggmc-modal-body .form-table td {
    padding: 10px 0;
}

.ggmc-modal-body .ggmc-form-field {
    margin-top: 15px;
}

.ggmc-modal-body .ggmc-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ggmc-modal-body .ggmc-form-field select {
    width: 100%;
}

.ggmc-delete-warning {
    margin: 0;
    padding: 10px 15px;
    background: #fff8e5;
    border-left: 4px solid #dba617;
    border-radius: 0 4px 4px 0;
}

.ggmc-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.ggmc-modal-footer .button-link-delete {
    background: #d63638;
    border-color: #d63638;
    color: #fff;
}

.ggmc-modal-footer .button-link-delete:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}

/* =================================================================
   TOGGLE SWITCHES (shared across payment, subscriptions, address,
   attributes, AI integration pages)
   ================================================================= */
.ggmc-toggle-switch,
.ggmc-address-toggle-switch,
.mcp-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.ggmc-toggle-switch input,
.ggmc-address-toggle-switch input,
.mcp-toggle-switch input {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.ggmc-slider,
.ggmc-toggle-slider,
.ggmc-address-toggle-slider,
.mcp-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.ggmc-slider:before,
.ggmc-toggle-slider:before,
.ggmc-address-toggle-slider:before,
.mcp-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .ggmc-slider,
input:checked + .ggmc-toggle-slider,
input:checked + .ggmc-address-toggle-slider {
    background-color: var(--ggmc-primary, #0F766E);
}

input:checked + .mcp-slider {
    background-color: #00a32a;
}

input:checked + .ggmc-slider:before,
input:checked + .ggmc-toggle-slider:before,
input:checked + .ggmc-address-toggle-slider:before,
input:checked + .mcp-slider:before {
    transform: translateX(26px);
}

input:disabled + .ggmc-toggle-slider,
input:disabled + .ggmc-address-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* MCP (AI Integration) status badges */
.mcp-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.mcp-status-active {
    background: #d4edda;
    color: #155724;
}

.mcp-status-inactive {
    background: #f8d7da;
    color: #721c24;
}

#mcp-api-keys-table th,
#mcp-api-keys-table td {
    vertical-align: middle;
}

/* =================================================================
   INFO BUTTONS (payment settings)
   ================================================================= */
.ggmc-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--ggmc-primary, #0F766E);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    margin-left: 8px;
    padding: 0;
    vertical-align: middle;
    transition: background-color 0.2s;
}

.ggmc-info-btn:hover {
    background: var(--ggmc-primary-hover, #0d6560);
}

.ggmc-info-btn:focus {
    outline: 2px solid var(--ggmc-primary, #0F766E);
    outline-offset: 2px;
}

.ggmc-info-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.ggmc-info-btn.active {
    background: var(--ggmc-primary-hover, #0d6560);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ggmc-primary, #0F766E);
}

.ggmc-info-icon-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--ggmc-primary, #0F766E);
    border-radius: 50%;
    color: #fff;
    vertical-align: middle;
}

.ggmc-info-icon-demo .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* =================================================================
   TAX SETTINGS
   ================================================================= */
#tax-rates-table input[type="text"],
#tax-rates-table input[type="number"] {
    padding: 4px 8px;
}

#tax-rates-table td:nth-child(3) {
    padding-left: 20px;
}

/* =================================================================
   PAYMENT SETTINGS
   ================================================================= */
.ggmc-payment-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1200px) {
    .ggmc-payment-layout {
        grid-template-columns: 1fr;
    }

    .ggmc-payment-layout .ggmc-settings-help {
        display: none;
    }
}

.ggmc-payment-settings {
    min-width: 0;
}

.ggmc-help-quick-links {
    margin: 20px 0;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 4px;
}

.ggmc-help-quick-links h4 {
    margin: 0 0 10px !important;
}

.ggmc-help-quick-links ul {
    margin: 0;
    list-style: none;
}

.ggmc-help-quick-links li {
    margin-bottom: 8px;
}

.ggmc-help-quick-links .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
}

.ggmc-help-test-cards {
    margin-top: 20px;
    padding: 15px;
    background: var(--ggmc-primary-light, #e6f4f3);
    border-radius: 4px;
    border-left: 3px solid var(--ggmc-primary, #0F766E);
}

.ggmc-help-test-cards h4 {
    margin: 0 0 10px !important;
}

.ggmc-test-cards-table {
    width: 100%;
    font-size: 12px;
}

.ggmc-test-cards-table td {
    padding: 4px 0;
}

.ggmc-test-cards-table td:last-child {
    text-align: right;
    color: var(--ggmc-text-light, #64748b);
}

.ggmc-help-note {
    font-size: 11px !important;
    color: var(--ggmc-text-light, #64748b);
    margin: 10px 0 0 !important;
}

/* Standalone help warning/tip (outside .ggmc-settings-help context) */
.ggmc-help-warning {
    margin: 15px 0;
    padding: 12px;
    background: #fcf9e8;
    border-left: 3px solid #dba617;
    border-radius: 0 4px 4px 0;
    font-size: 12px;
}

.ggmc-help-warning .dashicons {
    color: #dba617;
    vertical-align: middle;
    margin-right: 5px;
}

.ggmc-help-tip {
    margin: 15px 0;
    padding: 12px;
    background: var(--ggmc-primary-light, #e6f4f3);
    border-left: 3px solid var(--ggmc-primary, #0F766E);
    border-radius: 0 4px 4px 0;
    font-size: 12px;
}

.ggmc-help-tip .dashicons {
    color: var(--ggmc-primary, #0F766E);
    vertical-align: middle;
    margin-right: 5px;
}

/* =================================================================
   CATEGORIES PAGE
   ================================================================= */
/* (status badges and modals covered above) */

/* =================================================================
   ATTRIBUTES PAGE
   ================================================================= */
.ggmc-attributes-wrap .nav-tab-wrapper { margin-bottom: 0; }
.ggmc-attributes-wrap .tab-content {
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-top: none;
    margin-top: 20px;
}

.ggmc-admin-wrap .nav-tab-wrapper { margin-bottom: 20px; }

/* Preset cards (attributes + variation suggestions) */
.ggmc-preset-card:hover {
    border-color: var(--ggmc-primary, #0F766E);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =================================================================
   VARIATION ATTRIBUTES PAGE
   ================================================================= */
.ggmc-variation-attributes-wrapper .postbox {
    margin-bottom: 0;
}

.ggmc-variation-attributes-wrapper .postbox .hndle {
    padding: 6px 12px;
    margin: 0;
    border-bottom: 1px solid #c3c4c7;
}

.ggmc-variation-attributes-wrapper .postbox .inside {
    padding: 12px;
    margin: 0;
}

.ggmc-variation-attributes-wrapper .postbox .inside .form-table {
    margin-top: 0;
}

.ggmc-variation-attributes-wrapper .postbox .inside .form-table th,
.ggmc-variation-attributes-wrapper .postbox .inside .form-table td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.ggmc-variation-attributes-wrapper .postbox .inside p.submit {
    margin: 12px 0 0 0;
    padding: 12px 0 0 0;
    border-top: 1px solid #c3c4c7;
}

/* Color picker UI */
#ggmc-color-options-list .wp-picker-container {
    display: inline-block;
}

#ggmc-color-options-list .wp-picker-container .wp-color-result {
    height: 28px;
    margin: 0;
}

#ggmc-color-options-list .wp-picker-container .wp-picker-input-wrap {
    display: none;
}

#ggmc-color-options-list .wp-picker-container.wp-picker-active .wp-picker-input-wrap {
    display: block;
    position: absolute;
    z-index: 100;
}

.ggmc-color-option-row {
    position: relative;
}

.ggmc-color-option-row input[type="text"]:not(.wp-color-picker) {
    height: 28px;
}

.ggmc-color-option-row .button {
    height: 28px;
    line-height: 26px;
}

/* =================================================================
   SHARED: FORM GROUPS (transaction export, discounts)
   ================================================================= */
.ggmc-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ggmc-form-group.full-width {
    grid-column: 1 / -1;
}

.ggmc-form-group label {
    font-weight: 600;
    color: var(--ggmc-secondary, #1E293B);
    font-size: 13px;
}

.ggmc-form-group input,
.ggmc-form-group select,
.ggmc-form-group textarea {
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
}

.ggmc-form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.ggmc-form-group .description {
    font-size: 12px;
    color: var(--ggmc-text-light, #64748b);
    margin-top: 4px;
}

.ggmc-form-group input[type="date"] {
    min-width: 150px;
}

/* =================================================================
   SHARED: MESSAGES
   ================================================================= */
.ggmc-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.ggmc-message-success {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

.ggmc-message-error {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

/* =================================================================
   SHARED: LOADING STATE + SPINNER
   ================================================================= */
.ggmc-loading {
    opacity: 0.5;
    pointer-events: none;
}

.ggmc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--ggmc-primary, #0F766E);
    border-radius: 50%;
    animation: ggmc-spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes ggmc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =================================================================
   SHARED: PAGINATION
   ================================================================= */
.ggmc-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ggmc-pagination-info {
    color: var(--ggmc-text-light, #64748b);
}

.ggmc-pagination-links {
    display: flex;
    gap: 5px;
}

.ggmc-pagination-links a,
.ggmc-pagination-links span {
    padding: 5px 10px;
    border: 1px solid #ccd0d4;
    border-radius: 3px;
    text-decoration: none;
}

.ggmc-pagination-links a:hover {
    background: #f0f0f1;
}

.ggmc-pagination-links .current {
    background: var(--ggmc-primary, #0F766E);
    border-color: var(--ggmc-primary, #0F766E);
    color: #fff;
}

/* =================================================================
   SHARED: FILTERS BAR
   ================================================================= */
.ggmc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 4px;
}

/* =================================================================
   TRANSACTION EXPORT
   ================================================================= */
.ggmc-transaction-export {
    max-width: 1200px;
}

.ggmc-export-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.ggmc-export-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ggmc-export-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.ggmc-preview-box {
    background: #f0f6fc;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.ggmc-preview-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.ggmc-stat-item {
    text-align: center;
}

.ggmc-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ggmc-primary, #0F766E);
}

.ggmc-stat-label {
    font-size: 12px;
    color: var(--ggmc-text-light, #64748b);
    text-transform: uppercase;
}

.ggmc-batches-table {
    width: 100%;
    border-collapse: collapse;
}

.ggmc-batches-table th,
.ggmc-batches-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ggmc-batches-table th {
    background: #f6f7f7;
    font-weight: 600;
}

.ggmc-batches-table tr:hover {
    background: #f9f9f9;
}

.ggmc-batch-number {
    font-family: monospace;
    font-weight: 600;
}

.ggmc-amount-positive { color: #00a32a; }
.ggmc-amount-negative { color: #d63638; }

.ggmc-action-buttons {
    display: flex;
    gap: 10px;
}

/* =================================================================
   GOOGLE MERCHANT
   ================================================================= */
.ggmc-google-merchant-wrap {
    max-width: 1200px;
}

.ggmc-google-merchant-wrap .card {
    padding: 20px;
    margin-bottom: 20px;
}

.ggmc-feed-table {
    width: 100%;
    border-collapse: collapse;
}

.ggmc-feed-table th,
.ggmc-feed-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.ggmc-feed-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.ggmc-feed-url {
    background: #f0f0f1;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
}

.ggmc-feed-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.ggmc-feed-status.active  { background: #d1fae5; color: #065f46; }
.ggmc-feed-status.paused  { background: #fef3c7; color: #92400e; }
.ggmc-feed-status.never   { background: #e5e7eb; color: #4b5563; }

.ggmc-google-merchant-wrap .ggmc-premium-locked {
    background: var(--ggmc-primary, #0F766E);
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.ggmc-google-merchant-wrap .ggmc-premium-locked h2 {
    color: white;
    margin: 0 0 10px;
}

.ggmc-google-merchant-wrap .ggmc-premium-locked p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.ggmc-google-merchant-wrap .ggmc-premium-locked .button {
    background: white;
    color: var(--ggmc-primary, #0F766E);
    border: none;
}

.ggmc-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ggmc-settings-grid .form-field {
    margin-bottom: 15px;
}

.ggmc-settings-grid label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.ggmc-settings-grid input[type="text"],
.ggmc-settings-grid select {
    width: 100%;
    max-width: 300px;
}

.ggmc-copy-btn {
    cursor: pointer;
    padding: 4px 8px;
    font-size: 11px;
    margin-left: 8px;
}

@media (max-width: 782px) {
    .ggmc-settings-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   GOOGLE MERCHANT - FEED EDIT
   ================================================================= */
.ggmc-feed-edit-wrap {
    max-width: 900px;
}

.ggmc-feed-edit-wrap .card {
    padding: 20px;
    margin-bottom: 20px;
}

.ggmc-feed-edit-wrap h2 {
    margin-top: 0;
}

.ggmc-feed-edit-wrap .form-table th {
    width: 200px;
}

.ggmc-validation-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.ggmc-validation-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.ggmc-validation-item .number {
    font-size: 28px;
    font-weight: bold;
    display: block;
}

.ggmc-validation-item .label {
    color: #666;
    font-size: 12px;
}

.ggmc-validation-item.success .number { color: #059669; }
.ggmc-validation-item.warning .number { color: #d97706; }
.ggmc-validation-item.error .number   { color: #dc2626; }

.ggmc-category-select {
    min-height: 150px;
    width: 100%;
    max-width: 400px;
}

/* =================================================================
   PREMIUM COMPONENTS
   ================================================================= */
.ggmc-premium-tab-content {
    padding: 0 0 20px;
}

.ggmc-license-section {
    background: var(--ggmc-primary, #0F766E);
    color: white;
    padding: 30px;
    margin-bottom: 20px;
}

.ggmc-license-section h2 {
    color: white;
    margin: 0 0 10px 0;
}

.ggmc-license-section > p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.ggmc-license-status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.ggmc-license-status-badge.active   { color: #90EE90; }
.ggmc-license-status-badge.inactive { color: #ffcccb; }

.ggmc-license-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 15px;
}

.ggmc-license-details p {
    margin: 5px 0;
    opacity: 1;
}

.ggmc-license-section .form-row {
    margin-bottom: 15px;
}

.ggmc-license-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ggmc-license-section input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.ggmc-license-section input[type="text"]::placeholder {
    color: #999;
}

.ggmc-license-section .button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.ggmc-license-section .button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.ggmc-license-section .button-primary {
    background: white;
    border-color: white;
    color: var(--ggmc-primary, #0F766E);
}

.ggmc-license-section .button-primary:hover {
    background: #f0f0f0;
    color: var(--ggmc-primary, #0F766E);
}

.ggmc-license-section .description {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

.ggmc-license-section .description a {
    color: white;
    text-decoration: underline;
}

.ggmc-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ggmc-widget-card {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    position: relative;
}

.ggmc-widget-card.activated {
    border-color: var(--ggmc-primary, #0F766E);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2);
}

.ggmc-widget-card h3 {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ggmc-widget-card h3 i[class^="eicon-"] {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--ggmc-primary, #0F766E);
}

.ggmc-widget-card p {
    color: #666;
    margin: 0 0 15px 0;
}

.ggmc-widget-card .button {
    width: 100%;
}

.ggmc-widget-slots {
    background: #f8f9fa;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ggmc-widget-slots .slots-info {
    font-size: 16px;
}

.ggmc-widget-slots .slots-count {
    font-weight: bold;
    color: var(--ggmc-primary, #0F766E);
}

/* =================================================================
   DISCOUNTS
   ================================================================= */
.ggmc-discounts-admin {
    max-width: 1400px;
}

.ggmc-discount-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.ggmc-discount-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ggmc-discount-section h2 .dashicons {
    color: var(--ggmc-primary, #0F766E);
}

.ggmc-discount-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 1200px) {
    .ggmc-discount-grid {
        grid-template-columns: 1fr;
    }
}

.ggmc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.ggmc-form-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.ggmc-discounts-table {
    width: 100%;
    border-collapse: collapse;
}

.ggmc-discounts-table th,
.ggmc-discounts-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ggmc-discounts-table th {
    background: #f6f7f7;
    font-weight: 600;
}

.ggmc-discounts-table tr:hover {
    background: #f9f9f9;
}

.ggmc-discount-code {
    font-family: monospace;
    font-weight: 600;
    background: #f0f0f1;
    padding: 3px 8px;
    border-radius: 3px;
}

.ggmc-discount-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.ggmc-type-percentage   { background: #e7f5ff; color: #1971c2; }
.ggmc-type-fixed_amount { background: #fff3bf; color: #b45309; }
.ggmc-type-voucher      { background: #d3f9d8; color: #2f9e44; }

.ggmc-status-expired { background: #ffe3e3; color: #c92a2a; }
.ggmc-status-inactive { background: #f1f3f5; color: #495057; }

.ggmc-voucher-balance {
    font-size: 12px;
    color: var(--ggmc-text-light, #64748b);
}

.ggmc-voucher-balance strong {
    color: #2f9e44;
}

.ggmc-actions {
    display: flex;
    gap: 10px;
}

.ggmc-actions button {
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.ggmc-bulk-generator {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Discount modal variant (display:none by default, .active shows it) */
.ggmc-modal.active {
    display: flex;
}

.ggmc-voucher-codes-list {
    max-height: 200px;
    overflow-y: auto;
    background: #f6f7f7;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.ggmc-voucher-codes-list code {
    display: block;
    padding: 2px 0;
}

.ggmc-type-fields {
    display: none;
}

.ggmc-type-fields.active {
    display: block;
}

.ggmc-usage-info {
    font-size: 12px;
    color: var(--ggmc-text-light, #64748b);
}

/* =================================================================
   DASHBOARD WIDGET (roles)
   ================================================================= */
.ggmc-dashboard-widget .ggmc-stat {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ggmc-dashboard-widget .ggmc-stat:last-of-type {
    border-bottom: none;
}

.ggmc-dashboard-widget .dashicons {
    color: var(--ggmc-primary, #0F766E);
    margin-right: 5px;
}

/* =================================================================
   EMAIL ADMIN SETTINGS
   ================================================================= */
.ggmc-email-templates-wrap {
    margin-top: 20px;
}

.ggmc-email-list {
    margin-top: 15px;
    border: 1px solid #c3c4c7;
}

.ggmc-email-list th {
    padding: 12px;
    background: #f6f7f7;
}

.ggmc-email-list td {
    padding: 12px;
    vertical-align: middle;
}

.ggmc-email-status {
    width: 70px;
    text-align: center;
}

.ggmc-email-recipient {
    width: 100px;
}

.ggmc-email-actions {
    width: 120px;
    text-align: right;
}

.ggmc-email-name .description {
    margin: 4px 0 0;
    color: var(--ggmc-text-light, #64748b);
}

/* Email toggle (variant of standard toggle) */
.ggmc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ggmc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ggmc-toggle .ggmc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.ggmc-toggle .ggmc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.ggmc-toggle input:checked + .ggmc-toggle-slider {
    background-color: var(--ggmc-primary, #0F766E);
}

.ggmc-toggle input:checked + .ggmc-toggle-slider:before {
    transform: translateX(20px);
}

/* Email badges */
.ggmc-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.ggmc-badge-customer { background: #e7f3ff; color: #0073aa; }
.ggmc-badge-admin    { background: #fef3c7; color: #92400e; }

/* Email modal (wider variant) */
.ggmc-modal-preview {
    max-width: 700px;
}

.ggmc-modal-footer-right {
    display: flex;
    gap: 8px;
}

.ggmc-modal-footer .button .dashicons {
    margin-right: 4px;
    vertical-align: text-bottom;
}

/* Email form rows */
.ggmc-form-row {
    margin-bottom: 20px;
}

.ggmc-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ggmc-form-row .description {
    margin-top: 5px;
    color: var(--ggmc-text-light, #64748b);
}

/* Email placeholders reference */
.ggmc-placeholders-reference {
    margin-top: 20px;
    padding: 15px;
    background: #f6f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ggmc-placeholders-reference h4 {
    margin: 0 0 10px;
}

.ggmc-placeholders-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ggmc-placeholder-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
    cursor: pointer;
}

.ggmc-placeholder-tag:hover {
    background: var(--ggmc-primary-light, #e6f4f3);
    border-color: var(--ggmc-primary, #0F766E);
}

.ggmc-configure-email .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: text-bottom;
}

/* =================================================================
   HIDDEN SUBMENU ITEMS
   ================================================================= */
#toplevel_page_ggmc-plugin .wp-submenu a[href="admin.php?page=ggmc-general"],
#toplevel_page_ggmc-plugin .wp-submenu a[href="admin.php?page=ggmc-test-data"],
#toplevel_page_ggmc-plugin .wp-submenu a[href="admin.php?page=ggmc-default-styles"],
#menu-settings .wp-submenu a[href="options.php?page=ggmc-add-product"],
#menu-settings .wp-submenu a[href="options.php?page=ggmc-edit-product"] {
    display: none !important;
}
