/* Tariff Display for Woo Admin Styles */

.smtardi-admin-wrap {
    max-width: 800px;
}

.smtardi-admin-wrap h1 {
    margin-bottom: 20px;
}

ul.smtardi-categories-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #c3c4c7;
    background: #fff;
    border-radius: 4px;
    width: 100%;
    max-width: 500px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.smtardi-category-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f1;
}

.smtardi-category-item:last-child {
    border-bottom: none;
}

.smtardi-category-item label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 0;
}

.smtardi-category-item:hover label {
    background-color: #f6f7f7;
}

.smtardi-category-item input[type="checkbox"] {
    margin: 0 12px 0 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.smtardi-category-name {
    flex: 1;
    font-weight: 500;
    color: #1d2327;
}

/* Parent category styles */
.smtardi-category-parent > label {
    background-color: #f9f9f9;
}

.smtardi-category-parent > label .smtardi-category-name {
    font-weight: 600;
}

/* Child category styles - indentation based on depth */
.smtardi-category-child[data-depth="1"] > label {
    padding-left: 40px;
}

.smtardi-category-child[data-depth="2"] > label {
    padding-left: 65px;
}

.smtardi-category-child[data-depth="3"] > label {
    padding-left: 90px;
}

/* Add dash before child category name */
.smtardi-category-child .smtardi-category-name::before {
    content: "— ";
    color: #787c82;
}

.smtardi-category-count {
    color: #787c82;
    font-size: 12px;
    background: #f0f0f1;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    flex-shrink: 0;
}

.form-table th {
    vertical-align: top;
    padding-top: 20px;
}

.form-table th .description {
    font-weight: normal;
    font-style: italic;
    margin-top: 5px;
}
