/* ThreadX / garvex-saas visual tokens (CDN-friendly, no @apply) */
:root {
    --tx-surface: #f8f9fb;
    --tx-line: #e5e7eb;
    --tx-muted: #6b7280;
    --tx-input-bg: #f3f4f6;
    --tx-brand: #22d3ee;
    --tx-brand-deep: #0e7490;
    --tx-ink-950: #071826;
    --tx-ink-900: #0d2638;
}

html {
    font-size: 14px;
}

body.tx-body {
    color: #111827;
    background: var(--tx-surface);
    font-size: 0.875rem;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgb(34 211 238 / 0.45);
    outline-offset: 2px;
}

.tx-panel {
    border-radius: 0.5rem;
    border: 1px solid var(--tx-line);
    background: #fff;
}

.tx-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid var(--tx-line);
    background-color: var(--tx-input-bg);
    padding: 0.5rem 0.625rem;
    font-size: 13px;
    color: #111827;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.tx-input::placeholder {
    color: #9ca3af;
}

.tx-input:focus {
    border-color: var(--tx-brand);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgb(34 211 238 / 0.18);
    outline: none;
}

.tx-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
}

.tx-primary {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 0.5rem;
    border: none;
    background: linear-gradient(to bottom right, #22d3ee, #0e7490);
    padding: 0.375rem 0.875rem;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    cursor: pointer;
    transition: opacity 0.15s, filter 0.15s;
}

.tx-primary:hover {
    filter: brightness(1.05);
}

.tx-primary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.tx-primary-navy {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 0.5rem;
    border: none;
    background: #0d2638;
    padding: 0.375rem 0.875rem;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    cursor: pointer;
    transition: background-color 0.15s, filter 0.15s;
}

.tx-primary-navy:hover {
    background: #071826;
}

.tx-primary-navy:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.tx-secondary {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 0.5rem;
    border: 1px solid var(--tx-line);
    background: #fff;
    padding: 0.375rem 0.875rem;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s;
}

.tx-secondary:hover {
    background: #f9fafb;
}

.tx-ghost {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 0.5rem;
    padding: 0.375rem 0.875rem;
    font-size: 13px;
    font-weight: 500;
    color: var(--tx-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.tx-ghost:hover {
    background: var(--tx-input-bg);
    color: #111827;
}

.tx-kicker {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
}

.tx-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.tx-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .tx-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .tx-form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tx-form-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .tx-form-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tx-form-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tx-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.tx-form-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tx-table-wrap {
    overflow-x: auto;
}

.tx-table {
    width: 100%;
    min-width: 680px;
    font-size: 13px;
}

.tx-table thead {
    background: #f9fafb;
}

.tx-table th {
    white-space: nowrap;
    padding: 0.625rem 1rem;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tx-muted);
}

.tx-table tbody {
    divide-color: var(--tx-line);
}

.tx-table tbody tr {
    border-top: 1px solid var(--tx-line);
    transition: background-color 0.15s;
}

.tx-table tbody tr:hover {
    background: #f9fafb;
}

.tx-table td {
    white-space: nowrap;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #111827;
}

.tx-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--tx-line);
}

.tx-list-row:first-child {
    border-top: none;
}

.tx-alert-success {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    padding: 0.625rem 1rem;
    font-size: 13px;
    color: #047857;
}

.tx-alert-error {
    font-size: 12px;
    color: #e11d48;
    margin-top: 0.25rem;
}

.tx-badge-on {
    font-size: 12px;
    font-weight: 600;
    color: #059669;
}

.tx-badge-off {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
}

.tx-datatable-loading {
    opacity: 0.85;
}

.tx-datatable-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid var(--tx-line);
    padding: 0.625rem 1rem;
}

@media (min-width: 640px) {
    .tx-datatable-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.tx-datatable-toolbar-start {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.tx-datatable-toolbar-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tx-datatable-search {
    position: relative;
    min-width: 180px;
    flex: 1;
    max-width: 24rem;
}

.tx-datatable-search-icon {
    pointer-events: none;
    position: absolute;
    left: 0.625rem;
    top: 50%;
    height: 0.875rem;
    width: 0.875rem;
    transform: translateY(-50%);
    color: #9ca3af;
}

.tx-datatable-search-input {
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid var(--tx-line);
    background: #fff;
    padding: 0.375rem 0.75rem 0.375rem 2rem;
    font-size: 12px;
    color: #111827;
}

.tx-datatable-search-input:focus {
    border-color: #06b6d4;
    outline: none;
    box-shadow: 0 0 0 1px #06b6d4;
}

.tx-datatable-search-input::placeholder {
    color: #9ca3af;
}

.tx-datatable-search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0.25rem;
    padding: 0.125rem;
    color: #9ca3af;
}

.tx-datatable-search-clear:hover {
    background: #f1f5f9;
    color: #374151;
}

.tx-datatable-per-page {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 11px;
    color: var(--tx-muted);
}

.tx-datatable-per-page-select {
    border-radius: 0.375rem;
    border: 1px solid var(--tx-line);
    background: #fff;
    padding: 0.375rem 0.5rem;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
}

.tx-datatable-columns-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 0.375rem;
    border: 1px solid var(--tx-line);
    background: #fff;
    padding: 0.375rem 0.625rem;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
}

.tx-datatable-columns-btn:hover {
    background: #f9fafb;
}

.tx-datatable-columns-menu {
    position: absolute;
    right: 0;
    z-index: 50;
    margin-top: 0.375rem;
    max-height: 18rem;
    width: 14rem;
    overflow-y: auto;
    border-radius: 0.5rem;
    border: 1px solid var(--tx-line);
    background: #fff;
    padding: 0.375rem 0;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.tx-datatable-columns-menu-title {
    padding: 0.25rem 0.75rem 0.375rem;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
}

.tx-datatable-columns-item {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 12px;
    color: #111827;
}

.tx-datatable-columns-item:hover {
    background: #f9fafb;
}

.tx-datatable-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tx-muted);
}

.tx-datatable-sort-btn:hover {
    color: #111827;
}

.tx-datatable-footer {
    display: flex;
    min-height: 3rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid var(--tx-line);
    padding: 0.625rem 1rem;
}

.tx-datatable-summary {
    font-size: 11px;
    font-weight: 500;
    color: var(--tx-muted);
}

.tx-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.tx-pagination-link {
    display: grid;
    min-height: 1.75rem;
    min-width: 1.75rem;
    place-items: center;
    border-radius: 0.375rem;
    padding: 0 0.5rem;
    font-size: 11px;
    font-weight: 600;
    color: var(--tx-muted);
}

.tx-pagination-link:hover:not(.is-active):not(.is-disabled) {
    background: #f3f4f6;
}

.tx-pagination-link.is-active {
    background: linear-gradient(to bottom right, #22d3ee, #0e7490);
    color: #fff;
}

.tx-pagination-link.is-disabled {
    color: #d1d5db;
    cursor: default;
}

.tx-pagination-ellipsis {
    display: grid;
    min-height: 1.75rem;
    min-width: 1.75rem;
    place-items: center;
    font-size: 11px;
    color: #d1d5db;
}

.tx-datatable-search-input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.tx-table td a:not([aria-label]) {
    color: #0891b2;
    font-weight: 600;
}

.tx-table td a:not([aria-label]):hover {
    color: #0e7490;
}

/* Product listing action icons + modals */
.tx-action-icons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.tx-icon-btn {
    display: inline-grid;
    height: 1.75rem;
    width: 1.75rem;
    place-items: center;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.tx-icon-btn svg {
    height: 1rem;
    width: 1rem;
}

.tx-icon-btn:hover {
    background: #f3f4f6;
    color: #0d2638;
}

.tx-icon-btn.is-active {
    color: #0d2638;
    background: #eef2f7;
}

.tx-icon-btn.is-featured.is-active {
    color: #ca8a04;
}

.tx-icon-btn.is-top.is-active {
    color: #b45309;
}

.tx-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tx-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgb(7 24 38 / 0.55);
    backdrop-filter: blur(2px);
}

.tx-modal-panel {
    width: min(100%, 32rem);
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.18);
}

.tx-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.5rem;
}

.tx-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0d2638;
}

.tx-modal-close {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
}

.tx-modal-close:hover {
    color: #4b5563;
}

.tx-modal-body {
    padding: 0.75rem 1.25rem 1.25rem;
}

.tx-modal-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4b5563;
}

.tx-modal-input {
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 0.625rem 0.75rem;
    font-size: 13px;
    color: #111827;
    resize: vertical;
}

.tx-modal-input:disabled {
    background: #f3f4f6;
    color: #6b7280;
}

.tx-modal-input:focus {
    outline: none;
    border-color: #0d2638;
    box-shadow: 0 0 0 3px rgb(13 38 56 / 0.12);
}

.tx-modal-submit {
    display: flex;
    width: 100%;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.5rem;
    background: #0d2638;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.tx-modal-submit:hover {
    filter: brightness(1.08);
}

.tx-modal-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.tx-colour-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
}

.tx-product-detail-panel {
    width: min(100%, 56rem);
    max-height: min(92vh, 52rem);
    overflow: auto;
    padding-bottom: 0.25rem;
}

.tx-product-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem 0.25rem;
}

.tx-product-detail-eyebrow {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.tx-product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 0;
    padding: 0.5rem 1.25rem 1.5rem;
}

.tx-product-detail-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 22rem;
    border-radius: 0.75rem;
    background:
        linear-gradient(180deg, #f4f6f8 0%, #eef1f4 100%);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    padding: 1.5rem;
}

.tx-product-detail-image {
    width: 100%;
    max-height: 28rem;
    object-fit: contain;
    display: block;
}

.tx-product-detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.8125rem;
    font-weight: 600;
}

.tx-product-detail-placeholder svg {
    width: 2.5rem;
    height: 2.5rem;
}

.tx-product-detail-info {
    padding: 0.5rem 0 0.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tx-product-detail-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 700;
    color: #0d2638;
    letter-spacing: -0.01em;
}

.tx-product-detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.tx-product-detail-price {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0d2638;
    font-variant-numeric: tabular-nums;
}

.tx-product-detail-price.is-muted {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6b7280;
}

.tx-product-detail-compare {
    margin: 0;
    font-size: 0.9375rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.tx-product-detail-summary {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #4b5563;
}

.tx-product-detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0.875rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.tx-product-detail-meta dt {
    margin: 0 0 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.tx-product-detail-meta dd {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    word-break: break-word;
}

.tx-product-detail-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tx-product-detail-selected {
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #0d2638;
}

.tx-product-detail-empty {
    margin: 0;
    font-size: 0.8125rem;
    color: #6b7280;
}

.tx-product-swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tx-product-swatch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    padding: 0.25rem 0.625rem 0.25rem 0.25rem;
    cursor: pointer;
    color: #374151;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tx-product-swatch:hover {
    border-color: #9ca3af;
}

.tx-product-swatch.is-active {
    border-color: #0d2638;
    box-shadow: 0 0 0 2px rgb(13 38 56 / 0.12);
}

.tx-product-swatch-chip {
    width: 1.35rem;
    height: 1.35rem;
    flex: none;
    border-radius: 999px;
    border: 1px solid rgb(0 0 0 / 0.12);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tx-product-swatch-name {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 8rem;
}

.tx-product-size-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tx-product-size-chip {
    display: inline-flex;
    min-width: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: #fff;
    padding: 0.4rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}

.tx-product-detail-specs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tx-product-detail-specs li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #4b5563;
}

.tx-product-detail-specs strong {
    color: #111827;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 800px) {
    .tx-product-detail-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tx-product-detail-info {
        padding-left: 0;
    }

    .tx-product-detail-media {
        min-height: 16rem;
    }

    .tx-product-detail-meta {
        grid-template-columns: 1fr;
    }
}

/* Payment / settings form layout */
.tx-settings-tab {
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    cursor: pointer;
}

.tx-settings-tab:hover {
    color: #111827;
}

.tx-settings-tab-active {
    border-color: var(--tx-line);
    background: #fff;
    color: #2563eb;
    box-shadow: inset 0 2px 0 #2563eb;
}

.tx-settings-row {
    display: grid;
    grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
    gap: 1rem 1.5rem;
    align-items: center;
}

.tx-settings-row-top {
    align-items: start;
}

.tx-settings-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #374151;
}

.tx-settings-control {
    min-width: 0;
}

.tx-rte {
    overflow: hidden;
    border: 1px solid var(--tx-line);
    border-radius: 0.5rem;
    background: #fff;
}

.tx-rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 1px solid var(--tx-line);
    background: #f9fafb;
    padding: 0.375rem 0.5rem;
}

.tx-rte-btn {
    display: inline-flex;
    height: 1.75rem;
    min-width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 12px;
    cursor: pointer;
}

.tx-rte-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.tx-rte-sep {
    display: inline-block;
    width: 1px;
    height: 1rem;
    margin: 0 0.25rem;
    background: #d1d5db;
}

.tx-rte-select {
    height: 1.75rem;
    border: 1px solid var(--tx-line);
    border-radius: 0.25rem;
    background: #fff;
    padding: 0 0.375rem;
    font-size: 12px;
    color: #374151;
}

.tx-rte-body {
    min-height: 7.5rem;
    padding: 0.75rem 0.875rem;
    font-size: 13px;
    line-height: 1.55;
    color: #111827;
    outline: none;
}

.tx-rte-body:focus {
    box-shadow: inset 0 0 0 2px rgb(34 211 238 / 0.18);
}

.tx-rte-body p {
    margin: 0 0 0.5rem;
}

.tx-rte-body ul,
.tx-rte-body ol {
    margin: 0 0 0.5rem;
    padding-left: 1.25rem;
}

@media (max-width: 640px) {
    .tx-settings-row,
    .tx-settings-row-top {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.tx-color-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tx-color-swatch {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid var(--tx-line);
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.tx-color-swatch::-webkit-color-swatch-wrapper {
    padding: 0;
}

.tx-color-swatch::-webkit-color-swatch {
    border: none;
    border-radius: 0.375rem;
}

.tx-color-swatch::-moz-color-swatch {
    border: none;
    border-radius: 0.375rem;
}

.tx-media-preview {
    display: flex;
    min-height: 5.5rem;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--tx-line);
    border-radius: 0.5rem;
    background: #f9fafb;
    padding: 0.75rem;
}

.tx-media-preview-sm {
    min-height: 4rem;
    justify-content: flex-start;
}

.tx-media-preview-img {
    display: block;
    max-width: 100%;
    object-fit: contain;
}


