/**
 * Elementor ACF Repeater Widget CSS
 */

/* Wrapper */
.acf-repeater-wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* Grid layout */
.acf-grid-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* For responsive layouts */
@media (max-width: 767px) {
    .acf-repeater-item {
        width: 100% !important;
    }
}

/* Default item styling */
.acf-repeater-item {
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

/* Error messages */
.acf-repeater-error {
    padding: 15px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Info messages */
.acf-repeater-message {
    padding: 15px;
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Default button styling */
.acf-repeater-item a.button,
.acf-repeater-item button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.acf-repeater-item a.button:hover,
.acf-repeater-item button:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* Editor styles */
#acf-repeater-subfields {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

#acf-repeater-subfields ul {
    margin: 0;
    padding-left: 20px;
}

#acf-repeater-subfields li {
    margin-bottom: 5px;
}

#acf-repeater-subfields code {
    background-color: #e0e0e0;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

/* Preview in editor */
.elementor-repeater-preview {
    opacity: 0.7;
}

/* Subfields list styling for easier copying */
.acfr-subfields-list {
    margin-top: 10px;
}

.acfr-subfield-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 3px;
    background-color: #f7f7f7;
}

.acfr-shortcode {
    background-color: #e0e0e0;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: monospace;
    margin-right: 8px;
    cursor: pointer;
    user-select: all;
    flex-grow: 1;
}

.acfr-copy-btn {
    background-color: #556068;
    color: white;
    border: none;
    border-radius: 3px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 8px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.acfr-copy-btn:hover {
    background-color: #6d7882;
}

.acfr-copy-btn i {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.acfr-copy-btn .eicon-check {
    color: #6fc99f;
}

.acfr-field-name {
    color: #555;
    font-size: 12px;
}