/**
 * Frontend Styles für TWW Styleguide Plugin mit Label-Filter
 */

.tww-styleguide-frontend {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.tww-styleguide-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 3px solid #f0f0f0;
}

.tww-styleguide-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.tww-styleguide-intro {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Section */
.tww-filter-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 2px solid #e0e0e0;
}

.tww-filter-section h3 {
    font-size: 20px;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.tww-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tww-filter-btn {
    padding: 10px 20px;
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tww-filter-btn:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.tww-filter-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* Label Badges */
.tww-item-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.tww-label-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #2271b1;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    text-transform: lowercase;
}

/* Navigation */
.tww-styleguide-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.tww-nav-link {
    padding: 12px 24px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tww-nav-link:hover {
    background: #2271b1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* Sections */
.tww-sg-section {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.tww-sg-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2271b1;
}

.tww-sg-icon {
    font-size: 36px;
}

.tww-sg-content {
    margin-top: 30px;
}

/* Logo Grid */
.tww-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tww-logo-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.tww-logo-item:hover {
    border-color: #2271b1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.tww-logo-preview {
    width: 100%;
    height: 200px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 20px;
}

.tww-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tww-logo-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Buttons */
.tww-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.tww-btn-primary {
    background: #2271b1;
    color: #fff;
}

.tww-btn-primary:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.tww-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.tww-btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.tww-icon {
    font-size: 16px;
}

/* Fonts List */
.tww-fonts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tww-font-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tww-font-item:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tww-font-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.tww-font-icon {
    font-size: 32px;
}

.tww-font-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tww-font-name {
    font-size: 16px;
    color: #1a1a1a;
}

.tww-font-type {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Destinations & Colors */
.tww-destination-block {
    margin-bottom: 50px;
    padding: 30px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
}

.tww-destination-name {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.tww-color-group {
    margin-bottom: 35px;
}

.tww-color-group-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

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

.tww-color-swatch {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.tww-color-swatch:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tww-color-preview {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.tww-color-values {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tww-color-value {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tww-color-value strong {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tww-color-code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tww-color-code:hover {
    border-color: #2271b1;
    background: #f9f9f9;
}

.tww-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.tww-copy-btn:hover {
    opacity: 1;
}

/* Wording Section */
.tww-wording-content {
    background: #fff;
    padding: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    line-height: 1.8;
    font-size: 16px;
}

.tww-wording-content h1,
.tww-wording-content h2,
.tww-wording-content h3,
.tww-wording-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.tww-wording-content p {
    margin-bottom: 15px;
    color: #333;
}

.tww-wording-content ul,
.tww-wording-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.tww-wording-content li {
    margin-bottom: 8px;
}

/* Image Grid */
.tww-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tww-image-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tww-image-item:hover {
    border-color: #2271b1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.tww-image-preview {
    width: 100%;
    height: 200px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.tww-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.tww-image-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Asset Grid */
.tww-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.tww-asset-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tww-asset-item:hover {
    border-color: #2271b1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.tww-asset-preview {
    width: 100%;
    height: 180px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.tww-asset-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.tww-asset-file {
    width: 100%;
    height: 180px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 20px;
    text-align: center;
}

.tww-file-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.tww-file-name {
    font-size: 14px;
    color: #666;
    word-break: break-word;
}

.tww-asset-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Footer */
.tww-styleguide-footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
    color: #666;
    font-size: 14px;
}

/* Filterable Items Animation */
.tww-filterable {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   CONTENT GENERATOR - Frontend Styles
   ========================================================= */

.tww-nav-generator {
    background: linear-gradient(135deg, #2271b1, #135e96) !important;
    color: #fff !important;
    border: 2px solid #2271b1 !important;
    font-weight: 600;
}

.tww-nav-disabled {
    background: #ccc !important;
    color: #888 !important;
    border-color: #bbb !important;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
    user-select: none;
}

.tww-generator-section {
    position: relative;
}

.tww-gen-frontend-wrapper {
    position: relative;
}

/* Steps */
.tww-gen-step {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.tww-gen-step:hover {
    border-color: #c0c0c0;
}

.tww-gen-step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.tww-gen-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.tww-gen-step-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
}

.tww-gen-step-body {
    padding: 25px;
}

/* Select / Dropdown */
.tww-gen-select {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.tww-gen-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

/* Template Grid */
.tww-gen-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tww-gen-tpl-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: default;
}

.tww-gen-tpl-card:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 16px rgba(34, 113, 177, 0.12);
}

.tww-gen-tpl-selected {
    border-color: #2271b1 !important;
    background: #f0f7fc;
    box-shadow: 0 4px 16px rgba(34, 113, 177, 0.2);
}

.tww-gen-tpl-card h4 {
    margin: 0 0 8px 0;
    font-size: 17px;
    color: #1a1a1a;
}

.tww-gen-tpl-card p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.tww-gen-tpl-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.tww-gen-meta-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.tww-gen-meta-text {
    background: #d1ecf1;
    color: #0c5460;
}

.tww-gen-meta-img {
    background: #fff3cd;
    color: #856404;
}

.tww-gen-select-tpl {
    width: 100%;
}

/* Input Fields */
.tww-gen-input-field {
    margin-bottom: 20px;
}

.tww-gen-input-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.tww-gen-input-field input[type="text"],
.tww-gen-input-field input[type="url"],
.tww-gen-input-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.tww-gen-input-field input:focus,
.tww-gen-input-field textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

/* Element Input Groups */
.tww-gen-element-input-group {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.tww-gen-element-input-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tww-gen-element-input-header strong {
    font-size: 15px;
    color: #1a1a1a;
}

.tww-gen-element-desc {
    color: #666;
    font-size: 13px;
    margin: 0 0 8px;
}

.tww-gen-element-config-info {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: #fff;
    border-radius: 4px;
    display: inline-block;
}

.tww-gen-optional-fields {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.tww-gen-optional-fields .tww-gen-input-field {
    margin-bottom: 12px;
}

.tww-gen-optional-fields label {
    font-size: 13px;
    color: #666;
}

.tww-gen-optional-fields input,
.tww-gen-optional-fields textarea {
    font-size: 14px;
    padding: 10px 12px;
}

/* Actions */
.tww-gen-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.tww-btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
}

.tww-gen-btn-icon {
    font-size: 18px;
}

/* Results */
.tww-gen-result-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.tww-gen-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.tww-gen-result-header strong {
    font-size: 15px;
    color: #1a1a1a;
}

.tww-gen-result-text {
    padding: 20px;
}

.tww-gen-text-content {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.7;
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.tww-gen-text-edit {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #7c3aed;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    resize: vertical;
    margin-bottom: 12px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.tww-gen-text-edit:focus {
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.tww-gen-text-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tww-gen-field-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.tww-gen-link-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
    padding: 4px 10px;
    background: #f0f4ff;
    border-radius: 4px;
}
.tww-gen-link-info a {
    color: #7c3aed;
    text-decoration: none;
    word-break: break-all;
}
.tww-gen-link-info a:hover {
    text-decoration: underline;
}

.tww-gen-result-image {
    padding: 20px;
    text-align: center;
}

.tww-gen-result-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.tww-gen-result-error {
    padding: 20px;
    color: #dc3232;
    background: #fef0f0;
    font-weight: 500;
}

/* Loading Overlay */
#tww-gen-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.tww-gen-loading-content {
    background: #fff;
    padding: 40px 50px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tww-gen-loading-content p {
    margin: 20px 0 0;
    font-size: 16px;
    color: #333;
}

.tww-gen-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: twwSpin 0.8s linear infinite;
    margin: 0 auto;
}

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

.tww-gen-loading {
    color: #666;
    font-style: italic;
}

.tww-gen-no-templates,
.tww-gen-error {
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
}

.tww-gen-error {
    color: #dc3232;
    background: #fef0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tww-styleguide-header h1 {
        font-size: 32px;
    }
    
    .tww-styleguide-intro {
        font-size: 16px;
    }
    
    .tww-filter-section {
        padding: 20px;
    }
    
    .tww-filter-buttons {
        gap: 8px;
    }
    
    .tww-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .tww-sg-title {
        font-size: 26px;
    }
    
    .tww-logo-grid,
    .tww-image-grid,
    .tww-asset-grid {
        grid-template-columns: 1fr;
    }
    
    .tww-color-palette {
        grid-template-columns: 1fr;
    }
    
    .tww-logo-actions,
    .tww-image-actions,
    .tww-asset-actions {
        flex-direction: column;
    }
    
    .tww-font-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tww-destination-block {
        padding: 20px;
    }
    
    .tww-wording-content {
        padding: 25px;
    }
    
    .tww-gen-template-grid {
        grid-template-columns: 1fr;
    }
    
    .tww-gen-step-body {
        padding: 15px;
    }
    
    .tww-gen-actions {
        flex-direction: column;
    }
    
    .tww-gen-loading-content {
        margin: 0 20px;
        padding: 30px 20px;
    }
}

/* ===== MAILJET INTEGRATION PANEL ===== */

.tww-gen-mailjet-panel {
    background: linear-gradient(135deg, #f8f0ff 0%, #f0f4ff 100%);
    border: 2px solid #7c3aed;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.tww-gen-mailjet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.tww-gen-mailjet-icon {
    font-size: 24px;
}

.tww-gen-mailjet-header h4 {
    margin: 0;
    font-size: 18px;
    color: #4c1d95;
}

.tww-gen-mj-row {
    margin-bottom: 14px;
}

.tww-gen-mj-row label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #333;
}

.tww-gen-mj-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.tww-gen-mj-input:focus {
    border-color: #7c3aed;
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.tww-gen-mj-contactlist-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tww-gen-mj-contactlist-wrapper .tww-gen-mj-input {
    flex: 1;
}

.tww-gen-mj-btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tww-gen-mj-btn-sm:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.tww-gen-mj-btn-primary {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.tww-gen-mj-btn-primary:hover {
    background: #6d28d9;
    border-color: #6d28d9;
}

.tww-gen-mj-btn-sm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tww-gen-mj-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tww-gen-mj-actions-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 8px 0;
}

.tww-gen-mj-actions-radio label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 0;
}

.tww-gen-mj-actions-radio input[type="radio"] {
    accent-color: #7c3aed;
}

.tww-btn-mailjet {
    background: #7c3aed !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tww-btn-mailjet:hover {
    background: #6d28d9 !important;
}

.tww-btn-mailjet:disabled {
    background: #a78bfa !important;
    cursor: wait;
}

.tww-gen-mj-status {
    display: inline-block;
    margin-left: 12px;
    font-size: 14px;
    font-weight: 600;
}

.tww-gen-mj-template-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f0f4ff;
    border-left: 3px solid #7c3aed;
    border-radius: 4px;
    margin: 0 20px 16px 20px;
    font-size: 13px;
    color: #374151;
}
.tww-gen-mj-template-info .dashicons {
    color: #7c3aed;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

@media (max-width: 600px) {
    .tww-gen-mj-row-half {
        grid-template-columns: 1fr;
    }
    
    .tww-gen-mj-actions-radio {
        flex-direction: column;
    }
}