.accordion-button {
  color: var(--secondary-color);
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  color: var(--white);
  background-color: var(--secondary-color);
}

.accordion-body {
  color: var(--gray2);
  background-color: var(--gray7);
}

.accordion-button:not(.collapsed)::after {
  background-image: none;
  content: "—";
  font-size: 1.25rem;
  line-height: 1;
  font-weight: bold;
  color: currentColor;
  transform: none;
}

.unypay-card i {
  color: var(--secondary-color)
}

#openChatBtn{
	z-index: 9999;
	width: 3.5rem;
	height: 3.5rem; 
	margin: 1.4rem 1.4rem 5.11rem 1.4rem;
	border-radius: 50%;
	padding: 0;
	right: 0;
	bottom: 0;
	position: fixed;
}

.chat-container {
	position: fixed;
	width: calc(100vw - 6.3rem);
	height: 90svh;
	bottom: 0;
	right: 5.6rem;
	border-radius: 1.4rem 1.4rem 0 0;
	max-height: none;
	background: #fff;
	border: 1px solid #ccc;
	box-shadow: var(--box-shadow);
	display: flex;
	flex-direction: column;
	z-index: 9998;
	overflow: none;
	transition: transform 0.3s ease;
}

.chat-header {
	font-size: 1.26rem;
	background-color: var(--secondary-color);
	padding: 10px 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #ddd;
	padding: .7rem;
    font-weight: bold;
    color: white;
	gap: 1rem;
	border-radius: 1.4rem 1.4rem 0 0;
	.icon-container{
		background-color: #fff;
		border: 2px var(--secondary-color) solid;
		i{
			color: var(--secondary-color);
			font-size: 1.7rem;
		}
	}
	.chat-identifier{
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: .7rem;
		align-items: start;
		flex-grow: 1;
	}
}

.chat-body{
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.chat-window{
	overflow: auto;
}

.question-buttons {
	flex-direction: column;
}

.chat-option{
	width: 100%;
}

.chat-header .title{
    font-size: 1.2em;
    font-weight: bold;
}

.chat-header .subtitle{
    font-weight: normal;
    font-size: 0.8em;
}

.close-chat {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

.chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
	border-radius: 0 0 1.4rem 1.4rem;
}

.bot-message,
.user-message {
    padding: 12px 16px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    background-color: #e0e0e0;
    align-self: flex-start;
}

.user-message {
    background-color: #57589C;
    color: white;
    align-self: flex-end;
}

.question-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	justify-content: center;
	gap: .7rem;
	padding: .7rem;
	background-color: #f3f2f9;
	height: 17.8rem;  
    border-radius: 0 0 1.4rem 1.4rem;
}

.question-buttons button.chat-option {
  	background-color: white;
    border: 0.07rem solid #d9d9d9;
    border-radius: .7rem;
    padding: 1.05rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-align: left;
    transition: box-shadow 0.2s ease;
    width: 100%;
	height: 100%;
	gap: .7rem;
}

.question-buttons button.chat-option:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-buttons {
  overflow: hidden;
  max-height: 0;
  padding: 0;
  margin: 0;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.question-buttons.active {
  padding: .7rem;
  max-height: 17.8rem; /* grande o suficiente pro conteúdo */
}

.chat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.icon-container {
  flex-shrink: 0;
  background-color: var(--secondary-color);
  padding: .42rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  i{
	font-size: 0.9rem;
	color: white;
  }
}

.text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-container .title {
  font-weight: bold;
  font-size: 12px;
  color: #6E6E75;
  text-wrap: nowrap;
}

.text-container .subtitle {
  font-size: 10px;
  color: #6E6E75;
  margin-top: 4px;
}


.typing-indicator {
    display: none;
    padding: 10px 20px;
    font-style: italic;
    color: #ffffff;
    font-weight: bold;
    background-color: #3a3d46;
}

button .icon {
    margin-right: 8px;
    font-size: 1.2em;
}

.response-button {
	margin: 5px 5px 0 0;
	padding: 8px 12px;
	background-color: #57589C;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}
.response-button:hover {
	background-color: #40417c;
}

.message-time {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
}

.icon-img{
  height: 20px;
}

.message-time{
  text-align: end;
}

.container-fale-conosco{
	display: flex; 
	align-items: center; 
	justify-content: center
}

.container-fale-conosco button{
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
}

/* Versão mobile ocupa a tela toda */
@media (min-width: 768px) {
  	.chat-container {
		bottom: 80px;
		right: 20px;
		width: 440px;
		border-radius: 1.4rem;
		max-height: 70vh;
	}

	.chat-header {
		font-size: 1rem;		
	}
}

@media (min-width: 740px) {
	#openChatBtn{
		margin: 1.4rem !important;
	}
}
