/* ========================================
   UPGRADE CONTROL STYLES
   ======================================== */

.pawfect-upgrade-pro-message {
    /* Use WordPress native notice styling */
    background: #fff !important;
    border-left: 4px solid #72aee6 !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04) !important;
    padding: 12px !important;
    margin: 12px 0 !important;
    display: none !important; /* Hidden by default, shown on button click */
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.pawfect-upgrade-pro-message p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #23282d !important;
}

.pawfect-upgrade-pro-message a {
    color: #0073aa !important;
    text-decoration: none !important;
}

.pawfect-upgrade-pro-message a:hover {
    color: #005177 !important;
    text-decoration: underline !important;
}

/* Shopire-style: Keep "Add new slide" button visible but enhance its styling when at limit */
#customize-control-pawfect_main_slider_content .customizer-repeater-new-field {
    transition: all 0.3s ease;
}

#customize-control-pawfect_main_slider_content .customizer-repeater-new-field:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Debug: Temporarily show upgrade notice for testing */
/* Uncomment the line below to test upgrade notice visibility */
/* .pawfect-upgrade-pro-message { display: block !important; } */

/* Hide the upgrade control's default elements (label, input) */
#customize-control-pawfect_main_slider_content_upsale .customize-control-title,
#customize-control-pawfect_main_slider_content_upsale input,
#customize-control-pawfect_main_slider_content_upsale label {
    display: none !important;
}

/* Ensure upgrade notice appears in correct location */
#customize-control-pawfect_main_slider_content_upsale {
    margin-top: 10px !important;
    padding: 0 !important;
}

#customize-control-pawfect_main_slider_content_upsale .pawfect-upgrade-pro-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Responsive adjustments */
@media (max-width: 782px) {
    .pawfect-upgrade-pro-message {
        padding: 10px !important;
        margin: 10px 0 !important;
    }

    .pawfect-upgrade-pro-message p {
        font-size: 12px !important;
    }
}

/* ========================================
   COLOR PICKER STYLES
   ======================================== */

li[class|="customize-control-pawfect-"] .wp-picker-container .wp-color-result.button {
	width: 100%;
	max-width: 255px;
	height: 30px;
	margin: 0 6px 6px 0;
	padding: 0 0 0 30px;
	font-size: 11px;
	-webkit-box-shadow: none;
	box-shadow: none;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

li[class|="customize-control-pawfect-"] .wp-picker-container .wp-color-result-text {
	background: rgba(0, 0, 0, 0.1);
	border-radius: 0 2px 2px 0;
	border-left: 1px solid rgba(0, 0, 0, 0.06);
	color: #fff;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	height: 100%;
}

li[class|="customize-control-pawfect-"] .wp-picker-container span.color-alpha {
	width: 30px;
	height: 24px;
	position: absolute;
	top: 0;
	left: 0;
	border-top-left-radius: 2px;
	border-bottom-left-radius: 2px;
}

.customize-control-pawfect-radio-buttonset .buttonset {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
}

.customize-control-pawfect-radio-buttonset .buttonset .switch-label {
	background: rgba(0, 0, 0, 0.1);
	border: 1px rgba(0, 0, 0, 0.1);
	color: rgba(50, 55, 60, 0.5);
	margin: 0;
	text-align: center;
	padding: 0.5em 1em;
	-webkit-box-flex: 1;
	-ms-flex-positive: 1;
	flex-grow: 1;
}

.customize-control-pawfect-radio-buttonset .buttonset .switch-input:checked + .switch-label {
	background: #13a1dc;
	color: rgba(255, 255, 255, 0.8);
}

/* Control: slider. */

.customize-control-pawfect-slider .customize-control-content {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
}

.customize-control-pawfect-slider .ui-slider {
	background-color: rgba(0, 0, 0, 0.1);
	width: 63%;
	height: 6px;
	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	border-radius: 3px;
}

.customize-control-pawfect-slider .ui-slider .ui-slider-handle {
	height: 15px;
	width: 15px;
	background-color: #fff;
	position: absolute;
	cursor: pointer;
	-webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
	border-radius: 3px;
}

.customize-control-pawfect-slider .ui-slider .ui-slider-range {
	background-color: #13a1dc;
	height: 100%;
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
}

.customize-control-pawfect-slider .pawfect-slider-input {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

.customize-control-pawfect-slider .pawfect-slider-input .slider-reset {
	padding-left: 5px;
	cursor: pointer;
	display: none;
}

/* Control: Radio image. */
.customize-control-pawfect-radio-image > .image {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
}

.customize-control-pawfect-radio-image .image-select + label {
	position: relative;
	display: inline-block;
	width: 27%;
    margin-right: 4%;
    margin-top: 10px;
}

#customize-control-pawfect_theme_color .image-select + label, #customize-control-pawfect_theme_background_image .image-select + label{ 	
    width: 22% !important;
	margin-right: 0% !important; 
}

#customize-control-pawfect_page_header_layout .image-select + label {
    width: 47%;
}

.customize-control-pawfect-radio-image .image-select + label:nth-of-type(3n) {
	margin-right: 0;
}

.customize-control-pawfect-radio-image .image-select + label .image-label {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.7);
	font-weight: 700;
}

.customize-control-pawfect-radio-image .image-select + label .image-label .inner {
	width: 100%;
	height: 100%;
	text-align: center;
	padding: 0.5em;
	vertical-align: middle;
}

.customize-control-pawfect-radio-image .image-select + label:hover .image-label {
	display: block;
}

.customize-control-pawfect-radio-image input {
	display: none;
}

.customize-control-pawfect-radio-image input img {
	border: 1px solid transparent;
}

.customize-control-pawfect-radio-image input:checked + label img {
	-webkit-box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
	box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
	border: 1px solid #13a1dc;
}

.customize-control-pawfect-radio-image input + label .image-clickable {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
}

/* Control: Blog Sortable - Premium Style */
.customize-control-pawfect-blog-sortable .customizer-layout-container {
    margin-bottom: 15px;
}

.customize-control-pawfect-blog-sortable .customizer-layout-heading {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 0 2px;
}

.customize-control-pawfect-blog-sortable .sortable-list {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 50px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.customize-control-pawfect-blog-sortable .sortable-list:hover {
    border-color: #0073aa;
    background: #f8f9fa;
}

.customize-control-pawfect-blog-sortable .sortable-item {
    position: relative;
    margin: 6px;
    padding: 12px 40px 12px 16px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    cursor: move;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customize-control-pawfect-blog-sortable .pawfect-element-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.customize-control-pawfect-blog-sortable .pawfect-element-label {
    flex: 1;
    line-height: 1.3;
}

.customize-control-pawfect-blog-sortable .sortable-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,115,170,0.15);
    transform: translateY(-1px);
}

.customize-control-pawfect-blog-sortable .sortable-item:before {
    content: "⋮⋮";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -2px;
}

.customize-control-pawfect-blog-sortable .sortable-item:hover:before {
    color: #0073aa;
}

.customize-control-pawfect-blog-sortable .sortable-item-placeholder {
    background: #e3f2fd !important;
    border: 2px dashed #2196f3 !important;
    box-shadow: none !important;
    height: 44px;
    margin: 6px;
    border-radius: 4px;
}

.customize-control-pawfect-blog-sortable .ui-sortable-helper {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    transform: rotate(2deg) !important;
    z-index: 9999 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Disabled items styling */
.customize-control-pawfect-blog-sortable #pawfect-blog-disabled .sortable-item {
    opacity: 0.6;
    background: #f5f5f5;
    border-style: dashed;
    color: #666;
}

.customize-control-pawfect-blog-sortable #pawfect-blog-disabled .sortable-item:before {
    content: "👁";
    font-size: 12px;
}

/* Enhanced description */
.customize-control-pawfect-blog-sortable .description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid #0073aa;
    border-radius: 0 4px 4px 0;
}

/* Premium Animations and Interactions */
.customize-control-pawfect-blog-sortable .sortable-item.pawfect-dragging {
    transform: rotate(3deg) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,115,170,0.3) !important;
    z-index: 1000;
}

.customize-control-pawfect-blog-sortable .sortable-list.pawfect-drag-active {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: scale(1.01);
}

.customize-control-pawfect-blog-sortable .sortable-list.pawfect-drag-over {
    background: #e8f5e8;
    border-color: #4caf50;
    box-shadow: inset 0 0 10px rgba(76,175,80,0.2);
}

.customize-control-pawfect-blog-sortable .sortable-item.pawfect-item-hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.2);
}

.customize-control-pawfect-blog-sortable .sortable-item.pawfect-drop-success {
    animation: pawfectDropSuccess 0.6s ease-out;
}

@keyframes pawfectDropSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); background: #e8f5e8; border-color: #4caf50; }
    100% { transform: scale(1); }
}

/* Control: Frontpage Sortable - Premium Style */
.customize-control-pawfect-frontpage-sortable .customizer-layout-container {
    margin-bottom: 15px;
}

.customize-control-pawfect-frontpage-sortable .customizer-layout-heading {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 0 2px;
}

.customize-control-pawfect-frontpage-sortable .sortable-list {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 50px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.customize-control-pawfect-frontpage-sortable .sortable-list:hover {
    border-color: #0073aa;
    background: #f8f9fa;
}

.customize-control-pawfect-frontpage-sortable .sortable-item {
    position: relative;
    margin: 6px;
    padding: 12px 40px 12px 16px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    cursor: move;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customize-control-pawfect-frontpage-sortable .pawfect-element-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.customize-control-pawfect-frontpage-sortable .pawfect-element-label {
    flex: 1;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customize-control-pawfect-frontpage-sortable .pawfect-pro-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.customize-control-pawfect-frontpage-sortable .sortable-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,115,170,0.15);
    transform: translateY(-1px);
}

.customize-control-pawfect-frontpage-sortable .sortable-item:before {
    content: "⋮⋮";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -2px;
}

.customize-control-pawfect-frontpage-sortable .sortable-item:hover:before {
    color: #0073aa;
}

.customize-control-pawfect-frontpage-sortable .sortable-item-placeholder {
    background: #e3f2fd !important;
    border: 2px dashed #2196f3 !important;
    box-shadow: none !important;
    height: 44px;
    margin: 6px;
    border-radius: 4px;
}

.customize-control-pawfect-frontpage-sortable .ui-sortable-helper {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    transform: rotate(2deg) !important;
    z-index: 9999 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Pro-only sections styling */
.customize-control-pawfect-frontpage-sortable .sortable-item.pawfect-pro-only {
    border-left: 4px solid #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

.customize-control-pawfect-frontpage-sortable .sortable-item.pawfect-pro-only:hover {
    border-left-color: #5a67d8;
    box-shadow: 0 2px 8px rgba(102,126,234,0.2);
}

/* Disabled items styling */
.customize-control-pawfect-frontpage-sortable .sortable-item.pawfect-disabled {
    opacity: 0.6;
    background: #f5f5f5;
    border-style: dashed;
    color: #666;
}

.customize-control-pawfect-frontpage-sortable .sortable-item.pawfect-disabled:before {
    content: "👁";
    font-size: 12px;
}

/* Visibility toggle styling */
.customize-control-pawfect-frontpage-sortable .pawfect-visibility-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    z-index: 10;
}

.customize-control-pawfect-frontpage-sortable .pawfect-visibility-toggle:hover {
    background: rgba(0,115,170,0.1);
}

.customize-control-pawfect-frontpage-sortable .pawfect-visibility-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #666;
    transition: color 0.2s ease;
}

.customize-control-pawfect-frontpage-sortable .pawfect-visibility-toggle:hover .dashicons {
    color: #0073aa;
}

.customize-control-pawfect-frontpage-sortable .pawfect-visibility-toggle .dashicons-lock {
    color: #667eea;
}

.customize-control-pawfect-frontpage-sortable .pawfect-visibility-toggle:hover .dashicons-lock {
    color: #5a67d8;
}

/* Drag animations */
.customize-control-pawfect-frontpage-sortable .sortable-list.pawfect-drag-active {
    background: #f0f8ff;
    border-color: #2196f3;
    box-shadow: inset 0 0 10px rgba(33,150,243,0.1);
}

.customize-control-pawfect-frontpage-sortable .sortable-list.pawfect-drag-over {
    background: #e8f5e8;
    border-color: #4caf50;
    box-shadow: inset 0 0 10px rgba(76,175,80,0.2);
}

.customize-control-pawfect-frontpage-sortable .sortable-item.pawfect-item-hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.2);
}

.customize-control-pawfect-frontpage-sortable .sortable-item.pawfect-drop-success {
    animation: pawfectDropSuccess 0.6s ease-out;
}

/* Save Notification */
.pawfect-save-notification {
    position: fixed;
    top: 32px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.pawfect-save-notification.pawfect-show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive improvements */
@media (max-width: 782px) {
    .customize-control-pawfect-blog-sortable .sortable-item {
        padding: 14px 45px 14px 18px;
        font-size: 14px;
    }

    .customize-control-pawfect-blog-sortable .sortable-item:before {
        right: 15px;
        font-size: 16px;
    }
}

/* Control: Sortable (Legacy). */
.customize-control-pawfect-sortable ul.sortable {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 40px;
}

.customize-control-pawfect-sortable ul.sortable li {
    padding: 12px 15px;
    margin: 2px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 3px;
    cursor: move;
    position: relative;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.customize-control-pawfect-sortable ul.sortable li:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.customize-control-pawfect-sortable ul.sortable li .dashicons.dashicons-move {
    float: right;
    color: #666;
    margin-top: -2px;
}

.customize-control-pawfect-sortable ul.sortable li .dashicons.visibility {
    margin-right: 10px;
    color: #0073aa;
    cursor: pointer;
}

.customize-control-pawfect-sortable ul.sortable li.invisible {
    opacity: 0.5;
    color: #999;
    border: 1px dashed #ccc;
    background: #f5f5f5;
}

.customize-control-pawfect-sortable ul.sortable li.invisible .dashicons.visibility {
    color: #999;
}

.customize-control-pawfect-sortable .description {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

/* Control: Layout Manager */
.customize-control-pawfect_layout_manager .customizer-layout-container {
    margin-bottom: 20px;
}

.customize-control-pawfect_layout_manager .customizer-layout-heading {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.customize-control-pawfect_layout_manager .sortable-list {
    min-height: 50px;
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background-color: #fafafa;
    list-style: none;
    margin: 0;
    transition: all 0.3s ease;
}

.customize-control-pawfect_layout_manager .sortable-list:hover {
    border-color: #0073aa;
    background-color: #f7f7f7;
}

.customize-control-pawfect_layout_manager .sortable-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 10px 12px;
    margin-bottom: 5px;
    cursor: move;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Disabled state styling */
.customize-control-pawfect_layout_manager .sortable-item.pawfect-disabled {
    opacity: 0.5;
    background: #f9f9f9;
}

/* Pro-only sections styling for layout manager */
.customize-control-pawfect_layout_manager .sortable-item.pawfect-pro-only {
    border-left: 4px solid #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

.customize-control-pawfect_layout_manager .sortable-item.pawfect-pro-only:hover {
    border-left-color: #5a67d8;
    box-shadow: 0 2px 8px rgba(102,126,234,0.2);
}

/* Element label styling */
.customize-control-pawfect_layout_manager .pawfect-element-label {
    display: flex;
    align-items: center;
    flex: 1;
}

.customize-control-pawfect_layout_manager .pawfect-pro-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    margin-left: 8px;
}

/* Visibility toggle styling */
.customize-control-pawfect_layout_manager .pawfect-visibility-toggle {
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.customize-control-pawfect_layout_manager .pawfect-visibility-toggle:hover {
    background: rgba(0, 115, 170, 0.1);
}

.customize-control-pawfect_layout_manager .pawfect-visibility-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #666;
    transition: color 0.2s ease;
}

.customize-control-pawfect_layout_manager .pawfect-visibility-toggle:hover .dashicons {
    color: #0073aa;
}

.customize-control-pawfect_layout_manager .pawfect-visibility-toggle .dashicons-visibility {
    color: #46b450;
}

.customize-control-pawfect_layout_manager .pawfect-visibility-toggle .dashicons-hidden {
    color: #dc3232;
}

.customize-control-pawfect_layout_manager .pawfect-visibility-toggle .dashicons-lock {
    color: #667eea;
}

.customize-control-pawfect_layout_manager .pawfect-visibility-toggle:hover .dashicons-lock {
    color: #5a67d8;
}

/* Drag animations */
.customize-control-pawfect_layout_manager .sortable-item.pawfect-dragging {
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,115,170,0.3) !important;
    z-index: 1000;
}

.customize-control-pawfect_layout_manager .sortable-list.pawfect-drag-active {
    background: #f0f8ff;
    border-color: #2196f3;
    box-shadow: inset 0 0 10px rgba(33,150,243,0.1);
}

.customize-control-pawfect_layout_manager .pawfect-drop-success {
    animation: pawfect-drop-success 0.6s ease-out;
}

@keyframes pawfect-drop-success {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); background: #e8f5e8; }
    100% { transform: scale(1); }
}

.customize-control-pawfect_layout_manager .sortable-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.customize-control-pawfect_layout_manager .sortable-item:last-child {
    margin-bottom: 0;
}

.customize-control-pawfect_layout_manager .sortable-item-placeholder {
    background: #e8f4f8;
    border: 2px dashed #0073aa;
    height: 40px;
    margin-bottom: 5px;
    border-radius: 3px;
    opacity: 0.7;
}

.customize-control-pawfect_layout_manager .sortable-item::after {
    content: "⋮⋮";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -2px;
}

.customize-control-pawfect_layout_manager .sortable-item:hover::after {
    color: #0073aa;
}

/* Empty state styling */
.customize-control-pawfect_layout_manager .sortable-list:empty::before {
    content: "Drop sections here";
    display: block;
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    font-size: 12px;
}

/* Responsive improvements */
@media (max-width: 782px) {
    .customize-control-pawfect_layout_manager .sortable-item {
        padding: 12px 14px;
        font-size: 14px;
    }

    .customize-control-pawfect_layout_manager .customizer-layout-heading {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* Animation improvements */
.customize-control-pawfect_layout_manager .sortable-list {
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.customize-control-pawfect_layout_manager .sortable-item {
    transition: all 0.2s ease;
}

.customize-control-pawfect_layout_manager .sortable-item.ui-sortable-helper {
    transform: rotate(2deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
}

/* Focus states for accessibility */
.customize-control-pawfect_layout_manager .sortable-item:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Better visual feedback during sorting */
.customize-control-pawfect_layout_manager .sortable-list.ui-sortable-over {
    border-color: #0073aa;
    background-color: #e8f4f8;
}

/* Control: Toggle Switch - Tailwind Minimal Style */
.customize-control-pawfect-toggle {
    position: relative;
}

.customize-control-pawfect-toggle label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.customize-control-pawfect-toggle .customize-control-title {
    flex: 1;
    margin: 0;
    font-weight: 500;
}

.customize-control-pawfect-toggle .description {
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: #374151;
}

/* Hide checkbox */
.customize-control-pawfect-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Minimal toggle switch */
.customize-control-pawfect-toggle .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background: #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.customize-control-pawfect-toggle .switch::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Active state */
.customize-control-pawfect-toggle input:checked + .switch {
    background: #3b82f6;
}

.customize-control-pawfect-toggle input:checked + .switch::before {
    transform: translateX(20px);
}

/* Hover state */
.customize-control-pawfect-toggle .switch:hover {
    background: #9ca3af;
}

.customize-control-pawfect-toggle input:checked + .switch:hover {
    background: #2563eb;
}

/* Control: Heading — Premium Sub-Section Separators */

.customize-control-pawfect-heading {
    display: list-item;
    margin-left: -12px;
    margin-right: -12px;
    margin-top: 16px;
    margin-bottom: 4px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 3px solid #3b82f6;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.customize-control-pawfect-heading:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #e8f0fe 100%);
    border-left-color: #2563eb;
}

.customize-control-pawfect-heading h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.customize-control-pawfect-heading h4 span {
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #334155;
}

.customize-control-pawfect-heading .description {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.4;
}

/* ========================================
   PREMIUM PANEL & SECTION STYLING
   ======================================== */

/* Panel titles — sleeker look */
#customize-theme-controls .accordion-section-title {
    transition: all 0.2s ease;
}

#customize-theme-controls .accordion-section-title:hover {
    background: #f8fafc;
    color: #1e293b;
}

/* Active panel highlight */
#customize-theme-controls .accordion-section.open > .accordion-section-title {
    border-left: 3px solid #3b82f6;
    font-weight: 600;
    color: #1e40af;
    background: #eff6ff;
}

/* Section controls container — subtle card feel */
.customize-control {
    transition: opacity 0.2s ease;
}

/* Better spacing for control labels */
.customize-control .customize-control-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.01em;
    margin-bottom: 6px;
}

.customize-control .customize-control-description {
    font-size: 11.5px;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 6px;
}

/* ========================================
   SECTION STATUS INDICATORS
   ======================================== */

/* Active section indicator dot */
.accordion-section-title .pawfect-section-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.accordion-section-title .pawfect-section-status.active {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.accordion-section-title .pawfect-section-status.disabled {
    background: #d1d5db;
}

.accordion-section-title .pawfect-section-status.pro-only {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
}

/* ========================================
   CONTROL GROUP SEPARATORS
   ======================================== */

/* Thin separator between control groups */
.pawfect-control-separator {
    margin: 16px -12px 12px;
    padding: 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Control group wrapper */
.pawfect-control-group {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 4px;
}

.pawfect-control-group:last-child {
    border-bottom: none;
}

/* ========================================
   POLISHED INPUT CONTROLS
   ======================================== */

/* Text inputs and selects */
.customize-control input[type="text"],
.customize-control input[type="url"],
.customize-control input[type="email"],
.customize-control input[type="number"],
.customize-control select,
.customize-control textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.customize-control input[type="text"]:focus,
.customize-control input[type="url"]:focus,
.customize-control input[type="email"]:focus,
.customize-control input[type="number"]:focus,
.customize-control select:focus,
.customize-control textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* ========================================
   PREMIUM BUTTON STYLES IN CUSTOMIZER
   ======================================== */

/* Generic customizer buttons */
.customize-control button.button,
.customize-control a.button {
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
    padding: 6px 14px;
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

.customize-control button.button:hover,
.customize-control a.button:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #1e40af;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.15);
}

span.customize-category-select-control {
    display: block;
    font-size: 14px;
    line-height: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Radio Image Control - Enhanced with SVG Checkmarks */
.radio-image-control,
.pawfect-radio-image-control {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.radio-image-control label,
.pawfect-radio-image-control .pawfect-radio-image-option {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.radio-image-control label:hover,
.pawfect-radio-image-control .pawfect-radio-image-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.radio-image-control input[type="radio"],
.pawfect-radio-image-control input[type="radio"] {
    display: none;
}

.radio-image-control label img,
.pawfect-radio-image-control img {
    display: block;
    width: 80px;
    height: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.radio-image-control input[type="radio"]:checked + img,
.pawfect-radio-image-control input[type="radio"]:checked + img {
    opacity: 1 !important;
}

.radio-image-control label:hover img,
.pawfect-radio-image-control .pawfect-radio-image-option:hover img {
    opacity: 0.9;
}

/* Selected state with SVG checkmark */
.pawfect-radio-image-control input[type="radio"]:checked + img + .pawfect-checkmark {
    opacity: 1 !important;
}

.pawfect-radio-image-control .pawfect-checkmark {
    opacity: 0;
    transition: all 0.3s ease;
}

/* Selected state glow effect */
.radio-image-control input[type="radio"]:checked ~ label,
.radio-image-control label:has(input[type="radio"]:checked),
.pawfect-radio-image-control input[type="radio"]:checked ~ .pawfect-radio-image-option,
.pawfect-radio-image-control .pawfect-radio-image-option:has(input[type="radio"]:checked) {
    box-shadow: 0 0 0 2px #4f66d8, 0 4px 16px rgba(79, 102, 216, 0.3) !important;
}

/* Hover text labels */
.pawfect-radio-image-control .pawfect-hover-label {
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.pawfect-radio-image-control .pawfect-radio-image-option:hover .pawfect-hover-label {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Draggable Wrapper */
.pawfect-draggable-wrapper {
    position: relative;
    overflow: hidden;
    contain: layout style paint;
}

.pawfect-draggable-wrapper:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Enhanced Draggable Dot */
.pawfect-draggable-dot {
    position: absolute;
    z-index: 10;
    cursor: grab;
}

.pawfect-draggable-dot:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6), 0 4px 8px rgba(0,0,0,0.15);
    cursor: grabbing;
}

.pawfect-draggable-dot:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.8);
    cursor: grabbing;
}

/* Ensure draggable dot stays within wrapper boundaries */
.pawfect-draggable-wrapper .pawfect-draggable-dot {
    max-width: calc(100% - 4px);
    max-height: calc(100% - 4px);
}

/* Pulse animation when first loaded */
@keyframes pawfect-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pawfect-draggable-dot {
    animation: pawfect-pulse 2s ease-in-out 3;
}

/* Instructions fade out on hover */
.pawfect-draggable-wrapper:hover .pawfect-draggable-instructions {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* Typography Panel Spacing */
#accordion-panel-pawfect_typography {
    margin-bottom: 10px;
}

/* Blog Sortable Inline Toggle Styles */
.pawfect-visibility-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.pawfect-visibility-toggle:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.pawfect-visibility-toggle svg {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.pawfect-visibility-toggle:hover svg {
    fill: #3b82f6;
}

.sortable-item {
    position: relative;
    padding-right: 40px !important;
    transition: opacity 0.3s ease;
}

.sortable-item.pawfect-disabled {
    opacity: 0.5;
}

.sortable-item.pawfect-disabled .pawfect-element-label {
    color: #999;
}

/* Enhanced sortable item styling */
.sortable-item:hover .pawfect-visibility-toggle {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Drag handle spacing adjustment for toggle */
.sortable-item .pawfect-element-label {
    max-width: calc(100% - 60px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
