/*
Theme Name: GeneratePress Child - TongHoiYHoc Core
Theme URI: https://tonghoiyhoc.com
Description: Child theme chuyên biệt cho Bách Khoa Tri Thức & Hệ Thống Lâm Sàng Y Học Cổ Truyền Việt Nam. Tối ưu code siêu nhẹ (<30KB), tải dưới 0.5s, chuẩn SEO cho kho 3.000 - 10.000 bài viết YHCT, tương thích PHP 8.0 & MySQL 8.3 trên VPS DirectAdmin.
Author: Tổng Hội Y Học Cổ Truyền Việt Nam
Author URI: https://tonghoiyhoc.com
Template: generatepress
Version: 1.4.0
License: GNU General Public License v2 or later
Text Domain: generatepress-tonghoiyhoc
*/

/* ==============================================================================
   1. BẢNG MÀU CHUẨN Y HỌC CỔ TRUYỀN & FONT HỆ THỐNG TỐI ƯU TỐC ĐỘ (ZERO DELAY)
   ============================================================================== */
:root {
  --thyh-primary: #065f46;       /* Xanh đại ngàn y học */
  --thyh-primary-dark: #064e3b;  /* Xanh đậm hoàng gia */
  --thyh-primary-light: #059669; /* Xanh ngọc bích */
  --thyh-accent: #d97706;        /* Vàng nghệ cổ phương */
  --thyh-bg-light: #f8fafc;      /* Nền xám y tế sạch sẽ */
  --thyh-text-main: #0f172a;     /* Màu chữ đen phiến thạch */
  --thyh-text-muted: #64748b;    /* Chữ phụ */
  --thyh-border: #e2e8f0;        /* Viền thẻ */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--thyh-text-main);
  background-color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
}

/* ==============================================================================
   2. TỐI ƯU HEADER & NAVIGATION GENERATEPRESS
   ============================================================================== */
/* ==============================================================================
   2. MENU CHUYÊN NGHIỆP HIỆU ỨNG 3D BẮT MẮT (PREMIUM 3D NAVIGATION)
   ============================================================================== */
.site-header {
  background: radial-gradient(circle at 10% 20%, #064e3b 0%, #022c22 90%);
  color: #ffffff;
  border-bottom: 3px solid #059669;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 100;
}

.site-header .main-title a {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 20px rgba(52, 211, 153, 0.3);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.main-navigation {
  background: linear-gradient(180deg, #065f46 0%, #044e39 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 16px -4px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navigation .inside-navigation {
  padding: 6px 12px;
}

.main-navigation .main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.main-navigation .main-nav ul li {
  margin: 4px 2px;
  perspective: 600px; /* Hỗ trợ không gian 3D */
}

/* THẺ ITEM MENU DẠNG KHỐI 3D (PILL 3D BUTTON) */
.main-navigation .main-nav ul li a {
  color: #f0fdf4 !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 18px !important;
  line-height: 1.3 !important;
  border-radius: 8px;
  background: linear-gradient(180deg, #047857 0%, #065f46 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 4px 0 #022c22,                      /* Đế 3D nổi */
    0 6px 12px rgba(0, 0, 0, 0.25),        /* Bóng đổ phía dưới */
    inset 0 1px 0 rgba(255, 255, 255, 0.35); /* Vệt sáng phản chiếu đỉnh */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transform: translateY(0);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* HIỆU ỨNG 3D HOVER: NỔI LÊN CAO VÀ PHÁT SÁNG */
.main-navigation .main-nav ul li:hover > a {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.02);
  border-color: #6ee7b7;
  box-shadow: 
    0 7px 0 #064e3b,                      /* Đế 3D dày hơn */
    0 12px 20px rgba(16, 185, 129, 0.4),  /* Hào quang phát sáng xanh ngọc */
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* HIỆU ỨNG 3D ACTIVE / CLICK: LÕM XUỐNG DẠNG NÚT BẤM THẬT */
.main-navigation .main-nav ul li a:active {
  transform: translateY(3px) !important;
  box-shadow: 
    0 1px 0 #022c22,
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* MENU ITEM ĐANG CHỌN (CURRENT MENU ITEM) */
.main-navigation .main-nav ul li.current-menu-item > a {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%) !important; /* Màu hổ phách YHCT */
  border-color: #fde68a;
  color: #ffffff !important;
  box-shadow: 
    0 4px 0 #78350f,
    0 8px 16px rgba(217, 119, 6, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ==============================================================================
   3. TỐI ƯU BÀI VIẾT BÁCH KHOA (3.000 - 10.000 BÀI) ĐẠT ĐIỂM GOOGLE PAGESPEED 100
   ============================================================================== */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
}

.entry-content h2 {
  color: #065f46;
  border-left: 4px solid #059669;
  padding-left: 12px;
  margin-top: 1.8rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.entry-content h3 {
  color: #0f172a;
  margin-top: 1.4rem;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Khung Dẫn chứng 5 Tầng Tri thức YHCT */
.thyh-citation-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.thyh-citation-box strong {
  color: #166534;
}

/* Thẻ Dược Điển & Đơn vị Bào chế */
.thyh-badge-tag {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ==============================================================================
   4. TEMPLATE TOÀN MÀN HÌNH DÀNH RIÊNG CHO PHÂN HỆ LÂM SÀNG & BỆNH ÁN EHR
   ============================================================================== */
.page-template-template-clinical-app #page {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-template-template-clinical-app .site-content {
  padding: 0 !important;
}

.page-template-template-clinical-app #primary {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-template-template-clinical-app .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* ==============================================================================
   5. PHONG CÁCH BÁCH KHOA WIKIPEDIA CHO TRANG CHI TIẾT BÀI VIẾT (INFOBOX & READING)
   ============================================================================== */
.thyh-breadcrumb {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 1.2rem;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.thyh-breadcrumb a {
  color: #065f46;
  text-decoration: none;
  font-weight: 600;
}

.thyh-breadcrumb a:hover {
  text-decoration: underline;
}

/* HỘP THÔNG TIN DƯỢC ĐIỂN WIKI (INFOBOX) */
.thyh-infobox-wiki {
  float: right;
  width: 320px;
  margin: 0 0 1.5rem 1.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  font-size: 0.88rem;
}

.thyh-infobox-header {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  color: #ffffff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.thyh-infobox-header h4 {
  color: #ffffff !important;
  margin: 0 !important;
  font-size: 1.05rem;
}

.thyh-infobox-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 !important;
}

.thyh-infobox-table th,
.thyh-infobox-table td {
  padding: 8px 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 0.85rem !important;
}

.thyh-infobox-table th {
  background: #f8fafc;
  color: #475569;
  width: 40%;
  text-align: left;
  font-weight: 700;
}

.thyh-infobox-table td {
  color: #0f172a;
}

/* THANH CÔNG CỤ ĐỘC GIẢ (ACTION BAR) */
.thyh-action-bar-wiki {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding: 1.2rem 1.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.thyh-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.thyh-action-btn:hover {
  background: #065f46;
  color: #ffffff;
  border-color: #065f46;
}

/* KHUNG HEADER BÀI VIẾT CHUẨN VIỆN HÀN LÂM */
.thyh-article-header-meta {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.thyh-meta-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.thyh-tag-cpt {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.thyh-tag-time, .thyh-tag-ver {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 6px;
}

/* BỐ CỤC NỘI DUNG 2 CỘT TẬP TRUNG TĂNG THỜI GIAN ĐỌC */
.thyh-article-content-wrapper {
  display: flow-root;
  position: relative;
}

.thyh-article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1e293b;
}

.thyh-article-body p {
  margin-bottom: 1.25rem;
}

/* HỘP LƯU Ý LÂM SÀNG & CẢNH BÁO Y TẾ NGAY ĐẦU BÀI */
.thyh-clinical-tip {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* KHỐI RETENTION: GỢI Ý BÀI VIẾT LIÊN QUAN CUỐI BÀI */
.thyh-related-knowledge-card {
  margin-top: 2rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: 0 4px 15px rgba(6, 95, 70, 0.05);
}

.thyh-related-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.thyh-related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.thyh-related-link-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  border-radius: 8px;
  color: #065f46;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.thyh-related-link-pill:hover {
  background: #065f46;
  color: #ffffff;
  border-color: #065f46;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(6, 95, 70, 0.15);
}

/* TỐI ƯU HÓA KHÔNG GIAN BÀI VIẾT SINGLE ARTICLE KHÔNG SIDEBAR */
.single .site-content {
  max-width: 1060px !important;
  margin: 1.5rem auto 3rem !important;
}

.single .entry-content {
  padding: 0.5rem 0 !important;
}

.single h1.entry-title {
  font-size: 2.1rem !important;
  color: #064e3b !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin-bottom: 0.8rem !important;
}

@media (max-width: 768px) {
  .thyh-infobox-wiki {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
  }
  .single h1.entry-title {
    font-size: 1.55rem !important;
  }
}


/* ==============================================================================
   6. HIỆU ỨNG THẺ BÁCH KHOA CHUYÊN NGÀNH (ARCHIVE CARDS & PAGINATION)
   ============================================================================== */
.thyh-card-item:hover {
  transform: translateY(-3px);
  border-color: #86efac !important;
  box-shadow: 0 10px 20px -3px rgba(6, 95, 70, 0.1) !important;
}

.thyh-pagination a,
.thyh-pagination span {
  display: inline-block;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.thyh-pagination a:hover {
  background: #065f46;
  color: #ffffff;
  border-color: #065f46;
}

.thyh-pagination span.current {
  background: #065f46;
  color: #ffffff;
  border-color: #065f46;
}

/* ==============================================================================
   7. CHÂN TRANG TOÀN NĂNG HỌC THUẬT & PHÁP LÝ Y TẾ (UNIVERSAL ACADEMIC FOOTER CSS)
   ============================================================================== */
.thyh-portal-footer {
  border-top: 2px solid #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 2.2rem 1.5rem 1.2rem;
  box-shadow: 0 4px 25px rgba(6, 95, 70, 0.06);
  border: 1px solid #dcfce7;
  clear: both;
}

.thyh-footer-top-badge {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 1.8rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #dcfce7;
}

.thyh-footer-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.thyh-badge-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.thyh-footer-badge-item strong {
  display: block;
  font-size: 0.85rem;
  color: #065f46;
  font-weight: 700;
}

.thyh-footer-badge-item span {
  display: block;
  font-size: 0.74rem;
  color: #166534;
}

.thyh-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1fr;
  gap: 24px;
  margin-bottom: 2rem;
}

.thyh-footer-col {
  display: flex;
  flex-direction: column;
}

.thyh-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.thyh-footer-title {
  color: #065f46;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #86efac;
  padding-bottom: 6px;
  display: inline-block;
}

.thyh-footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thyh-footer-links li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.thyh-footer-links li a {
  color: #334155;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.15s ease;
  display: inline-block;
}

.thyh-footer-links li a:hover {
  color: #059669;
  transform: translateX(4px);
}

.thyh-footer-links li span {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  display: block;
}

.thyh-footer-bottom-bar {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #64748b;
}

@media (max-width: 900px) {
  .thyh-footer-top-badge {
    grid-template-columns: repeat(2, 1fr);
  }
  .thyh-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .thyh-footer-top-badge {
    grid-template-columns: 1fr;
  }
  .thyh-footer-grid {
    grid-template-columns: 1fr;
  }
  .thyh-footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* ==============================================================================
   8. GIAO DIỆN POPUP COOKIE & TRẢI NGHIỆM CHUẨN CELLPHONES (THYH PRIVACY & COOKIES)
   ============================================================================== */
.thyh-cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: thyhFadeIn 0.25s ease-out;
}

.thyh-cookie-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  padding: 24px;
  border: 1px solid #e2e8f0;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  animation: thyhSlideUp 0.25s ease-out;
}

@keyframes thyhFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes thyhSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.thyh-cookie-header {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  margin-bottom: 12px;
}

.thyh-cookie-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.thyh-cookie-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  flex: 1;
}

.thyh-cookie-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s;
}

.thyh-cookie-close-btn:hover {
  color: #0f172a;
}

.thyh-cookie-desc {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
  margin: 0 0 16px;
}

.thyh-cookie-divider {
  border: none;
  border-top: 1px solid #f1f5f9;
  margin: 14px 0 16px;
}

.thyh-cookie-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.thyh-cookie-subtext {
  font-size: 0.84rem;
  color: #3b82f6; /* Xanh dương phong cách CellphoneS */
  margin: 0 0 16px;
  line-height: 1.45;
}

.thyh-cookie-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.thyh-cookie-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.thyh-cookie-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.thyh-cookie-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}

.thyh-cookie-explain {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

/* CÔNG TẮC BẬT / TẮT (IOS / CELLPHONES STYLE SWITCH) */
.thyh-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.thyh-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.thyh-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 34px;
}

.thyh-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.thyh-switch input:checked + .thyh-slider {
  background-color: #3b82f6; /* Xanh chuẩn toggle CellphoneS */
}

.thyh-switch input:checked + .thyh-slider:before {
  transform: translateX(22px);
}

.thyh-cookie-policy-link {
  font-size: 0.88rem;
  color: #475569;
  margin: 0 0 20px;
}

.thyh-cookie-policy-link a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.thyh-cookie-policy-link a:hover {
  text-decoration: underline;
}

/* HÀNG NÚT BẤM (TỪ CHỐI & XÁC NHẬN TẤT CẢ) */
.thyh-cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.thyh-cookie-btn-reject {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.thyh-cookie-btn-reject:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.thyh-cookie-btn-accept {
  background: #d70018; /* Màu đỏ thương hiệu đặc trưng của CellphoneS */
  border: 1.5px solid #d70018;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(215, 0, 24, 0.25);
  text-align: center;
}

.thyh-cookie-btn-accept:hover {
  background: #b90014;
  border-color: #b90014;
  transform: translateY(-1px);
}

/* NÚT TRÒN GÓC PHẢI DƯỚI ĐỂ MỞ LẠI POPUP */
.thyh-cookie-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 30px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.thyh-cookie-float-btn:hover {
  transform: scale(1.06);
  border-color: #d70018;
  box-shadow: 0 6px 20px rgba(215, 0, 24, 0.18);
}

.thyh-cookie-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 9999999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.thyh-cookie-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 480px) {
  .thyh-cookie-card {
    padding: 18px;
  }
  .thyh-cookie-actions {
    grid-template-columns: 1fr;
  }
  .thyh-cookie-float-btn {
    bottom: 16px;
    right: 16px;
    padding: 6px 10px;
  }
  .thyh-cookie-float-label {
    display: none;
  }
}



