/* Cookiebot: Mobile banner overrides */

@media only screen and (max-width: 600px) {
	#CybotCookiebotDialog {
		/* 1. Stick to bottom and span full width */
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important; /* Aligns perfectly with the bottom edge */
		width: 100% !important; /* Takes full width */

		/* 2. Set height to 40% of screen */
		max-height: 40vh !important;
		top: auto !important;

		/* 3. Reset positioning shifts */
		transform: none !important;
		margin: 0 !important;

		/* 4. Visual Cleanup */
		border-radius: 0px 0px 0 0 !important; /* Rounded only at the top */
		box-shadow: 0px -5px 20px rgba(0,0,0,0.15) !important; /* Shadow on top edge */
		overflow-y: auto !important;
		border: none !important;
	}

	/* Tighten internal spacing to prevent excessive scrolling */
	#CybotCookiebotDialogBodyContent {
		padding: 15px 15px 5px 15px !important;
	}

	/* Ensure action buttons are visible at the bottom of the banner */
	#CybotCookiebotDialogFooter,
	#CybotCookiebotDialogNav {
		padding: 10px 15px !important;
	}
}

/* Mobile-specific override: flatten chat header corners on left/right */
@media (max-width: 767.98px) {
  .chat-box-header {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
}

/* Slightly larger font for hero CTA buttons */
.btns-group .btn {
  font-size: 1.05rem; /* approx 16.8px if base is 16px */
}
/* Spacing for button icons */
.btn .fa-whatsapp {
  margin-right: 5px;
}
/* Ensure Font Awesome icons match existing icon sizing */
.fbox-ico-center .fa-solid {
  font-size: 45px;
  line-height: 1;
}

/* Google icon sizing if used in statistic blocks */
.statistic-ico .fa-google {
  font-size: 65px;
}
html, body {
  background: #efefef;      
  height:100%;  
}
#chat-circle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #5A5EB9;
  width: 80px;
  height: 80px;  
  border-radius: 50%;
  color: white;
  padding: 18px 14px 10px 14px;
  cursor: pointer;
  z-index: 10000;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chat-circle .material-icons {
  font-size: 42px;
  line-height: 1;
}

@media only screen and (max-width: 500px) {
  #chat-circle {
    width: 65px;
    height: 65px;
    padding: 0;
    bottom: 20px;
    right: 20px;
  }
  #chat-circle .material-icons {
    font-size: 30px;
  }
}

.cm-msg-time {
  font-size: x-small;
  white-space: nowrap;
}
.cm-msg-time.inline {
  right: 8px;
  bottom: 0px;
}
.cm-msg-time.block {
  display: block;
  margin-top: 4px;
  text-align: right;
}

.btn#my-btn {
     background: white;
    padding-top: 13px;
    padding-bottom: 12px;
    border-radius: 45px;
    padding-right: 40px;
    padding-left: 40px;
    color: #5865C3;
}
#chat-overlay {
    background: rgba(255,255,255,0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: none;
}


.chat-box {
  display:none;
  background: #efefef;
  position:fixed;
  right:15px;
  bottom:25px;  
  width:370px;
  height: 600px;
  max-width: 85vw;
  max-height:100vh;
  border-radius:15px;  
  z-index: 9999;
}
.chat-box-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor:pointer;
}
.chat-box-header {
  background: #5A5EB9;
  height:70px;
  border-top-left-radius:15px;
  border-top-right-radius:15px; 
  color:white;
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}

/* Bottom-center status text under the chat title */
.chat-box-header .chat-status {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  line-height: 1;
  color: #ECECFF;
  opacity: 0.9;
  white-space: nowrap;
  pointer-events: none;
}
.chat-box-header .chat-status:empty {
  display: none;
}

/* Header avatar/logo on the left */
.chat-box-header .chat-header-avatar {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
}
.chat-box-header .chat-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-box-header .chat-title {
  width: 100%;
  text-align: center;
}
.chat-box-body {
  position: relative;  
  height:530px;
  border:1px solid #ccc;  
  overflow: hidden;
}
.chat-box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cuMzg3IDEyLjQ1IDIwLjQ3NiAxMC44NjYgMy4wOSAxOS4zMzEtNC4zMSAxOS4zMzEtNC4zMSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjEuMjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjwvZz48L3N2Zz4=');
  opacity: 0.1;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height:100%;
  position: absolute;
  z-index: -1;   
}
#chat-input {
  background: #f4f7f9;
  width:100%; 
  position:absolute;
  bottom:3px;
  height:47px;  
  padding-top:10px;
  padding-right:50px;
  padding-bottom:10px;
  padding-left:15px;
  border:none;
  resize:none;
  outline:none;
  border:1px solid #ccc;
  color:#888;
  border-top:none;
  border-bottom-right-radius:5px;
  border-bottom-left-radius:5px;
  overflow:hidden;  
}
.chat-input > form {
    margin-bottom: 0;
}
#chat-input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #ccc;
}
#chat-input::-moz-placeholder { /* Firefox 19+ */
  color: #ccc;
}
#chat-input:-ms-input-placeholder { /* IE 10+ */
  color: #ccc;
}
#chat-input:-moz-placeholder { /* Firefox 18- */
  color: #ccc;
}
.chat-submit {  
  position:absolute;
  bottom:3px;
  right:10px;
  background: transparent;
  box-shadow:none;
  border:none;
  border-radius:50%;
  color:#5A5EB9;
  width:35px;
  height:35px;  
}
.chat-logs {
  padding:15px; 
  height:470px;
  overflow-y:scroll;
  width: 100%;
  box-sizing: border-box;
}

.chat-logs::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #F5F5F5;
}

.chat-logs::-webkit-scrollbar
{
	width: 5px;  
	background-color: #F5F5F5;
}

.chat-logs::-webkit-scrollbar-thumb
{
	background-color: #5A5EB9;
}

@media only screen and (max-width: 500px) {
   .chat-logs {
    height: calc(100dvh - 70px - 47px);
  scroll-padding-bottom: 64px; /* ensure last message isn't hidden by input */
  padding-bottom: 72px; /* add small spacing above input on mobile */
  }

  /* Make chat box full-screen on mobile */
    .chat-box {
      top: 0;
      left: 0;
      right: 0;
      bottom: env(safe-area-inset-bottom, 0);
      width: 100vw;
      height: 100dvh;
      min-height: 100dvh;
      max-width: none;
      max-height: none;
      border-radius: 0;
  }

  /* Maximize chat-box-body area on mobile */
    .chat-box-body {
      height: calc(100dvh - 70px);
    }

    /* Ensure input stays visible accounting for safe-area */
    #chat-input {
      bottom: env(safe-area-inset-bottom, 3px);
    }

      /* Keep message bubbles fully visible above input */
      .chat-msg .cm-msg-text {
        scroll-margin-bottom: 64px;
      }
}

.chat-msg.user > .msg-avatar img {
  width:45px;
  height:45px;
  border-radius:50%;
  float:left;
  width:15%;
}
.chat-msg.self > .msg-avatar img {
  width:45px;
  height:45px;
  border-radius:50%;
  float:right;
  width:15%;
}
.cm-msg-text {
  background:white;
  padding:5px 5px 5px 10px;  
  color:#666;
  max-width:75%;
  float:left;
  margin-left:10px; 
  position:relative;
  margin-bottom:10px;
  border-radius:5px;
}
.chat-msg {
  clear:both;    
}
.chat-msg.self > .cm-msg-text {  
  float:right;
  margin-right:10px;
  background: #5A5EB9;
  color:white;
}
.cm-msg-button>ul>li {
  list-style:none;
  float:left;
  width:50%;
}
.cm-msg-button {
    clear: both;
    margin-bottom: 70px;
}

/* Header scrolled state: white background + dark text */
header.header.tra-menu.navbar-light.scrolled,
.header.tra-menu.navbar-light.scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header.tra-menu.navbar-light.scrolled .header-wrapper {
  background-color: #ffffff !important;
}
.header.tra-menu.navbar-light.scrolled .wsmainfull,
.header.tra-menu.navbar-light.scrolled .wsmainwp {
  background-color: #ffffff !important;
}
.header.tra-menu.navbar-light.scrolled .wsmainfull .wsmenu-list > li > a,
.header.tra-menu.navbar-light.scrolled .desktop-lang-btn,
.header.tra-menu.navbar-light.scrolled .flaticon-worldwide,
.header.tra-menu.navbar-light.scrolled .last-link {
  color: #333333 !important;
}
.header.tra-menu.navbar-light.scrolled .btn.btn-tra-white {
  border-color: #333333 !important;
  color: #333333 !important;
}
.header.tra-menu.navbar-light.scrolled .logo-white { display: none; }
.header.tra-menu.navbar-light.scrolled .logo-black { display: inline-block; }

/* Desktop: make chat messages/log a bit smaller */
@media (min-width: 501px) {
  .chat-logs {
    font-size: 0.93rem; /* slightly smaller text for desktop */
    padding: 12px;      /* tighten padding a touch */
  }
  .cm-msg-text {
    font-size: 0.93rem;
  }
}

/* Hide the mobile header on tablet/desktop viewports */
@media (min-width: 768px) {
  .wsmobileheader {
    display: none !important;
  }
}

/* Vertically center mobile header contents */
.wsmobileheader {
  display: flex;
  align-items: center;
}
.wsmobileheader .smllogo {
  display: flex;
  align-items: center;
}
.wsmobileheader .smllogo img {
  display: block;
}

/* Enlarge Magnific Popup video modal */
.mfp-iframe-holder .mfp-content {
  max-width: 100vw;
  width: 80vw;
}

.mfp-iframe-holder .mfp-iframe-scaler {
  /* Keep 16:9 aspect ratio at larger size */
  padding-top: calc(9 / 16 * 80vw);
}

@media (max-width: 992px) {
  .mfp-iframe-holder .mfp-content { width: 95vw; }
  .mfp-iframe-holder .mfp-iframe-scaler { padding-top: calc(9 / 16 * 95vw); }
}

/* Mobile landscape: make modal fill the viewport */
@media (max-width: 767.98px) and (orientation: landscape) {
  .mfp-container { padding: 0 !important; }
  .mfp-iframe-holder .mfp-content {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .mfp-iframe-holder .mfp-iframe-scaler {
    width: 100vw;
    padding-top: 100vh; /* iframe becomes 100vw x 100vh */
  }
  .mfp-iframe-holder .mfp-close {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10001;
    color: #fff;
  }
}