<?php
// don't load directly
defined( 'ABSPATH' ) || exit;


CSF::createSection( $prefix, array(
	'parent' => 'design',
	'title'  => __( 'Design', 'cartnotify' ),
	'icon'   => 'fas fa-palette',
	'fields' => array(
		array(
			'id'       => 'cns-prestyle',
			'type'     => 'image_select',
			'title'    => __( 'Notification Layout', 'cartnotify' ),
			'subtitle' => __( 'Choose the notification style preset.', 'cartnotify' ),
			'options'  => array(
				'cns-prestyle-1' => CART_NOTIFY_ASSETS . '/img/cartnotify_layout_1.png',
			),
			'default'  => 'cns-prestyle-1',
			'sanitize' => array( '\Cart\notify\Settings\Repository', 'sanitize_style_preset' ),
		),
		array(
			'id'       => 'cns-bg-color',
			'type'     => 'color',
			'title'    => __( 'Background Color', 'cartnotify' ),
			'subtitle' => __( 'Notification background color.', 'cartnotify' ),
			'default'  => '#e3ffed',
			'sanitize' => array( '\Cart\notify\Settings\Repository', 'sanitize_hex_color' ),
		),
		array(
			'id'       => 'cns-text-color',
			'type'     => 'color',
			'title'    => __( 'Text Color', 'cartnotify' ),
			'subtitle' => __( 'Notification text color.', 'cartnotify' ),
			'default'  => '#00080c',
			'sanitize' => array( '\Cart\notify\Settings\Repository', 'sanitize_hex_color' ),
		),
		array(
			'id'       => 'cns-link-color',
			'type'     => 'color',
			'title'    => __( 'Action Button Color', 'cartnotify' ),
			'subtitle' => __( 'Color used for action links and buttons.', 'cartnotify' ),
			'default'  => '#104222',
			'sanitize' => array( '\Cart\notify\Settings\Repository', 'sanitize_hex_color' ),
		),
		array(
			'id'       => 'cns-border-color',
			'type'     => 'color',
			'title'    => __( 'Border Color', 'cartnotify' ),
			'subtitle' => __( 'Border color used in notification elements.', 'cartnotify' ),
			'default'  => '#d7e8de',
			'sanitize' => array( '\Cart\notify\Settings\Repository', 'sanitize_hex_color' ),
		),
	),
));
