/* --- ACORDEÓN BASE (DISEÑO FIGMA) --- */
.rw-oo-accordion {
    margin-bottom: 0;
}
.rw-oo-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Work Sans', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 18px;
    color: #07112C;
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 26px 0 8px 0;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    box-shadow: none;
    outline: none;
    letter-spacing: 0.01em;
    padding-top: 12px;
}
.rw-oo-accordion-toggle .rw-oo-accordion-icon {
    width: 28px;
    height: 28px;
    margin-left: 8px;
    display: inline-block;
    background: url('/wp-content/plugins/rw-oo-right-product-addons/assets/images/Chevron--down.svg') no-repeat center center;
    background-size: 28px 28px;
    transition: transform 0.2s;
    content: "";
    border: none;
}
.rw-oo-accordion-toggle.active .rw-oo-accordion-icon {
    transform: rotate(180deg);
}
.rw-oo-accordion-toggle:after {
    display: none !important; /* Quita iconos unicode extra si hubiera */
}

/* --- LÍNEA SEPARADORA INFERIOR (solo bajo el título) --- */
.rw-oo-accordion-toggle {
    border-bottom: 1px solid #07112C;
}
.rw-oo-accordion:last-child .rw-oo-accordion-toggle {
    /* Si quieres quitar la línea del último acordeón, descomenta la línea siguiente */
    /* border-bottom: none; */
}

/* --- CONTENIDO DEL ACORDEÓN --- */
.rw-oo-accordion-content {
    border: none;
    border-radius: 0;
    padding: 18px 0 8px 0;
    background: #fff;
    box-shadow: none;
    display: none;
}

/* --- COLOR SWATCHES --- */
.rw-oo-color-swatches-list {
    display: flex;
    gap: 24px;
    margin: 12px 0 0 0;
    padding: 0;
    list-style: none;
}
.rw-oo-color-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rw-oo-color-swatch {
    width: 75px;
    height: 90px;
    border-radius: 0px;
    border: none;
    margin-bottom: 6px;
    background: #eee;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rw-oo-color-swatch.selected,
.rw-oo-color-swatch:hover {
    border: 2px solid #43a047;
    box-shadow: 0 2px 8px 0 rgba(67,160,71,0.10);
}
.rw-oo-color-swatch.selected::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 18px;
    height: 18px;
    background: #43a047;
    border-radius: 50%;
    z-index: 2;
}
.rw-oo-color-swatch.selected::before {
    content: '';
    position: absolute;
    top: -8px;
    right: -4px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    border-radius: 1px;
    transform: rotate(45deg);
    z-index: 3;
}
.rw-oo-color-swatch-label {
    margin-top: 2px;
    font-size: 13px;
    color: #222;
    font-weight: 400;
    text-align: center;
    user-select: none;
    letter-spacing: 0.01em;
    font-family: "Work Sans";
}
.rw-oo-color-swatch-item input[type="radio"] {
    display: none !important;
}

/* --- LISTA DE CARDS --- */
.rw-oo-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: flex-start;
}
.rw-oo-card-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

/* --- CARD INDIVIDUAL (idéntico para todos los tipos de bloque) --- */
.rw-oo-card {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: none;
    padding: 18px 10px 14px 10px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 10px;
    overflow-wrap: anywhere;
}
.rw-oo-card:hover,
.rw-oo-card.selected {
    border: 1px solid #43a047;
    box-shadow: 0 2px 12px 0 rgba(67,160,71,0.10);
}
.rw-oo-card.selected::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 18px;
    height: 18px;
    background: #43a047;
    border-radius: 50%;
    z-index: 2;
}
.rw-oo-card.selected::before {
    content: '';
    position: absolute;
    top: -8px;
    right: -4px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    border-radius: 1px;
    transform: rotate(45deg);
    z-index: 3;
}
.rw-oo-card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}
.rw-oo-card-desc {
    font-size: 0.9em;
    color: #444;
    margin-bottom: 0px;
    min-height: 34px;
    line-height: 1.4;
    word-break: break-word;
}
.rw-oo-card-price {
    font-size: 1em;
    font-weight: 500;
    margin-top: 0px;
    letter-spacing: 0.01em;
}
.rw-oo-card-item input[type="radio"] {
    display: none !important;
}

.rw-oo-accordion--titulo .rw-oo-card-title{
    font-size: 0.9em;
    color: #444;
    margin-bottom: 0px;
    line-height: 1.4;
    word-break: break-word;
    font-weight: unset;
}

/* --- Responsive --- */
@media (min-width: 600px) {
    .rw-oo-card-item {
        max-width: calc(33.333% - 12px);
    }
}
@media (max-width: 900px) {
    .rw-oo-card-list {
        gap: 10px;
    }
    .rw-oo-card-item {
        max-width: 48%;
        min-width: 140px;
    }
    .rw-oo-card {
        padding: 13px 5px 9px 5px;
        font-size: 0.96em;
    }
}
@media (max-width: 600px) {
    .rw-oo-card-item {
        max-width: 100%;
        min-width: 110px;
    }
}
