/* Global container takes up its own full row */
.cp_overlay_wrapper {
    display: block;
    width: 100%;
    clear: both;
    margin-bottom: 20px;
}

/* Remove any absolute positioning so the options appear in their own row */
.cp_global_option_group_frontend {
    position: static !important;
    width: 100%;
    margin-bottom: 0 !important;
}

/* Original styling */
.cp_option_list {
    display: flex;
    flex-wrap: wrap;
}
.cp_global_option {
    margin: 10px;
    text-align: center;
    position: relative;
}
.cp_option_inner {
    cursor: pointer;
    padding: 5px;
    border: 2px solid transparent;
    transition: border 0.3s ease;
}
.cp_option_inner.selected {
    border-color: #0073aa;
}
.cp_option_thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: inherit;
}
.cp_thumb_circle {
    border-radius: 50%;
}
.cp_thumb_square {
    border-radius: 0;
}
.cp_option_label {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}
.cp_personalization_container {
    margin-top: 10px;
    padding: 10px;
    border: 1px dashed #ccc;
}
.cp_personalization_label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.cp_personalization_desc {
    font-size: 12px;
    margin-bottom: 5px;
    color: #666;
}
.cp_personalization_input {
    width: 100%;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
}
/* Modal styles */
#cp_option_modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
}
#cp_option_modal_content {
    position: relative;
    margin: 10% auto;
    padding: 20px;
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 5px;
}
#cp_option_modal_close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}
@media (max-width: 600px) {
    .cp_option_thumb {
        width: 60px;
        height: 60px;
    }
    #cp_option_modal_content {
        width: 95%;
    }
}
