@charset "utf-8";
/* CSS Document */

.contact-widget {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s ease;
  position: fixed;
  bottom: 20px;
  right: 10px;
  z-index: 1000; float: right;  
}
.contact-widget.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.contact-toggle {  
  display: inline-flex;
  align-items: center;
  gap: 0px;
  padding: 8px 10px 8px 16px;
  border-radius: 30px;
  background: linear-gradient(145deg, #a50000, #ff2020);
  color: white;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-weight: 600;
  font-size: calc(1rem + 0.1vw);
  width: fit-content;  transition: all 0.3s ease;
}
.contact-toggle.hide-text span {
  display: none; /* 👈 ซ่อนไปเลย จะทำให้ปุ่มย่อลง */
}

#toggleText {
  margin: 0 10px;
  transition: opacity 0.3s ease;
  
}

.contact-menu {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;  
  align-content: flex-end;
  margin-top: 12px;
  width: fit-content;
  /*padding-right: 10px;  */
  position: fixed;
  right: 10px;       /* ชิดขอบขวา */
  bottom: 100px;     /* ขยับขึ้นจากล่างนิดนึง */
  align-items: flex-end; /* ให้ไอเทมเรียงจากขวา */  
  z-index: 999;  
}
.contact-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.contact-item {  
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;  
  padding: 5px 10px;  
  /*min-width: 180px;  */
  justify-content: space-between; /* ให้เว้นระหว่างข้อความกับไอคอน */
}

.contact-text-container:after {
  content:""; /*must be declared on a pseudo element*/
  position:absolute; /*allows positioning using left right top and bottom properties*/
  border-left:8px solid rgba(255, 255, 255, 1); /*This is your color of the arrow*/
  border-top:8px solid transparent; /*half the height*/
  border-bottom:8px solid transparent; /*half the height*/  
  margin-top: 5px;
  
  
  -webkit-filter: drop-shadow(1px 1px 1px rgba(0,0,0,.5));
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,.5));
}

.contact-item-text {  
  height: auto;
  width: auto;  
  font-size: calc(0.8rem + 0.1vw);
  text-wrap: nowrap;
  box-shadow: 1px 2px 5px rgba(0,0,0,0.3);
  color: #d10b0c;
  text-align: center;
  padding: 8px 12px;
  border:1px solid white;
  border-radius: 6px;
  min-width: 150px;  
  background: rgb(251,251,251,0.9);
}

