/**
 * VC Compat — frontend styles for WPBakery Ultimate Addons replacement shortcodes.
 *
 * Mirrors original CSS class names so existing page content renders identically.
 */

/* Info Box */
.aio-icon-component { margin-bottom: 20px; }
.aio-icon-box { display: flex; align-items: flex-start; }
.aio-icon-box.default-icon { flex-direction: column; text-align: center; }
.aio-icon-box.left-icon .aio-icon-left { margin-right: 15px; flex-shrink: 0; }
.aio-icon-box.right-icon { flex-direction: row-reverse; }
.aio-icon-box.right-icon .aio-icon-right { margin-left: 15px; flex-shrink: 0; }
.aio-icon.advanced { display: inline-flex; align-items: center; justify-content: center; border-radius: 500px; }
.aio-icon-img .img-icon { max-width: 100%; height: auto; }
.aio-icon-title { margin: 0 0 8px; font-size: 16px; line-height: 1.4; }
.aio-icon-description { font-size: 14px; line-height: 1.6; }
.aio-ibd-block { flex: 1; }
.aio-icon-box-link { text-decoration: none; color: inherit; display: block; }

/* Heading */
.uvc-heading { margin-bottom: 20px; }
.uvc-main-heading h1, .uvc-main-heading h2, .uvc-main-heading h3,
.uvc-main-heading h4, .uvc-main-heading h5, .uvc-main-heading h6 { margin: 0; }
.uvc-sub-heading { margin-top: 8px; }

/* Info List */
.ult_info_list_container { margin-bottom: 20px; }
.smile_icon_list { list-style: none; padding: 0; margin: 0; }
.icon_list_item { display: flex; align-items: flex-start; margin-bottom: 15px; position: relative; }
.icon_list_icon { flex-shrink: 0; margin-right: 15px; display: flex; align-items: center; justify-content: center; }
.icon_description { flex: 1; }
.icon_description h3 { margin: 0 0 4px; font-size: 15px; }
.icon_description p { margin: 0; }
.icon_list_connector { position: absolute; left: 12px; top: 100%; height: 15px; border-right: 1px dashed #ccc; }

/* Tabs */
.ult_tabmenu { display: flex; flex-wrap: wrap; border-bottom: 2px solid #ededed; margin-bottom: 0; list-style: none; padding: 0; }
.ult_tab_li { padding: 10px 20px; cursor: pointer; border-radius: 2px 2px 0 0; transition: background .2s; }
.ult_tab_li.active { font-weight: 600; }
.ult_tab_main_content { padding: 20px 0; }
.ult_tab_section { display: none; }
.ult_tab_section.active { display: block; }

/* Content Box */
.ult_content_box { padding: 10px; margin-bottom: 20px; }

/* Banner */
.ult-banner-block { position: relative; overflow: hidden; margin-bottom: 20px; }
.ult-banner-block img { width: 100%; display: block; }
.ultb-banner-text { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; color: #fff; background: rgba(0,0,0,0.5); }
.ultb-banner-text h3 { margin: 0 0 5px; }
.ultb-banner-text p { margin: 0; }

/* Stat Counter */
.stats-block { text-align: center; margin-bottom: 20px; }
.stats-number { font-size: 36px; font-weight: 700; line-height: 1.2; }
.stats-text { font-size: 14px; margin-top: 8px; }

/* Icon Counter */
.icon_counter { text-align: center; margin-bottom: 20px; }
.icon_count_value { font-size: 36px; font-weight: 700; line-height: 1.2; }
.icon_count_heading { font-size: 14px; margin-top: 8px; }

/* Pricing Table */
.ult_pricing_table { border: 1px solid #ededed; border-radius: 4px; padding: 20px; text-align: center; margin-bottom: 20px; }
.ult_price_title { margin: 0 0 10px; }
.ult_price_amount { margin-bottom: 5px; }
.ult_price_duration { color: #777; font-size: 13px; margin-bottom: 15px; }
.ult_price_features { list-style: none; padding: 0; margin: 15px 0; }
.ult_price_features li { padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.ult_price_link { margin-top: 15px; }

/* Just Icon */
.ult-just-icon-wrapper { display: inline-block; }
.just-icon-wrapper { margin-bottom: 15px; }
.align-icon { text-align: center; }

/* Blockquote / Citation */
.ult-blockquote { border-left: 4px solid #333; padding: 15px 20px; margin: 20px 0; font-style: italic; }
.ult-quote-text { margin-bottom: 8px; }
.ult-quote-cite { font-size: 13px; color: #777; font-style: normal; }

/* Modal */
.ult-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 99999; display: none; align-items: center; justify-content: center; }
.ult-modal-overlay.active { display: flex; }
.ult-modal-content { background: #fff; border-radius: 6px; padding: 30px; max-width: 600px; width: 90%; position: relative; }
.ult-modal-close { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; background: none; border: none; }

/* Carousel - pure CSS horizontal scroll */
.ult_carousel { display: flex; overflow-x: auto; gap: 15px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 10px; }
.ult_carousel > * { scroll-snap-align: start; flex-shrink: 0; }

/* Info Circle */
.info-circle-wrapper { position: relative; margin: 20px auto; }

/* Info Table */
.ult_info_table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.ult_info_table th, .ult_info_table td { padding: 10px; border: 1px solid #ededed; }

/* Icons wrapper */
.ult-icons-wrapper { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Accent icon bg (used by масла.сайт) */
.accent-icon-bg .aio-icon.advanced { background: var(--accent-color, #bd9d61) !important; }

/* Porto Hotspot */
@keyframes porto-hotspot-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(57, 162, 206, 0.4); }
	50% { box-shadow: 0 0 0 8px rgba(57, 162, 206, 0); }
}
.porto-hotspot { display: flex; align-items: center; justify-content: center; position: absolute; background: #39a2ce; width: 24px; height: 24px; border-radius: 50%; line-height: 24px; font-size: 8px; cursor: pointer; animation: porto-hotspot-pulse 2.5s ease-in-out infinite; }
.porto-hotspot::after { content: ""; position: absolute; width: 10px; height: 10px; background: #fff; border-radius: 50%; }
.porto-hotspot:before { content: ""; position: absolute; left: -10px; right: -10px; top: -10px; bottom: -10px; }
.porto-hotspot .porto-products, .porto-hotspot .products .product-col, .porto-hotspot ul.products { margin-bottom: 0; }
.porto-hotspot i { color: #fff; line-height: inherit; display: none; }
.porto-hotspot .popup-wrap { text-align: left; cursor: default; position: absolute; z-index: 29; padding: 20px; min-width: 250px; background: #fff; box-shadow: 0 0 30px rgba(0, 0, 0, 0.06); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.3s, visibility 0.3s; }
.porto-hotspot.pos-right .popup-wrap { left: calc(100% + 10px); transform: translate(-8px, -20%); }
.porto-hotspot.pos-left .popup-wrap { right: calc(100% + 10px); transform: translate(8px, -20%); }
.porto-hotspot.pos-left:hover .popup-wrap, .porto-hotspot.pos-right:hover .popup-wrap { transform: translate(0, -20%); }
.porto-hotspot.pos-top .popup-wrap { left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, -8px); }
.porto-hotspot.pos-bottom .popup-wrap { left: 50%; top: calc(100% + 10px); transform: translate(-50%, 8px); }
.porto-hotspot.pos-bottom:hover .popup-wrap, .porto-hotspot.pos-top:hover .popup-wrap { transform: translate(-50%, 0); }
.porto-hotspot:hover .popup-wrap { visibility: visible; opacity: 1; }
.elementor-widget-porto_hotspot .porto-hotspot { position: static; }
.single-carts-smazok .vc_row.vc_row-flex>.vc_column_container>.vc_column-inner { z-index: auto; }

/* Responsive */
@media (max-width: 768px) {
	.aio-icon-box.left-icon, .aio-icon-box.right-icon { flex-direction: column; }
	.aio-icon-box.left-icon .aio-icon-left, .aio-icon-box.right-icon .aio-icon-right { margin: 0 0 10px; }
	.ult_tabmenu { flex-direction: column; }
}

@media (max-width: 575px) {
	.porto-hotspot .popup-wrap { min-width: 160px; padding: 10px; }
}
