.px-dm-header,
.plp-dm-header {
    background: linear-gradient(135deg, #FF6C3B 0%, #E65100 100%);
    color: #ffffff;
    padding: 24px 28px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 12px rgba(255, 108, 59, 0.2);
}

.px-dm-header h1,
.plp-dm-header h1 {
    color: #ffffff;
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.px-dm-header p,
.plp-dm-header p {
    margin: 0;
    font-size: 14px;
    color: #ffffff !important;
}

.px-dm-header p strong,
.plp-dm-header p strong {
    color: #000000 !important;
}

.px-dm-card,
.plp-dm-card {
    background: #ffffff;
    padding: 28px 32px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    border-top: none;
    margin-bottom: 24px;
}

.px-extensions-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.px-extensions-tabs .nav-tab {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    margin: 0;
    transition: all 0.2s;
    text-decoration: none;
}

.px-extensions-tabs .nav-tab:hover {
    background: #ffffff;
    color: #FF6C3B;
}

.px-extensions-tabs .nav-tab.nav-tab-active {
    background: #ffffff;
    color: #FF6C3B;
    border-color: #e2e8f0;
    border-top: 3px solid #FF6C3B;
    margin-bottom: -2px;
}

.px-dm-section-title,
.plp-dm-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 28px 0 6px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.px-dm-form-table th,
.plp-dm-form-table th {
    font-weight: 600;
    color: #334155;
    vertical-align: middle;
    width: 220px;
    font-size: 14px;
    padding: 14px 10px 14px 0;
}

.px-dm-form-table td,
.plp-dm-form-table td {
    vertical-align: middle;
    padding: 14px 0;
}

.px-dm-field-desc,
.plp-dm-field-desc {
    display: inline-block;
    margin-left: 12px;
    font-size: 13px;
    color: #64748b;
    vertical-align: middle;
}

.px-dm-select,
.plp-dm-select,
.px-dm-wrap input[type="text"],
.plp-dm-wrap input[type="text"],
.px-dm-wrap input[type="number"],
.plp-dm-wrap input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: none;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.px-dm-select:focus,
.plp-dm-select:focus,
.px-dm-wrap input[type="text"]:focus,
.plp-dm-wrap input[type="text"]:focus,
.px-dm-wrap input[type="number"]:focus,
.plp-dm-wrap input[type="number"]:focus {
    border-color: #FF6C3B;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 108, 59, 0.2);
}

.px_dm_toggle_switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    vertical-align: middle;
}

.px_dm_toggle_switch input {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.px_dm_toggle_slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.25s;
    border-radius: 26px;
}

.px_dm_toggle_slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.25s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.px_dm_toggle_switch input:checked+.px_dm_toggle_slider {
    background-color: #FF6C3B;
}

.px_dm_toggle_switch input:checked+.px_dm_toggle_slider:before {
    transform: translateX(22px);
}

.px_dm_color_wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.px_dm_swatch {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    overflow: hidden;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.px_dm_native_color {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 56px;
    height: 56px;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

.px_dm_hex_input {
    width: 200px !important;
    max-width: 320px !important;
    font-family: monospace, sans-serif !important;
    font-size: 12px !important;
}

.px_dm_copy_fetched_btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.px_dm_copy_fetched_btn:hover {
    background: #FF6C3B;
    border-color: #FF6C3B;
    color: #ffffff;
}

.px_dm_base_table {
    width: 100%;
    max-width: 820px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.px_dm_base_table thead tr {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.px_dm_base_table th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-align: left;
    border-bottom: 2px solid #cbd5e1;
}

.px_dm_base_th_var {
    width: 42%;
}

.px_dm_base_th_fetched {
    width: 29%;
}

.px_dm_base_th_dark {
    width: 29%;
}

.px_dm_base_row td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.px_dm_base_row:last-child td {
    border-bottom: none;
}

.px_dm_base_row:nth-child(even) {
    background: #fafbfc;
}

.px_dm_base_row:hover {
    background: #f1f5f9;
}

.px_dm_base_td_var {
    display: table-cell;
}

.px_dm_base_td_var .px_dm_base_title {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 4px;
}

.px_dm_base_td_var .px_dm_var_tag {
    display: inline-block;
}
.px_dm_var_tag {
    background: #e2e8f0;
    color: #475569;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
}

.px_dm_color_cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.px_dm_color_hex_label {
    font-size: 11px;
    color: #475569;
    font-family: monospace, sans-serif;
    font-weight: 500;
    word-break: break-all;
    max-width: 240px;
    display: inline-block;
}

.px_dm_not_fetched {
    color: #94a3b8;
    font-size: 13px;
}

.px_dm_palette_row {
    display: table-row;
}

.px_dm_grip {
    color: #94a3b8;
    cursor: grab;
    font-size: 16px;
    line-height: 1;
    user-select: none;
}

.px_dm_palette_var_input {
    flex: 1;
    min-width: 200px;
    font-family: monospace;
}

.px_dm_palette_del_btn {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #000000;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.px_dm_palette_del_btn:hover {
    background: #fca5a5;
}

.px_dm_add_row_btn {
    margin-top: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #475569;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.px_dm_add_row_btn:hover {
    background: #f1f5f9;
    border-color: #FF6C3B;
    color: #FF6C3B;
}

.px-dm-wrap .button-primary,
.plp-dm-wrap .button-primary {
    background: #FF6C3B;
    border-color: #e55b2b;
    border-radius: 6px;
    padding: 4px 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(255, 108, 59, 0.15);
}

.px-dm-wrap .button-primary:hover,
.plp-dm-wrap .button-primary:hover {
    background: #e55b2b;
    border-color: #d84b1b;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(255, 108, 59, 0.25);
}

.px-dm-floating-switch,
.plp-dm-floating-switch {
    position: fixed;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--px-dm-btn-bg, #1e222d);
    color: var(--px-dm-btn-color, #ef8451);
    padding: var(--px-dm-btn-padding, 12px);
    border-radius: var(--px-dm-btn-radius, 50px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s;
    user-select: none;
    outline: none;
    border: none;
}

.px-dm-floating-switch:hover,
.plp-dm-floating-switch:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.px-dm-floating-switch:active,
.plp-dm-floating-switch:active {
    transform: scale(0.95);
}

.px-dm-floating-switch:focus-visible,
.plp-dm-floating-switch:focus-visible {
    box-shadow: 0 0 0 3px #FF6C3B, 0 6px 20px rgba(0, 0, 0, 0.25);
}

.px-dm-pos-bottom-right,
.plp-dm-pos-bottom-right {
    bottom: 24px;
    right: 24px;
}

.px-dm-pos-bottom-left,
.plp-dm-pos-bottom-left {
    bottom: 24px;
    left: 24px;
}

.px-dm-pos-top-right,
.plp-dm-pos-top-right {
    top: 24px;
    right: 24px;
}

.px-dm-pos-top-left,
.plp-dm-pos-top-left {
    top: 24px;
    left: 24px;
}

.px-dm-icon,
.plp-dm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.px-dm-icon svg,
.plp-dm-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.px-dm-icon-sun,
.plp-dm-icon-sun {
    display: none;
}

.px-dm-icon-moon,
.plp-dm-icon-moon {
    display: flex;
}

html.px-dark-mode .px-dm-icon-sun,
html.plp-dark-mode .plp-dm-icon-sun,
:root[data-px-theme="dark"] .px-dm-icon-sun,
:root[data-plp-theme="dark"] .plp-dm-icon-sun {
    display: flex;
}

html.px-dark-mode .px-dm-icon-moon,
html.plp-dark-mode .plp-dm-icon-moon,
:root[data-px-theme="dark"] .px-dm-icon-moon,
:root[data-plp-theme="dark"] .plp-dm-icon-moon {
    display: none;
}

html.px-theme-transitioning,
html.px-theme-transitioning *,
html.px-theme-transitioning *:before,
html.px-theme-transitioning *:after,
html.plp-theme-transitioning,
html.plp-theme-transitioning *,
html.plp-theme-transitioning *:before,
html.plp-theme-transitioning *:after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, fill 0.3s ease, stroke 0.3s ease !important;
    transition-delay: 0s !important;
}