/* APC Health — Global Core Utilities, Floating Contacts, Cookie Card & Brand Tokens */
:root {
    --apc-navy: #0B3B8C;
    --apc-blue: #1250DC;
    --apc-blue-hover: #0D3EB0;
    --apc-blue-soft: #EEF4FF;
    --apc-red: #DC2626;
    --apc-red-hover: #B91C1C;
    --apc-red-soft: #FEF2F2;
    --apc-surface: #FFFFFF;
    --apc-bg: #F4F7FB;
    --apc-border: #E2E8F0;
    --apc-text: #0F172A;
    --apc-muted: #475569;
}

/* Thay the 3 class duy nhat tung phu thuoc cdn.tailwindcss.com */
.font-semibold { font-weight: 600; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }

/* Khoi nut lien he noi toan trang (Zalo - Messenger - Hotline) */
.apc-floating-contacts {
    position: fixed !important;
    bottom: 28px !important;
    right: 20px !important;
    z-index: 99997 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    pointer-events: auto !important;
    transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
body.apc-bar-active .apc-floating-contacts { bottom: 95px !important; }

.apc-contact-circle {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(11, 59, 140, 0.16) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
    text-decoration: none !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
}
.apc-contact-circle:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(18, 80, 220, 0.24) !important;
}
.apc-contact-circle img { width: 26px !important; height: 26px !important; object-fit: contain !important; display: block !important; }
.apc-contact-circle svg { width: 22px !important; height: 22px !important; fill: currentColor !important; display: block !important; }
.apc-contact-zalo, .apc-contact-messenger { border: 1px solid #E2E8F0 !important; }

.apc-contact-phone {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%) !important;
    color: #ffffff !important;
    position: relative !important;
}
.apc-contact-phone::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 50% !important;
    border: 2px solid #DC2626 !important;
    animation: apcPhoneWave 1.8s infinite !important;
    opacity: 0.75 !important;
    pointer-events: none !important;
}
@keyframes apcPhoneWave {
    0% { transform: scale(1); opacity: 0.75; }
    100% { transform: scale(1.48); opacity: 0; }
}

/* Dong bo mau sach sang cho nut Chatbot Dr. Acha (plugin) */
.gwc-chat-button-group {
    z-index: 99996 !important;
}

/* Popup Cookie Consent sach chuan chuoi ban le */
#apc-cookie-card {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);
    border: 1px solid #E2E8F0;
    z-index: 999999;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 13.5px;
    color: #1E293B;
    display: none;
    overflow-y: auto;
    box-sizing: border-box;
    animation: apcSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes apcSlideIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.apc-ck-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.apc-ck-icon {
    width: 30px; height: 30px; border-radius: 8px;
    background: #ECFDF5; color: #00994C;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.apc-ck-icon svg { width: 18px; height: 18px; }
.apc-ck-title { font-size: 15px; font-weight: 700; color: #0F172A; margin: 0; }
.apc-ck-desc { font-size: 13px; line-height: 1.5; color: #475569; margin: 0 0 10px 0; }
.apc-ck-section-title { font-size: 13.5px; font-weight: 700; color: #0F172A; margin-top: 10px; padding-top: 8px; border-top: 1px solid #F1F5F9; }
.apc-ck-notice { font-size: 12px; color: #00994C; font-style: italic; margin: 3px 0 10px 0; line-height: 1.4; }
.apc-ck-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.apc-ck-label { font-size: 13px; color: #334155; line-height: 1.4; flex: 1; }
.apc-switch { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; }
.apc-switch input { opacity: 0; width: 0; height: 0; }
.apc-slider { position: absolute; cursor: pointer; inset: 0; background-color: #CBD5E1; transition: 0.25s; border-radius: 22px; }
.apc-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: #fff; transition: 0.25s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.22); }
.apc-switch input:checked + .apc-slider { background-color: #00994C; }
.apc-switch input:checked + .apc-slider:before { transform: translateX(16px); }
.apc-switch input:disabled + .apc-slider { opacity: 0.65; cursor: not-allowed; }
.apc-ck-footer-text { font-size: 12.5px; color: #475569; margin: 12px 0 14px 0; padding-top: 8px; border-top: 1px solid #F1F5F9; line-height: 1.4; }
.apc-ck-footer-text a { color: #00994C; font-weight: 600; text-decoration: underline; }
.apc-ck-buttons { display: flex; gap: 10px; }
.apc-ck-btn { flex: 1; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: center; border: 1px solid transparent; transition: all 0.2s ease; }
.apc-ck-btn-reject { background-color: #ffffff; color: #334155; border-color: #CBD5E1; }
.apc-ck-btn-reject:hover { background-color: #F8FAFC; border-color: #94A3B8; }
.apc-ck-btn-accept { background-color: #00994C; color: #ffffff; }
.apc-ck-btn-accept:hover { background-color: #007A3D; }

@media (max-width: 480px) {
    #apc-cookie-card { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px; max-height: 85vh; }
    .apc-ck-desc, .apc-ck-label { font-size: 12.5px; }
    .apc-ck-btn { padding: 8px 10px; font-size: 13px; }
}
