/* Styles de base pour la table */
.kl-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.kl-table th, .kl-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.kl-table th {
    background-color: #f4f4f4;
    color: #141414;
    font-weight: bold;
    font-size: 12px;
    width: 65px;
}

.kl-table .kl-unavailable {
    line-height: 100%;
}

.kl-table input {
    width: 50px;
    max-width: 70px;
}

/* Styles pour les variations */
.kl-first-variation-block {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 120px;
    cursor: pointer;
}

.kl-first-variation-block .kl-variation-color {
    transition: all 0.3s ease;
}

.kl-first-variation-block:hover .kl-variation-color {
    transform: scale(1.1);
}

.kl-variation-color {
    position: relative;
    width: 30px;
    height: 15px;
    margin-right: 5px;
}

.kl-variation-color > span {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 15px;
}

.kl-variation-title {
    font-size: 10px;
}

/* Styles pour les messages */
.kl-message {
    color: #FFF;
    font-size: 0.75rem;
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.kl-success-message {
    background-color: #0f8753;
}

.kl-warning-message {
    background-color: #9f3127;
}

.kl-warning-message a {
    text-decoration: underline;
}

/* Styles pour le loading */
#kl-loading {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    background: rgba(0, 0, 0, 0.7); 
    color: #FFF; 
    padding: 24px; 
    border-radius: 5px; 
    font-size: 20px;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.kl-loader-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.kl-loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: kl_rotation 1s linear infinite;
}

@keyframes kl_rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Styles responsives */
@media (max-width: 768px) {
    .kl-table {
        width: 100%;
        display: block;
        overflow-x: auto;
    }

    .kl-table th, .kl-table td {
        white-space: nowrap;
    }

    .kl-table th {
        width: 50px;
    }
}

@media (max-width: 600px) {
    .kl-table .kl-variation-swatch, 
    .kl-table td {
        padding: 2px;
    }

    .kl-first-variation-block {
        flex-direction: column;
        width: 70px;
    }

    .kl-table input[type="number"] {
        min-width: 32px;
    }
}

/* Styles spécifiques pour les champs de saisie */
.kl-table input[type="number"] {
    width: 100%;
    max-width: 45px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Styles spécifiques pour les boutons */
.confection-single .next_class {
    padding: 15px 70px !important;
}

/* Styles pour le message de connexion */
.kl-login-required {
    color: #FFF;
    background-color: #169376;
    border-radius: 50%;
    font-size: 0.65rem;
    padding: 0px 3px;
}