/* FlexCheckout Admin View Styles */

/* === default-fields === */
.flexcheckout-default-fields-page {
    margin-top: 20px;
}

.fc-df-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.fc-df-tabs {
    display: flex;
    gap: 10px;
}

.fc-df-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.fc-df-tab:hover {
    border-color: #2271b1;
    color: #2271b1;
}

.fc-df-tab.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.fc-df-tab .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

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

.fc-df-actions .button {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fc-df-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.fc-df-section {
    display: none;
}

.fc-df-section.active {
    display: block;
}

.fc-df-section-header {
    margin-bottom: 15px;
}

.fc-df-section-header h2 {
    margin: 0 0 5px;
}

.fc-df-section-header p {
    margin: 0;
    color: #666;
}

.fc-df-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.fc-df-table th,
.fc-df-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.fc-df-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
}

.fc-df-table tbody tr {
    transition: background 0.2s;
}

.fc-df-table tbody tr:hover {
    background: #f8f9fa;
}

.fc-df-table tbody tr.ui-sortable-helper {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.fc-df-table tbody tr.ui-sortable-placeholder {
    background: #e8f4fc;
    border: 2px dashed #2271b1;
}

.fc-df-table tbody tr.fc-df-disabled {
    opacity: 0.5;
    background: #f8f8f8;
}

.fc-df-drag {
    width: 40px;
    text-align: center;
    cursor: grab;
    color: #999;
}

.fc-df-drag:active {
    cursor: grabbing;
}

.fc-df-drag .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.fc-df-field {
    width: 150px;
}

.fc-df-field code {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.fc-df-label,
.fc-df-placeholder {
    width: 200px;
}

.fc-df-label input,
.fc-df-placeholder input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.fc-df-width {
    width: 130px;
}

.fc-df-width select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fc-df-required,
.fc-df-enabled {
    width: 80px;
    text-align: center;
}

.fc-df-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

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

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

.fc-df-toggle input:checked + .slider {
    background-color: #2271b1;
}

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

.fc-df-toggle input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.fc-df-info {
    margin-top: 25px;
    padding: 15px 20px;
    background: #f0f6fc;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    display: flex;
    gap: 15px;
}

.fc-df-info .dashicons {
    color: #2271b1;
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.fc-df-info ul {
    margin: 5px 0 0 20px;
    font-size: 13px;
    color: #666;
}

.fc-df-info li {
    margin-bottom: 4px;
}

/* Loading state */
.fc-df-loading {
    position: relative;
    pointer-events: none;
}

.fc-df-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1200px) {
    .fc-df-toolbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .fc-df-tabs {
        flex-wrap: wrap;
    }
}

/* === documentation === */


.flexcheckout-documentation {
    max-width: none;
    margin-right: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.flexcheckout-documentation h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.flexcheckout-doc-search {
    background: #fff;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.flexcheckout-doc-search input {
    width: 100%;
    max-width: 600px;
    padding: 14px 20px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.flexcheckout-doc-search input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.search-results-count {
    display: inline-block;
    margin-left: 16px;
    color: #64748b;
    font-style: italic;
    font-size: 14px;
}

.flexcheckout-doc-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    margin-top: 24px;
}

.doc-sidebar {
    background: #fff;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    position: sticky;
    top: 32px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    align-self: start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.doc-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-sidebar li {
    margin: 0;
}

.doc-sidebar a {
    display: block;
    padding: 10px 14px;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.doc-sidebar a:hover {
    background: rgba(20, 184, 166, 0.08);
    color: #0d9488;
}

.doc-sidebar a.active {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.doc-content {
    background: #fff;
    padding: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.doc-section {
    padding-bottom: 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid #e2e8f0;
}

.doc-section:last-child {
    border-bottom: none;
}

.doc-section h2 {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #14b8a6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.doc-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 32px;
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.doc-section h4 {
    font-size: 17px;
    font-weight: 600;
    color: #334155;
    margin-top: 24px;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.doc-section p {
    line-height: 1.7;
    color: #475569;
    margin-bottom: 16px;
}

.doc-section ul, .doc-section ol {
    line-height: 1.8;
    color: #475569;
    margin-bottom: 16px;
}

.doc-section li {
    margin-bottom: 8px;
}

.doc-highlight {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(13, 148, 136, 0.05) 100%);
    border-left: 4px solid #14b8a6;
    padding: 24px;
    margin: 24px 0;
    border-radius: 8px;
}

.doc-highlight h3 {
    color: #0d9488;
    margin-top: 0;
    margin-bottom: 16px;
}

.doc-note {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: 24px 0;
    border-radius: 8px;
}

.doc-note strong {
    color: #92400e;
}

.doc-example {
    background: #f8fafc;
    border-left: 4px solid #0d9488;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.doc-example h4 {
    color: #0d9488;
    margin-top: 0;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.doc-table thead {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
}

.doc-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.doc-table tbody tr {
    transition: background-color 0.15s ease;
}

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

.doc-table tbody tr:last-child td {
    border-bottom: none;
}

pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 24px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #1e293b;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

code {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #0d9488;
}

pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
}

.search-highlight {
    background-color: #fde68a;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
}

@media (max-width: 782px) {
    .flexcheckout-doc-container {
        grid-template-columns: 1fr;
    }
    
    .doc-sidebar {
        position: static;
        max-height: none;
    }

    .doc-content {
        padding: 24px;
    }
}

/* === field-edit === */
/* Tooltip styles */
.flexcheckout-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #9ca3af;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    margin-left: 5px;
    vertical-align: middle;
}

.flexcheckout-tooltip:hover {
    background: #6b7280;
}

/* Prominent checkbox */
.flexcheckout-checkbox-prominent {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.flexcheckout-checkbox-inline {
    display: flex;
    gap: 20px;
}

/* Collapsible advanced section */
.flexcheckout-collapsible {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flexcheckout-collapsible:hover {
    background: #f8f9fa;
}

.flexcheckout-collapse-icon {
    margin-right: 5px;
    transition: transform 0.2s;
}

.flexcheckout-optional-badge {
    font-size: 11px;
    font-weight: normal;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Preview improvements */
.flexcheckout-field-preview .description {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6b7280;
}

.flexcheckout-field-preview .required {
    color: #dc2626;
}

/* Form field label with tooltip */
.flexcheckout-form-field > label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.flexcheckout-form-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

/* === preview === */
.fc-preview-container {
    margin-top: 20px;
}

.fc-preview-controls {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.fc-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fc-control-group label {
    font-weight: 600;
    color: #666;
}

.fc-device-buttons {
    display: flex;
    gap: 5px;
}

.fc-device-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.fc-device-btn:hover {
    border-color: #2271b1;
    color: #2271b1;
}

.fc-device-btn.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.fc-device-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.fc-preview-frame {
    background: #f0f0f1;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    padding: 30px;
    display: flex;
    justify-content: center;
    min-height: 600px;
}

.fc-preview-frame[data-device="desktop"] .fc-preview-content {
    width: 100%;
    max-width: 800px;
}

.fc-preview-frame[data-device="tablet"] .fc-preview-content {
    width: 768px;
}

.fc-preview-frame[data-device="mobile"] .fc-preview-content {
    width: 375px;
}

.fc-preview-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fc-preview-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.fc-preview-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.fc-preview-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #333;
}

.fc-position-group {
    position: relative;
    margin: 15px 0;
    padding: 15px;
    background: #f0f6fc;
    border: 2px dashed #2271b1;
    border-radius: 6px;
}

.fc-position-label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: #2271b1;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
}

.fc-field-row {
    margin-bottom: 15px;
}

.fc-field-row.fc-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.fc-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    color: #333;
}

.fc-field label .required {
    color: #e00;
}

.fc-field input,
.fc-field select,
.fc-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.fc-field input:disabled,
.fc-field select:disabled,
.fc-field textarea:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

.fc-field textarea {
    min-height: 80px;
    resize: vertical;
}

/* Custom field highlight */
.fc-custom-field {
    position: relative;
    background: #fff8e5;
    border: 1px solid #ffcc00;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.fc-custom-field::before {
    content: "Custom";
    position: absolute;
    top: -8px;
    right: 10px;
    background: #ffcc00;
    color: #333;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.fc-custom-field .fc-field-actions {
    position: absolute;
    top: 5px;
    right: 60px;
    display: none;
}

.fc-custom-field:hover .fc-field-actions {
    display: block;
}

.fc-custom-field .fc-field-actions a {
    font-size: 12px;
    text-decoration: none;
    margin-left: 10px;
}

.fc-fields-note {
    text-align: center;
    color: #999;
    font-style: italic;
    margin: 10px 0;
}

.fc-payment-methods {
    margin: 15px 0;
}

.fc-payment-option {
    display: block;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: not-allowed;
}

.fc-place-order {
    margin-top: 20px;
    text-align: right;
}

.fc-submit-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 4px;
    cursor: not-allowed;
}

.fc-preview-legend {
    margin-top: 20px;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.fc-preview-legend h4 {
    margin: 0 0 10px;
    font-size: 14px;
}

.fc-legend-items {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.fc-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.fc-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.fc-legend-custom {
    background: #fff8e5;
    border: 1px solid #ffcc00;
}

.fc-legend-default {
    background: #f8f9fa;
    border: 1px solid #ddd;
}

.fc-legend-position {
    background: #f0f6fc;
    border: 2px dashed #2271b1;
}

.fc-preview-empty {
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 20px;
}

.fc-preview-empty .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #2271b1;
}

.fc-preview-empty p {
    margin: 15px 0;
    color: #666;
}

/* Responsive preview */
@media (max-width: 900px) {
    .fc-preview-frame[data-device="tablet"] .fc-preview-content,
    .fc-preview-frame[data-device="desktop"] .fc-preview-content {
        width: 100%;
    }
}

/* === suggestions === */
    /* Scoped styles for suggestions page only */
    .flexcheckout-suggestions-wrap {
        max-width: 1400px;
        margin: 20px 20px 20px 0;
    }

    .flexcheckout-suggestions-wrap .suggestions-header {
        background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
        color: white;
        padding: 40px;
        border-radius: 12px;
        margin-bottom: 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .flexcheckout-suggestions-wrap .suggestions-header h1 {
        margin: 0 0 10px;
        font-size: 32px;
        color: white;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .flexcheckout-suggestions-wrap .suggestions-header p {
        margin: 0;
        font-size: 16px;
        opacity: 0.95;
    }

    .flexcheckout-suggestions-wrap .suggestions-container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 30px;
        align-items: start;
    }

    .flexcheckout-suggestions-wrap .suggestion-form-card {
        background: white;
        border-radius: 12px;
        padding: 40px;
        box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    }

    .flexcheckout-suggestions-wrap .suggestion-form-card .card-icon {
        background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
        width: 60px;
        height: 60px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .flexcheckout-suggestions-wrap .suggestion-form-card h2 {
        margin: 0 0 8px;
        font-size: 24px;
        color: #1e293b;
    }

    .flexcheckout-suggestions-wrap .suggestion-form-card .subtitle {
        color: #64748b;
        margin-bottom: 30px;
        font-size: 14px;
    }

    .flexcheckout-suggestions-wrap .form-group {
        margin-bottom: 25px;
    }

    .flexcheckout-suggestions-wrap .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        color: #334155;
        font-size: 14px;
    }

    .flexcheckout-suggestions-wrap .form-group select,
    .flexcheckout-suggestions-wrap .form-group input[type="text"],
    .flexcheckout-suggestions-wrap .form-group input[type="email"],
    .flexcheckout-suggestions-wrap .form-group textarea {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.3s;
        font-family: inherit;
    }

    .flexcheckout-suggestions-wrap .form-group select:focus,
    .flexcheckout-suggestions-wrap .form-group input[type="text"]:focus,
    .flexcheckout-suggestions-wrap .form-group input[type="email"]:focus,
    .flexcheckout-suggestions-wrap .form-group textarea:focus {
        outline: none;
        border-color: #1abc9c;
        box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
    }

    .flexcheckout-suggestions-wrap .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

    .flexcheckout-suggestions-wrap .form-helper {
        font-size: 13px;
        color: #94a3b8;
        margin-top: 6px;
    }

    .flexcheckout-suggestions-wrap .submit-btn {
        background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
        color: white;
        border: none;
        padding: 14px 32px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .flexcheckout-suggestions-wrap .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(26, 188, 156, 0.3);
    }

    .flexcheckout-suggestions-wrap .suggestions-sidebar {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .flexcheckout-suggestions-wrap .sidebar-card {
        background: white;
        border-radius: 12px;
        padding: 30px;
        box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    }

    .flexcheckout-suggestions-wrap .sidebar-card .card-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .flexcheckout-suggestions-wrap .sidebar-card .card-icon-small {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    .flexcheckout-suggestions-wrap .sidebar-card h3 {
        margin: 0;
        font-size: 18px;
        color: #1e293b;
    }

    .flexcheckout-suggestions-wrap .popular-request {
        padding: 15px;
        background: #f8fafc;
        border-radius: 8px;
        margin-bottom: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s;
    }

    .flexcheckout-suggestions-wrap .popular-request:hover {
        background: #f1f5f9;
        transform: translateX(5px);
    }

    .flexcheckout-suggestions-wrap .popular-request:last-child {
        margin-bottom: 0;
    }

    .flexcheckout-suggestions-wrap .request-title {
        font-weight: 500;
        color: #334155;
        font-size: 14px;
    }

    .flexcheckout-suggestions-wrap .request-votes {
        background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
    }

    .flexcheckout-suggestions-wrap .connect-item {
        padding: 15px;
        border-left: 3px solid #1abc9c;
        background: #f8fafc;
        margin-bottom: 12px;
        border-radius: 0 8px 8px 0;
        transition: all 0.3s;
    }

    .flexcheckout-suggestions-wrap .connect-item:hover {
        background: #f1f5f9;
        transform: translateX(5px);
    }

    .flexcheckout-suggestions-wrap .connect-item:last-child {
        margin-bottom: 0;
    }

    .flexcheckout-suggestions-wrap .connect-item .icon {
        font-size: 18px;
        margin-right: 8px;
    }

    .flexcheckout-suggestions-wrap .connect-item strong {
        display: block;
        color: #1e293b;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .flexcheckout-suggestions-wrap .connect-item p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
    }

    .flexcheckout-suggestions-wrap .connect-item a {
        color: #1abc9c;
        text-decoration: none;
        font-weight: 500;
    }

    .flexcheckout-suggestions-wrap .connect-item a:hover {
        text-decoration: underline;
    }

    @media (max-width: 1024px) {
        .flexcheckout-suggestions-wrap .suggestions-container {
            grid-template-columns: 1fr;
        }
    }

    .flexcheckout-suggestions-wrap .success-message {
        background: #d1fae5;
        border-left: 4px solid #10b981;
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 25px;
        color: #065f46;
        display: none;
    }

    .flexcheckout-suggestions-wrap .error-message {
        background: #fee2e2;
        border-left: 4px solid #ef4444;
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 25px;
        color: #991b1b;
        display: none;
    }

/* === templates === */
.flexcheckout-templates-page {
    margin-top: 20px;
}

.flexcheckout-template-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.flexcheckout-filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.flexcheckout-filter-btn:hover {
    border-color: #2271b1;
    color: #2271b1;
}

.flexcheckout-filter-btn.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.flexcheckout-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.flexcheckout-template-card {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.flexcheckout-template-card:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.flexcheckout-template-card.pro-required {
    opacity: 0.7;
}

.flexcheckout-template-icon {
    width: 48px;
    height: 48px;
    background: #f0f6fc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.flexcheckout-template-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2271b1;
}

.flexcheckout-template-content {
    flex: 1;
}

.flexcheckout-template-content h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flexcheckout-template-content p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.flexcheckout-template-actions {
    margin-top: 15px;
}

.flexcheckout-template-actions .button {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    width: 100%;
}

.flexcheckout-template-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.flexcheckout-template-added {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #00a32a;
    font-weight: 600;
}

.flexcheckout-template-added .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

/* Quick Start Bundles */
.flexcheckout-quick-start {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.flexcheckout-quick-start h2 {
    margin-bottom: 5px;
}

.flexcheckout-quick-start > p {
    color: #666;
    margin-bottom: 25px;
}

.flexcheckout-bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.flexcheckout-bundle-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.flexcheckout-bundle-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
    font-size: 15px;
}

.flexcheckout-bundle-card h3 .dashicons {
    color: #2271b1;
}

.flexcheckout-bundle-card p {
    color: #666;
    font-size: 13px;
    margin: 0 0 15px 0;
}

.flexcheckout-bundle-card .button {
    width: 100%;
}

/* Wizard Link */
.flexcheckout-wizard-link {
    margin-top: 40px;
    padding: 20px;
    background: #f0f6fc;
    border-radius: 8px;
    text-align: center;
}

.flexcheckout-wizard-link p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.flexcheckout-wizard-link .dashicons {
    color: #2271b1;
}

/* Responsive */
@media (max-width: 782px) {
    .flexcheckout-templates-grid {
        grid-template-columns: 1fr;
    }
    
    .flexcheckout-bundles-grid {
        grid-template-columns: 1fr;
    }
}

/* === tools === */
.flexcheckout-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

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

.flexcheckout-checkbox-group label {
    display: block;
    margin-bottom: 8px;
}

.flexcheckout-checkbox-group input {
    margin-right: 8px;
}

.flexcheckout-system-info {
    width: 100%;
}

.flexcheckout-system-info th {
    text-align: left;
    padding: 8px 12px 8px 0;
    font-weight: 500;
    width: 40%;
}

.flexcheckout-system-info td {
    padding: 8px 0;
}

.flexcheckout-system-info tr:not(:last-child) {
    border-bottom: 1px solid #eee;
}
