
.card-enfant {
    position: relative;
    background-color: #f9c6a0;
    border-radius: 1rem;
    padding: 1.5rem;
    width: calc(25% - 0.75rem);
    text-align: center;
    font-family: sans-serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding-bottom: 50px;
}
.card-enfant img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    border-radius: 50%;
    margin-top: -50px;
    margin-bottom: 1rem;
    border: 4px solid white;
    background: white;
}
.woo-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    transition: opacity 0.3s ease;
    color: white !important;
}
.card-enfant h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}
.card-enfant p {
    margin: .45rem 0;
    font-size: .95rem;
    line-height: 1.3rem;
}
.child-profiles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 50px;
    margin-bottom: 30px;
}
.swal2-content .woocommerce-form{
    color: #181b31;
    text-align: left;
    font-size: 16px;
    width: 100%;
}
.swal2-content .woocommerce button.button{
    border-radius: 4px !important;
}
.card-enfant .card-actions {
    width: 100%;
    left: 0;
    bottom: 10px;
    position: absolute;
    display: flex;
    margin-top: 15px;
    justify-content: space-between;
}
.card-enfant .card-actions a {
    margin-left: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 10px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
}
.card-actions i {
    pointer-events: none; /* pour que le clic passe au <a> */
}
.card-enfant .card-actions a:hover {
    color: #111827;
    background-color: white;
    padding: 10px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.card-add-new {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-height: 250px;
    width: calc(25% - 0.75rem);
    text-align: center;
    padding: 20px;
    transition: background 0.2s ease;
}
.card-add-new i{
    color:#515151;
}
.card-add-new:hover i{
    color: black;
}
.add-child-button {
    transition: border 0.3s ease;
    all: unset;
    width: 150px;
    height: 150px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    border-radius: 50%;
    background: #f9f9f9;
}
.add-child-button:hover{
    background-color: white;
    cursor: pointer;
}
.add-child-button i {
    font-size: 100px;
}
/*.button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.button.loading::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}*/

.woo-child-selector-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}
.woo-child-pill {
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    position: relative;
    transition: border 0.3s ease;
}
.woo-child-pill:hover{
    border-color: #D87346;
    cursor: pointer;
}
.woo-child-pill.selected {
    border-color: #007cba;
}
.woo-child-pill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.woo-child-name {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
.woo-child-add button {
    all: unset;
    width: 80px;
    height: 80px;
    border: 2px dashed #ccc;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    -webkit-transition: background-color 150ms linear;
    -ms-transition: background-color 150ms linear;
    transition: background-color 150ms linear;
}
.woo-child-add button:hover{
    background-color: #404040;
    cursor: pointer;
    border-color: #404040;
    color: white;
}
.woo-child-selector-container{
    width: 100% !important;
    background-color: white;
    border-radius: 4px;
    padding: 10px 15px;
}
.woo-child-selector-container h3{
    margin-top: 10px;
}
.woo-child-photo-section {
    display: flex;
    flex-direction: column;
    /*gap: 1em;*/
}

.woo-child-photo-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5em;
}

.woo-child-photo-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.woo-child-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.woo-child-photo-upload span {
    display: inline-block;
    background: #eee;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.woo-child-photo-upload span:hover {
    background: #ddd;
}
.woo-child-selector-footer {
    margin-top: 1em;
    text-align: right;
}

.woo-manage-children-link {
    display: inline-block;
    font-size: 0.9rem;
    color: #717171;
    text-decoration: none;
}

.woo-manage-children-link i {
    margin-right: 6px;
}

.woo-manage-children-link:hover {
    text-decoration: underline;
    color: #1d1d1d;
}

@media screen and (max-width: 1199px){
    .add-child-button{
        width: 100px;
        height: 100px;
    }
    .add-child-button i {
        font-size: 60px;
    }
}
@media screen and (max-width: 991px){
    .card-enfant, .card-add-new{
        width: calc(50% - 0.5rem)
    }
    .add-child-button{
        width: 100px;
        height: 100px;
    }
    .add-child-button i {
        font-size: 60px;
    }
}