<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:framework/Config/etc/system_file.xsd">
    <system>
        <tab id="quantilus_settings" translate="label" sortOrder="200">
            <label>Quantilus</label>
        </tab>
        <section id="frontend_restriction" translate="label" type="text" sortOrder="300" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Frontend Restriction Settings</label>
            <tab>quantilus_settings</tab>
            <resource>Quantilus_FrontendRestriction::config</resource>
            <group id="settings" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>General</label>

                <field id="enabled" translate="label" type="select" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enabled</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment>Enable or disable frontend restriction functionality.</comment>
                </field>

                <field id="allowed_urls" translate="label" type="textarea" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Allowed URLs</label>
                    <comment>Enter full action names separated by commas (e.g., checkout_cart_index, checkout_index_index).</comment>
                </field>
            </group>
        </section>
    </system>
</config>