/* ============================================
   Daqi comment & share enhancements
   ============================================ */

/* --- Comment CTA --- */
.daqi-comment-cta {
	margin: 0 0 20px;
	padding: 16px 18px;
	background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	color: #fff;
}
.daqi-comment-cta .daqi-cta-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}
.daqi-comment-cta .daqi-cta-icon {
	font-size: 26px;
	line-height: 1;
	flex-shrink: 0;
}
.daqi-comment-cta .daqi-cta-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	flex: 1;
}
.daqi-comment-cta .daqi-cta-lang {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 13px;
	flex-shrink: 0;
	cursor: pointer;
}
.daqi-comment-cta .daqi-cta-lang option {
	color: #333;
}

/* --- Editorial reply templates --- */
.daqi-reply-templates {
	margin: 16px 0 8px;
}
.daqi-rt-toggle {
	background: #fcb800;
	color: #333;
	border: 0;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
}
.daqi-rt-panel {
	margin-top: 10px;
	padding: 16px;
	background: #fcb800;
	border: 1px solid #e0a600;
	border-radius: 8px;
}
.daqi-rt-hint {
	margin: 0 0 10px;
	font-size: 13px;
	color: #333;
	font-weight: 600;
}
.daqi-rt-controls {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}
.daqi-rt-lang {
	padding: 6px 10px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	font-size: 13px;
	flex: 1;
}
.daqi-rt-copy {
	background: #28a745;
	color: #fff;
	border: 0;
	padding: 6px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	flex-shrink: 0;
}
.daqi-rt-text {
	width: 100%;
	padding: 10px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	font-size: 13px;
	background: #fff;
	resize: vertical;
}

/* --- Comment form: language + rating --- */
.comment-form-daqi-lang,
.comment-form-rating {
	margin: 0 0 12px;
}
.comment-form-daqi-lang label,
.comment-form-rating label {
	display: inline-block;
	margin-right: 10px;
	font-weight: 600;
	font-size: 14px;
}
.comment-form-daqi-lang select {
	padding: 6px 10px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	font-size: 13px;
	min-width: 160px;
}

.daqi-star-input {
	direction: rtl;
	unicode-bidi: bidi-override;
	display: inline-block;
	font-size: 22px;
}
.daqi-star-input input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.daqi-star-input label {
	cursor: pointer;
	color: #ccc;
	margin: 0 2px;
	transition: color 0.15s;
}
.daqi-star-input label:hover,
.daqi-star-input label:hover ~ label,
.daqi-star-input input:checked ~ label {
	color: #f5a623;
}

/* --- Comment toolbar (sort / filter) --- */
.daqi-comment-toolbar {
	display: flex;
	gap: 24px;
	align-items: center;
	flex-wrap: wrap;
	margin: 20px 0 16px;
	padding: 12px 14px;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 8px;
}
.daqi-comment-toolbar label {
	font-weight: 600;
	font-size: 13px;
	margin-right: 8px;
}
.daqi-comment-toolbar select {
	padding: 6px 10px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	font-size: 13px;
}

/* --- Comment body extras --- */
.daqi-comment-stars {
	display: inline-block;
	margin-left: 8px;
	color: #f5a623;
	letter-spacing: 1px;
	font-size: 13px;
	vertical-align: middle;
}
.daqi-comment-lang {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	background: #e9ecef;
	border-radius: 10px;
	font-size: 11px;
	color: #495057;
	vertical-align: middle;
}

/* --- Helpful votes --- */
.daqi-helpful {
	display: inline-block;
	margin-left: 12px;
	vertical-align: middle;
}
.daqi-hf {
	display: inline-block;
	border: 1px solid #dee2e6;
	background: #fff;
	border-radius: 14px;
	padding: 2px 10px;
	margin-right: 6px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.15s;
}
.daqi-hf:hover {
	border-color: #6f42c1;
	color: #6f42c1;
}
.daqi-hf-voted {
	border-color: #6f42c1;
	background: #6f42c1;
	color: #fff;
}

/* --- Blog list card CTA --- */
.entry-comment-cta {
	margin-top: 12px;
}
.daqi-card-cta {
	display: inline-block;
	font-size: 13px;
	color: #0f3460;
	background: #eef3fb;
	border: 1px solid #d6e0f0;
	border-radius: 18px;
	padding: 6px 14px;
	text-decoration: none !important;
	transition: all 0.15s;
}
.daqi-card-cta:hover {
	background: #0f3460;
	color: #fff;
	border-color: #0f3460;
}

/* --- Share bar --- */
.daqi-share-section {
	margin: 24px 0 8px;
	padding-top: 18px;
	border-top: 1px solid #e9ecef;
}
.daqi-share-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.daqi-share-label {
	font-weight: 700;
	font-size: 15px;
}
.daqi-share-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.daqi-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 20px;
	font-size: 12px;
	line-height: 1;
	text-decoration: none !important;
	background: #f1f2f4;
	color: #333 !important;
	transition: background 0.15s, transform 0.15s;
}
.daqi-share-btn:hover {
	background: #e6e8eb;
	transform: translateY(-1px);
}
.daqi-share-btn svg {
	flex-shrink: 0;
}
.daqi-share-name {
	white-space: nowrap;
}

.daqi-share-tiktok    { color: #010101 !important; }
.daqi-share-facebook  { color: #1877f2 !important; }
.daqi-share-instagram { color: #d6249f !important; }
.daqi-share-x         { color: #111 !important; }
.daqi-share-pinterest { color: #bd081c !important; }
.daqi-share-youtube   { color: #ff0000 !important; }
.daqi-share-whatsapp  { color: #25d366 !important; }
.daqi-share-line      { color: #06c755 !important; }
.daqi-share-telegram  { color: #229ed9 !important; }
.daqi-share-kakaotalk { color: #e5a800 !important; }
.daqi-share-vk        { color: #4a76a8 !important; }
.daqi-share-ok        { color: #ee8208 !important; }
.daqi-share-naver     { color: #03c75a !important; }
.daqi-share-zalo      { color: #0068ff !important; }
.daqi-share-mixi      { color: #d1a54f !important; }
.daqi-share-linkedin  { color: #0a66c2 !important; }
.daqi-share-reddit    { color: #ff4500 !important; }
.daqi-share-tumblr    { color: #35465c !important; }
.daqi-share-snapchat  { color: #111 !important; }
.daqi-share-email     { color: #6c757d !important; }
.daqi-share-copy      { color: #495057 !important; }

/* Responsive: wrap names off on small screens */
@media (max-width: 767px) {
	.daqi-share-btn .daqi-share-name {
		display: none;
	}
	.daqi-share-btn {
		padding: 8px;
		border-radius: 50%;
	}
	.daqi-comment-cta {
		flex-direction: column;
		align-items: stretch;
	}
	.daqi-comment-cta .daqi-cta-lang {
		width: 100%;
	}
}

/* ============================================
   Official product guide (editorial tab)
   ============================================ */
.daqi-product-guide {
	padding: 4px 0;
}
.daqi-guide-badge {
	display: inline-block;
	background: #0f3460;
	color: #fff;
	border-radius: 14px;
	padding: 4px 14px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.4px;
	margin-bottom: 16px;
}
.daqi-guide-h {
	font-size: 15px;
	font-weight: 700;
	margin: 18px 0 8px;
	color: #1a1a2e;
}
.daqi-guide-spec,
.daqi-guide-usage {
	font-size: 14px;
	line-height: 1.7;
	color: #444;
	margin: 0;
}
.daqi-faq-item {
	margin: 0 0 14px;
	padding: 12px 14px;
	background: #f8f9fa;
	border-left: 3px solid #fcb800;
	border-radius: 0 6px 6px 0;
}
.daqi-faq-q {
	display: block;
	font-size: 14px;
	color: #1a1a2e;
	margin-bottom: 4px;
}
.daqi-faq-a {
	font-size: 13px;
	line-height: 1.6;
	color: #555;
	margin: 0;
}
.daqi-spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.daqi-spec-table th,
.daqi-spec-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #e9ecef;
	vertical-align: top;
}
.daqi-spec-table th {
	width: 38%;
	font-weight: 600;
	color: #333;
	background: #fafbfc;
}

/* ============================================
   Ask everyone (Q&A)
   ============================================ */
.daqi-ask-wrap {
	margin: 32px 0 16px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 10px;
}
.daqi-ask-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #1a1a2e;
}
.daqi-ask-sub {
	font-size: 13px;
	color: #666;
	margin: 0 0 16px;
}
.daqi-ask-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.daqi-ask-item {
	margin: 0 0 12px;
}
.daqi-ask-q,
.daqi-ask-a {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	padding: 10px 12px;
	background: #f6f8fb;
	border-radius: 8px;
}
.daqi-ask-a {
	background: #fff8e1;
	margin-top: 6px;
}
.daqi-ask-badge {
	display: inline-block;
	background: #0f3460;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 4px;
	padding: 1px 7px;
	margin-right: 8px;
	vertical-align: middle;
}
.daqi-ask-badge-a {
	background: #fcb800;
	color: #333;
}
.daqi-ask-form textarea {
	width: 100%;
	border: 1px solid #ced4da;
	border-radius: 6px;
	padding: 10px;
	font-size: 13px;
	resize: vertical;
	box-sizing: border-box;
}
.daqi-ask-submit {
	margin-top: 10px;
}
.daqi-ask-msg {
	display: block;
	margin-top: 8px;
	font-size: 13px;
}
.daqi-ask-ok {
	color: #28a745;
}
.daqi-ask-err {
	color: #dc3545;
}
.daqi-blog-ask {
	margin-top: 8px;
}

/* ============================================
   Blog related-product recommendation block
   ============================================ */
.daqi-related-block {
	margin: 32px 0 8px;
	padding: 22px 20px;
	background: #f7f9fc;
	border: 1px solid #e6ecf4;
	border-radius: 10px;
}
.daqi-related-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #1a1a2e;
}
.daqi-related-sub {
	font-size: 13px;
	color: #666;
	margin: 0 0 18px;
}
.daqi-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.daqi-related-card {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.15s, transform 0.15s;
}
.daqi-related-card:hover {
	box-shadow: 0 6px 16px rgba(15, 52, 96, 0.12);
	transform: translateY(-2px);
}
.daqi-related-img {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fafbfc;
}
.daqi-related-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.daqi-related-body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.daqi-related-name {
	font-size: 13px;
	line-height: 1.4;
	margin: 0 0 6px;
	font-weight: 600;
}
.daqi-related-name a {
	color: #1a1a2e;
	text-decoration: none !important;
}
.daqi-related-name a:hover {
	color: #0f3460;
}
.daqi-related-stars {
	color: #f5a623;
	font-size: 12px;
	margin-bottom: 6px;
}
.daqi-related-stars em {
	font-style: normal;
	color: #888;
	font-size: 11px;
}
.daqi-related-price {
	font-size: 14px;
	font-weight: 700;
	color: #0f3460;
	margin: 0 0 10px;
}
.daqi-related-btn {
	display: inline-block;
	margin-top: auto;
	text-align: center;
	background: #0f3460;
	color: #fff !important;
	border-radius: 6px;
	padding: 7px 10px;
	font-size: 12px;
	text-decoration: none !important;
	transition: background 0.15s;
}
.daqi-related-btn:hover {
	background: #1a4a8a;
}

@media (max-width: 991px) {
	.daqi-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 479px) {
	.daqi-related-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Review invitation banner ---------- */
.daqi-invite-banner {
	background: #eef4fb;
	border: 1px solid #cfe0f2;
	border-left: 4px solid #0f3460;
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 16px;
	color: #0f3460;
	font-size: 14px;
}

/* ---------- Review photo upload ---------- */
.daqi-photo-field {
	margin-bottom: 16px;
}
.daqi-photo-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 13px;
}
.daqi-photo-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}
.daqi-photo-previews img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e9ecef;
}
.daqi-photo-hint {
	color: #888;
	font-size: 12px;
	margin: 4px 0 0;
}
.daqi-review-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 4px;
}
.daqi-review-photos img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e9ecef;
	cursor: pointer;
	transition: transform 0.15s;
}
.daqi-review-photos img:hover {
	transform: scale(1.05);
}

/* --- Product gallery thumbnail strip fallback ---
   The parent theme hides the flexslider thumbnails (opacity: 0) until its
   own JS initializes slick. If that observer-based init never runs (race
   with deferred wc-single-product), force the strip visible and lay it out
   as a plain vertical list so thumbnails are never lost. */
.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs {
	opacity: 1;
}
