/* ========================================== */
/*  КОМПАКТНЫЙ ДИЗАЙН БЛОКОВ                  */
/* ========================================== */
.my-specs-wrapper {
    margin: 10px 0 !important;
    width: 100% !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Общие стили карточек */
.my-specs-card, .my-store-card {
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
    margin-bottom: 10px !important;
}

/* ========================================== */
/*  ТАБЛИЦЫ (Характеристики и Доставка)       */
/* ========================================== */
.my-specs-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    border: none !important;
}

.my-specs-table td {
    padding: 6px 12px !important;
    border: none !important;
    border-bottom: 1px solid #f1f3f5 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    vertical-align: top !important;
}

/* Зебра */
.my-specs-table tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

/* Левая колонка */
.my-specs-table td:first-child {
    color: #6c757d !important;
    width: 55% !important;
    text-align: left !important;
    font-weight: 500 !important;
}

/* Правая колонка */
.my-specs-table td:last-child {
    color: #212529 !important;
    font-weight: 600 !important;
    width: 45% !important;
    text-align: right !important;
    word-break: break-word !important;
}

/* ========================================== */
/*  КНОПКИ-ПЕРЕКЛЮЧАТЕЛИ                      */
/* ========================================== */
.my-specs-toggle, .my-store-toggle {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px !important;
    background-color: #f8f9fa !important;
    color: #d0121a !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    list-style: none !important;
    outline: none !important;
}
.my-specs-toggle:hover, .my-store-toggle:hover {
    background-color: #f1f3f5 !important;
}
.my-specs-toggle::-webkit-details-marker, .my-store-toggle::-webkit-details-marker {
    display: none !important;
}

/* Стрелочка */
.my-specs-arrow {
    margin-left: 6px !important;
    font-size: 9px !important;
    transition: transform 0.3s ease !important;
    color: #adb5bd !important;
}
details[open] .my-specs-arrow {
    transform: rotate(180deg) !important;
}

/* Логика открытия (Меняем текст) */
details[open] .my-specs-toggle {
    border-bottom: 1px solid #e9ecef !important;
    font-size: 0 !important;
}
details[open] .my-specs-toggle::before {
    content: "Скрыть все характеристики" !important;
    font-size: 13px !important;
    margin-right: 6px !important;
}

details[open] .my-store-toggle {
    border-bottom: 1px solid #e9ecef !important;
    font-size: 0 !important;
}
details[open] .my-store-toggle::before {
    content: "Скрыть условия доставки" !important;
    font-size: 13px !important;
    margin-right: 6px !important;
}

/* ========================================== */
/*  КОНТЕНТ ДОСТАВКИ                          */
/* ========================================== */
.my-store-content {
    padding: 12px 0 !important;
    background: #ffffff !important;
}

.my-store-section-title {
    color: #212529 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 0 12px 6px 12px !important;
}

/* ========================================== */
/*  МОБИЛЬНАЯ ВЕРСИЯ                          */
/* ========================================== */
@media (max-width: 500px) {
    .my-specs-table td {
        padding: 6px 10px !important;
    }
    .my-specs-table td:first-child {
        font-size: 11.5px !important;
    }
    .my-specs-table td:last-child {
        font-size: 12px !important;
    }
    .my-specs-toggle, .my-store-toggle, 
    details[open] .my-specs-toggle::before, 
    details[open] .my-store-toggle::before {
        font-size: 12px !important;
        padding: 8px !important;
    }
    .my-store-section-title {
        font-size: 13px !important;
        padding: 0 10px 4px 10px !important;
    }
}