.wc-bordados-customizer {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 10px 0;
}

.wc-bordados-customizer h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.wc-bordados-accordion {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
}

.wc-bordados-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #f7f7f7;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.wc-bordados-accordion-header:focus {
    outline: none;
}

.wc-bordados-accordion-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

.wc-bordados-accordion-header[aria-expanded="true"] .wc-bordados-accordion-icon {
    transform: rotate(-135deg);
}

.wc-bordados-accordion-content {
    padding: 12px;
    background: #fff;
}

.wc-bordados-field {
    margin-bottom: 10px;
}

.wc-bordados-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.wc-bordados-field input[type="text"],
.wc-bordados-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.wc-bordados-field input[type="text"]:focus,
.wc-bordados-field select:focus {
    outline: none;
    border-color: #0073aa;
}

.wc-bordados-colores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

 .wc-bordados-tejidos {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
     gap: 10px;
     margin-top: 6px;
 }

 .wc-bordados-tejido-option {
     display: flex;
     flex-direction: column;
     gap: 6px;
     position: relative;
     cursor: pointer;
     padding: 8px;
     border: 2px solid transparent;
     border-radius: 6px;
     background: #fff;
     transition: all 0.2s ease;
 }

 .wc-bordados-tejido-option:hover {
     border-color: #0073aa;
     background: #f0f8ff;
 }

 .wc-bordados-tejido-option.selected {
     border-color: #0073aa;
     box-shadow: 0 0 0 1px #0073aa;
 }

 .wc-bordados-tejido-option input[type="radio"] {
     position: absolute;
     opacity: 0;
     width: 1px;
     height: 1px;
     pointer-events: none;
 }

 .wc-bordados-tejido-option .tejido-thumb {
     display: block;
     width: 100%;
     aspect-ratio: 1 / 1;
     border-radius: 6px;
     overflow: hidden;
     border: 1px solid #e2e2e2;
     background: #f7f7f7;
 }

 .wc-bordados-tejido-option .tejido-thumb img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
 }

 .wc-bordados-tejido-option .tejido-name {
     font-size: 13px;
     color: #333;
     text-align: center;
 }

.wc-bordados-color-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.wc-bordados-color-option:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.wc-bordados-color-option input[type="radio"] {
    margin-right: 8px;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #333;
    margin-right: 8px;
    display: inline-block;
}

.color-name {
    font-size: 14px;
    color: #555;
}

.wc-bordados-preview {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.wc-bordados-preview h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #333;
}

#wc-bordados-preview-text {
    padding: 10px;
    border: 2px dashed #ccc;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.wc-bordados-price-info {
    background: #e7f3ff;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.wc-bordados-price-info .price-addition {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #0073aa;
}

@media (max-width: 768px) {
    .wc-bordados-colores {
        flex-direction: column;
        gap: 10px;
    }
    
    .wc-bordados-color-option {
        width: 100%;
    }

     .wc-bordados-tejidos {
         grid-template-columns: repeat(2, minmax(0, 1fr));
     }
}
