/**
 * Dynamic SKU Table - 重新设计的样式
 */

/* 颜色属性样式 - 通过CSS而非HTML实现颜色显示 */
.dst-attribute-value[data-attribute*="color"],
.dst-attribute-value[data-attribute*="colour"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap; /* 允许颜色标签和文本换行 */
    line-height: 1.4;
}

.dst-attribute-value[data-attribute*="color"]::before,
.dst-attribute-value[data-attribute*="colour"]::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: inline-block;
    background-color: var(--color-value, #ccc);
}

/* 常见颜色值的CSS变量 */
.dst-attribute-value[data-attribute*="color"][data-value="red"]::before,
.dst-attribute-value[data-attribute*="colour"][data-value="red"]::before { --color-value: #ff0000; }

.dst-attribute-value[data-attribute*="color"][data-value="blue"]::before,
.dst-attribute-value[data-attribute*="colour"][data-value="blue"]::before { --color-value: #0000ff; }

.dst-attribute-value[data-attribute*="color"][data-value="green"]::before,
.dst-attribute-value[data-attribute*="colour"][data-value="green"]::before { --color-value: #008000; }

.dst-attribute-value[data-attribute*="color"][data-value="yellow"]::before,
.dst-attribute-value[data-attribute*="colour"][data-value="yellow"]::before { --color-value: #ffff00; }

.dst-attribute-value[data-attribute*="color"][data-value="black"]::before,
.dst-attribute-value[data-attribute*="colour"][data-value="black"]::before { --color-value: #000000; }

.dst-attribute-value[data-attribute*="color"][data-value="white"]::before,
.dst-attribute-value[data-attribute*="colour"][data-value="white"]::before { --color-value: #ffffff; }

.dst-attribute-value[data-attribute*="color"][data-value="gray"]::before,
.dst-attribute-value[data-attribute*="colour"][data-value="gray"]::before { --color-value: #808080; }

.dst-attribute-value[data-attribute*="color"][data-value="orange"]::before,
.dst-attribute-value[data-attribute*="colour"][data-value="orange"]::before { --color-value: #ffa500; }

.dst-attribute-value[data-attribute*="color"][data-value="purple"]::before,
.dst-attribute-value[data-attribute*="colour"][data-value="purple"]::before { --color-value: #800080; }

.dst-attribute-value[data-attribute*="color"][data-value="pink"]::before,
.dst-attribute-value[data-attribute*="colour"][data-value="pink"]::before { --color-value: #ffc0cb; }

.dst-attribute-value[data-attribute*="color"][data-value="brown"]::before,
.dst-attribute-value[data-attribute*="colour"][data-value="brown"]::before { --color-value: #a52a2a; }

/* 十六进制颜色值的动态样式 */
.dst-attribute-value[data-attribute*="color"][data-value^="#"]::before,
.dst-attribute-value[data-attribute*="colour"][data-value^="#"]::before {
    background-color: attr(data-value color);
}

/* 外部包装器 - 确保表格独占一行且宽度与内容一致 */
.dst-sku-table-wrapper {
    width: 100%;
    margin: 40px 0;
    clear: both;
    position: relative;
}

/* 确保表格在主题布局中独占一行 */
.product .dst-sku-table-wrapper,
.woocommerce .dst-sku-table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    clear: both !important;
    display: block !important;
}

/* 如果表格在column布局内，强制突破 */
.column .dst-sku-table-wrapper,
.row .dst-sku-table-wrapper {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 在小屏幕上调整 */
@media (max-width: 768px) {
    .column .dst-sku-table-wrapper,
    .row .dst-sku-table-wrapper {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 15px;
    }
}

/* 备用清除包装器 - 使用WooCommerce原生钩子时的样式 */
.dst-clear-both-wrapper {
    width: 100% !important;
    clear: both !important;
    margin: 40px 0 !important;
    float: none !important;
    display: block !important;
    position: relative;
}

/* ==================== 报价模态框样式 ==================== */
.dst-quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.dst-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.dst-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 650px; /* 减小最大宽度 */
    max-height: 85vh; /* 减小最大高度 */
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.dst-modal-header {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    padding: 16px 24px; /* 减小内边距 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0; /* 防止压缩 */
}

.dst-modal-header h3 {
    margin: 0;
    font-size: 18px; /* 减小字体 */
    font-weight: 600;
}

.dst-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px; /* 减小字体 */
    width: 32px; /* 减小尺寸 */
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dst-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.dst-modal-body {
    display: flex;
    flex: 1; /* 占据剩余空间 */
    min-height: 0; /* 允许flex收缩 */
    overflow-y: auto; /* 在父容器层面处理滚动 */
    max-height: calc(85vh - 70px); /* 明确的最大高度限制 */
    /* 添加滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.dst-modal-body::-webkit-scrollbar {
    width: 6px;
}

.dst-modal-body::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.dst-modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
    border: 1px solid #f5f5f5;
}

.dst-modal-body::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.dst-modal-left {
    flex: 1;
    padding: 20px; /* 减小内边距 */
    border-right: 1px solid #f0f0f0;
    min-width: 0;
    height: auto; /* 移除固定高度，让内容自然流动 */
}

.dst-modal-right {
    flex: 1;
    padding: 20px; /* 减小内边距 */
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    height: auto; /* 移除固定高度，让内容自然流动 */
    min-width: 0; /* 允许收缩 */
}

/* 表单样式 */
.dst-form-group {
    margin-bottom: 16px; /* 减小间距 */
}

.dst-form-group label {
    display: block;
    margin-bottom: 6px; /* 减小间距 */
    font-weight: 600;
    color: #333;
    font-size: 13px; /* 稍小字体 */
}

.dst-form-group input,
.dst-form-group textarea {
    width: 100%;
    padding: 10px 14px; /* 减小内边距 */
    border: 2px solid #e5e5e5;
    border-radius: 6px; /* 稍小圆角 */
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dst-form-group input:focus,
.dst-form-group textarea:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.dst-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 报价摘要 */
.dst-quote-summary {
    background: #f0f7ff;
    border: 1px solid #e3f2fd;
    border-radius: 6px; /* 稍小圆角 */
    padding: 16px; /* 减小内边距 */
    margin: 20px 0; /* 减小外边距 */
}

.dst-quote-summary h4 {
    margin: 0 0 12px 0;
    color: #1976d2;
    font-size: 15px; /* 稍小字体 */
    font-weight: 600;
}

.dst-quote-product-info > div {
    margin-bottom: 6px; /* 减小间距 */
    font-size: 13px; /* 稍小字体 */
}

.dst-quote-product-name {
    font-weight: 600;
    color: #333;
}

.dst-quote-product-sku {
    color: #666;
    font-size: 13px;
}

.dst-quote-product-price {
    font-weight: 700;
    color: #e74c3c;
    font-size: 16px;
}

/* 按钮样式 */
.dst-form-actions {
    display: flex;
    gap: 12px; /* 减小间距 */
    margin-top: 20px; /* 减小外边距 */
}

.dst-submit-quote {
    flex: 1;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: none;
    padding: 12px 20px; /* 减小内边距 */
    border-radius: 6px; /* 稍小圆角 */
    font-size: 15px; /* 稍小字体 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dst-submit-quote:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.dst-cancel-quote {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e5e5e5;
    padding: 12px 20px; /* 减小内边距 */
    border-radius: 6px; /* 稍小圆角 */
    font-size: 15px; /* 稍小字体 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dst-cancel-quote:hover {
    background: #e9ecef;
    border-color: #ccc;
}

/* 右侧介绍内容 */
.dst-quote-info h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 16px; /* 稍小字体 */
    font-weight: 600;
}

.dst-quote-features {
    flex: 1;
}

.dst-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px; /* 减小间距 */
}

.dst-feature-icon {
    font-size: 20px; /* 稍小图标 */
    margin-right: 12px; /* 减小间距 */
    flex-shrink: 0;
    margin-top: 1px;
}

.dst-feature-content h5 {
    margin: 0 0 6px 0;
    color: #333;
    font-size: 15px; /* 稍小字体 */
    font-weight: 600;
}

.dst-feature-content p {
    margin: 0;
    color: #666;
    font-size: 13px; /* 稍小字体 */
    line-height: 1.4; /* 稍小行高 */
}

.dst-quote-contact {
    background: white;
    border-radius: 6px; /* 稍小圆角 */
    padding: 16px; /* 减小内边距 */
    border: 1px solid #e5e5e5;
}

.dst-quote-contact h5 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 15px; /* 稍小字体 */
    font-weight: 600;
}

.dst-quote-contact > p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 13px; /* 稍小字体 */
}

.dst-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dst-contact-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.dst-icon-phone,
.dst-icon-email {
    margin-right: 10px;
    font-size: 16px;
}

/* 响应式设计 */

/* 大屏幕优化 (1200px+) */
@media (min-width: 1200px) {
    .dst-modal-content {
        max-width: 700px; /* 大屏幕稍大一点 */
    }
}

/* 中等屏幕优化 (1024px - 1199px) */
@media (max-width: 1199px) {
    .dst-modal-content {
        max-width: 600px;
    }

    .dst-quote-features {
        margin-bottom: 15px;
    }
}

/* 平板优化 (769px - 1023px) */
@media (max-width: 1023px) {
    .dst-modal-content {
        max-width: 550px;
        max-height: 88vh;
    }

    .dst-modal-header {
        padding: 14px 20px;
    }

    .dst-modal-left,
    .dst-modal-right {
        padding: 18px;
    }

    .dst-feature-item {
        margin-bottom: 16px;
    }
}

/* 小平板优化 (600px - 768px) */
@media (max-width: 768px) {
    .dst-modal-content {
        width: 96%;
        max-width: none; /* 移除最大宽度限制 */
        max-height: 90vh;
    }

    .dst-modal-body {
        flex-direction: column;
        max-height: calc(90vh - 70px); /* 减小头部高度 */
        overflow-y: auto; /* 允许整个body滚动 */
    }

    .dst-modal-left {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 18px;
        height: auto; /* 重置高度设置 */
        max-height: none; /* 移除最大高度限制 */
        overflow-y: visible; /* 让外层body处理滚动 */
    }

    .dst-modal-right {
        padding: 18px;
        height: auto; /* 重置高度设置 */
        max-height: none; /* 移除最大高度限制 */
        overflow-y: visible; /* 让外层body处理滚动 */
    }

    .dst-form-actions {
        flex-direction: column;
    }

    .dst-quote-features {
        margin-bottom: 18px;
    }

    /* 右侧内容在小屏幕上简化 */
    .dst-feature-content p {
        display: none; /* 隐藏描述文字，只保留标题 */
    }

    .dst-quote-contact > p {
        display: none; /* 隐藏说明文字 */
    }
}

/* 手机横屏优化 (480px - 599px) */
@media (max-width: 599px) {
    .dst-modal-content {
        width: 98%;
        max-height: 92vh;
    }

    .dst-modal-header {
        padding: 12px 16px;
    }

    .dst-modal-header h3 {
        font-size: 16px;
    }

    .dst-modal-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .dst-modal-left,
    .dst-modal-right {
        padding: 16px;
    }

    .dst-form-group {
        margin-bottom: 14px;
    }

    .dst-form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .dst-form-group input,
    .dst-form-group textarea {
        padding: 8px 12px;
    }

    .dst-quote-summary {
        padding: 14px;
        margin: 16px 0;
    }

    .dst-quote-summary h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .dst-form-actions {
        margin-top: 16px;
    }

    .dst-submit-quote,
    .dst-cancel-quote {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* 手机竖屏优化 (≤ 479px) */
@media (max-width: 479px) {
    .dst-modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }

    .dst-modal-header {
        padding: 10px 14px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .dst-modal-header h3 {
        font-size: 15px;
    }

    .dst-modal-close {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    .dst-modal-body {
        max-height: calc(100vh - 60px); /* 减去头部高度 */
        overflow-y: auto; /* 确保全屏模式下也能滚动 */
    }

    .dst-modal-left,
    .dst-modal-right {
        padding: 14px;
        height: auto; /* 重置高度设置 */
        max-height: none; /* 移除最大高度限制 */
        overflow-y: visible; /* 让外层body处理滚动 */
    }

    /* 进一步简化表单 */
    .dst-form-group {
        margin-bottom: 12px;
    }

    .dst-form-group label {
        font-size: 11px;
    }

    .dst-form-group input,
    .dst-form-group textarea {
        padding: 6px 10px;
        font-size: 13px;
    }

    /* 简化右侧内容 */
    .dst-feature-icon {
        font-size: 16px;
        margin-right: 8px;
    }

    .dst-feature-content h5 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .dst-quote-info h4 {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .dst-quote-contact {
        padding: 12px;
    }

    .dst-quote-contact h5 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .dst-contact-item {
        font-size: 12px;
    }
}

/* 主容器 */
.dst-sku-table-container {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ==================== 桌面端布局 ==================== */
.dst-desktop-layout {
    display: block;
}

/* 确保桌面端在大屏幕下的正确显示 */
@media (min-width: 1025px) {
    .dst-desktop-layout {
        display: block !important;
    }

    .dst-mobile-layout {
        display: none !important;
    }

    /* 确保表格在大屏幕下正常显示 */
    .dst-variation-table {
        display: table !important;
        width: 100% !important;
        table-layout: auto !important;
    }

    .dst-variation-table thead,
    .dst-variation-table tbody,
    .dst-variation-table tfoot {
        display: table-header-group !important;
    }

    .dst-variation-table tbody {
        display: table-row-group !important;
    }

    .dst-variation-table tr {
        display: table-row !important;
    }

    .dst-variation-table th,
    .dst-variation-table td {
        display: table-cell !important;
        width: auto !important;
    }

    /* 确保每列都正确显示 */
    .dst-attribute-header,
    .dst-attribute-cell,
    .dst-price-header,
    .dst-price-cell,
    .dst-stock-header,
    .dst-stock-cell {
        display: table-cell !important;
        width: auto !important;
        float: none !important;
        position: static !important;
    }

    /* 防止flex影响表格显示 */
    .dst-sku-table-section {
        overflow: visible !important;
    }
}

/* 中等屏幕断点修复 */
@media (min-width: 769px) and (max-width: 1024px) {
    .dst-desktop-layout {
        display: block !important;
    }

    .dst-mobile-layout {
        display: none !important;
    }

    .dst-variation-table {
        display: table !important;
        width: 100% !important;
    }

    /* 平板端滚动优化 */
    .dst-table-scroll-container {
        min-width: 100%;
        max-width: 100%;
    }

    .dst-variation-table {
        min-width: 500px; /* 平板端稍小的最小宽度 */
    }
}

.dst-table-main {
    display: flex;
    gap: 0;
    align-items: stretch;
    width: 100%;
    min-height: 450px; /* 设置固定高度 */
}

/* 左侧表格区域 */
.dst-sku-table-section {
    flex: 3; /* 左侧占3份 */
    min-width: 0;
    border: 1px solid #e5e5e5;
    border-right: none; /* 移除右边框，让两部分连接 */
    border-radius: 8px 0 0 8px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dst-table-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding: 20px 20px 0 20px;
    color: #333;
}

.dst-sku-table {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 滚动容器 - 为列数多的表格提供滚动 */
.dst-table-scroll-container {
    position: relative;
    overflow-x: auto;
    overflow-y: auto; /* 改为垂直滚动 */
    max-width: 100%;
    max-height: 450px; /* 与右侧面板保持一致的高度 */
    flex: 1;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.dst-table-scroll-container::-webkit-scrollbar {
    height: 8px;
    width: 8px; /* 添加垂直滚动条宽度 */
}

.dst-table-scroll-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.dst-table-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
    border: 1px solid #f5f5f5;
}

.dst-table-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* 滚动阴影指示器 - 左右边缘显示阴影提示可滚动 */
.dst-table-scroll-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.dst-table-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
}

.dst-table-scroll-container.dst-scrollable-left::before {
    opacity: 1;
}

.dst-table-scroll-container.dst-scrollable-right::after {
    opacity: 1;
}

/* 列数检测 - 当表格列数超过临界值时自动启用滚动 */
.dst-variation-table[data-column-count="6"],
.dst-variation-table[data-column-count="7"],
.dst-variation-table[data-column-count="8"],
.dst-variation-table[data-column-count="9"],
.dst-variation-table[data-column-count="10"] {
    /* 强制表格使用固定布局以防止内容溢出 */
    table-layout: fixed;
}

/* 为不同列数设置合适的列宽 */
.dst-variation-table[data-column-count="6"] th,
.dst-variation-table[data-column-count="6"] td {
    min-width: 120px;
}

.dst-variation-table[data-column-count="7"] th,
.dst-variation-table[data-column-count="7"] td,
.dst-variation-table[data-column-count="8"] th,
.dst-variation-table[data-column-count="8"] td {
    min-width: 100px;
}

.dst-variation-table[data-column-count="9"] th,
.dst-variation-table[data-column-count="9"] td,
.dst-variation-table[data-column-count="10"] th,
.dst-variation-table[data-column-count="10"] td {
    min-width: 90px;
}

/* 属性列和价格/库存列的特殊处理 */
.dst-attribute-header,
.dst-attribute-cell {
    min-width: 100px !important; /* 减少最小宽度，支持更灵活的布局 */
    max-width: 250px; /* 增加最大宽度以适应换行 */
    /* 确保长文本能够换行而不是被强制压缩 */
    width: auto;
}

.dst-price-header,
.dst-price-cell,
.dst-stock-header,
.dst-stock-cell {
    min-width: 100px !important;
    max-width: 120px;
    text-align: center;
}

/* 触摸设备滚动优化 */
@media (hover: none) and (pointer: coarse) {
    .dst-table-scroll-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* 增大触摸区域 */
    .dst-variation-table th,
    .dst-variation-table td {
        padding: 15px 12px;
    }
}

/* 滚动状态样式 */
.dst-table-scroll-container.dst-needs-scroll {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}


.dst-table-scroll-container.dst-needs-scroll:hover::after {
    opacity: 1;
}

/* 粘性表头 - 当表格很长时保持表头可见 */
.dst-table-scroll-container.dst-scroll-enabled .dst-variation-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
    background: linear-gradient(to bottom, #f8f9fa, #f8f9fa 95%, rgba(248, 249, 250, 0.9));
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 滚动时的平滑过渡 */
.dst-table-scroll-container {
    scroll-behavior: smooth;
    transition: box-shadow 0.3s ease;
}

.dst-table-scroll-container:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 高亮显示当前滚动到的重要列 */
.dst-table-scroll-container.dst-scroll-enabled .dst-variation-table tbody tr:hover td {
    background: rgba(33, 150, 243, 0.05);
}

/* 文本换行处理 - 让长文本自然换行 */
.dst-table-scroll-container.dst-scroll-enabled .dst-attribute-cell {
    max-width: 200px; /* 增加最大宽度以适应换行 */
    overflow: visible;
    white-space: normal; /* 允许换行 */
    word-wrap: break-word; /* 长单词在必要时断开 */
    word-break: break-word; /* 在任意字符间断开，避免溢出 */
    vertical-align: top; /* 顶部对齐，确保多行文本整齐 */
    line-height: 1.4; /* 舒适的行高 */
}

/* 属性单元格基础样式 - 支持换行 */
.dst-attribute-cell {
    font-weight: 500;
    color: #333;
    white-space: normal; /* 默认允许换行 */
    word-wrap: break-word;
    word-break: break-word;
    vertical-align: top;
    line-height: 1.4;
    padding: 12px 15px; /* 确保有足够的内边距 */
    min-height: 20px; /* 最小高度确保单行时也有足够空间 */
}

/* 滚动提示动画 - 首次加载时提示用户可以滚动 */
@keyframes dst-scroll-hint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.dst-table-scroll-container.dst-scroll-indicator::before {
    animation: dst-scroll-hint 2s ease-in-out infinite;
    background: linear-gradient(to right, rgba(33, 150, 243, 0.3), transparent);
}



/* SKU表格样式 */
.dst-variation-table {
    width: 100%;
    min-width: 500px; /* 减少最小宽度，因为现在支持换行 */
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    display: table !important;
    margin: 0;
    /* 允许表格自适应内容 */
    table-layout: auto;
}

/* 确保表格元素在所有情况下都正确显示 */
.dst-variation-table thead,
.dst-variation-table tbody,
.dst-variation-table tfoot {
    display: table-header-group !important;
}

.dst-variation-table tbody {
    display: table-row-group !important;
}

.dst-variation-table tr {
    display: table-row !important;
}

.dst-variation-table th,
.dst-variation-table td {
    display: table-cell !important;
}

.dst-variation-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* td样式在下面统一定义支持换行 */

.dst-variation-table tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
    /* 允许行高自动调整以适应换行内容 */
    height: auto;
    min-height: 48px; /* 最小行高，确保触摸友好的点击区域 */
}

/* 确保所有表格单元格都能适应内容换行 */
.dst-variation-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top; /* 统一顶部对齐 */
    line-height: 1.4; /* 统一舒适的行高 */
    white-space: normal; /* 允许所有单元格内容换行 */
    word-wrap: break-word;
}

.dst-variation-table tbody tr:hover {
    background: #f8f9fa;
}

.dst-variation-table tbody tr.dst-active {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.dst-variation-table tbody tr.dst-active td {
    font-weight: 500;
}

/* 属性单元格样式 - 统一使用上面已定义的换行样式 */

/* 价格单元格 */
.dst-price-cell {
    font-weight: 600;
    color: #2196f3;
    font-size: 16px;
}

/* 库存状态 */
.dst-stock-header {
    text-align: center;
}

.dst-stock-cell {
    text-align: center;
}

.dst-stock-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dst-stock-status.dst-in-stock {
    background: #e8f5e8;
    color: #2e7d32;
}

.dst-stock-status.dst-out-of-stock {
    background: #ffebee;
    color: #c62828;
}

/* 右侧详情面板 */
.dst-details-panel {
    flex: 1; /* 右侧占1份 */
    min-width: 300px; /* 调整最小宽度 */
    background: #f8f9fa;
    border-radius: 0 8px 8px 0; /* 右侧圆角 */
    padding: 0 20px;
    position: relative; /* 改为相对定位 */
    border: 1px solid #e5e5e5;
    border-left: none; /* 移除左边框，让两部分连接 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dst-details-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
}

.dst-details-content {
    flex: 1;
    max-height: 430px; /* 与左侧表格保持一致的高度 */
    overflow: hidden; /* 隐藏溢出内容，不显示滚动条 */
    position: relative;
    /* 自定义滚动条样式 - 仅在需要时通过JavaScript添加 */
    scrollbar-width: none; /* 默认隐藏滚动条 */
}

.dst-details-content::-webkit-scrollbar {
    width: 0px; /* 默认隐藏滚动条 */
    display: none;
}

.dst-details-content.dst-show-scrollbar {
    overflow-y: auto;
    padding-right: 10px; /* 为滚动条留出空间 */
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.dst-details-content.dst-show-scrollbar::-webkit-scrollbar {
    width: 6px;
    display: block;
}

.dst-details-content.dst-show-scrollbar::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.dst-details-content.dst-show-scrollbar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
    border: 1px solid #f5f5f5;
}

.dst-details-content.dst-show-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Show More 按钮样式 */
.dst-show-more-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    border-radius: 0 0 6px 6px;
}

.dst-show-more-btn:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

/* 展开状态样式 */
.dst-sku-table-section.dst-expanded,
.dst-details-panel.dst-expanded {
    min-height: auto !important;
}

/* 展开状态下，左侧表格的最大高度与右侧面板实际高度保持一致 */
.dst-sku-table-section.dst-expanded .dst-table-scroll-container {
    overflow-y: auto !important;
    overflow-x: auto !important;
    /* 移除CSS中的固定高度限制，完全由JavaScript控制 */
    max-height: none !important;
    /* 在展开状态下，高度将通过JavaScript动态设置为与右侧面板一致 */
    /* 确保高度设置能够生效 */
    height: auto !important;
    min-height: 450px !important; /* 保持最小高度 */
}

/* 为展开状态添加更具体的选择器以确保覆盖原有样式 */
.dst-desktop-layout .dst-sku-table-section.dst-expanded .dst-table-scroll-container {
    max-height: none !important;
    height: auto !important;
}

/* 确保JavaScript设置的max-height能够生效 */
.dst-table-scroll-container.dst-expanded-height-set {
    max-height: var(--expanded-height, none) !important;
}

.dst-details-panel.dst-expanded .dst-details-content {
    overflow-y: visible !important;
    max-height: none !important;
}

.dst-sku-table-section.dst-expanded .dst-show-more-btn,
.dst-details-panel.dst-expanded .dst-show-more-btn {
    display: none;
}

/* 淡出效果 - 当内容被截断时显示 */
.dst-details-content::after {
    content: '';
    position: absolute;
    bottom: 40px; /* 为show more按钮留出空间 */
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #f8f9fa);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dst-details-content.dst-needs-truncate::after {
    opacity: 1;
}

.dst-details-content.dst-expanded::after {
    display: none;
}

/* 隐藏数量选择器 - 临时隐藏功能 */
.dst-details-panel .dst-quantity-selector {
    display: none !important;
}

/* 也可以选择隐藏特定的数量控件元素 */
.dst-details-panel .dst-quantity-controls,
.dst-details-panel .dst-qty-minus,
.dst-details-panel .dst-qty-plus,
.dst-details-panel .dst-quantity-input {
    display: none !important;
}

/* 调整动作按钮布局，因为数量选择器被隐藏了 */
.dst-details-panel .dst-actions {
    margin-top: 30px;
}

.dst-details-panel .dst-action-buttons {
    margin-top: 0;
    flex-direction: column;
    gap: 12px;
}

.dst-details-panel .dst-action-buttons .dst-button {
    width: 100%;
    justify-content: center;
}

.dst-placeholder {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

/* 详情内容样式 - 改为上下布局 */
.dst-product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dst-product-image {
    align-self: center;
    width: 200px;
    height: 200px;
    margin-bottom: 10px;
}

.dst-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.dst-product-info {
    flex: 1;
    min-width: 0;
}

.dst-sku-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.dst-sku-number,
.dst-price-info,
.dst-stock-info {
    margin-bottom: 8px;
}

.dst-label {
    font-weight: 500;
    color: #666;
}

.dst-value {
    color: #333;
}

.dst-current-price {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
    margin: 20px 0;
    display: block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #fff9f9 100%);
    border-radius: 4px;
    position: relative;
}

.dst-current-price::before {
    content: '💰';
    margin-right: 8px;
    font-size: 20px;
}

.dst-original-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 8px;
    font-size: 14px;
}

.dst-description,
.dst-attributes-details,
.dst-dimensions {
    margin: 20px 0;
}

.dst-description h5,
.dst-attributes-details h5,
.dst-dimensions h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dst-description p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.dst-attributes-details ul,
.dst-dimensions ul {
    margin: 0;
    padding-left: 20px;
}

.dst-attributes-details li,
.dst-dimensions li {
    margin-bottom: 4px;
    color: #666;
}

/* 数量选择器 */
.dst-quantity-selector {
    margin: 20px 0;
}

.dst-quantity-selector label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.dst-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.dst-qty-minus,
.dst-qty-plus {
    background: #f8f9fa;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #666;
    transition: all 0.2s ease;
}

.dst-qty-minus:hover,
.dst-qty-plus:hover {
    background: #e9ecef;
    color: #333;
}

.dst-quantity-input {
    border: none;
    width: 50px;
    height: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

/* 操作按钮 */
.dst-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.dst-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.dst-add-to-cart {
    background: #2196f3;
    color: white;
    flex: 1;
}

.dst-add-to-cart:hover:not(.dst-disabled) {
    background: #1976d2;
}

.dst-add-to-cart.dst-disabled {
    background: #ccc;
    cursor: not-allowed;
}

.dst-add-to-quote {
    background: #4caf50;
    color: white;
}

.dst-add-to-quote:hover {
    background: #388e3c;
}

/* ==================== 移动端布局 ==================== */
.dst-mobile-layout {
    display: none;
}

.dst-mobile-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding: 0 20px;
    color: #333;
}

/* 移动端变体选择器样式 */
.dst-variant-selector {
    margin-bottom: 20px;
    padding: 0 20px;
}

.dst-attribute-group {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.dst-attribute-group.dst-expanded {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dst-attribute-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.dst-attribute-header:hover {
    background: #e9ecef;
}

.dst-attribute-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.dst-attribute-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dst-selected-value {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.dst-selected-value.dst-has-selection {
    color: #0073aa;
    font-weight: 500;
    font-style: normal;
}

.dst-toggle-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

.dst-attribute-group.dst-expanded .dst-toggle-icon {
    transform: rotate(180deg);
}

.dst-attribute-options {
    padding: 15px 20px;
    background: white;
}

.dst-attribute-option {
    display: block;
    margin-bottom: 10px;
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dst-attribute-option:last-child {
    margin-bottom: 0;
}

.dst-attribute-option:hover {
    border-color: #0073aa;
    background: #f0f7ff;
}

.dst-attribute-option input[type="radio"] {
    display: none;
}

.dst-attribute-option input[type="radio"]:checked + .dst-option-label {
    color: #0073aa;
    font-weight: 600;
}

.dst-attribute-option input[type="radio"]:checked ~ .dst-unavailable-badge {
    display: none;
}

.dst-attribute-option.dst-available input[type="radio"]:checked + .dst-option-label::before {
    content: "✓ ";
}

.dst-option-label {
    font-size: 15px;
    color: #333;
    display: block;
}

.dst-unavailable-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

.dst-attribute-option.dst-unavailable {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
}

.dst-attribute-option.dst-unavailable:hover {
    border-color: #e5e5e5;
    background: #f8f9fa;
}

/* 选中状态摘要 */
.dst-selection-summary {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 0 20px 20px 20px;
}

.dst-selection-summary h4 {
    margin: 0 0 10px 0;
    color: #1976d2;
    font-size: 16px;
    font-weight: 600;
}

.dst-selected-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dst-selected-option-tag {
    background: #1976d2;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

/* SKU结果区域 */
.dst-mobile-results {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 20px 20px 20px;
}

.dst-result-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.dst-result-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.dst-mobile-skus {
    padding: 0;
}

/* 移动端SKU卡片样式 */
.dst-sku-card {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dst-sku-card:last-child {
    border-bottom: none;
}

.dst-sku-card:hover {
    background: #f8f9fa;
}

.dst-sku-card.dst-active {
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
}

.dst-sku-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dst-sku-card-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.dst-sku-card-price {
    font-weight: 700;
    color: #e74c3c;
    font-size: 18px;
}

.dst-sku-card-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.dst-sku-attribute-tag {
    background: #f0f7ff;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #bbdefb;
}

.dst-sku-card-stock {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.dst-sku-card-stock.dst-in-stock {
    color: #2e7d32;
}

.dst-sku-card-stock.dst-out-of-stock {
    color: #c62828;
}

/* 移动端详情样式 */
.dst-mobile-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 0 20px 20px 20px;
}

.dst-mobile-details h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

.dst-mobile-detail-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.dst-mobile-detail-item {
    display: flex;
    flex-direction: column;
}

.dst-mobile-detail-label {
    font-weight: 600;
    color: #555;
    font-size: 13px;
    margin-bottom: 4px;
}

.dst-mobile-detail-value {
    color: #333;
    font-size: 15px;
}

.dst-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dst-mobile-actions .dst-button {
    padding: 15px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.dst-mobile-actions .dst-add-to-cart {
    background: #2196f3;
    color: white;
}

.dst-mobile-actions .dst-add-to-cart:hover {
    background: #1976d2;
}

.dst-mobile-actions .dst-add-to-cart.dst-disabled {
    background: #ccc;
    cursor: not-allowed;
}

.dst-mobile-actions .dst-add-to-quote {
    background: #4caf50;
    color: white;
}

.dst-mobile-actions .dst-add-to-quote:hover {
    background: #388e3c;
}

/* ==================== 响应式设计 ==================== */
/* 平板端布局调整 */
@media (max-width: 1024px) and (min-width: 769px) {
    .dst-table-main {
        flex-direction: column;
        min-height: auto; /* 平板端取消固定高度 */
    }

    .dst-details-panel {
        width: 100%;
        position: static;
        margin-top: 20px;
        min-width: auto;
        border-radius: 8px; /* 平板端恢复完整圆角 */
        border: 1px solid #e5e5e5; /* 平板端恢复完整边框 */
        flex: none; /* 在平板端取消flex设置，使用width: 100% */
    }

    .dst-sku-table-section {
        border-radius: 8px; /* 平板端恢复完整圆角 */
        border: 1px solid #e5e5e5; /* 平板端恢复完整边框 */
        margin-bottom: 20px;
        flex: none; /* 在平板端取消flex设置 */
    }

    .dst-sku-table-wrapper {
        margin: 20px 0;
    }

    /* 确保桌面端表格在平板端也正常显示 */
    .dst-desktop-layout {
        display: block;
    }

    .dst-mobile-layout {
        display: none;
    }
}

/* 移动端布局切换 */
@media (max-width: 768px) {
    .dst-desktop-layout {
        display: none;
    }

    .dst-mobile-layout {
        display: block;
    }

    .dst-sku-table-container {
        margin: 20px 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    /* 移动端优化 */
    .dst-attribute-header {
        padding: 12px 15px;
    }

    .dst-attribute-options {
        padding: 12px 15px;
    }

    .dst-attribute-option {
        padding: 10px 12px;
    }

    .dst-selection-summary,
    .dst-mobile-details {
        padding: 12px 15px;
    }

    .dst-mobile-results .dst-result-header {
        padding: 12px 15px;
    }

    .dst-sku-card {
        padding: 15px;
    }

    /* 小屏幕下表格单元格的额外优化 */
    .dst-desktop-layout .dst-attribute-cell {
        font-size: 13px; /* 稍小字体以适应更紧凑的布局 */
        line-height: 1.3;
    }

    .dst-desktop-layout .dst-variation-table td {
        padding: 10px 12px; /* 稍微减少内边距 */
    }
}

@media (max-width: 480px) {
    .dst-action-buttons {
        flex-direction: column;
    }

    .dst-product-details {
        flex-direction: column;
        gap: 15px;
    }

    .dst-product-image {
        width: 150px;
        height: 150px;
    }

    .dst-sku-card-attributes {
        flex-direction: column;
        gap: 4px;
    }
}

/* ==================== 加载状态 ==================== */
.dst-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.dst-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196f3;
    border-radius: 50%;
    animation: dst-spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes dst-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== 主题变体 ==================== */

/* Modern主题 */
.dst-sku-table-container.dst-style-modern {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dst-style-modern .dst-variation-table {
    box-shadow: none;
    border: 1px solid #e5e5e5;
}

.dst-style-modern .dst-details-panel {
    background: white;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Minimal主题 */
.dst-sku-table-container.dst-style-minimal {
    border: 1px solid #e5e5e5;
}

.dst-style-minimal .dst-variation-table {
    border: none;
    box-shadow: none;
}

.dst-style-minimal .dst-variation-table th {
    background: white;
    border-bottom: 1px solid #e5e5e5;
}

.dst-style-minimal .dst-details-panel {
    background: white;
    border: 1px solid #e5e5e5;
}

/* ==================== 状态类 ==================== */
.dst-sku-table-container.dst-loading .dst-variation-table {
    opacity: 0.6;
    pointer-events: none;
}

.dst-sku-table-container.dst-error {
    border-color: #f44336;
}

.dst-sku-table-container.dst-success {
    border-color: #4caf50;
}