
/* ===========================
   GLOBAL FONT DEFINITIONS
=========================== */
@font-face {
    font-family: 'CaviarDreams';
    src:  url('/sfsites/c/resource/Nia_Font_CD/CaviarDreams-Bold.woff') format('woff');
}

@font-face {
    font-family: 'Gudea';
    src: url('/sfsites/c/resource/Nia_GudeaFont/Gudea-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'Gudea-Regular';
    src: url('/sfsites/c/resource/Nia_GudeaFont/Gudea-Regular.ttf') format('truetype');
}

/* ===========================
   CHAT BUBBLES (Agent, Chatbot, EndUser)
=========================== */

:host {
  display: block;
  /* background-color: #00e613; */
  border-radius: 20px 20px 20px 20px;
}

.Chatbot {
  color: #012228;
  background: rgba(182, 32, 102, 0.1);
  border-radius: 20px 20px 20px 0;
  float: left;
  padding: 10px 16px;
  font-family: 'Gudea-Regular', sans-serif;
  margin: 6px 16px 6px 0;
  font-style: normal;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

.EndUser {
  padding: 12px 16px;
  font-family: 'Gudea-Regular', sans-serif;
  background: #B62066;
  border-radius: 20px 20px 0px 20px;
  margin: 6px 0px 6px 16px;
  color: white;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
}

.slds-rich-text-editor__output, .slds-rich-text-editor__textarea{
  line-height: 20px;
}

/* ===========================
   COMMON STYLE CLASSES
=========================== */
.es-question-container {
    padding: 6px 16px 6px 0px;
    font-size: large;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 0;
}

/* Question Text */
.es-question-text {
    background: rgba(182, 32, 102, 0.1);
    padding: 12px 16px;
    border-radius: 20px 20px 20px 0;
    margin-bottom: 12px;
    display: inline-block;
    font-family: 'Gudea-Regular', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #012228;
    line-height: 20px;
}

.es-custom-input {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid #b0005f;
  border-radius: 12px;
  outline: none;
  color: #b0005f;
  background-color: #fff;
  padding: 14px 16px;     /* or 8px 16px */
  line-height: 20px;      /* or 30px */
  transition: border-color 0.3s ease;
}

/* Error Text */
.es-error-text {
    color: #d4145a;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Placeholder in disabled state */
.es-custom-input:disabled::placeholder {
    color: #c68aa9 !important;             /* lighter placeholder tone */
    opacity: 0.9 !important;
}

/* Remove any residual focus ring on disabled input */
.es-custom-input:disabled:focus {
    box-shadow: none !important;
    border-color: #e6b3cb !important;
}

/* Completed state: email input disabled after successful submit */
.es-custom-input:disabled {
    border-color: #e6b3cb !important;      /* lighter variant of your brand pink */
    color: #9c4a77 !important;             /* soften text color */
    background-color: #faf7fa !important;  /* subtle off-white */
    opacity: 1 !important;                 /* keep text readable */
    cursor: default !important;            /* non-interactive feel */
}

/* Focus state (no hover effect, only border color change) */
.es-custom-input:focus {
    border-color: #b62066;
    box-shadow: none;
}

/* Placeholder */
.es-custom-input::placeholder {
    color: #B62066;
    font-weight: 700;
    opacity: 0.8;
}

/* ===========================
   COMMON ES BUTTON STYLES
=========================== */

/* Base button class - shared properties for all primary action buttons */
.es-button {
    background: linear-gradient(90deg, #EC7A1C 0%, #B71F66 100%);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 10px 34px;
    cursor: pointer;
    font-family: 'Gudea-Regular', sans-serif;
    font-size: 16px;
    line-height: 20px;
    text-transform: uppercase;
    width: auto;
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Modifier: Full width button */
.es-button-full-width {
    width: 100%;
    display: block;
}

/* Modifier: Hover scale effect */
.es-button-hover-scale:hover {
    transform: scale(1.05);
}

/* Modifier: Button with border */
.es-button-with-border {
    border: 1px solid #B62066;
}

/* Disabled state */
.es-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===========================
   SINGLE SELECT COMPONENT
=========================== */
/* Options Container */
.singleselect-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Option Button - Component-specific overrides only */
.singleselect-option-button {
    padding: 10px 38px; /* Unique padding for single select */
}

/* ===========================
   MULTI SELECT COMPONENT
=========================== */
.multiselect-options-container {
    display: flex;
    flex-wrap: wrap;
}

.multiselect-option-button {
    border: 1px solid #B62066;
    background: #fff;
    color: #B62066;
    border-radius: 50px;
    /* padding: 10px 20px; */
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Gudea-Regular', sans-serif;
    font-weight: 700;
    margin: 4px;
    line-height: 16px;
    text-transform: uppercase;
}

/* ✅ Conditional padding based on icon presence */
.multiselect-option-button:has(.prefix-icon) {
    padding: 2px 20px 2px 3px; /* Icon present */
}

.multiselect-option-button:not(:has(.prefix-icon)) {
    padding: 10px 20px; /* No icon */
}

.multiselect-option-button.selected {
    background: #B62066 !important;
    color: #fff !important;
    border: 1px solid #B62066 !important;
}

/* Ensure unselected state is properly styled */
.multiselect-option-button:not(.selected) {
    background: #fff !important;
    color: #B62066 !important;
    border: 1px solid #B62066 !important;
}

.prefix-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.multiselect-option-button:not(.selected) .prefix-icon {
    /* Icon color for unselected state */
    filter: none;
}

/* .multiselect-option-button.selected .prefix-icon - Icon remains as inverted image (no additional styling needed) */

.multiselect-label {
    flex: 1;
    text-align: left;
    padding-left: 6px;
}

/* UPDATED: Grey box for unselected state */
.multiselect-icon {
    display: inline-block;
    height: 12px;
    width: 12px;
    min-width: 12px;
    margin-left: 12px;
    background: rgb(229, 229, 229);
    border-radius: 4px;
    order: 2;
    font-size: 0.75rem;
    line-height: 12px;
    text-align: center;
    color: transparent;
}

/* UPDATED: Transparent background, white checkmark for selected state */
.multiselect-option-button.selected .multiselect-icon {
    background: transparent;
    color: #fff;
}

/* UPDATED: Hover effect: invert colors (white text on pink background) */
.multiselect-option-button:hover:not(.selected) {
    background: #B62066 !important;
    color: #fff !important;
    border-color: #B62066 !important;
}

/* UPDATED: Change grey box to white on hover */
.multiselect-option-button:hover:not(.selected) .multiselect-icon {
    background: #fff !important;
}

.multiselect-option-button.selected .multiselect-icon {
    color: #fff;
}

.multiselect-submit-btn {
    margin-top: 6px;    /* Unique margin for multiselect */
    margin-left: 5px;
}

/* ===========================
   RATING COMPONENT
=========================== */
.rating-container {
    display: flex;
    gap: 8px;
}

.star-wrapper {
    display: inline-block;
    cursor: pointer;
}

.star-icon {
    width: 32px;
    height: 32px;
    stroke: #b0005f;
    fill: none;
    transition: fill 0.3s ease;
}

/* Hover and Selected States (Hardcoded Colors) */
.rating-star-hover .star-icon path {
    fill: #b0005f; /* Same as original hover color */
}

.rating-star-selected .star-icon path {
    fill: #b0005f; /* Same as original selected color */
}

/* ===========================
   BOT HEADER COMPONENT
=========================== */
.bot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #b62066;  
    color: #fff;
    border-radius: 20px 20px 0 0;
    padding: 20px 20px 20px 20px;
    position: relative;
}

.bot-avatar {
    border-radius: 50%;
    margin-right: 12px;
    width: 60px;
}

.bot-title {
    flex: 1;
    font-family: 'Caviar Dreams', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
}

.bot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Mobile ≤ 600px */
@media (max-width: 600px) {
  .bot-header{
    border-radius: 0 !important;
  }
}

/* ===========================
   ICON LIST COMPONENT
=========================== */
.icon-list-container {
    background: rgba(182, 32, 102, 0.1);
    padding: 16px;
    border-radius: 20px 20px 20px 0;
    font-family: 'Gudea', sans-serif;
    /* max-width: 400px; */
    margin: 6px 16px 6px 0px;
}

.icon-list-question {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 14px;
    color: #012228;
    font-family: 'Gudea-Regular', sans-serif;
    line-height: 20px;
}

.icon-list-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.icon-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    color: #b0005f;
    line-height: 20px;
}

.icon-list-icon-wrapper {
    background: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.icon-list-icon {
    width: 20px;
    height: 20px;
}

.icon-list-label {
    flex: 1;
    font-family: 'Gudea-Regular', sans-serif;
}

.icon-list-button-wrapper {
    margin-top: 16px;
    text-align: left;
}

/* ===========================
   EMAIL INPUT COMPONENT
=========================== */
.email-input-question-container {
    background: rgba(182, 32, 102, 0.1);
    padding: 35px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 0px;
    display: block;
    /* width: 100%; */
    /* max-width: 400px; */
    font-family: 'Gudea-Regular', sans-serif;
    margin: 6px 16px 6px 0px;
}

/* Input Wrapper */
.email-input-wrapper {
    margin-bottom: 15px;
}

/* Checkbox Wrapper */
.email-input-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 15px;
    max-width: 100%;
}

.email-input-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #b0005f;
    border-radius: 2px;
}

.email-input-checkbox-label {
    font-size: 14px;
    color: #808080;
    line-height: 18px;
    word-wrap: break-word;
    max-width: calc(100% - 30px); /* Ensures text wraps nicely */
    font-family: 'Gudea-Regular', sans-serif;
}

/* Checkbox completed state: keep visible but clearly inactive */
.email-input-checkbox:disabled {
    /* Browsers render disabled checkbox dimmer; reinforce with accent color */
    accent-color: #e6b3cb !important;      /* lighter accent to match input */
    cursor: default !important;
    opacity: 1 !important;                 /* avoid heavy dimming for accessibility */
}

/* Checkbox label muted when disabled to signal completion */
.email-input-checkbox:disabled + .email-input-checkbox-label {
    color: #b58aa4 !important;             /* soften label color */
}

/* ===========================
   ZIP CODE COMPONENT
=========================== */
/* Container */
.zipcode-question-container {
    background: rgba(182, 32, 102, 0.1);
    padding: 20px;
    border-radius: 18px;
    border-bottom-left-radius: 0;
    display: block;
    /* width: 100%; */
    font-family: 'Gudea-Regular', sans-serif;
    margin: 6px 16px 6px 0px;
}

/* Input Wrapper */
.zipcode-input-wrapper {
    margin-bottom: 15px;
}

/* ===========================
   LOADER COMPONENT
=========================== */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e0e0e0; /* Light gray background */
    padding: 8px 4px;
    border-radius: 30px;
    width: fit-content;
}

.loader span {
    width: 11px;
    height: 11px;
    margin: 0 2px;
    background: gray;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1s infinite;
}

.loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0% {
        background: gray;
    }
    50% {
        background: black;
    }
    100% {
        background: gray;
    }
}