/**
* Theme Name:     K-Tech
* Author:         K-Tech
* Template:       flatsome
* Text Domain:	   k-tech
* Description:    Theme Build by Dai
* Theme URI:      https://k-tech.net.vn/
* Author URI:     https://k-tech.net.vn/
* Version:        2025
* License:        2NRJM-B46WR-K6VQR-Y4T3D-QRWPX
* License URI:    https://k-tech.net.vn/
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.header-button .button span {
	font-size: 22px !important;
}


.dashicons-trash:before {
    content: "\f182";
}

.dashicons-edit:before {
    content: "\f464";
}

.dashicons, .dashicons-before:before {
    font-family: dashicons;
    display: inline-block;
    line-height: 1;
    font-weight: 400;
    font-style: normal;
    speak: never;
    text-decoration: inherit;
    text-transform: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 20px;
    height: 20px;
    font-size: 20px;
    vertical-align: top;
    text-align: center;
    transition: color .1s ease-in;
}


.user-dashboard {
	margin-top: 50px;
}

.profile-sidebar {
	background: #f9f9f9;
	border-radius: 4px;
	border: 1px solid #dad9d9;
	padding: 25px 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 7rem;
}

.profile-avatar img {
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.3);
	transition: transform 0.3s ease;
}

.profile-avatar img:hover {
	transform: scale(1.05);
}

.nav-vertical {
	list-style: none;
	padding: 0;
	margin-top: 20px;
}

.nav-vertical li {
	margin-left: 0 !important;
	margin-bottom: 8px;
}

.nav-vertical a {
	/* color: rgba(255,255,255,0.9); */
	text-decoration: none;
	border-radius: 8px;
	display: block;
	transition: all 0.3s ease;
	gap: 10px;
}

.nav-vertical a:hover {
	background: rgba(255, 255, 255, 0.2);
	/* color: white; */
	transform: translateX(5px);
}

/* .profile-content {
background: white;
border-radius: 12px;
padding: 30px;
box-shadow: 0 4px 15px rgba(0,0,0,0.08);
} */

.profile-content h3 {
	color: #333;
	border-bottom: 2px solid #667eea;
	padding-bottom: 10px;
	margin-bottom: 25px;
}

.profile-content form p {
	margin-bottom: 5px;
}

.profile-content label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #555;
}

.profile-content input[type="text"] {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	font-size: 14px;
	transition: border-color 0.3s ease;
}

.profile-content input[type="text"]:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.woocommerce-message {
	background: #d4edda;
	color: #155724;
	padding: 15px;
	border-radius: 8px;
	border-left: 4px solid #28a745;
	margin-bottom: 20px;
}

.woocommerce-error {
	background: #f8d7da;
	color: #721c24;
	padding: 15px;
	border-radius: 8px;
	border-left: 4px solid #dc3545;
	margin-bottom: 20px;
}

.list-desc li {
	margin-left: 0 !important;
	font-size: 14px;
	margin-bottom: 0;
}

.button-down:before {
	font: normal normal normal 14px / 1 FontAwesome;
	content: "\f019";
}

.button-down {
	font-size: 16px;
	white-space: nowrap;
	padding: 10px 30px;
	background: var(--fs-color-secondary);
	color: #fff !important;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	font-weight: bold;
	margin: 0;
	width: 200px;
}


.payment-modal {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
	backdrop-filter: blur(5px);
	/* overflow-y: auto; */
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 20px 0;
	padding-top: 5%;
}

#qrCode {
	text-align: center;
	margin-bottom: 20px;
}

.payment-modal.active {
	opacity: 1;
	pointer-events: auto;
	/* animation: fadeIn 0.3s ease-out; */
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

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

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.modal-content {
	background: linear-gradient(145deg, #ffffff, #f8f9fa);
	margin: 0 auto;
	padding: 0;
	border-radius: 20px;
	width: 90%;
	max-width: 600px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
	animation: slideIn 0.4s ease-out;
	padding: 30px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar {
	display: none;
}

.modal-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 25px 30px;
	position: relative;
	text-align: center;
}

.modal-header h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-header::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle,
		rgba(255, 255, 255, 0.1) 0%,
		transparent 70%);
	animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

	0%,
	100% {
		transform: rotate(0deg);
	}

	50% {
		transform: rotate(180deg);
	}
}

.close-modal {
	position: absolute;
	right: 20px;
	transform: translateY(-50%);
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
}

.close-modal:hover {
	transform: translateY(-50%) rotate(90deg);
}

.modal-body {
	padding: 30px;
	text-align: center;
}

.payment-info {
	background: linear-gradient(135deg, #f8f9fa, #e9ecef);
	padding: 12px;
	border-radius: 15px;
	margin: 15px 0;
	border: 1px solid #dee2e6;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.payment-info p {
	margin-bottom: 5px;
}

.payment-info h4 {
	color: #495057;
	margin: 0 0 15px 0;
	font-size: 18px;
	font-weight: 600;
}

.info-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 5px 0 0 0;
}

.info-label {
	color: #6c757d;
	font-weight: 600;
	font-size: 15px;
}

.info-value {
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 1px;
	background: #f8d7da;
	color: #e74c3c;
	padding: 4px 12px;
	border-radius: 6px;
	margin-right: 4px;
}

#copyCkContent {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 16px;
	cursor: pointer;
	transition: background 0.2s;
	margin: 0;
}

#copyCkContent:hover {
	background: linear-gradient(135deg, #764ba2, #667eea);
}

.qr-instruction {
	margin-top: 10px;
	color: #6c757d;
	font-size: 14px;
	font-weight: 500;
}

.loading-spinner {
	display: none;
	margin: 25px 0;
	padding: 20px 0 0 0;
	text-align: center;
}

.spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #667eea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 10px auto;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.loading-text {
	color: #667eea;
	font-weight: 600;
	font-size: 16px;
}

.loading-dots::after {
	content: "...";
	animation: dots 1.5s infinite;
}

@keyframes dots {

	0%,
	20% {
		content: ".";
	}

	40% {
		content: "..";
	}

	60%,
	100% {
		content: "...";
	}
}

.payment-success {
	display: none;
	margin: 10px 0;
	padding: 10px;
	background: linear-gradient(135deg, #28a745, #20c997);
	color: white;
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
	text-align: center;
}

.success-icon {
	font-size: 48px;
	margin-bottom: 10px;
	animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {

	0%,
	20%,
	60%,
	100% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-10px);
	}

	80% {
		transform: translateY(-5px);
	}
}

.success-text {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
}

.download-ready {
	display: none;
	margin: 20px 0;
	text-align: center;
}

.final-download-btn {
	background: linear-gradient(135deg, #28a745, #20c997);
	color: white;
	padding: 15px 40px;
	border: none;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.final-download-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
	text-decoration: none;
	color: white;
}

.payment-steps {
	background: #f8f9fa;
	border-radius: 15px;
	margin: 8px 0 10px 0;
	text-align: left;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.07);
}

.payment-steps h5 {
	color: #495057;
	/* margin: 0 0 15px 0; */
	text-align: center;
	font-weight: 700;
	font-size: 18px;
}

.step {
	display: flex;
	align-items: center;
	padding: 3px 0;
}

.step-number {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	margin-right: 14px;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(102, 126, 234, 0.12);
}

.step-text {
	color: #495057;
	font-size: 15px;
	line-height: 1.5;
}

.user-wallet-link {
	padding-right: 10px !important;
	margin-left: 10px;
	white-space: nowrap;
	font-size: 15px !important;
	color: #fff !important;
	margin: 0;
}

.xoo-el-action-sc a {
	font-size: 15px !important;
	color: #fff !important;
}

.nav>li.header-divider {
	border-color: #fff !important;
	height: 18px;
}

.size-thumbnail {
	width: 133px;
    height: 100px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
	.modal-content {
		margin: 5% auto;
		width: 95%;
		padding: 15px;
	}

	.payment-steps {
		padding: 12px;
	}

	.final-download-btn {
		padding: 12px 20px;
		font-size: 15px;
	}
}

@media (max-width: 768px) {
	.profile-sidebar {
		margin-bottom: 20px;
	}

	.profile-content {
		padding: 20px;
	}
}

.file-widget-title {
	background: url(./public/images/file/logo_popup.png) no-repeat right,
		var(--primary-color);
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	padding-left: 28px;
	text-transform: uppercase;
	padding-top: 11px;
	padding-bottom: 12px;
	border-radius: 4px 4px 0px 0px;
}

.widget-top-download .thumb img {
	border: 1px solid #dad9d9;
	border-radius: 3px;
	padding: 5px;
}

.widget-top-download svg {
	width: 15px;
	height: 15px;
}

.top-file-list {
	padding: 10px 10px;
	border: 1px solid #dad9d9;
	border-radius: 0px 0px 4px 4px;
	background: #f9f9f9;
}

.section-title-normal span {
	border-bottom: 2px solid var(--primary-color);
}

.section-title-normal {
	border-bottom: 1px solid #dad9d9;
}

.file-title h3 {
	padding-bottom: 5px;
	font-size: 16px;
	line-height: 20px;
	height: 40px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.header-nav-main.nav-left {
	justify-content: center;
}

.file-search-wrapper {
	display: flex;
	align-items: center;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
	max-width: 700px;
	width: 475px;
}

.file-search-form select {
	width: 30% !important;
	background-color: #e9ebee;
	border: none;
	border-right: 1px solid #dad9d9;
}

.file-search-form .file-search-input {
	width: 50%;
}

.file-search-button {
	margin: 0;
	padding: 0 10px;
	background: var(--primary-color);
	border: 1px solid var(--primary-color);
}

.file-search-button i {
	color: #fff;
	line-height: 30px;
}

.pro-money p {
	font-size: 15px;
}



.button-affiliate {
	font-size: 16px;
	white-space: nowrap;
	padding: 5px 20px;
	background: var(--primary-color);
	border: 1px solid var(--primary-color);
	color: #fff !important;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	font-weight: bold;
	width: 200px;
}









/*Đài FB 10.7*/

.form-row {
	width: 100%;
}


.contact-aff a svg {
	width: 3rem;
	height: 3rem;
}


svg#Capa_1 {
	width: 20px;
	height: 20px;
	display: flex;
	fill: #fff;
}


.xoo-el-form-container button.btn.button.xoo-el-action-btn {
	background-color: var(--fs-color-secondary) !important;
}


.xoo-el-form-container ul.xoo-el-tabs li.xoo-el-active {
	background-color: var(--primary-color);
}


.form-up-file {
	border: 1px solid #dad9d9;
	border-radius: 4px;
	padding: 20px;
	background: #f9f9f9;

}

.form-up-file .form-up-file-title {
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	color: #333;
	margin-bottom: 20px;
}

.form-up-wrap {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
}

.form-up-wrap input,
.form-up-wrap textarea,
.form-up-wrap select {
	border: 1px solid #dad9d9;
	border-radius: 4px;
	box-shadow: none;
	padding: 10px;
	margin: 0;
	min-height: 45px;
	min-width: 94%;
}

.form-up-wrap input[type="file"] {
	width: 100%;
}

.form-up-label {
	width: 170px;
}

.form-up-content {
	width: calc(100% - 170px);
}


.form-up-btn {
	display: flex;
	align-items: center;
	justify-content: center;
}

.top-file-list .bottom .meta {
	font-size: 15px !important;
	color: #333 !important;
}

.top-file-list .bottom .meta svg,
.top-file-list .bottom .meta svg path {
	fill: #333;
}


.tabs-price {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.tab-btn {
	padding: 6px 12px;
	border: 1px solid #ccc;
	background: #f9f9f9;
	cursor: pointer;
}

.tab-btn.active {
	background: var(--fs-color-secondary);
	color: white;
	font-weight: bold;
}

.price-input-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
}


.tabs-price .tab-btn {
	margin-bottom: 0;
}


.form-up-wrap1 {
	box-shadow: 0 0 5px #ccc;
	border-radius: 10px;
	padding: 10px;
	height: 140px;
	overflow: auto;
	margin-bottom: 20px;
}


.xoo-el-container:not(.xoo-el-style-slider) .xoo-el-inmodal {
	max-width: 600px;
}

.xoo-el-main img {
	width: 200px;
}




.btn-header .xoo-el-action-sc {
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	height: 3rem;
	width: 7rem;
	color: #fff;
	font-weight: 600;
	background: var(--primary-color);
	border-radius: 10px;
}

.btn-header .xoo-el-action-sc:last-child {
	background: var(--fs-color-secondary);
}

.btn-header .xoo-el-action-sc:first-child .xoo-el-pop-sc::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	background-image: url('/wp-content/uploads/2025/07/upload.svg');
	background-size: contain;
	background-repeat: no-repeat;
	margin-left: 5px;
	vertical-align: middle;
}


div.nsl-container.nsl-container-block .nsl-container-buttons {
	display: flex !important;
	width: max-content;
	margin: 0 auto;
}


.number-stt {
	font-weight: 600;
	color: var(--primary-color);
}


.filter-tabs a {
	padding: 5px 10px;
	border: 1px solid #b7b7b7;
	margin-left: -1px;
}

.filter-tabs a:first-child {
	border-radius: 4px 0 0 4px;
}

.filter-tabs a:last-child {
	border-radius: 0 4px 4px 0;
}

.gallery-item {
	position: relative;
	display: inline-block;
	padding: 5px;
}

.gallery-item img {
	width: 100px;
	height: 100px;
	object-fit: cover;
}

.remove-image {
	position: absolute;
	top: 4px;
	right: 4px;
	background: rgba(255, 0, 0, 0.85);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 14px;
	width: 20px;
	height: 20px;
	cursor: pointer;
	line-height: 18px;
	padding: 0;
	min-height: 20px;
	margin: 0;
}

.form-up-btn input {
	margin: 0;
	border-radius: 4px;
}

.remove-checkbox input {
	display: none;
}

/* Image Crop Styles */
.image-upload-section {
	border: 2px dashed #ddd;
	padding: 20px;
	text-align: center;
	border-radius: 8px;
	margin-bottom: 15px;
	background-color: #fafafa;
	transition: all 0.3s ease;
}

.image-upload-section.dragover {
	border-color: #007cba;
	background-color: #e6f3ff;
}

.upload-btn {
	background: #007cba;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	margin: 10px;
}

.upload-btn:hover {
	background: #005a87;
}

/* Modal Crop */
.crop-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.8);
	z-index: 9999;
}

.crop-modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	padding: 20px;
	border-radius: 8px;
	max-width: 90%;
	max-height: 90%;
	overflow: auto;
}

.crop-modal-title {
	text-align: center;
	margin-bottom: 20px;
	color: #333;
}

.crop-container {
	position: relative;
/* 	max-width: 600px;
	max-height: 400px; */
	
	max-width: max-content;
    max-height: max-content;
	margin: 20px 0;
	border: 1px solid #ddd;
	margin: 0 auto;
}

.crop-image {
	max-width: 100%;
	max-height: 350px;
	display: block;
}

.crop-overlay {
	position: absolute;
	border: 2px dashed #007cba;
	background: rgba(0, 124, 186, 0.1);
	cursor: move;
	min-width: 50px;
	min-height: 50px;
}

.crop-handle {
	position: absolute;
	width: 10px;
	height: 10px;
	background: #007cba;
	border: 1px solid white;
}

.crop-handle.nw { top: -5px; left: -5px; cursor: nw-resize; }
.crop-handle.ne { top: -5px; right: -5px; cursor: ne-resize; }
.crop-handle.sw { bottom: -5px; left: -5px; cursor: sw-resize; }
.crop-handle.se { bottom: -5px; right: -5px; cursor: se-resize; }

.crop-buttons {
	text-align: center;
	margin-top: 20px;
}

.crop-buttons button {
	padding: 10px 20px;
	margin: 0 10px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}

.btn-crop {
	background: #28a745;
	color: white;
}

.btn-crop:hover {
	background: #218838;
}

.btn-cancel {
	background: #dc3545;
	color: white;
}

.btn-cancel:hover {
	background: #c82333;
}

.preview-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.preview-item {
	position: relative;
	border: 1px solid #ddd;
	padding: 5px;
	border-radius: 4px;
	background: white;
}

.preview-item img {
	width: 133px;
	height: 100px;
	object-fit: cover;
	display: block;
}

.preview-item .remove-btn {
	position: absolute;
	top: 4px;
	right: 4px;
	background: rgba(255, 0, 0, 0.85);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 14px;
	width: 20px;
	height: 20px;
	cursor: pointer;
	line-height: 18px;
	padding: 0;
	min-height: 20px;
	margin: 0;
}

.preview-item .remove-btn:hover {
	background: #c82333;
}

.upload-hint {
	margin-top: 10px;
	color: #666;
	font-size: 12px;
}









.header-button, .header-button .button {
    background: transparent;
    height: auto !important;
    padding: 0;
	box-shadow: none;
}


.dashboard-content .btn2 {
	color: #fff;
	font-weight: 600;
	background: var(--fs-color-secondary);
	border-radius: 5px;
	padding: 5px 30px;
	margin-bottom: 0;
}



@media only screen and (max-width: 48em) {
	/*************** ADD MOBILE ONLY CSS HERE  ***************/


	.button-affiliate {
		margin: 0 !important;
	}
}