.wooproduct-exporter {
    --wc-pce-surface: #ffffff;
    --wc-pce-highlight: #f2f6ff;
    --wc-pce-border: #d8e1ff;
    --wc-pce-shadow: 0 20px 40px rgba(18, 43, 107, 0.08);
    color: #1d2327;
}

.wooproduct-exporter__headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(130deg, rgba(48,113,255,0.15), rgba(144,172,255,0.25));
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: var(--wc-pce-shadow);
    margin-bottom: 24px;
}

.wooproduct-exporter__headline {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.wooproduct-exporter__headline-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wooproduct-exporter__headline-meta {
    display: grid;
    gap: 12px;
    justify-items: end;
}


.wooproduct-exporter__logo-slot {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 52px;
}

.wooproduct-exporter__logo {
    width: 240px;
    max-width: 100%;
    height: auto;
}

.wooproduct-exporter__headline h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
}

.wooproduct-exporter__headline .description {
    margin: 0;
    max-width: 640px;
    color: #3f4a54;
    font-size: 15px;
}

.wooproduct-exporter__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wooproduct-exporter__toolbar {
    display: flex;
    justify-content: flex-end;
}

.wooproduct-exporter__toolbar .button-secondary {
    border-radius: 999px;
    padding-inline: 22px;
}

.wooproduct-exporter__form {
    background: var(--wc-pce-surface);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--wc-pce-shadow);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wooproduct-exporter__filters header {
    margin-bottom: 18px;
}

.wooproduct-exporter__filters h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
}

.wooproduct-exporter__filters p {
    margin: 0;
    color: #54616f;
    font-size: 14px;
}

.wooproduct-exporter__filters-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.wooproduct-exporter__filters-grid--stretch {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.wooproduct-exporter__filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--wc-pce-border);
    background: var(--wc-pce-highlight);
}

.wooproduct-exporter__filter span:first-child {
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
}

.wooproduct-exporter__filter input[type="number"],
.wooproduct-exporter__filter input[type="date"],
.wooproduct-exporter__filter input[type="search"] {
    border-radius: 10px;
    border: 1px solid #c3d0ea;
    padding: 10px 14px;
    font-size: 14px;
    width: 100%;
    box-shadow: inset 0 1px 3px rgba(15, 42, 89, 0.08);
}

.wooproduct-exporter__range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.wooproduct-exporter__range-divider {
    font-weight: 600;
    opacity: 0.6;
}

.wooproduct-exporter__checkbox-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 13px;
}

.wooproduct-exporter__checkbox-row label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.wooproduct-exporter__select {
    border-radius: 10px;
    border: 1px solid #c3d0ea;
    padding: 10px 14px;
    font-size: 14px;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(15, 42, 89, 0.08);
}

.wooproduct-exporter__filter-hint {
    font-size: 12px;
    color: #6f7c8c;
    line-height: 1.4;
}

.wooproduct-exporter__field-groups {
    display: grid;
    gap: 24px;
}

.wooproduct-exporter__group {
    border: 1px solid var(--wc-pce-border);
    border-radius: 16px;
    background: var(--wc-pce-surface);
    box-shadow: 0 12px 22px rgba(25, 59, 125, 0.04);
    padding: 22px 24px;
    transition: box-shadow 0.2s ease;
}

.wooproduct-exporter__group header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.wooproduct-exporter__group h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.wooproduct-exporter__group-body {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wooproduct-exporter__field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(103, 126, 182, 0.25);
    background: linear-gradient(160deg, #fff, rgba(240, 245, 255, 0.9));
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wooproduct-exporter__field:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(35, 71, 155, 0.08);
}

.wooproduct-exporter__field-label {
    font-weight: 600;
    font-size: 14px;
    color: #1f2a44;
}

.wooproduct-exporter__field-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef3ff;
    border-radius: 999px;
    width: 56px;
    height: 56px;
}

.wooproduct-exporter__field-control input[type="checkbox"] {
    transform: scale(1.3);
}

.wooproduct-exporter__submit {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: space-between;
}

.wooproduct-exporter__submit .button {
    min-width: 240px;
    font-size: 15px;
    font-weight: 600;
}

.wooproduct-exporter__file-settings {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    flex: 1 1 60%;
}

.wooproduct-exporter__file-settings label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.wooproduct-exporter__file-settings input[type="text"] {
    border-radius: 10px;
    border: 1px solid #c3d0ea;
    padding: 10px 14px;
    font-size: 14px;
    box-shadow: inset 0 1px 3px rgba(15, 42, 89, 0.08);
}

.wooproduct-exporter__file-settings small {
    color: #6f7c8c;
    font-size: 12px;
}

.wooproduct-exporter__filters-advanced {
    margin-top: 32px;
    padding: 20px;
    border-radius: 16px;
    border: 1px dashed var(--wc-pce-border);
    background: #f8f9ff;
    box-shadow: inset 0 0 0 1px rgba(93, 115, 185, 0.08);
}

.wooproduct-exporter__filters-advanced h3 {
    margin: 0 0 6px;
}

.wooproduct-exporter__filters-advanced p {
    margin: 0 0 20px;
    color: #526073;
}

.wc-pce-condition-builder__top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.wc-pce-condition-builder__top label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #222;
}

.wc-pce-condition-builder__top select {
    border-radius: 8px;
    border: 1px solid #c3d0ea;
    padding: 8px 12px;
}

.wc-pce-condition-builder__groups {
    display: grid;
    gap: 18px;
}

.wc-pce-condition-builder__group {
    border: 1px solid rgba(79, 111, 201, 0.35);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(36, 64, 145, 0.08);
}

.wc-pce-condition-builder__group-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.wc-pce-condition-builder__group-relation {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wc-pce-condition-builder__group-relation select {
    border-radius: 8px;
    border: 1px solid #c3d0ea;
    padding: 8px 12px;
}

.wc-pce-condition-builder__conditions {
    display: grid;
    gap: 14px;
}

.wc-pce-condition-builder__condition {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: flex-end;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 160, 220, 0.4);
    background: rgba(240, 245, 255, 0.7);
}

.wc-pce-condition-builder__condition label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.wc-pce-condition-builder__condition select,
.wc-pce-condition-builder__condition input[type="number"] {
    border-radius: 8px;
    border: 1px solid #c3d0ea;
    padding: 8px 10px;
    font-size: 13px;
}

.wc-pce-condition-builder__empty {
    text-align: center;
    padding: 18px;
    border-radius: 12px;
    background: rgba(140, 152, 211, 0.15);
    color: #4c5780;
    font-style: italic;
}

.wc-pce-condition-builder [data-action="remove-group"],
.wc-pce-condition-builder [data-action="remove-condition"] {
    align-self: center;
}

.wc-pce-template-panel {
    border: 1px solid var(--wc-pce-border);
    border-radius: 16px;
    padding: 20px 24px;
    background: linear-gradient(120deg, rgba(70,108,255,0.08), rgba(145,173,255,0.04));
    box-shadow: 0 10px 24px rgba(38, 73, 161, 0.08);
}

.wc-pce-template-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.wc-pce-template-panel h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
}

.wc-pce-template-panel p {
    margin: 0;
    color: #526073;
}

.wc-pce-template-grid {
    display: grid;
    grid-template-columns: minmax(220px, 3fr) 2fr;
    gap: 20px;
    align-items: end;
    margin-bottom: 16px;
}

.wc-pce-template-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.wc-pce-template-select small {
    color: #6a778b;
    min-height: 18px;
}

.wc-pce-template-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wc-pce-template-actions .button {
    min-width: 140px;
}

.wc-pce-template-import {
    border: 1px dashed rgba(85, 112, 191, 0.6);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.6);
}

.wc-pce-template-import__drop {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.wc-pce-template-import__drop p {
    flex: 1 1 240px;
    margin: 0;
}

.wc-pce-template-import__replace {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.wc-pce-template-import__drop.is-hovered {
    border: 1px dashed #3f7bff;
    background: rgba(63, 123, 255, 0.08);
}

.wc-pce-template-status {
    padding: 6px 12px;
    border-radius: 999px;
    background: #ecf4ff;
    color: #1f3e7f;
    font-size: 13px;
    font-weight: 600;
}

.wc-pce-template-status.is-error {
    background: #ffe9ea;
    color: #8e1c23;
}


.wc-pce-task-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.wc-pce-task-actions__form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.wc-pce-task-actions__form .button {
    margin: 0;
}

.wc-pce-actions-list {
    display: grid;
    gap: 12px;
}

.wc-pce-action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 160, 220, 0.45);
    border-radius: 10px;
    background: rgba(243, 247, 255, 0.8);
}

.wc-pce-action-item strong {
    font-weight: 600;
    color: #1e2a4a;
}

.wc-pce-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.button.wc-pce-button-danger {
    border-color: #d63638;
    color: #d63638;
}

.button.wc-pce-button-danger:hover,
.button.wc-pce-button-danger:focus {
    background: #d63638;
    border-color: #d63638;
    color: #fff;
}

.button.disabled,
.button[disabled] {
    pointer-events: none;
    opacity: 0.6;
}

.wc-pce-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.wc-pce-pagination__summary {
    font-size: 13px;
    color: #475569;
}

.wc-pce-pagination__nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wc-pce-pagination__links {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wc-pce-pagination__links a,
.wc-pce-pagination__links span {
    min-width: 32px;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid transparent;
}

.wc-pce-pagination__links a {
    color: #1d4ed8;
    border-color: rgba(93, 120, 209, 0.45);
    background: #fff;
}

.wc-pce-pagination__links a:hover,
.wc-pce-pagination__links a:focus {
    background: rgba(93, 120, 209, 0.1);
    border-color: #5d78d1;
}

.wc-pce-pagination__links .current {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
    font-weight: 600;
}

.wc-pce-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(19, 31, 61, 0.45);
    padding: 32px;
    z-index: 100000;
}

.wc-pce-modal[hidden] {
    display: none !important;
}

.wc-pce-modal__dialog {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 32px 48px rgba(17, 24, 39, 0.2);
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.wc-pce-modal__header,
.wc-pce-modal__footer {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.wc-pce-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wc-pce-modal__header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.wc-pce-modal__footer {
    border-bottom: none;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.wc-pce-modal__body {
    padding: 24px;
    display: grid;
    gap: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.wc-pce-form-row {
    display: grid;
    gap: 8px;
}

.wc-pce-form-row label,
.wc-pce-form-row legend {
    font-weight: 600;
    color: #1f2937;
}

.wc-pce-form-row input[type="text"],
.wc-pce-form-row input[type="number"],
.wc-pce-form-row input[type="time"],
.wc-pce-form-row select {
    border: 1px solid #cbd5f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}

.wc-pce-modal__body p {
    margin: 0;
    color: #475569;
}

.wc-pce-schedule-mode label,
[data-automatic-type] label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
    font-weight: 500;
}

.wc-pce-day-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wc-pce-day-picker .button {
    min-width: 64px;
    border-radius: 999px;
    border: 1px solid #cbd5f0;
    background: #f8fafc;
    color: #1d2638;
    transition: all 0.15s ease;
}

.wc-pce-day-picker .button.is-active {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.wc-pce-time-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wc-pce-time-chip {
    border-radius: 999px !important;
    padding-inline: 18px !important;
    background: #e2e8f0 !important;
    border: 0 !important;
    color: #1f2937 !important;
}

.wc-pce-time-chip:hover {
    background: #cbd5f0 !important;
    color: #0f172a !important;
}

.wc-pce-time-adder {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-pce-time-adder input[type="time"] {
    max-width: 120px;
}

.wc-pce-template-status.is-error {
    background: #ffe9ea;
    color: #8e1c23;
}

.wc-pce-selected-fields {
    border: 1px solid var(--wc-pce-border);
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(70,108,255,0.05), rgba(167,184,255,0.08));
    padding: 20px 24px;
    box-shadow: 0 10px 26px rgba(38, 73, 161, 0.08);
    margin-bottom: 28px;
}

.wc-pce-selected-fields header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.wc-pce-selected-fields header h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
}

.wc-pce-selected-fields header p {
    margin: 0;
    color: #51607b;
    font-size: 14px;
}

.wc-pce-selected-fields__body {
    position: relative;
}

.wc-pce-selected-fields__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.wc-pce-selected-fields__item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(110, 137, 213, 0.35);
    border-radius: 12px;
    background: rgba(247, 249, 255, 0.92);
    box-shadow: 0 8px 20px rgba(30, 54, 120, 0.08);
    cursor: grab;
}

.wc-pce-selected-fields__item:active {
    cursor: grabbing;
}

.wc-pce-selected-fields__drag {
    font-size: 18px;
    line-height: 1;
    color: #64748b;
    letter-spacing: 2px;
}

.wc-pce-selected-fields__index {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.wc-pce-selected-fields__label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-pce-selected-fields__label-text {
    font-weight: 600;
    color: #1f2a44;
}

.wc-pce-selected-fields__badge {
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}

.wc-pce-selected-fields__remove {
    color: #d92c3c !important;
}

.wc-pce-selected-fields__remove:hover,
.wc-pce-selected-fields__remove:focus {
    color: #b91c1c !important;
}

.wc-pce-selected-fields__placeholder {
    border: 1px dashed rgba(59, 130, 246, 0.6);
    border-radius: 12px;
    background: rgba(191, 219, 254, 0.35);
    height: 60px;
}

.wc-pce-selected-fields__empty {
    padding: 18px;
    border: 1px dashed rgba(110, 137, 213, 0.45);
    border-radius: 12px;
    background: rgba(245, 248, 255, 0.7);
    text-align: center;
    font-style: italic;
    color: #4b5563;
}

.wc-pce-selected-fields__hint {
    display: block;
    margin-top: 12px;
    color: #475569;
    font-size: 13px;
}

.wc-pce-modal--preview .wc-pce-modal__dialog {
    max-width: 880px;
}

.wc-pce-preview__loading {
    display: grid;
    gap: 12px;
    align-items: center;
    justify-items: center;
    padding: 24px 0;
}

.wc-pce-preview__error {
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(254, 202, 202, 0.35);
    color: #7f1d1d;
    padding: 14px 16px;
    font-size: 14px;
}

.wc-pce-preview__summary {
    margin: 0;
    color: #1f2937;
    font-size: 13px;
}

.wc-pce-preview__table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


.wc-pce-preview__table table {
    min-width: 100%;
    width: auto;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.wc-pce-preview__table thead th {
    white-space: nowrap;
    text-align: left;
    padding: 8px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc-pce-preview__table tbody td {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 12px;
    vertical-align: top;
    overflow: hidden;
}

.wc-pce-preview__table th.is-meta,
.wc-pce-preview__table td.is-meta {
    background: rgba(55, 65, 81, 0.08);
}

.wc-pce-preview__cell-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.wooproduct-exporter__toolbar-spacer {
    flex: 1 1 auto;
}

.wc-pce-modal-open {
    overflow: hidden;
}

@media (max-width: 782px) {
    .wooproduct-exporter__headline {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .wooproduct-exporter__headline-meta {
        justify-items: flex-start;
    }

    .wooproduct-exporter__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .wc-pce-template-grid {
        grid-template-columns: 1fr;
    }

    .wooproduct-exporter__submit {
        flex-direction: column;
        align-items: stretch;
    }

    .wooproduct-exporter__submit .button {
        width: 100%;
    }
}
