/**
 * Plugin Name: PixelcraftDev Elementor Addon
 * Author: Supapong Sakulkoo (K.Auu)
 * Author URI: https://supapongai.com
 * License: Commercial - Proprietary
 * Copyright: (c) 2026 PixelcraftDev. All rights reserved.
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 */
/* Heading Divider Widget Styles */
.pcd-heading-divider {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Base properties for separators */
.pcd-heading-divider::before,
.pcd-heading-divider::after {
    content: ""; /* Default to showing both (center alignment) */
    flex-grow: 1;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: #000;
    transition: all 0.3s ease;
    height: 1px;
}

/* Desktop Alignments */
.pcd-align-left .pcd-heading-divider::before { display: none !important; }
.pcd-align-left .pcd-heading-divider::after { display: block !important; }

.pcd-align-center .pcd-heading-divider::before,
.pcd-align-center .pcd-heading-divider::after { display: block !important; }

.pcd-align-right .pcd-heading-divider::before { display: block !important; }
.pcd-align-right .pcd-heading-divider::after { display: none !important; }

/* Tablet Alignments (1024px and below) */
@media (max-width: 1024px) {
    .pcd-align_tablet-left .pcd-heading-divider::before { display: none !important; }
    .pcd-align_tablet-left .pcd-heading-divider::after { display: block !important; }

    .pcd-align_tablet-center .pcd-heading-divider::before,
    .pcd-align_tablet-center .pcd-heading-divider::after { display: block !important; }

    .pcd-align_tablet-right .pcd-heading-divider::before { display: block !important; }
    .pcd-align_tablet-right .pcd-heading-divider::after { display: none !important; }
}

/* Mobile Alignments (767px and below) */
@media (max-width: 767px) {
    .pcd-align_mobile-left .pcd-heading-divider::before { display: none !important; }
    .pcd-align_mobile-left .pcd-heading-divider::after { display: block !important; }

    .pcd-align_mobile-center .pcd-heading-divider::before,
    .pcd-align_mobile-center .pcd-heading-divider::after { display: block !important; }

    .pcd-align_mobile-right .pcd-heading-divider::before { display: block !important; }
    .pcd-align_mobile-right .pcd-heading-divider::after { display: none !important; }
}

/* Pattern Styles applied from Wrapper via prefix_class */
.pcd-separator-solid .pcd-heading-divider::before,
.pcd-separator-solid .pcd-heading-divider::after { 
    border-bottom-style: solid; 
}
.pcd-separator-dashed .pcd-heading-divider::before,
.pcd-separator-dashed .pcd-heading-divider::after { 
    border-bottom-style: dashed; 
}
.pcd-separator-dotted .pcd-heading-divider::before,
.pcd-separator-dotted .pcd-heading-divider::after { 
    border-bottom-style: dotted; 
}
.pcd-separator-double .pcd-heading-divider::before,
.pcd-separator-double .pcd-heading-divider::after { 
    border-bottom-style: double; 
}

/* Custom Patterns using background */
.pcd-separator-rhombus .pcd-heading-divider::before,
.pcd-separator-rhombus .pcd-heading-divider::after,
.pcd-separator-cubic .pcd-heading-divider::before,
.pcd-separator-cubic .pcd-heading-divider::after {
	border-bottom: none !important;
	background-repeat: repeat-x;
	background-position: center;
	height: var(--pcd-separator-thickness, 5px);
	background-image: var(--pcd-separator-pattern);
	background-size: contain;
}

/* Styling the Text Wrapper */
.pcd-heading-divider-content {
    display: flex;
    align-items: center;
}

.pcd-heading-divider-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcd-heading-divider-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.pcd-heading-divider-text {
    margin: 0;
	padding: 0;
}
