/**
 * Qonfi WooCommerce – Cart display styles
 *
 * @package iClicks\QonfiWooCommerce
 */

.qonfi-wc-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.qonfi-wc-item-title {
    display: block;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #00222C;
    line-height: 1.3;
}

.qonfi-wc-options {
    border: 1px solid #e2e8ed;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.qonfi-wc-options-heading {
    display: block;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #667a85;
    margin-bottom: 0.5rem;
}

.qonfi-wc-options-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.qonfi-wc-option-row {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #edf1f4;
    min-width: 0;
}

.qonfi-wc-option-row:last-of-type {
    border-bottom: none;
}

.qonfi-wc-option-hidden {
    display: none;
}

.qonfi-wc-option-hidden.qonfi-wc-option-visible {
    display: flex;
}

.qonfi-wc-option-label {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #8a9ba5;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qonfi-wc-option-label::after {
    content: ":";
}

.qonfi-wc-option-value {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #00222C;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qonfi-wc-new-config {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.625rem;
    padding: 0.5rem 1rem;
    border: 1px solid #E30613;
    border-radius: 0.375rem;
    background: none;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #E30613;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.qonfi-wc-new-config:hover {
    background-color: #E30613;
    color: #ffffff;
}

.qonfi-wc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.375rem;
    padding: 0;
    border: none;
    background: none;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #E30613;
    cursor: pointer;
    transition: color 0.15s;
}

.qonfi-wc-toggle:hover {
    color: #b8050f;
}

@media (max-width: 768px) {
    .qonfi-wc-option-label {
        font-size: 0.625rem;
        max-width: 40%;
    }

    .qonfi-wc-option-value {
        font-size: 0.7rem;
    }

    .qonfi-wc-item-title {
        font-size: 0.9rem;
    }

    .qonfi-wc-option-row {
        flex-wrap: wrap;
    }

    .qonfi-wc-option-label {
        max-width: 100%;
    }
}
