/* 50-cta.css — a6 (2026-11-03): nút chuyển đổi — header (Hotline + Đặt lịch), thanh dính đáy mobile, nút nổi desktop.
   Phần tử mới do dv/50-cta.js dựng. Gỡ = xoá 2 file 50-cta.*  */

/* ===== Header desktop: cặp nút tinh ===== */
/* Nút chính: viên thuốc nền mực #262262 */
.elementor-location-header .elementor-element-bfca8a4 .elementor-button {
  background: #262262 !important; color: #fff !important; border: 1px solid #262262 !important;
  border-radius: 999px !important; min-height: 48px !important; padding: 0 28px !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  font-family: inherit !important; font-weight: 700 !important; font-size: 13px !important; letter-spacing: .1em !important;
  box-shadow: none !important; transition: background .3s, border-color .3s;
}
.elementor-location-header .elementor-element-bfca8a4 .elementor-button:hover { background: #1A1846 !important; border-color: #1A1846 !important; }
.elementor-location-header .elementor-element-bfca8a4 .elementor-button .btn-icon { display: none !important; }
.elementor-location-header .elementor-element-bfca8a4 .elementor-button .btn-txt { color: #fff !important; }

/* Hotline: link chữ + icon điện thoại mảnh + số rõ ràng */
.elementor-location-header .elementor-element-6fd7659 .elementor-button {
  display: inline-flex !important; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px !important;
  color: #262262 !important; background: none !important; font-family: inherit !important;
}
.elementor-location-header .elementor-element-6fd7659 .elementor-button .btn-icon { display: none !important; }
.elementor-location-header .elementor-element-6fd7659 .btn-txt { display: none !important; }
.dv-hl { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.dv-hl svg { width: 18px; height: 18px; flex: none; color: #262262; }
.dv-hl__t { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; }
.dv-hl__t small { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #5F5B70; }
.dv-hl__t b { font-size: 15px; font-weight: 700; letter-spacing: .03em; color: #262262; white-space: nowrap; }
.elementor-location-header .elementor-element-6fd7659 .elementor-button:hover .dv-hl__t b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Focus rõ cho mọi nút a6 */
.elementor-location-header :is(.elementor-element-bfca8a4, .elementor-element-6fd7659, .elementor-element-23a48c40) .elementor-button:focus-visible,
.dv-mbar a:focus-visible, .dv-float:focus-visible { outline: 2px solid #262262 !important; outline-offset: 3px !important; }
.dv-mbar a.dv-pri:focus-visible { outline-color: #B89463 !important; }

/* ===== Header mobile: nút ĐẶT LỊCH KHÁM gạch chân → viên thuốc nhỏ ===== */
@media (max-width: 767px) {
  .elementor-location-header .elementor-element-23a48c40 .elementor-button {
    background: #262262 !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
    min-height: 44px !important; padding: 0 18px !important; margin-top: 0 !important; /* ghi đè padding-top/margin-top của file 40 */
    display: inline-flex !important; align-items: center; justify-content: center;
    font-family: inherit !important; font-weight: 700 !important; font-size: 12.5px !important; letter-spacing: .08em !important;
  }
  .elementor-location-header .elementor-element-23a48c40 .elementor-button::before,
  .elementor-location-header .elementor-element-23a48c40 .elementor-button::after { display: none !important; }
  .elementor-location-header .elementor-element-23a48c40 .elementor-button .btn-icon { display: none !important; }
  .elementor-location-header .elementor-element-23a48c40 .elementor-button .btn-txt { color: #fff !important; }
}

/* ===== Thanh dính đáy mobile ===== */
.dv-mbar { display: none; }
@media (max-width: 767px) {
  .dv-mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
    border-top: 1px solid #E2D9CC; box-shadow: 0 -20px 40px -30px rgba(26, 24, 70, .4);
    font-family: inherit; box-sizing: border-box;
  }
  .dv-mbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 0;
    border-radius: 999px; border: 1px solid #E2D9CC; background: rgba(255, 253, 249, .7);
    color: #262262 !important; font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1; letter-spacing: .02em; text-decoration: none !important; white-space: nowrap;
  }
  .dv-mbar a svg { width: 17px; height: 17px; flex: none; }
  .dv-mbar a.dv-pri { background: #262262; border-color: #262262; color: #fff !important; box-shadow: 0 10px 24px -14px rgba(38, 34, 98, .7); }
  .dv-mbar a:active { transform: scale(.98); }
  body.dv-has-mbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
  /* Tawk: bong bóng chat được đẩy lên trên thanh bằng Tawk_API.customStyle (50-cta.js), không ép CSS lên iframe của Tawk */
}

/* ===== Nút nổi desktop (≥1024): góc dưới trái, hiện sau màn đầu ===== */
.dv-float { display: none; }
@media (min-width: 1024px) {
  .dv-float {
    display: inline-flex; align-items: center; gap: 10px; position: fixed; left: 24px; bottom: 24px; z-index: 9990;
    min-height: 46px; padding: 0 20px 0 16px; border-radius: 999px;
    background: #262262; color: #fff !important; text-decoration: none !important;
    font-family: inherit; font-weight: 700; font-size: 13.5px; line-height: 1; letter-spacing: .03em; white-space: nowrap;
    box-shadow: 0 18px 40px -18px rgba(26, 24, 70, .55); border: 1px solid rgba(255, 255, 255, .08);
    opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
    transition: opacity .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1), background .3s, visibility 0s linear .35s;
  }
  .dv-float.is-on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .dv-float:hover { background: #1A1846; }
  .dv-float svg { width: 16px; height: 16px; flex: none; color: #D9C3A0; }
  .dv-float small { font-size: 12.5px; font-weight: 400; color: #D9C3A0; letter-spacing: .04em; padding-left: 10px; border-left: 1px solid rgba(217, 195, 160, .35); }
}
@media (prefers-reduced-motion: reduce) { .dv-float { transition: none; } }
@media print { .dv-mbar, .dv-float { display: none !important; } }
