.communication-settings .card {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Optional improvements (recommended) */
.communication-settings h2 {
    margin-bottom: 10px;
}

.communication-settings label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

.communication-settings input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.communication-settings .action.primary {
    margin-top: 15px;
}
/* Card Styling */
.newsletter-card {
    background: #f6f7f9;
    padding: 20px;
    border-radius: 12px;
}

/* Header */
.newsletter-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

/* Row layout */
.newsletter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Text */
.newsletter-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.newsletter-text p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 22px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

/* Checked State */
.switch input:checked+.slider {
    background-color: #4f46e5;
    /* purple/blue like screenshot */
}

.switch input:checked+.slider:before {
    transform: translateX(20px);
}
.communication-settings-wrapper {
    max-width: 900px;
    margin: 20px auto;

    .settings-card {
        background: #fff;
        border-radius: 10px;
        padding: 25px;
        margin-bottom: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

        h3 {
            border-bottom: 1px solid #f0f0f0;
            padding-bottom: 15px;
            margin-bottom: 20px;
            font-weight: 600;
        }

        h4 {
            margin: 10px 0 5px;
            font-weight: 700;
            font-size: 16px;
        }

        p {
            color: #666;
            font-size: 14px;
        }
    }

    .field-row {
        display: flex;
        gap: 30px;
    }

    .field-group {
        flex: 1;
    }

    .control-readonly {
        background: #f9f9f9;
        display: flex;
        align-items: center;
        border: 1px solid #ccc;
        border-radius: 5px;

        .icon-lock {
            padding: 0 10px;
        }

        input {
            border: none;
            background: transparent;
            pointer-events: none;
        }
    }

    /* Switch Component */
    .switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 26px;

        input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;

            &:before {
                position: absolute;
                content: "";
                height: 18px;
                width: 18px;
                left: 4px;
                bottom: 4px;
                background-color: white;
                transition: .4s;
                border-radius: 50%;
            }
        }

        input:checked+.slider {
            background-color: #5c6bc0;
        }

        input:checked+.slider:before {
            transform: translateX(24px);
        }
    }

    .card-toggle-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .form-actions {
        display: flex;
        justify-content: flex-end;
        gap: 20px;
        margin-top: 30px;

        .action-save-prefs {
            background: #ffb74d;
            border: none;
            color: #fff;
            padding: 12px 30px;
            font-weight: bold;
            border-radius: 5px;
            cursor: pointer;

            &:hover {
                background: #ffa726;
            }
        }

        .action-cancel {
            background: transparent;
            border: none;
            color: #777;
            cursor: pointer;
            font-weight: bold;
        }
    }
}
.communication-settings-container {
    background: #fdfdfd;
    padding: 20px;

    .settings-card {
        background: #fff;
        border-radius: 12px;
        padding: 30px;
        margin-bottom: 25px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        border: 1px solid #f0f0f0;

        h3 {
            border-bottom: 1px solid #f5f5f5;
            padding-bottom: 15px;
            font-weight: 500;
            font-size: 18px;
            color: #444;
        }

        h4 {
            margin-bottom: 5px;
            font-size: 16px;
            font-weight: 600;
        }

        h5 {
            margin: 20px 0 10px;
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }

        p {
            color: #777;
            font-size: 14px;
            line-height: 1.4;
        }
    }

    .field-row {
        display: flex;
        gap: 20px;
        margin-top: 15px;
    }

    .field {
        flex: 1;
    }

    .readonly-wrapper {
        background: #f4f4f4;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        display: flex;
        align-items: center;
        padding-left: 10px;

        input {
            border: none !important;
            background: transparent;
            padding-left: 5px;
        }
    }

    .toggle-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;

        .info {
            flex: 1;
            padding-right: 20px;
        }
    }

    .checkbox-group {
        display: flex;
        gap: 25px;

        .choice {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            cursor: pointer;
        }
    }

    /* Switch Style */
    .ui-switch {
        position: relative;
        width: 44px;
        height: 22px;

        input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ddd;
            transition: .4s;
            border-radius: 20px;

            &:before {
                position: absolute;
                content: "";
                height: 16px;
                width: 16px;
                left: 3px;
                bottom: 3px;
                background-color: white;
                transition: .4s;
                border-radius: 50%;
            }
        }

        input:checked+.slider {
            background-color: #5c6bc0;
        }

        input:checked+.slider:before {
            transform: translateX(22px);
        }
    }

    .actions-toolbar {
        display: flex;
        justify-content: flex-end;

        .action-primary {
            background: #ffb74d;
            color: #fff;
            border: none;
            font-weight: 600;
            padding: 12px 30px;
            border-radius: 6px;
            text-transform: uppercase;
        }

        .action-secondary {
            background: transparent;
            border: none;
            color: #888;
            font-weight: 600;
            margin-right: 20px;
            cursor: pointer;
        }
    }
}