/*
 * Stylesheet for the Mango Squeeze Front‑end plugin.
 *
 * This file defines a clean, responsive layout for the front‑end image
 * compression interface. The colours and spacing are inspired by Mango
 * Innovation’s branding palette – warm oranges paired with subtle neutrals.
 */

/* Root wrapper constrains the width and centers the interface */
.mango-squeeze-frontend-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    /* Remove border and shadow from wrapper; the card below provides the styling */
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Card replicating the reference design */
.msq-card {
    /* Orange top border and green bottom border to match the reference */
    border-radius: 8px;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.15);
    background: #fff;
    margin-bottom: 20px;
    position: relative;
}

/* Card header with title and settings */
.msq-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f2f2f2;
}
/* Title area inside header */
.msq-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2a2a2a;
    font-size: 1rem;
}
.msq-card-icon img {
    width: 5rem;
    height: 5rem;
}
.msq-card-name {
    font-size: 2rem;
    line-height: 1;
}
/* Image count pill */
.msq-image-count {
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 12px;
    background: #ffece1;
    color: #f47329;
    font-weight: 600;
}
/* Settings button with arrow */
.msq-settings-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.875rem;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background: #fafafa;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.msq-settings-btn:hover {
    background: #f0f0f0;
}
.msq-settings-arrow {
    font-size: 1rem;
    margin-left: 4px;
}

/* Card body */
.msq-card-body {
    padding: 20px 16px 16px 16px;
}

/* Format tags */
.msq-format-tags {
    margin-top: 12px;
}
.msq-tag {
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.4;
}
.msq-tag.supported {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    color: #555;
}
.msq-tag.unsupported {
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    color: #aaa;
}

/* Settings panel; hidden until toggled */
.msq-settings-panel {
    padding: 16px;
    border-bottom: 1px solid #f2f2f2;
    display: none;
}

/* Upload icon styling */
/* Upload icon container. Use a circular badge with a warm gradient and
   centre the custom SVG. The colours draw from Mango Innovation's
   palette to subtly match the main website. */
.msq-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    /* Mango inspired gradient: deeper orange to soft yellow */
    background: #f94300;
    color: #fff;
    margin-bottom: 12px;
    transition: background 0.3s ease;
}
/* Scale the SVG within the upload icon and inherit stroke colour */
.msq-upload-icon svg {
    width: 32px;
    height: 32px;
    color: inherit;
}
/* Hover state for upload icon */
.msq-dropzone:hover .msq-upload-icon,
.msq-dropzone.dragover .msq-upload-icon {
    background: linear-gradient(135deg, #e0752d, #e89f3c);
}

/* Dropzone container */
.msq-dropzone {
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #444;
    font-size: 1rem;
    background: #ffffff;
    position: relative;
}
.msq-dropzone:hover,
.msq-dropzone.dragover {
    background-color: #f8f8f8;
}
.msq-drop-text {
    margin: 0;
    color: #444;
    font-size: 1.1rem;
    font-weight: 500;
}
.msq-drop-subtext {
    margin-top: 4px;
    color: #777;
    font-size: 0.85rem;
}
/* Format tags within dropzone */
.msq-dropzone .msq-format-tags {
    margin-top: 12px;
}
.msq-dropzone .msq-tag {
    display: inline-block;
    margin: 0 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    color: #666;
}
.msq-dropzone .msq-tag.unsupported {
    opacity: 0.5;
}

/* Hide old header styles */
.msq-header,
.msq-title,
.msq-logo {
    display: none;
}

/* Update results and preview item styles remain unchanged */

/* Header with logo and title */
.msq-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.msq-logo {
    width: 48px;
    height: 48px;
    margin-right: 12px;
}
.msq-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #e58e26; /* warm mango orange */
    margin: 0;
}

/* Dropzone styling */
.msq-dropzone {
    border: 2px dashed #dcdcdc;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #555;
    font-size: 1rem;
    margin-bottom: 20px;
    background: #fafafa;
}
.msq-dropzone:hover,
.msq-dropzone.dragover {
    background-color: #f5f5f5;
}
.msq-dropzone p {
    margin: 0;
}

/* Options section */
.msq-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}
.msq-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
}
.msq-options select,
.msq-options input[type="range"],
.msq-options input[type="number"] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}
.msq-options input[type="range"] {
    width: 150px;
}
.msq-resize-options {
    display: flex;
    align-items: center;
    gap: 6px;
}
.msq-resize-options input[type="number"] {
    width: 70px;
}
/* New controls styling */
.msq-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.msq-control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}
.msq-control-item {
    flex: 1 1 250px;
}
.msq-control-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    text-align: left;
}
.msq-control-item input[type="range"] {
    width: 100%;
}
/*********** Baseline, reset styles ***********/
.msq-control-item input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    height: 2rem;
}

/* Removes default focus */
.msq-control-item input[type="range"]:focus {
    outline: none;
}

/******** Chrome, Safari, Opera and Edge Chromium styles ********/
/* slider track */
.msq-control-item input[type="range"]::-webkit-slider-runnable-track {
    background-color: #e5e7e6;
    border-radius: 0.5rem;
    height: 1rem;
}

/* slider thumb */
.msq-control-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    margin-top: -4px; /* Centers thumb on the track */
    background-color: #f94300;
    border-radius: 1rem;
    height: 1.5rem;
    width: 1.5rem;
}

.msq-control-item input[type="range"]:focus::-webkit-slider-thumb {
    outline: 3px solid #f94300;
    outline-offset: 0.125rem;
}

/*********** Firefox styles ***********/
/* slider track */
.msq-control-item input[type="range"]::-moz-range-track {
    background-color: #e5e7e6;
    border-radius: 0.5rem;
    height: 1rem;
}

/* slider thumb */
.msq-control-item input[type="range"]::-moz-range-thumb {
    background-color: #f94300;
    border: none; /*Removes extra border that FF applies*/
    border-radius: 1rem;
    height: 1.5rem;
    width: 1.5rem;
}

.msq-control-item input[type="range"]:focus::-moz-range-thumb{
    outline: 3px solid #f94300;
    outline-offset: 0.125rem;
}

#msq-output-format{
    text-align: left;
}


.msq-format-note {
    font-size: 0.75rem;
    color: #777;
    margin-top: 4px;
}
.msq-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #888;
    margin-top: 4px;
}
.msq-apply-btn {
    background: #f66327;
    border: none;
    padding: 10px 18px;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
.msq-apply-btn:hover {
    background: #dd5a21;
}
.msq-resize-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}
.msq-resize-options {
    display: flex;
    align-items: center;
    gap: 6px;
}
.msq-resize-options input[type="number"] {
    width: 126px;
}

/* Results and previews */
.msq-results {
    margin-top: 20px;
    padding: 24px;
    border-radius: 8px;
}
/* Status area notices */
#msq-status-area .notice {
    margin-bottom: 15px;
    padding: 10px 12px;
    border-radius: 4px;
}
/* Notice colors */
#msq-status-area .notice.notice-error {
    background: #ffecec;
    border: 1px solid #f5c2c2;
    color: #b71c1c;
}
#msq-status-area .notice.notice-success {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}
#msq-status-area .notice.notice-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #0d47a1;
}

/* Each preview item */
/* Preview list container */
.msq-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}
/* Each preview item */
.msq-preview-item {
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.msq-preview-item h4 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}
.msq-preview-images {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}
.msq-preview-images img {
    max-width: 140px;
    border: 1px solid #eee;
    border-radius: 4px;
}
.msq-file-info {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}
.msq-download-btn {
    display: inline-block;
    margin-top: 4px;
    background: #f66327;
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}
.msq-download-btn:hover {
    background: #dd5a21;
}
/* Saved percentage badge */
.msq-saved-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #009b5c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}
/* Remove item button */
.msq-remove-item {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
}
.msq-remove-item:hover {
    color: #666;
}
/* Progress area */
.msq-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #fafafa;
    font-size: 0.85rem;
    color: #333;
}
.msq-progress span {
    margin-right: 8px;
}
.msq-progress #msq-total-saved {
    color: #009b5c;
    font-weight: 600;
}
.msq-progress-actions {
    display: flex;
    gap: 10px;
}
.msq-download-all {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}
.msq-download-all:hover {
    background: #3f9a43;
}
.msq-clear-all {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}
.msq-clear-all:hover {
    background: #ececec;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .msq-preview-images {
        flex-direction: column;
    }
    .msq-options {
        flex-direction: column;
        align-items: flex-start;
    }
    .msq-options input[type="range"] {
        width: 100%;
    }
    .msq-resize-options {
        flex-direction: row;
    }
    .msq-card-header{
        display: block;
    }
    .msq-settings-btn{
        margin-top: 1rem;
    }
}

/* =====================================================================
   Mango Convert 2.0 - CloudConvert-style converter UI
   ===================================================================== */

.msq-settings-heading {
    margin: 0 0 4px 0;
    font-weight: 700;
    color: #2a2a2a;
    font-size: 0.95rem;
}

/* The results area holds a vertical stack of file rows */
.msq-results { padding: 0 16px; }
.msq-preview-list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 16px;
}

/* Each file row - clean white card like CloudConvert */
.msq-preview-item {
    width: 100%;
    max-width: 100%;
    position: relative;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.msq-preview-item.working { border-color: #f7b27a; background: #fffaf6; }
.msq-preview-item.done    { border-color: #bfe3c4; background: #f7fcf8; }
.msq-preview-item.error   { border-color: #f0c2c2; background: #fff8f8; }

/* The main horizontal row: icon | meta | convert controls | remove */
.msq-file-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* File-type icon badge */
.msq-file-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
}
.msq-file-icon.msq-cat-image    { background: #fff1e8; color: #f47329; }
.msq-file-icon.msq-cat-pdf      { background: #fdeaec; color: #d7263d; }
.msq-file-icon.msq-cat-document { background: #e8eefb; color: #2b579a; }
.msq-file-icon.msq-cat-data     { background: #e7f7ef; color: #009b5c; }
.msq-file-icon.msq-cat-audio    { background: #efeaf6; color: #6a4c93; }
.msq-file-icon.msq-cat-video    { background: #e6f0f7; color: #1b6ca8; }

/* Left coloured accent border per category */
.msq-cat-border-image    { border-left: 3px solid #f47329; }
.msq-cat-border-pdf      { border-left: 3px solid #d7263d; }
.msq-cat-border-document { border-left: 3px solid #2b579a; }
.msq-cat-border-data     { border-left: 3px solid #009b5c; }
.msq-cat-border-audio    { border-left: 3px solid #6a4c93; }
.msq-cat-border-video    { border-left: 3px solid #1b6ca8; }

/* Filename + sub-line */
.msq-file-meta {
    flex: 1 1 auto;
    min-width: 0;
}
.msq-item-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.msq-file-sub {
    color: #9ca3af;
    font-size: 0.78rem;
    margin-top: 2px;
}

/* Convert controls cluster */
.msq-file-convert {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.msq-src-chip {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    color: #374151;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.msq-arrow { color: #9ca3af; font-size: 1rem; }
.msq-target-select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.82rem;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    max-width: 180px;
}
.msq-item-convert {
    background: #f66327;
    border: none;
    color: #fff;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}
.msq-item-convert:hover { background: #dd5a21; }
.msq-item-status {
    font-size: 0.78rem;
    color: #6b7280;
    min-width: 52px;
}
.msq-item-status.msq-status-error { color: #b71c1c; }

/* Remove (x) */
.msq-remove-item {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #b0b0b0;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
}
.msq-remove-item:hover { color: #6b7280; }

/* Per-row options toggle button */
.msq-item-options-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #6b7280;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.msq-item-options-btn:hover { background: #f3f4f6; color: #374151; }
.msq-item-options-btn .dashicons,
.msq-item-options-btn.dashicons { font-size: 1.05rem; }

/* Advanced options panel */
.msq-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #eef0f2;
    border-radius: 8px;
}
.msq-opt-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.74rem;
    color: #6b7280;
    font-weight: 600;
}
.msq-opt-select {
    padding: 5px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.82rem;
    background: #fff;
    color: #1f2937;
    min-width: 120px;
}
.msq-opt-note {
    flex: 1 1 100%;
    margin: 2px 0 0 0;
    font-size: 0.72rem;
    color: #9ca3af;
}
.msq-opt-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #374151;
    font-weight: 500;
    flex: 1 1 100%;
    cursor: pointer;
}
.msq-opt-check input[type="checkbox"] { margin: 0; flex-shrink: 0; }

/* Result line under a converted row */
.msq-item-result {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ececec;
}
.msq-item-result:empty { display: none; }
.msq-result-info {
    font-size: 0.83rem;
    color: #2e7d32;
    font-weight: 600;
}
.msq-result-note {
    font-size: 0.75rem;
    color: #b26a00;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    padding: 2px 6px;
    border-radius: 4px;
}

/* CloudConvert-style bottom bar */
.msq-bottombar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.msq-bottom-status {
    font-size: 0.85rem;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.msq-bottom-status .dashicons { font-size: 1.1rem; width: 1.1rem; height: 1.1rem; }
.msq-progress-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Bottom-bar buttons */
.msq-add-more {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.msq-add-more:hover { background: #f3f4f6; }
.msq-convert-all {
    background: #f66327;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.msq-convert-all:hover { background: #dd5a21; }
.msq-download-all {
    background: #009b5c;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}
.msq-download-all:hover { background: #07814e; }
.msq-clear-all {
    background: #fff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}
.msq-clear-all:hover { background: #f3f4f6; }

/* Special combine actions (images->PDF, merge PDFs) sit in the bottom bar */
.msq-special-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.msq-special-btn {
    background: #fff;
    border: 1px solid #f66327;
    color: #f66327;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.msq-special-btn:hover { background: #fff1e8; }

@media (max-width: 640px) {
    .msq-file-row { flex-wrap: wrap; }
    .msq-file-meta { flex: 1 1 100%; order: 2; }
    .msq-file-convert { flex: 1 1 100%; order: 3; justify-content: flex-start; }
    .msq-remove-item { order: 1; margin-left: auto; }
    .msq-target-select { max-width: none; flex: 1 1 auto; }
    .msq-bottombar { flex-direction: column; align-items: stretch; }
    .msq-progress-actions { justify-content: space-between; }
}

/* =====================================================================
   Theme-conflict guards
   Some themes force `appearance: none` plus a repeating arrow background
   image onto every <select>, which makes our dropdowns render as a row of
   repeated arrow glyphs. Restore native dropdown rendering for OUR selects
   only, with enough specificity (+!important) to win against the theme.
   ===================================================================== */
.mango-squeeze-frontend-wrapper select.msq-target-select,
.mango-squeeze-frontend-wrapper select.msq-opt-select {
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
    background-image: none !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-repeat: no-repeat !important;
    color: #1f2937 !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: 200px;
    box-shadow: none !important;
    text-transform: none !important;
}
.mango-squeeze-frontend-wrapper select.msq-target-select option,
.mango-squeeze-frontend-wrapper select.msq-opt-select option {
    color: #1f2937;
    background: #ffffff;
}
/* Keep our buttons from inheriting odd theme button backgrounds/arrows */
.mango-squeeze-frontend-wrapper .msq-card .button {
    background-image: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
}

/* =====================================================================
   Mango Innovation live-site theme (mangoinnovation.com)
   Black + white with a mango-orange accent, inherits the theme font.
   ===================================================================== */

/* --- Requested layout overrides: flat, full-width, transparent --- */
.mango-squeeze-frontend-wrapper {
    max-width: 100% !important;
    padding: 0px;
    font-family: inherit;
    color: inherit;
    box-shadow: none;
    border: none;
}
.msq-card {
    border-radius: 0px;
    box-shadow: none;
    background-color: transparent;
    margin-bottom: 0px;
}

/* Brand palette */
.mango-squeeze-frontend-wrapper {
    --msq-ink: #111418;
    --msq-ink-hover: #2a2d31;
    --msq-mango: #f94300;
    --msq-mango-hover: #d63a00;
}

/* Header: cleaner, smaller logo, theme typography */
.mango-squeeze-frontend-wrapper .msq-card-header {
    padding: 16px 4px;
    border-bottom: 1px solid #ececec;
}
.mango-squeeze-frontend-wrapper .msq-card-icon img {
    width: 2.4rem;
    height: 2.4rem;
}
.mango-squeeze-frontend-wrapper .msq-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--msq-ink);
    font-family: inherit;
}
.mango-squeeze-frontend-wrapper .msq-image-count {
    background: #fff1e8;
    color: var(--msq-mango);
}
.mango-squeeze-frontend-wrapper .msq-card-body,
.mango-squeeze-frontend-wrapper .msq-settings-panel { padding-left: 4px; padding-right: 4px; }
.mango-squeeze-frontend-wrapper .msq-results { padding-left: 4px; padding-right: 4px; }

/* Settings button -> outlined, ink text */
.mango-squeeze-frontend-wrapper .msq-settings-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: var(--msq-ink);
    border-radius: 8px;
    padding: 8px 14px;
}
.mango-squeeze-frontend-wrapper .msq-settings-btn:hover { background: #f6f6f6; }

/* Upload icon keeps mango fill */
.mango-squeeze-frontend-wrapper .msq-upload-icon { background: var(--msq-mango); }

/* Primary actions = brand black pill */
.mango-squeeze-frontend-wrapper .msq-item-convert,
.mango-squeeze-frontend-wrapper .msq-convert-all {
    background: var(--msq-ink);
    color: #fff;
    border: 1px solid var(--msq-ink);
    border-radius: 8px;
}
.mango-squeeze-frontend-wrapper .msq-item-convert:hover,
.mango-squeeze-frontend-wrapper .msq-convert-all:hover {
    background: var(--msq-ink-hover);
    border-color: var(--msq-ink-hover);
}

/* Download = mango orange (the payoff CTA) */
.mango-squeeze-frontend-wrapper .msq-download-btn,
.mango-squeeze-frontend-wrapper .msq-download-all {
    background: var(--msq-mango);
    color: #fff;
    border: 1px solid var(--msq-mango);
    border-radius: 8px;
}
.mango-squeeze-frontend-wrapper .msq-download-btn:hover,
.mango-squeeze-frontend-wrapper .msq-download-all:hover {
    background: var(--msq-mango-hover);
    border-color: var(--msq-mango-hover);
}

/* Secondary actions = outlined */
.mango-squeeze-frontend-wrapper .msq-add-more,
.mango-squeeze-frontend-wrapper .msq-clear-all {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: var(--msq-ink);
    border-radius: 8px;
}
.mango-squeeze-frontend-wrapper .msq-add-more:hover,
.mango-squeeze-frontend-wrapper .msq-clear-all:hover { background: #f6f6f6; }

/* Special combine buttons keep mango outline */
.mango-squeeze-frontend-wrapper .msq-special-btn {
    border-color: var(--msq-mango);
    color: var(--msq-mango);
    border-radius: 8px;
}
.mango-squeeze-frontend-wrapper .msq-special-btn:hover { background: #fff1e8; }

/* Source chip + per-row options button rounding to match */
.mango-squeeze-frontend-wrapper .msq-src-chip,
.mango-squeeze-frontend-wrapper .msq-target-select,
.mango-squeeze-frontend-wrapper .msq-item-options-btn { border-radius: 8px; }

/* Source-format chip tinted per category to reinforce the file type */
.mango-squeeze-frontend-wrapper .msq-chip-image { background: #fff1e8; border-color: #ffd2bb; color: #c2410c; }
.mango-squeeze-frontend-wrapper .msq-chip-pdf   { background: #fdeaec; border-color: #f6c4ca; color: #b01225; }
.mango-squeeze-frontend-wrapper .msq-chip-document { background: #e8eefb; border-color: #c2d1f0; color: #23477e; }
.mango-squeeze-frontend-wrapper .msq-chip-data  { background: #e7f7ef; border-color: #bfe6d2; color: #047a48; }
.mango-squeeze-frontend-wrapper .msq-chip-audio { background: #efeaf6; border-color: #d6c9ea; color: #5a3d85; }
.mango-squeeze-frontend-wrapper .msq-chip-video { background: #e6f0f7; border-color: #c2dbef; color: #155a8a; }

/* Bottom bar reads as a clean footer strip on the flat layout */
.mango-squeeze-frontend-wrapper .msq-bottombar {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 10px;
    margin-top: 18px;
}

/* Sliders use the mango accent (already orange thumb); keep track subtle */
.mango-squeeze-frontend-wrapper .msq-control-item input[type="range"]::-webkit-slider-thumb { background-color: var(--msq-mango); }
.mango-squeeze-frontend-wrapper .msq-control-item input[type="range"]::-moz-range-thumb { background-color: var(--msq-mango); }

/* All buttons hover to mango orange (#f94300) with white text */
.mango-squeeze-frontend-wrapper .msq-item-convert:hover,
.mango-squeeze-frontend-wrapper .msq-convert-all:hover,
.mango-squeeze-frontend-wrapper .msq-download-btn:hover,
.mango-squeeze-frontend-wrapper .msq-download-all:hover,
.mango-squeeze-frontend-wrapper .msq-add-more:hover,
.mango-squeeze-frontend-wrapper .msq-clear-all:hover,
.mango-squeeze-frontend-wrapper .msq-settings-btn:hover,
.mango-squeeze-frontend-wrapper .msq-special-btn:hover,
.mango-squeeze-frontend-wrapper .msq-item-options-btn:hover {
    background: #f94300 !important;
    border-color: #f94300 !important;
    color: #ffffff !important;
}
