[data-name="product_videos"][data-type="wysiwyg"] .mce-top-part {
	display: none;
}

[data-name="product_videos"][data-type="wysiwyg"] .wp-media-buttons,
[data-name="product_videos"][data-type="wysiwyg"] .wp-media-buttons .add_media {
	width: 100%;
}

#cpto #cpt_info_box,
.dimension_fields,
[class*="variable_weight"],
.dimensions_field { display: none !important }

table.wp-list-table .column-featured, table.wp-list-table .column-product_type,
.widefat .check-column,
table.wp-list-table .column-thumb { width: 2%; text-align: center; }

#wpseo-readability-filter,
#wpseo-filter,
.yith-plugin-fw-banner {
	display: none;
}

.yith-plugin-ui .nav-tab {
    background: #dcdcde;
    color: #50575e;
    border: 1px solid #c3c4c7;
    border-bottom: 0;
    text-transform: none;
}

.yith-plugin-ui .nav-tab.yith-premium,
.yith-plugin-ui .nav-tab:hover {
	background-color: white !important
}

.theme-Showman .footer {
    top: 80mm !important;
    right: 5mm !important;
    padding: 3mm;
    border: 2px solid #DDD;
}

.content ul.wc-item-meta li {
    margin-top: 5px;
}

.theme-Showman.format-A4 body {
    background-image: url('/wp-content/themes/showman/assets/img/eticket-background-full.jpg');
    background-repeat: no-repeat;
    background-position: center;
    padding: 10mm 0;
}

.theme-Showman.format-A4 .header {
    position: absolute;
    left: 10mm;
}

.theme-Showman.format-web .header,
.theme-Showman.format-web .footer,
.theme-Showman.format-web .additional-text {
    display:none
}

.theme-Showman.format-A4 .item {
    width: 200mm;
    background: transparent;
    margin: 15mm 5mm 0;
    border: .8mm dashed #A9802F !important;
    page-break-after: always;
}

.theme-Showman.format-web .item {
    border: 0;
    box-shadow: none;
}

.theme-Showman.format-A4 .controll {
    left: 154mm;
    top: 73mm;
    border-top: .8mm dashed #A9802F !important;
}

.theme-Showman.format-A4 .cols .col {
    float: left;
    width: 48%;
}

.theme-Showman.format-A4 .cols .col + .col {
    margin-left: 4%;
}

.theme-Showman.format-A4 .cols .clear {
    clear: both;
}

.text-right {
    text-align: right;
}

.uppercase { text-transform: uppercase }

.theme-Showman h1 {
    font-size: 16px !important;
    line-height: 18px !important;
    text-transform: uppercase;
    margin-bottom: 0 !important;
}

.theme-Showman.format-A4 .qrcode-horizontal {
    margin-top: 43mm;
}

.theme-Showman.format-web .qrcode-horizontal {
    display: block;
    margin: auto;
}

.theme-Showman.format-A4 .additional-text {
    position: absolute;
    margin-top: 63mm;
    margin-left: 38mm;
    font-size: 8px;
    max-width: 100mm;
    max-height: 30mm;
    overflow: hidden;
}

@page {
    size: A4;
    margin: 0;
}

/* reset */

html.showman body.theme-showman #primary,
html.showman body.theme-showman #main {
	margin-bottom: 0;
}

html.showman body.theme-showman #main {
	padding-top: 2.617924em;
}

@media (max-width: 568px) {
html.showman body.theme-showman #main {
	padding-top: 20px;
}
}

@media (max-width: 1280px) {
	html.showman body.theme-showman body { font-size: 14px }
}

@media (max-width: 640px) {
	html.showman body.theme-showman body { font-size: 12px }
}

.color-gold {
	color: #F4DF9C !important;
}

html.showman body.theme-showman #billing_country_field { display: none !important }

.user-noselect,
html.showman body.theme-showman #colophon .widget-title,
html.showman body.theme-showman #colophon .footer-contact-block-title {
	user-select: none;
	cursor: default;
}

html.showman body.theme-showman .site-main ul.products li.product img { 
	border-radius: 0 !important; 
	box-shadow: none !important; 
	transform: none !important;
}

@media (max-width: 768px) {
html.showman body.theme-showman .showman-product.product-type-simple .summary form.cart {
	position: relative;
	bottom: auto;
	background: transparent;
	border: 0;
	box-shadow: none;
	margin-bottom: 1.618em;
	padding: 1em 0;
	}
html.showman body.theme-showman .showman-product.product-type-simple .summary .price {
	bottom: auto;
	right: auto;
	position: relative;
	z-index: auto;
	}

html.showman body.theme-showman.woocommerce-cart #buddypress .place-order input#place_order[type=submit],
html.showman body.theme-showman.woocommerce-cart #buddypress .wc-proceed-to-checkout input[type=submit],
html.showman body.theme-showman.woocommerce-cart .place-order #buddypress input#place_order[type=submit],
html.showman body.theme-showman.woocommerce-cart .place-order #place_order.button,
html.showman body.theme-showman.woocommerce-cart .wc-proceed-to-checkout #buddypress input[type=submit],
html.showman body.theme-showman.woocommerce-cart .wc-proceed-to-checkout .button,
html.showman body.theme-showman.woocommerce-checkout #buddypress .place-order input#place_order[type=submit],
html.showman body.theme-showman.woocommerce-checkout #buddypress .wc-proceed-to-checkout input[type=submit],
html.showman body.theme-showman.woocommerce-checkout .place-order #buddypress input#place_order[type=submit],
html.showman body.theme-showman.woocommerce-checkout .place-order #place_order.button,
html.showman body.theme-showman.woocommerce-checkout .wc-proceed-to-checkout #buddypress input[type=submit],
	html.showman body.theme-showman.woocommerce-checkout .wc-proceed-to-checkout .button {
	position: relative;
	bottom: auto;
	border: 0;
	box-shadow: none;
	}
html.showman body.theme-showman.woocommerce-cart .site-content,
html.showman body.theme-showman.woocommerce-checkout .site-content { padding-bottom: 0 }

html.showman body.theme-showman form.checkout,
html.showman body.theme-showman .site-main { margin-bottom: 0 }
}

@media (max-width: 568px) {
	html.showman { margin-top: 0 !important }
	#wpadminbar { display: none !important }
}
@media screen and (max-width: 782px) {
	html.showman.adminbar-showing #wc_halls_iframe {
		top: 0;
		height: 100%;
	}
	html.showman.svg-hall-inserted {
		min-height: 100vh;
	}
}

.important-info{
	display: flex;
	justify-content: center;
	margin-bottom: 10px;
}

.important-info .text{
	border: 2px solid red;
	padding: 15px;
}

.important-info .text p{
	margin: 0px !important;
}

.fade-slider-sm{
	margin: 0px;
	height: 123px;
	margin-bottom: 10px ;
	display: none;
}

.fade-slider-sm .slick-dots{
	display: none !important;
}

.fade-slider-sm img{
	width:100%;
	min-height: 70px;
}

.slick-dotted.slick-slider {
	margin-bottom: 15px;
}

.slick-slide{
    height: 130px;
}

.product-slider .col-full{
	margin-bottom: 10px !important;
}

.fade-slider-sm .desktop-hidden{
	display: none !important;
}

.p-0{
	padding: 0px !important;
}

.m-0{
	margin: 0px !important;
}

.products.columns-4{
	padding-bottom: 10px !important;
}

.calendar-range-filter {
    display: none !important;
    background: linear-gradient(180deg, #8b31cf, #551e80 100%, #8a30cf 0);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
    color: #fff;
    border-radius: 30px;
    width: 50px;
    height: 50px;
}

.daterangepicker:before, .daterangepicker:after {
    content: none !important;
}

.date-filter-display {
    margin: 0 0 20px 0;
    padding: 0;
}

.date-filter-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 16px;
    color: #495057;
}

.date-filter-info .dashicons-calendar-alt {
    color: #007acc;
    font-size: 16px;
}

.date-filter-text {
    font-weight: 500;
}

.date-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #dc3545;
    border-radius: 50%;
    text-decoration: none;
    margin-left: 8px;
    transition: background-color 0.2s;
}

.date-filter-clear:hover {
    background: #c82333;
}

.date-filter-clear .dashicons {
    color: white;
    font-size: 12px;
    line-height: 1.7;
}

html.showman body.theme-showman table td {
    /* padding: 10px !important; */
}

.date-range-filter {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none !important;
	cursor: pointer;
}

.date-range-filter.active {
	color: white !important;
}

.date-range-filter.active .dashicons {
	color: white !important;
}

.date-range-filter .dashicons {
	pointer-events: none;
}

.date-range-filter .calendar-text {
	pointer-events: none;
	font-weight: 600;
}

/* Litepicker стили */
.litepicker {
	font-family: inherit;
	border-radius: 6px;
	border: 0px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
	z-index: 10000 !important;
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	background: white;
	max-width: 90vw;
	max-height: 90vh;
}

.litepicker .container__footer .button-apply {
    background: #000;
    padding: 5px 10px;
    font-size: 15px;
}

.litepicker .container__footer .button-cancel {
    padding: 5px 10px;
    font-size: 15px;
}

.litepicker .container__days .day-item.is-in-range {
    background-color: #c9cacb;
}

.litepicker .container__days .day-item.is-start-date,
.litepicker .container__days .day-item.is-end-date {
    background-color: #000;
}

.litepicker .container__months .month-item-header {
    font-size: 15px;
}

.litepicker .container__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.litepicker .container__months .month-item:first-child .button-previous-month,
.litepicker .container__months .month-item-header .button-next-month {
	font-weight: bold;
	color: white;
    font-weight: bold;
    border-radius: 100%;
    background: #000;
    width: 30px;
	cursor: pointer;
}


.litepicker .container__months .month-item:first-child .button-previous-month:hover,
.litepicker .container__months .month-item-header .button-next-month:hover {
	background: #9e9e9e;
	color: white;
}

html.showman body.theme-showman .product-filters .col-full {
    justify-content: space-between;
}

.product-filters .button {
    display: flex;
    align-items: center;
}

/* Стили для городского меню */
#city-navigation {
	position: relative;
	display: flex;
    align-items: center;
}

.city-menu-toggle {
	display: block !important;
	border: 0;
	padding: 0;
	min-width: 0;
	text-align: center;
	position: relative;
}

.city-menu-toggle span {
	white-space: nowrap;
	font-weight: bold;
	display: block;
	line-height: 1;
}

.city-dropdown {
	position: relative;
}

.city-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: #fff;
	border-radius: 20px;
	overflow: hidden;
	padding: 10px;
	box-shadow: 0 0 20px rgba(0, 0, 0, .3);
	z-index: 1000;
	margin: 0;
	list-style: none;
	min-width: 200px;
}

.city-menu[aria-expanded="true"] {
	display: block;
}

/* Центрирование только для десктопа */
@media (min-width: 769px) {
	.city-menu[aria-expanded="true"] {
		position: fixed !important;
		top: 50% !important;
		left: 50% !important;
		transform: translate(-50%, -50%) !important;
		max-width: 90vw;
		max-height: 80vh;
	}
}

.city-menu .city-item {
	margin: 0;
	padding: 0;
}

.city-menu .city-item:last-child {
	border-bottom: none;
}

.city-menu .city-item a {
	display: block;
	padding: 10px 15px;
	color: #000;
	text-decoration: none;
	font-size: 16px;
	font-weight: normal;
	white-space: nowrap;
	transition: background-color 0.3s ease;
	border-radius: 30px;
}

.city-menu .city-item a:hover {
	background-color: #f5f5f5;
}

.city-menu .city-item a.active {
	background-color: #8b31cf;
	color: #fff;
	font-weight: bold;
}

/* #city-navigation.toggled .city-menu-toggle {
	background: #551E80;
} */

/* #city-navigation:hover .city-menu-toggle {
	background: #551E80;
} */

/* Для десктопа - компактный вид */
@media (min-width: 769px) {
	.city-menu {
		max-height: 60vh;
		overflow-y: auto;
		width: 620px;
		columns: 4;
		column-gap: 20px;
		column-fill: balance;
	}
	
	.city-menu .city-item {
		break-inside: avoid;
		margin: 0;
		padding: 0;
		display: block;
		width: 100%;
	}
	
	.city-menu .city-item a {
		padding: 6px 10px;
		font-size: 14px;
		display: block;
		width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		position: relative;
	}
	
	/* Tooltip при наведении */
	.city-menu .city-item a:hover::after {
		content: attr(title);
		position: absolute;
		bottom: 100%;
		left: 50%;
		transform: translateX(-50%);
		background: rgba(0, 0, 0, 0.9);
		color: white;
		padding: 6px 10px;
		border-radius: 6px;
		font-size: 12px;
		white-space: nowrap;
		z-index: 1001;
		pointer-events: none;
		opacity: 0;
		animation: tooltipFadeIn 0.3s ease forwards;
	}
	
	/* Стрелочка для tooltip */
	.city-menu .city-item a:hover::before {
		content: '';
		position: absolute;
		bottom: 100%;
		left: 50%;
		transform: translateX(-50%) translateY(1px);
		border: 4px solid transparent;
		border-top-color: rgba(0, 0, 0, 0.9);
		z-index: 1001;
		pointer-events: none;
		opacity: 0;
		animation: tooltipFadeIn 0.3s ease forwards;
	}
	
	@keyframes tooltipFadeIn {
		from { opacity: 0; transform: translateX(-50%) translateY(-5px); }
		to { opacity: 1; transform: translateX(-50%) translateY(0); }
	}
	
	/* Кастомный скроллбар */
	.city-menu::-webkit-scrollbar {
		width: 6px;
	}
	
	.city-menu::-webkit-scrollbar-track {
		background: #f1f1f1;
		border-radius: 3px;
	}
	
	.city-menu::-webkit-scrollbar-thumb {
		background: #c1c1c1;
		border-radius: 3px;
	}
	
	.city-menu::-webkit-scrollbar-thumb:hover {
		background: #a1a1a1;
	}
}

/* Для мобильных устройств */
@media (max-width: 768px) {
	.city-menu {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		border-radius: 30px 30px 0 0;
		max-height: 50vh;
		overflow-y: auto;
		columns: initial !important;
		column-count: initial !important;
		width: auto !important;
		column-gap: initial !important;
		column-fill: initial !important;
	}
	
	.city-menu .city-item {
		display: block !important;
		width: 100% !important;
		break-inside: initial !important;
	}
	
	.city-menu .city-item a {
		padding: 10px 15px;
		font-size: 16px;
		display: block;
		width: 100%;
		white-space: normal !important;
		overflow: visible !important;
		text-overflow: initial !important;
	}

	.city-menu .city-item {
		break-inside: avoid;
		margin: 0;
		padding: 0;
		border-bottom: 1px solid rgba(0, 0, 0, .05);
		display: block;
		width: 100%;
	}
	
	/* Отключаем tooltip на мобилке */
	.city-menu .city-item a:hover::after,
	.city-menu .city-item a:hover::before {
		display: none !important;
	}
	
	body.city-navigation-expanded {
		overflow: hidden;
	}
	
	body.city-navigation-expanded::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: 999;
	}
}

@media (max-width: 1080px) {
	.city-menu-toggle span {
		font-size: 14px;
	}
}

@media (max-width: 768px) {
	
	.calendar-range-filter {
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .litepicker .container__months {
        justify-content: center;
    }

    .date-filter-info {
        font-size: 13px;
        padding: 10px 12px;
    }
	
	.fade-slider-sm{
		height: 70px;
	}

	.product-slider .col-full {
		margin-top: 10px !important;
		margin-bottom: 10px !important;
	}
	
	.fade-slider-sm .desktop-hidden{
		display: block !important;
	}
	
	.fade-slider-sm .mobile-hidden{
		display: none !important;
	}
	
}

/* ============ MODAL (GLOBAL) ============ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    /* max-height: 90vh;
    overflow-y: auto; */
    padding: 20px 15px 20px 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-container {
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #94a3b8;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Скрытие скроллбара для webkit браузеров (только для модалок) */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ============ PARTNER APPLICATION FORM ============ */
.partner-form {
    background: #fff;
    border-radius: 18px;
    /* max-width: 600px; */
    margin: 0 auto;
    padding: 40px 32px 32px 32px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.10);
}
.partner-form .form-header {
    text-align: center;
    margin-bottom: 32px;
}
.partner-form .form-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2d3748;
}
.partner-form .form-header p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 0;
}
.partner-form .form-section {
    margin-bottom: 28px;
}
.partner-form .form-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #4f46e5;
}
.partner-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}
.partner-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}
.partner-form .form-group label {
    font-weight: 500;
    margin-bottom: 7px;
    color: #374151;
}
.partner-form .form-group input,
.partner-form .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8fafc;
    color: #22223b;
    transition: border-color 0.2s;
    resize: none;
}
.partner-form .form-group input:focus,
.partner-form .form-group textarea:focus {
    border-color: #667eea;
    outline: none;
    background: #fff;
}
.partner-form .form-group .form-help {
    color: #64748b;
    font-size: 0.92rem;
    margin-top: 4px;
}
.partner-form .required {
    color: #ef4444;
    font-weight: bold;
}
.partner-form .checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.partner-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}
.partner-form .checkbox-label input[type="checkbox"] {
    accent-color: #667eea;
    width: 18px;
    height: 18px;
    margin-right: 6px;
}
.partner-form .agreement-link {
    margin-left: 18px;
    color: #667eea;
    font-size: 0.98rem;
    text-decoration: underline;
    transition: color 0.2s;
}
.partner-form .agreement-link:hover {
    color: #4f46e5;
}
@media (max-width: 600px) {
    .partner-form {
        padding: 18px 6px 24px 6px;
    }
    .partner-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    .partner-form .form-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============ BUTTONS ============ */
.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    gap: 8px;
}

.btn-primary-sm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary-sm:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

/* ============ application section ============ */

.partner-application-section .btn-sm {
    position: absolute;
    /* z-index: 10; */
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
}

.application-header h3 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.application-header p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.cart-collaterals.wte-cart-table-total {
	width: 100%;
}

.cart-collaterals.wte-cart-table-total td{
	text-align: right;
}

.discount-event-card {
	margin-top: 5px;
	text-align: center;
}

.single-product .product-type-simple .wte-discount-badge,
.discount-event-card .wte-discount-badge {
	justify-content: center;
	width: 100%;
}

#payment .payment_methods li {
	padding: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
	margin: 20px 0px;
}

#payment .payment_methods li:hover {
	background: #f1f5f9 !important;
    border-color: #cbd5e1;
    transform: translateX(1px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#payment .payment_methods li.active {
	background: #f1f5f9 !important;
    border-color: #cbd5e1;
    transform: translateX(1px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#payment .payment_box.payment_method_cardcom,
#payment .payment_box.payment_method_bacs {
	background: #f1f5f9 !important;
}

#payment .payment_methods li:last-child:not(.woocommerce-notice) {
    padding-bottom: 20px !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

table:not( .has-background ) tbody tr:nth-child(2n) td, fieldset, fieldset legend {
	background-color: white;
}

@media (max-width: 425px) {
	.woocommerce-grouped-product-list-item__quantity .wte-text-small{
		max-width: 220px;
		white-space: normal;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
}

@media (max-width: 410px) {
	.woocommerce-grouped-product-list-item__quantity .wte-text-small{
		max-width: 100%;
	}
}

/* ============ Checkout Page ============ */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

.sm-checkout-page {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    padding: 0;
    min-height: 835px;
}

.sm-checkout-page .checkout-steps-headers {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 32px;
    align-items: start;
}

.sm-checkout-page .checkout-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.sm-checkout-page .checkout-page-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px 40px;
}

.sm-checkout-page .step-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sm-checkout-page .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.sm-checkout-page .logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sm-checkout-page .logo-section svg {
    color: #667eea;
}

.sm-checkout-page .logo-section h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
}

.sm-checkout-page .step-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sm-checkout-page .step-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-checkout-page .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sm-checkout-page .step-item.active .step-circle {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sm-checkout-page .step-item.completed .step-circle {
    background: #10b981;
    color: white;
}

.sm-checkout-page .step-item span {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.sm-checkout-page .step-item.active span {
    color: #1a202c;
    font-weight: 600;
}

.sm-checkout-page .step-line {
    width: 60px;
    height: 2px;
    background: #e2e8f0;
}

.sm-checkout-page .checkout-content {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 32px;
    align-items: start;
}

.sm-checkout-page .checkout-main {
    position: relative;
}

.sm-checkout-page .checkout-section {
    display: none;
    animation: fadeSlideIn 0.5s ease;
}

.sm-checkout-page .checkout-section.active {
    display: block;
}

.sm-checkout-page .logo-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sm-checkout-page .card-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 28px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    border-radius: 20px 20px 0px 0px;
}

.sm-checkout-page .btn-back {
    /* position: absolute;
    top: 32px;
    left: 32px; */
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sm-checkout-page .btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-4px);
}

.sm-checkout-page .header-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.sm-checkout-page .card-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.sm-checkout-page .card-header p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 0px;
}

.sm-checkout-page .form-content {
    padding: 20px 0px;
}

.sm-checkout-page .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.sm-checkout-page .form-row.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sm-checkout-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sm-checkout-page .form-group.full-width {
    grid-column: span 2;
}

.sm-checkout-page .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.sm-checkout-page .form-group input,
.sm-checkout-page .form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

#billing_phone {
    direction: rtl;
    text-align: right;
}

.sm-checkout-page .form-group input:focus,
.sm-checkout-page .form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.sm-checkout-page .form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.sm-coupon-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 2px dashed #667eea;
    border-radius: 16px;
    padding: 20px;
}

.sm-coupon-box .coupon-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.sm-coupon-box .coupon-header svg {
    color: #667eea;
}

.sm-coupon-box .coupon-input {
    gap: 12px;
    display: block !important;
}

.sm-coupon-box .coupon-input .d-flex {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.sm-coupon-box .coupon-input input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    width: 80%;
    box-sizing: border-box;
}

.sm-coupon-box .btn-apply {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 5px;
    float: right;
}

.sm-checkout-page .btn-apply:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sm-checkout-page .payment-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.sm-checkout-page .payment-option {
    cursor: pointer;
    display: block;
}

.sm-checkout-page .payment-option input {
    display: none;
}

.sm-checkout-page .option-content {
    /* display: flex;
    align-items: center;
    gap: 16px; */
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.sm-checkout-page .payment-option.active .option-content {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.sm-checkout-page .option-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.sm-checkout-page .option-text {
    flex: 1;
}

.sm-checkout-page .option-text h4 {
    font-size: 16px;
    color: #1a202c;
    margin-bottom: 4px;
}

.sm-checkout-page .sm-payment-description,
.sm-checkout-page .option-text p {
    font-size: 13px;
    color: #64748b;
}

.sm-checkout-page .option-check {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: grey;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    opacity: 1;
    transform: scale(1);
}

.sm-checkout-page .option-check::before {
    content: '';
}

.sm-checkout-page .payment-option.active .option-check {
    background: #667eea;
}

.sm-checkout-page .payment-option.active .option-check::before {
    content: '✓';
}

.sm-checkout-page .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-top: 8px;
    position: relative;
}

.sm-checkout-page .checkbox-label input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.sm-checkout-page .checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    pointer-events: none;
}

.sm-checkout-page .checkbox-label input:checked + .checkbox-custom {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.sm-checkout-page .checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

.sm-checkout-page .checkbox-label span:last-child {
    color: #374151;
    line-height: 1.6;
}

.sm-checkout-page .checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.sm-checkout-page .card-footer {
    padding: 24px 0px;
    border-top: 1px solid #e5e7eb;
}

.sm-checkout-page .button-checkout,
.sm-checkout-page .btn-next {
    width: 100%;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    background: linear-gradient(180deg, #dfbd6d, #fff2d2 45.83%, #dfbd6d 61.46%, #a67d28);
    border: 2px solid hsla(42, 64%, 65%, .5);
    color: #000;
}

/* .sm-checkout-page .button-checkout {
    background: linear-gradient(180deg, #DFBD6D 0%, #FFF2D2 45.83%, #DFBD6D 61.46%, #A67D28 100%);
    color: black;
    border: 2px solid hsla(42, 64%, 65%, .5);
}

.sm-checkout-page .button-checkout:hover {
    background: linear-gradient(180deg, #DFBD6D 0%, #A67D28 45.83%, #A67D28 61.46%, #A67D28 100%);
    color: white;
    border: 2px solid hsla(42, 64%, 65%, .5);
} */

.sm-checkout-page .button-checkout:hover,
.sm-checkout-page .btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: #000;
    border: 2px solid hsla(42, 64%, 65%, .5);
}

.sm-checkout-page .btn-next.disabled {
    cursor: not-allowed;
    pointer-events: none; 
    opacity: 0.5; 
}

.sm-checkout-page .btn-next.disabled:hover {
    transform: none;
    box-shadow: none;
}

.sm-checkout-page .success-card {
    background: white;
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.sm-checkout-page .success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

.sm-checkout-page .success-card h2 {
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 12px;
}

.sm-checkout-page .success-card p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
}

.sm-checkout-page .order-number {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
}

.sm-checkout-page .checkout-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    align-self: start;
    margin-bottom: 30px;
    max-width: 450px;
}

.sm-checkout-page .summary-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sm-checkout-page .summary-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.sm-checkout-page .summary-header h3 {
    font-size: 20px;
    margin-bottom: 0;
    color: white;
}

.sm-checkout-page .timer {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.sm-checkout-page .order-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
}

.sm-checkout-page .order-item {
    display: flex;
    gap: 16px;
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.sm-checkout-page .item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
}

.sm-checkout-page .item-info {
    flex: 1;
    min-width: 0;
}

.sm-checkout-page .item-info h4 {
    font-size: 16px;
    color: #1a202c;
    margin-bottom: 8px;
    font-weight: 600;
}

.sm-checkout-page .item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.sm-checkout-page .item-details span:not(.wte-discount-badge) {
    font-size: 15px;
    /* color: #64748b; */
}

.sm-checkout-page .item-price {
    font-size: 16px;
    font-weight: 700;
    /* color: #667eea; */
}

.sm-checkout-page .summary-totals {
    padding: 20px 24px;
    background: #f9fafb;
    border-top: 2px solid #e5e7eb;
}

.sm-checkout-page .total-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    /* color: #64748b; */
}

.sm-checkout-page .total-line.main {
    border-top: 2px solid #e5e7eb;
    margin-top: 8px;
    padding-top: 16px;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
}

.sm-checkout-page .tax-info {
    text-align: right;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

@media (max-width: 1200px) {
    .sm-checkout-page .checkout-steps-headers,
    .sm-checkout-page .checkout-content {
        grid-template-columns: 1fr;
    }

    .sm-checkout-page .checkout-content {
        display: block;
    }

    .sm-checkout-page .checkout-sidebar {
        position: relative;
        top: 0;
        margin-top: 0 !important;
        transition: none;
    }
}

@media (max-width: 768px) {
    .sm-checkout-page .checkout-page-header {
        padding: 16px 20px;
    }
    
    .sm-checkout-page .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sm-checkout-page .step-indicator {
        width: 100%;
        justify-content: space-between;
    }
    
    .sm-checkout-page .step-line {
        flex: 1;
        max-width: 40px;
    }
    
    .sm-checkout-page .form-row.columns-3,
    .sm-checkout-page .form-row {
        grid-template-columns: 1fr;
    }

    .sm-checkout-page .woocommerce-terms-and-conditions-wrapper {
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .sm-checkout-page .woocommerce-terms-and-conditions {
        max-width: 100%;
        overflow-x: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-overflow-scrolling: touch;
    }
    
    .sm-checkout-page .checkbox-label {
        position: relative;
        padding: 8px 0;
        min-height: 44px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        touch-action: manipulation;
    }
    
    .sm-checkout-page .checkbox-custom {
        position: relative;
        z-index: 0;
        pointer-events: none;
        flex-shrink: 0;
    }
    
    .sm-coupon-box {
        padding: 16px;
    }
    
    .sm-coupon-box .coupon-input input {
        width: 60%;
        min-width: 0;
    }
    
    .sm-coupon-box .btn-apply {
        padding: 12px 16px;
    }

    .sm-checkout-page .card-header {
        padding: 16px;
    }

    .sm-checkout-page .card-header h2 {
        font-size: 20px;
    }

    .sm-checkout-page .form-row {
        gap: 10px;
        margin-bottom: 10px;
    }
}

.sm-checkout-page .woocommerce-terms-and-conditions {
    padding: 1em;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2);
    margin-bottom: 16px;
    background-color: rgba(0, 0, 0, .05);
}

.sm-checkout-page .item-price {
    text-align: right;
}

.sm-checkout-page .order-item .item-details span.wte-discount-badge,
.sm-checkout-page .order-item .item-details .wte-discount-badge,
.sm-checkout-page .order-item .item-details span.wte-discount-badge span,
.sm-checkout-page .order-item .item-details .wte-discount-badge span {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #fff !important;
}

.sm-checkout-page .timer-badge {
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, #dfbd6d, #fff2d2 45.83%, #dfbd6d 61.46%, #a67d28);
}

.sm-checkout-page .timer-badge .wte-cart-timer {
    color: black;
    margin: 0px;
    min-width: 60px;
    text-align: left;
}

.sm-checkout-page .timer-badge .wte-cart-timer::before {
    margin-right: 5px;
}

.sm-checkout-page #order_review_heading {
    padding: 0;
}

.sm-checkout-page .summary-totals .cart-discount a {
    color: #667eea;
    text-decoration: none;
}

.sm-checkout-page .summary-totals .cart-discount a:hover {
    color: #8224e3;
    text-decoration: underline;
}

.sm-checkout-page .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sm-checkout-page .checkbox-text-wrapper {
    pointer-events: auto;
    display: inline-block;
    line-height: 1.5;
}

.sm-checkout-page .form-group input.error,
.sm-checkout-page .form-group textarea.error {
    border-color: #ef4444;
}

.footer-newsletter {
    display: none;
}