/* Product Advanced Field - Frontend Styles */

.wcek-field-group {
    margin: 20px 0;
}

.wcek-group-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.wcek-group-description {
    margin: 0 0 15px;
    color: #666;
}

/* Field Layout */
.wcek-fields {
    display: grid;
    gap: 15px;
}

.wcek-columns-1 {
    grid-template-columns: 1fr;
}

.wcek-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wcek-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wcek-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .wcek-columns-2,
    .wcek-columns-3,
    .wcek-columns-4 {
        grid-template-columns: 1fr;
    }
}

/* Field Styles */
.wcek-field {
    display: flex;
    flex-direction: column;
}

.wcek-label-left .wcek-field,
.wcek-label-right .wcek-field {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.wcek-label-left .wcek-field-label {
    min-width: 120px;
}

.wcek-label-right .wcek-field {
    flex-direction: row-reverse;
}

.wcek-field-label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.wcek-field-label .required {
    color: #dc3232;
}

.wcek-field-input {
    flex: 1;
}

/* Input Styles */
.wcek-input,
.wcek-textarea,
.wcek-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wcek-input:focus,
.wcek-textarea:focus,
.wcek-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.wcek-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkbox and Radio */
.wcek-checkbox-group,
.wcek-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wcek-checkbox-label,
.wcek-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.wcek-checkbox,
.wcek-radio {
    margin: 0;
}

/* Field Description */
.wcek-field-description {
    margin: 5px 0 0;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Required Field */
.wcek-required .wcek-field-label {
    position: relative;
}

/* Error State */
.wcek-field.error .wcek-input,
.wcek-field.error .wcek-textarea,
.wcek-field.error .wcek-select {
    border-color: #dc3232;
}

.wcek-field-error {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
}