/**
 * Frequency Settings Styles
 *
 * Styles for the Frequency Settings section in popup editor
 * Scoped to .ipb-frequency-settings to avoid affecting other sections
 */

/* Frequency Settings Section - 2-Column Layout */
.ipb-frequency-settings {
    text-align: left;
}

.ipb-frequency-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 0;
}

.ipb-frequency-label {
    align-self: center;
    text-align: left;
}

.ipb-frequency-label label {
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

.ipb-frequency-control {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: center;
    text-align: left;
}

/* Frequency Fields Grid - 2 fields side by side */
.ipb-frequency-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

/* Individual Frequency Field */
.ipb-frequency-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Field Label with Icon */
.ipb-frequency-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #1d2327;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

.ipb-frequency-field-label span {
    flex: 0 0 auto;
}

/* Info Icon Alignment */
.ipb-frequency-field-label .info {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    flex-shrink: 0;
}

.ipb-frequency-field-label .info img {
    width: 16px;
    height: 16px;
    display: block;
    cursor: pointer;
}

/* Input Styles */
.ipb-frequency-field input[type="number"] {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #8c8f94;
    border-radius: 2px;
    font-size: 14px;
    color: #2c3338;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out;
    width: 100%;
    max-width: 100%;
}

.ipb-frequency-field input[type="number"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Responsive Adjustments */
@media (max-width: 782px) {
    .ipb-frequency-row {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: flex-start;
    }
    
    .ipb-frequency-label {
        align-self: flex-start;
    }
    
    .ipb-frequency-control {
        align-self: flex-start;
    }
    
    .ipb-frequency-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
