/**
 * Tétine Personnalisation - Styles frontend
 */
.tetine-perso-wrapper {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: #fafafa;
}

.tetine-perso-title {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.tetine-perso-extra {
    font-size: 0.85em;
    color: #e67e22;
    font-weight: 600;
    background: #fff3e0;
    padding: 3px 10px;
    border-radius: 12px;
}

.tetine-perso-controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tetine-perso-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.tetine-perso-counter {
    float: right;
    font-weight: 400;
    color: #888;
    font-size: 0.85em;
}

#tetine-perso-name {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
}

#tetine-perso-name:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.15);
}

/* Polices */
.tetine-perso-fonts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.tetine-perso-font-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 400 !important;
    margin: 0 !important;
}

.tetine-perso-font-option:hover {
    border-color: #aaa;
}

.tetine-perso-font-option input {
    margin-right: 8px;
}

.tetine-perso-font-option:has(input:checked) {
    border-color: #4A90E2;
    background: #f0f7ff;
}

.tetine-perso-font-option span {
    font-size: 1.2em;
    line-height: 1;
}

/* Couleurs */
.tetine-perso-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tetine-perso-color-option {
    cursor: pointer;
    position: relative;
    margin: 0 !important;
    font-weight: 400 !important;
}

.tetine-perso-color-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tetine-perso-swatch {
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #ccc;
    transition: all 0.15s ease;
}

.tetine-perso-color-option:hover .tetine-perso-swatch {
    transform: scale(1.08);
}

.tetine-perso-color-option.is-selected .tetine-perso-swatch {
    box-shadow: 0 0 0 3px #4A90E2;
    transform: scale(1.05);
}

.tetine-perso-selected {
    margin-top: 8px;
    font-size: 0.9em;
    color: #555;
}

/* Mobile */
@media (max-width: 600px) {
    .tetine-perso-wrapper {
        padding: 15px;
    }
    .tetine-perso-fonts {
        grid-template-columns: 1fr 1fr;
    }
    .tetine-perso-swatch {
        width: 32px;
        height: 32px;
    }
}
