/* Nút liên hệ nổi — chuyển từ plugin Cyber Kernel (WP), giữ class "icfc" */
@keyframes icfc-pulse { 0% { transform: scale(.92); opacity: .8 } 50% { opacity: .35 } 100% { transform: scale(1.35); opacity: 0 } }
@keyframes icfc-shake { 0%, 70%, 100% { transform: rotate(0) } 74% { transform: rotate(-14deg) } 78% { transform: rotate(12deg) } 82% { transform: rotate(-10deg) } 86% { transform: rotate(8deg) } 90% { transform: rotate(0) } }

.icfc .icfc__dock {
  --icfc-font: inherit; --icfc-z: 9990;
  --icfc-trigger-bg: linear-gradient(135deg, #481488 0%, #2b0b57 100%); --icfc-trigger-border: 2px solid #fdd340; --icfc-trigger-fg: #fff;
  --icfc-trigger-shadow: 0 10px 28px rgba(43, 11, 87, .42); --icfc-trigger-radius: 999px;
  --icfc-ico-bg: #fdd340; --icfc-ico-fg: #1b003c; --icfc-ring: #fdd340;
  --icfc-card-bg: #fff; --icfc-card-radius: 20px; --icfc-card-shadow: 0 18px 48px rgba(27, 0, 60, .28), 0 0 0 1px rgba(72, 20, 136, .08);
  --icfc-head-bg: linear-gradient(135deg, #481488 0%, #1b003c 100%); --icfc-head-fg: #fff; --icfc-head-sub: rgba(255, 255, 255, .8);
  --icfc-badge-bg: rgba(253, 211, 64, .18); --icfc-badge-border: rgba(253, 211, 64, .45); --icfc-badge-fg: #fdd340;
  --icfc-item-bg: #fbf9fd; --icfc-item-border: #ebe5f5; --icfc-item-hover-bg: #f4ecfc; --icfc-item-hover-border: #d1bdef; --icfc-item-radius: 12px;
  --icfc-item-title: #1b003c; --icfc-item-sub: #666; --icfc-arrow: #b0a5c0; --icfc-accent: #481488;
  --icfc-note-bg: #faf8fd; --icfc-note-fg: #888; --icfc-note-border: #f0eaf8;
  --icfc-offset-x: 24px; --icfc-offset-y: 28px;
  position: fixed; bottom: var(--icfc-offset-y); left: var(--icfc-offset-x); right: auto; z-index: var(--icfc-z);
  font-family: var(--icfc-font); display: block; pointer-events: none; line-height: 1.4; text-align: left;
}
.icfc .icfc__dock.icfc--right { left: auto; right: var(--icfc-offset-x); }
.icfc .icfc__dock *, .icfc .icfc__dock ::before, .icfc .icfc__dock ::after { box-sizing: border-box; }
.icfc .icfc__trigger {
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 7px; margin: 0;
  pointer-events: auto; border: var(--icfc-trigger-border); border-radius: var(--icfc-trigger-radius); background: var(--icfc-trigger-bg);
  color: var(--icfc-trigger-fg); box-shadow: var(--icfc-trigger-shadow); font: inherit; cursor: pointer; transition: transform .25s, box-shadow .25s;
  text-transform: none; letter-spacing: normal; min-width: 0; width: auto;
}
.icfc .icfc__trigger:hover { transform: translateY(-2px); }
.icfc .icfc__trigger:focus-visible { outline: 3px solid var(--icfc-ring); outline-offset: 3px; }
.icfc .icfc__ring { position: absolute; display: block; inset: -6px; border: 2px solid var(--icfc-ring); border-radius: inherit; opacity: 0; pointer-events: none; animation: icfc-pulse 2.2s ease-out infinite; }
.icfc .icfc__ring--2 { animation-delay: 1.1s; }
.icfc .icfc__tico { position: relative; display: block; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--icfc-ico-bg); color: var(--icfc-ico-fg); }
.icfc .icfc__ti-open, .icfc .icfc__ti-close { position: absolute; inset: 0; display: block; width: 20px; height: 20px; margin: auto; color: inherit; transition: opacity .2s, transform .25s; }
.icfc .icfc__ti-open { animation: icfc-shake 2.6s ease-in-out infinite; }
.icfc .icfc__ti-close { opacity: 0; transform: rotate(-90deg); }
/* 2.39.1: JS đặt width theo chữ đang hiện để nút co giãn; clip-path chỉ cắt ngang, giữ dấu tiếng Việt (line-height 1) */
.icfc .icfc__tlabel { position: relative; display: block; font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap; letter-spacing: .1px; transition: width .3s cubic-bezier(.4, 0, .2, 1); clip-path: inset(-6px -1px); }
.icfc .icfc__l-open, .icfc .icfc__l-close { display: block; width: max-content; transition: opacity .2s; }
.icfc .icfc__l-close { position: absolute; top: 0; left: 0; opacity: 0; }
.icfc .icfc__dock.is-open .icfc__ti-open { opacity: 0; transform: rotate(90deg); animation: none; }
.icfc .icfc__dock.is-open .icfc__ti-close { opacity: 1; transform: rotate(0); }
.icfc .icfc__dock.is-open .icfc__l-open { opacity: 0; }
.icfc .icfc__dock.is-open .icfc__l-close { opacity: 1; }
.icfc .icfc__dock.is-open .icfc__ring { display: none; }
.icfc .icfc__panel {
  position: absolute; bottom: calc(100% + 16px); left: 0; width: 320px; max-width: calc(100vw - 2 * var(--icfc-offset-x)); margin: 0;
  pointer-events: none; background: var(--icfc-card-bg); border-radius: var(--icfc-card-radius); box-shadow: var(--icfc-card-shadow); overflow: hidden;
  opacity: 0; visibility: hidden; transform: scale(0); transform-origin: 28px calc(100% + 44px);
  transition: opacity .2s, transform .35s cubic-bezier(.34, 1.4, .64, 1), visibility linear .35s;
}
.icfc .icfc__dock.icfc--right .icfc__panel { left: auto; right: 0; transform-origin: calc(100% - 28px) calc(100% + 44px); }
.icfc .icfc__dock.is-open .icfc__panel { opacity: 1; visibility: visible; transform: scale(1); pointer-events: auto; transition: opacity .25s, transform .3s cubic-bezier(.34, 1.56, .64, 1), visibility; }
.icfc .icfc__head { padding: 20px 20px 16px; background: var(--icfc-head-bg); color: var(--icfc-head-fg); }
.icfc .icfc__badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 3px 8px; border: 1px solid var(--icfc-badge-border); border-radius: 6px; background: var(--icfc-badge-bg); color: var(--icfc-badge-fg); font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.icfc .icfc__title { margin: 0 0 4px; padding: 0; color: var(--icfc-head-fg); font-size: 17px; font-weight: 700; line-height: 1.25; }
.icfc .icfc__sub { display: block; margin: 0; color: var(--icfc-head-sub); font-size: 12.5px; line-height: 1.45; }
.icfc .icfc__list { display: flex; flex-direction: column; gap: 8px; padding: 12px; max-height: calc(100vh - var(--icfc-offset-y) - 260px); min-height: 140px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.icfc .icfc__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--icfc-item-border); border-radius: var(--icfc-item-radius); background: var(--icfc-item-bg); color: inherit; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.icfc .icfc__item:hover { background: var(--icfc-item-hover-bg); border-color: var(--icfc-item-hover-border); transform: translateX(4px); text-decoration: none; }
.icfc .icfc__item:focus-visible { outline: 2px solid var(--icfc-accent); outline-offset: 2px; }
.icfc .icfc__ico { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; font-size: 17px; transition: background .2s, color .2s; }
.icfc .icfc__ico > svg { width: 20px; height: 20px; }
.icfc .icfc__ico > img { width: 22px; height: 22px; object-fit: contain; }
.icfc .icfc__zalo { display: inline-flex; padding: 5px; border-radius: 7px; background: #0068ff; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; letter-spacing: .2px; }
.icfc .icfc__txt { display: block; flex: 1 1 0%; min-width: 0; }
.icfc .icfc__ititle { display: block; color: var(--icfc-item-title); font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.icfc .icfc__isub { display: block; margin-top: 2px; overflow: hidden; color: var(--icfc-item-sub); font-size: 11.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.icfc .icfc__arrow { flex-shrink: 0; width: 15px; height: 15px; color: var(--icfc-arrow); transition: transform .2s, color .2s; }
.icfc .icfc__item:hover .icfc__arrow { color: var(--icfc-accent); transform: translateX(3px); }
.icfc .icfc__note { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px 11px; border-top: 1px solid var(--icfc-note-border); background: var(--icfc-note-bg); color: var(--icfc-note-fg); font-size: 10.5px; text-align: center; }
.icfc .icfc__note-ico { width: 12px; height: 12px; color: inherit; }
.icfc .icfc__trap { position: fixed; top: -99999px; left: -99999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* kiểu "minimal" (bản Agency cũ) */
.icfc.icfc--agency .icfc__dock { --icfc-trigger-bg: #0b0b0f; --icfc-trigger-border: 1px solid rgba(255, 255, 255, .08); --icfc-trigger-fg: #fff; --icfc-trigger-shadow: 0 1px 2px rgba(11, 11, 15, .2), 0 12px 32px -8px rgba(11, 11, 15, .45); --icfc-ico-bg: var(--icfc-accent); --icfc-ico-fg: #fff; --icfc-ring: var(--icfc-accent); --icfc-card-bg: rgba(255, 255, 255, .92); --icfc-card-radius: 24px; --icfc-card-shadow: 0 0 0 1px rgba(11, 11, 15, .06), 0 2px 4px rgba(11, 11, 15, .04), 0 28px 64px -16px rgba(11, 11, 15, .28); --icfc-head-bg: transparent; --icfc-head-fg: #0b0b0f; --icfc-head-sub: #6b7280; --icfc-badge-bg: #eef2ff; --icfc-badge-border: transparent; --icfc-badge-fg: var(--icfc-accent); --icfc-item-bg: #fff; --icfc-item-border: #eceef2; --icfc-item-hover-bg: #f7f7fb; --icfc-item-hover-border: #dcdcf5; --icfc-item-radius: 16px; --icfc-item-title: #0b0b0f; --icfc-item-sub: #6b7280; --icfc-arrow: #c4c7cf; --icfc-note-bg: transparent; --icfc-note-fg: #9ca3af; --icfc-note-border: #f1f2f5; }
.icfc.icfc--agency .icfc__ring { display: none; }
.icfc.icfc--agency .icfc__trigger { height: 54px; padding: 0 22px 0 6px; letter-spacing: -.01em; }
.icfc.icfc--agency .icfc__tico::after { content: ""; position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border: 2px solid #0b0b0f; border-radius: 50%; background: #22c55e; }
.icfc.icfc--agency .icfc__ti-open { animation: none; }
.icfc.icfc--agency .icfc__tlabel { font-size: 15px; font-weight: 600; }
.icfc.icfc--agency .icfc__panel { width: 340px; backdrop-filter: saturate(180%) blur(20px); }
.icfc.icfc--agency .icfc__head { padding: 22px 22px 6px; }
.icfc.icfc--agency .icfc__badge { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .2px; text-transform: none; }
.icfc.icfc--agency .icfc__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.icfc.icfc--agency .icfc__title { font-size: 20px; letter-spacing: -.02em; }
.icfc.icfc--agency .icfc__sub { font-size: 13px; }
.icfc.icfc--agency .icfc__list { gap: 6px; padding: 14px 14px 12px; }
.icfc.icfc--agency .icfc__item { padding: 10px; }
.icfc.icfc--agency .icfc__item:hover { transform: none; }
.icfc.icfc--agency .icfc__ico { width: 42px; height: 42px; border-radius: 12px; }
.icfc.icfc--agency .icfc__item:hover .icfc__ico { background: var(--icfc-accent) !important; color: #fff !important; }
.icfc.icfc--agency .icfc__ititle { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.icfc.icfc--agency .icfc__isub { font-size: 12px; }
.icfc.icfc--agency .icfc__note { padding: 10px 14px 14px; font-size: 11px; }

.icfc.stp-cw--nopulse .icfc__ring { display: none; }
.icfc.stp-cw--nopulse .icfc__ti-open { animation: none; }

@media (max-width: 767px) {
  .icfc .icfc__dock { --icfc-offset-x: 16px !important; --icfc-offset-y: 20px !important; }
  .icfc .icfc__trigger { height: 52px; gap: 10px; padding: 0 18px 0 6px; }
  .icfc .icfc__tico { width: 40px; height: 40px; }
  .icfc .icfc__tlabel { font-size: 15px; }
  .icfc .icfc__panel { width: 300px; bottom: calc(100% + 12px); }
  .icfc.stp-cw--desktop { display: none; }
}
@media (min-width: 768px) { .icfc.stp-cw--mobile { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .icfc .icfc__ring, .icfc .icfc__ti-open { animation: none; }
  .icfc .icfc__panel, .icfc .icfc__item, .icfc .icfc__trigger, .icfc .icfc__tlabel, .icfc .icfc__l-open, .icfc .icfc__l-close, .icfc .icfc__ti-open, .icfc .icfc__ti-close { transition: none; }
}
@media print { .icfc .icfc__dock { display: none; } }

/* Phước Khang: thanh Zalo/Facebook/Tiktok/Youtube cố định cao 55px ở đáy màn hình điện thoại → đặt nút lên trên thanh */
@media (max-width: 767px) { body:has(#brxe-ypfafc) .icfc .icfc__dock { --icfc-offset-y: 71px !important; } }
