/*
 * Frontend styles for Code and Core Repeater Fields for Contact Form 7.
 * 
 * This file contains the layout and design for the repeater container,
 * rows, and various button styles (filled, outline, minimal, etc.).
 */

/* ==========================================================================
   Main Layout
   ========================================================================== */
.ccrf-repeater {
    margin-bottom: 20px;
}

.ccrf-repeater-row {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    position: relative;
}

/* ==========================================================================
   Action Buttons (Base)
   ========================================================================== */
.ccrf-repeater-remove {
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 10px;
}

.ccrf-repeater-remove:hover {
    background: #cc0000;
}

.ccrf-repeater-add {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 3px;
}

.ccrf-repeater-add:hover {
    background: #45a049;
}

/* ==========================================================================
   Icon Buttons
   ========================================================================== */
.ccrf-repeater-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.ccrf-repeater-add .ccrf-repeater-btn-icon svg,
.ccrf-repeater-remove .ccrf-repeater-btn-icon svg {
    stroke-width: 3px;
}

/* ==========================================================================
   Button Variants
   ========================================================================== */

/* Filled (Default) */
.ccrf-repeater-btn-filled.ccrf-repeater-add {
    background: #4CAF50;
    color: #fff;
    border: none;
}

.ccrf-repeater-btn-filled.ccrf-repeater-add:hover {
    background: #45a049;
}

.ccrf-repeater-btn-filled.ccrf-repeater-remove {
    background: #ff4d4d;
    color: #fff;
    border: none;
}

.ccrf-repeater-btn-filled.ccrf-repeater-remove:hover {
    background: #cc0000;
}

/* Outline */
.ccrf-repeater-btn-outline.ccrf-repeater-add {
    background: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    font-weight: 600;
}

.ccrf-repeater-btn-outline.ccrf-repeater-add:hover {
    background: #4CAF50;
    color: #fff;
}

.ccrf-repeater-btn-outline.ccrf-repeater-remove {
    background: transparent;
    color: #ff4d4d;
    border: 2px solid #ff4d4d;
    font-weight: 600;
}

.ccrf-repeater-btn-outline.ccrf-repeater-remove:hover {
    background: #ff4d4d;
    color: #fff;
}

/* Minimal */
.ccrf-repeater-btn-minimal.ccrf-repeater-add {
    background: transparent;
    color: #4CAF50;
    border: none;
    padding: 5px 0;
    text-decoration: underline;
}

.ccrf-repeater-btn-minimal.ccrf-repeater-add:hover {
    color: #45a049;
    background: transparent;
}

.ccrf-repeater-btn-minimal.ccrf-repeater-remove {
    background: transparent;
    color: #ff4d4d;
    border: none;
    padding: 5px 0;
    text-decoration: underline;
    margin-top: 5px;
}

.ccrf-repeater-btn-minimal.ccrf-repeater-remove:hover {
    color: #cc0000;
    background: transparent;
}

/* Block Style */
.ccrf-repeater-btn-block {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.ccrf-repeater-btn-block.ccrf-repeater-add {
    background: #4CAF50;
    color: #fff;
    border: none;
    text-align: center;
}

.ccrf-repeater-btn-block.ccrf-repeater-remove {
    background: #ff4d4d;
    color: #fff;
    border: none;
    text-align: center;
}
