/* Basic styling for the modal */
.affhomesai_modal {
    display: none; /* This should be the initial state; JS switches this to flex to show it */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Radial vignette reads as more premium than a flat scrim and pulls
       the eye toward the card sitting in the brighter center. */
    background: radial-gradient(circle at 50% 42%, rgba(20, 20, 30, 0.55) 0%, rgba(10, 10, 16, 0.78) 100%);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Prevents the page behind the modal from scrolling while it's open,
   so the visitor isn't fighting two scrollable areas at once. */
body.affhomesai_modal-open {
    overflow: hidden;
}

/* Modal Content — flex column so the gradient hero banner and the
   scrollable body below it can each own their own region: the hero
   needs overflow:hidden to clip its glow to the rounded corners,
   while the body needs overflow-y:auto so long content (the register
   form + social buttons) never gets cut off. One element can't do
   both at once, so the hero and body are split into their own
   children instead. */
.affhomesai_modal-content {
    background-color: white;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 16px;
    width: 92%;
    max-width: 400px;
    max-height: 82vh;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    animation: affhomesai_modal-pop 0.18s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes affhomesai_modal-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Gradient hero banner — the "attention grab" at the top of the popup.
   The glow is painted as radial-gradient layers directly in the
   background, not as blurred pseudo-elements. Blurred elements can
   visually bleed past an overflow:hidden ancestor in some browsers
   when their unblurred box sits mostly outside the container (exactly
   the case here, since the blobs are positioned off-corner) — that
   showed up live as a colorful haze washing out over the page above
   the popup. A gradient is painted strictly inside the background box
   with no such leakage, so it gets the same soft-glow look with none
   of the risk. */
.affhomesai_modal-hero {
    position: relative;
    height: 68px;
    flex: 0 0 auto;
    overflow: hidden;
    background:
        radial-gradient(120px 120px at 6% -20%, rgba(255, 215, 106, 0.65), transparent 70%),
        radial-gradient(110px 110px at 96% 125%, rgba(43, 231, 200, 0.55), transparent 70%),
        linear-gradient(135deg, #4e2a84 0%, #8a3ec7 45%, #12b6a0 100%);
}

.affhomesai_modal-hero-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(255, 255, 255, 0.35);
    animation: affhomesai_hero-pulse 2.6s ease-in-out infinite;
}

/* A soft, slow pulse — enough to catch the eye on first paint without
   turning into a distracting strobe the whole time the dialog is open. */
@keyframes affhomesai_hero-pulse {
    0%, 100% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(255, 255, 255, 0.35); }
    50%      { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), 0 0 0 7px rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .affhomesai_modal-hero-badge { animation: none; }
    .affhomesai_modal-content { animation: none; }
}

/* Plain-text fallback dismiss, sitting right under the title where
   it's always in-flow and never fighting for stacking order or theme
   specificity the way the absolutely-positioned × button can. */
.affhomesai_modal-dismiss {
    display: inline-block !important;
    background: none !important;
    border: none !important;
    padding: 4px 6px !important;
    margin: 2px 0 10px !important;
    color: #8a8a8a !important;
    font-size: 13px !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}

.affhomesai_modal-dismiss:hover {
    color: #555 !important;
}

/* Slim, unobtrusive scrollbar instead of the browser's default —
   otherwise a full-width native scrollbar sits inside the card and
   overlaps the tab labels/inputs near the right edge. */
.affhomesai_modal-scroll {
    overflow-y: auto;
    padding: 14px 22px 18px;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}

.affhomesai_modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.affhomesai_modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.affhomesai_modal-scroll::-webkit-scrollbar-thumb {
    background-color: #d0d0d0;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .affhomesai_modal-content {
        border-radius: 12px;
        max-height: 86vh;
    }
    .affhomesai_modal-hero {
        height: 56px;
    }
    .affhomesai_modal-scroll {
        padding: 12px 16px 16px;
    }
}

/* Close Button — a real, always-visible dismiss control. Without one,
   the popup traps the visitor into either logging in/subscribing or
   navigating away entirely, which is the single biggest source of
   "this popup is annoying" complaints.

   Every visual property below is !important. On the live site this
   button was rendering completely invisible — almost certainly the
   theme's own global button reset (many themes strip background/
   color/border off every <button> for their own styling, then
   re-apply per component) winning the specificity fight against our
   plain rule. !important is the only thing that reliably survives
   that kind of theme-wide reset, the same reasoning already used
   elsewhere in this file for the floating logout button and the
   login-only visibility toggles. Also switched from a translucent
   on-gradient look to a solid white circle with a dark icon and its
   own drop shadow, so it stays clearly visible even if it ends up
   sitting over the white body instead of the gradient on some
   layout. */
.affhomesai_modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 2 !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #333 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.affhomesai_modal-close:hover,
.affhomesai_modal-close:focus {
    background: #fff !important;
    color: #111 !important;
    outline: none !important;
}

.affhomesai_modal-close:focus-visible {
    outline: 2px solid #1a73e8 !important;
    outline-offset: 2px !important;
}

/* Legacy alias kept in case any other template still uses .affhomesai_close */
.affhomesai_close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    padding: 0 10px;
}

.affhomesai_close:hover,
.affhomesai_close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style the Action Button */
#affhomesai_actionBtn {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Hover Effect for Action Button */
#affhomesai_actionBtn:hover {
    background-color: #0056b3;
}
/* Style the login Button */
#affhomesai_loginBtn {
    padding: 10px 20px;
    background-color: #023320;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Hover Effect for login Button */
#affhomesai_loginBtn:hover {
    background-color: #088f08;
}

h2#affhomesai_modalTitle {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 600;
}

.affhomesai_modal-actions{
	margin: 4px 0 4px;
}

#affhomesai_modalDescription{
    padding: 0 0 6px;
    color: #666;
    font-size: 14px;
}

.affhomesai_commonbtn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}
a{
    text-decoration: none!important;
}

/* Custom styling for select element */
.affhomesaiformcommon select {
    min-height: 45px;   /* Set the minimum height */
    padding: 8px 12px;  /* Add some padding inside the select */
    font-size: 16px;     /* Adjust font size */
    line-height: 1.5;    /* Proper line height */
    border: 1px solid #ccc; /* Optional: border style */
    border-radius: 4px;  /* Optional: border radius for rounded corners */
    appearance: none;    /* Remove the default browser dropdown arrow */
    -webkit-appearance: none; /* For Webkit browsers like Chrome/Safari */
    -moz-appearance: none;  /* For Firefox */
    background-color: #fff; /* Set background color */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zY3JlZW5zY2FwZSIgdmlld0JveD0iMCAwIDEyIDEyIj4KPHBhdGggZD0iTTEuMyw1Ljk3NGwtMS4zLDEuMzYzTDUsNy44MzktMS4zLC0yLjg3N2wtMS4zLC0xLjM2MyIgZmlsbD0ibm9uZSIgc3R5bGU9ImZpbGw6IzAwMDAwMCIvPgo8L3N2Zz4K')!important;
    background-repeat: no-repeat;
    background-position: right 10px center; /* Position the arrow */
    background-size: 12px; /* Set the size of the custom icon */
}

/* Optionally, you can change the background color when the select is focused */
.affhomesaiformcommon select:focus {
    border-color: #007bff;
    outline: none;
}
.affhomesaiformcommon label{
    margin-bottom: 3px;
    font-size: 1em;
    font-weight: 600;
    color: black;
}
.affhomesaiformcommon .form-control{
    background-color: #fff;
    border-width: 1px 1px 1px 1px;
    padding: 10px 10px 10px 10px;
    border-color: #9b9b9b;
}

.affhomesaiformcommon .booking-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.affhomesaiformcommon .booking-info .spanlabel {
    font-weight: bold;
    margin-right: 10px;
    font-weight: 600;
    color: brown;
}

.affhomesaiformcommon .booking-info .spanvalue {
    font-style: italic;
    font-weight: 600;
    color: black;
}

.affhomesaiformcommon .stripe-logo {
    background-image: url('../../assets/img/stripe.png'); /* Path to your PayPal logo image */
    background-size: cover;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    width: 70px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
  }
  
  .affhomesaiformcommon .stripe-text {
    display: inline-block;
    vertical-align: middle;
  }

  .affhomesaiformcommon .stripe-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #003087;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 20px;
  }
  
  .affhomesaiformcommon .stripe-button:hover {
    background-color: #001f5e;
  }



/* new css fro affhome ai chat */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
:root {
  --text-color: #FFFFFF;
  --icon-color: #ACACBE;
  --icon-hover-bg: #5b5e71;
  --placeholder-color: #dcdcdc;
  --outgoing-chat-bg: #343541;
  --incoming-chat-bg: #444654;
  --outgoing-chat-border: #343541;
  --incoming-chat-border: #444654;
}
#affhomes-openai-chat .light-mode {
  --text-color: #343541;
  --icon-color: #a9a9bc;
  --icon-hover-bg: #f1f1f3;
  --placeholder-color: #6c6c6c;
  --outgoing-chat-bg: #FFFFFF;
  --incoming-chat-bg: #F7F7F8;
  --outgoing-chat-border: #FFFFFF;
  --incoming-chat-border: #D9D9E3;
}

/* Chats container styling */
#affhomes-openai-chat .chat-container {
  overflow-y: auto;
  max-height: 100vh;
  padding-bottom: 50px;
  background: #41434f;
}
:where(.chat-container, textarea)::-webkit-scrollbar {
  width: 6px;
}
:where(.chat-container, textarea)::-webkit-scrollbar-track {
  background: var(--incoming-chat-bg);
  border-radius: 25px;
}
:where(.chat-container, textarea)::-webkit-scrollbar-thumb {
  background: var(--icon-color);
  border-radius: 25px;
}
#affhomes-openai-chat .default-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
  padding: 0 10px;
  text-align: center;
  color: var(--text-color);
}
#affhomes-openai-chat .default-text h1 {
  font-size: 3.3rem;
}
#affhomes-openai-chat .default-text p {
  margin-top: 10px;
  font-size: 1.1rem;
}
#affhomes-openai-chat .chat-container .chat {
  padding: 25px 10px;
  display: flex;
  justify-content: center;
  color: var(--text-color);
}
#affhomes-openai-chat .chat-container .chat.outgoing {
  background: var(--outgoing-chat-bg);
  border: 1px solid var(--outgoing-chat-border);
}
#affhomes-openai-chat .chat-container .chat.incoming {
  background: var(--incoming-chat-bg);
  border: 1px solid var(--incoming-chat-border);
}
#affhomes-openai-chat .chat .chat-content {
  display: flex;
  max-width: 1200px;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
}
#affhomes-openai-chat span.material-symbols-rounded {
  user-select: none;
  cursor: pointer;
}
#affhomes-openai-chat .chat .chat-content span {
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--icon-color);
  visibility: hidden;
  padding: 6px 6px;
  background: #ebebeb;
  border-radius: 5px;
  color: black;
}
#affhomes-openai-chat .chat:hover .chat-content:not(:has(.typing-animation), :has(.error)) span {
  visibility: visible;
}
#affhomes-openai-chat .chat .chat-details {
  display: flex;
  align-items: center;
}
#affhomes-openai-chat .chat .chat-details img {
  width: 35px;
  height: 35px;
  align-self: flex-start;
  object-fit: cover;
  border-radius: 2px;
}
#affhomes-openai-chat .chat .chat-details p {
  white-space: pre-wrap;
  font-size: 14px;
  padding: 0 50px 0 25px;
  color: var(--text-color);
  word-break: break-word;
}
#affhomes-openai-chat .chat .chat-details p.error {
  color: #e55865;
}
#affhomes-openai-chat .chat .typing-animation {
  padding-left: 25px;
  display: inline-flex;
}
#affhomes-openai-chat .typing-animation .typing-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  margin: 0 3px;
  opacity: 0.7;
  background: var(--text-color);
  animation: animateDots 1.5s var(--delay) ease-in-out infinite;
}
#affhomes-openai-chat .typing-animation .typing-dot:first-child {
  margin-left: 0;
}
@keyframes animateDots {
  0%,44% {
    transform: translateY(0px);
  }
  28% {
    opacity: 0.4;
    transform: translateY(-6px);
  }
  44% {
    opacity: 0.2;
  }
}

/* Typing container styling */
#affhomes-openai-chat .typing-container {
  width: 100%;
  display: flex;
  padding-bottom: 75px;
  padding-top: 20px;
  justify-content: center;
  background: var(--outgoing-chat-bg);
  border-top: 1px solid var(--incoming-chat-border);
}
#affhomes-openai-chat .typing-container .typing-content {
  display: flex;
  max-width: 950px;
  width: 100%;
  align-items: flex-end;
}
#affhomes-openai-chat .typing-container .typing-textarea {
  width: 100%;
  display: flex;
  position: relative;
}
#affhomes-openai-chat .typing-textarea textarea {
  resize: none;
  height: 55px;
  width: 100%;
  border: none;
  padding: 15px 45px 15px 20px;
  color: #000;
  font-size: 15px;
  border-radius: 7px 7px 0px 0px;
  max-height: 250px;
  overflow-y: auto;
  background: #fdfdfd;
  outline: 1px solid var(--incoming-chat-border);
}
#affhomes-openai-chat .typing-textarea textarea::placeholder {
  color: #3e3d3d;
}
#affhomes-openai-chat .typing-content span {
  width: 55px;
  height: 55px;
  display: flex;
  border-radius: 4px;
  font-size: 15px;
  align-items: center;
  justify-content: center;
  color: #fff;
}
#affhomes-openai-chat .typing-textarea span {
  position: absolute;
  right: 0;
  bottom: 0;
  visibility: hidden;
}
#affhomes-openai-chat .typing-textarea textarea:valid ~ span {
  visibility: visible;
}
#affhomes-openai-chat .typing-controls {
  display: flex;
}
#affhomes-openai-chat .typing-controls span {
  margin-left: 7px;
  font-size: 22px;
  background: #092f19;
  outline: 1px solid #178245;
}
#affhomes-openai-chat .typing-controls span:hover {
  background: #178245;
}
#affhomes-openai-chat .typing-controls #affhomeai-clear-icon {
  display: none;
  cursor: pointer;
  user-select: none;
}
#affhomes-openai-chat .typing-controls #affhomeai-clear-icon.is-visible {
  display: flex;
}
#affhomes-openai-chat .typing-controls #affhomeai-clear-icon:hover {
  background: #8a2b2b;
}
#affhomes-openai-chat .typing-controls #affhomeai-clear-icon:focus-visible {
  outline: 2px solid #f7c547;
  outline-offset: 2px;
}

/* Card-type clarifying quick replies */
#affhomes-openai-chat .affhomeai-card-choices {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-left: 25px;
}
#affhomes-openai-chat .affhomeai-card-choice-btn {
  background: #178245;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  visibility: visible !important;
}
#affhomes-openai-chat .affhomeai-card-choice-btn:hover:not(:disabled) {
  background: #0f5f32;
}
#affhomes-openai-chat .affhomeai-card-choice-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.display-none{
  display: none;
}
#affhomes-openai-chat .file-upload-btn {
  cursor: pointer;
  margin-left: 15px;
}
#affhomes-openai-chat .file-upload-btn i{
  width: 30px;
  height: 30px;
  background: #fdfdfd;
  line-height: 28px;
  text-align: center;
  margin: 0px;
  border: 1px solid #aca1a1;
  border-radius: 50%;
  color: #1e1c1c;
}
#affhomes-openai-chat #file-name {
  font-size: 12px;
  color: gray;
  margin-left: 5px;
}
#affhomes-openai-chat .file-area{
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #f0f0f0;
  padding-bottom: 12px;
  border-radius: 0px 0px 7px 7px;
  padding-top: 4px;
  padding-bottom: 4px;
}
#affhomes-openai-chat .affhome-audio span{
  visibility: inherit;
  color: rgb(30, 12, 190);
  font-size: 18px !important;
  left: 7%;
  width: 30px;
  height: 30px;
  background-color: #fff;
  top: 4px;
  border-radius: 50%;
  border: 1px solid #aca1a1;
}
#affhomes-openai-chat #file-name-display{
    visibility: inherit;
    color: rgb(255, 255, 255);
    font-size: 12px !important;
    left: 0;
    top: 50%;
    width: 100%;
    justify-content: left;
}
/* Reponsive Media Query */
@media screen and (max-width: 820px) {
  #affhomes-openai-chat .affhome-audio span{
    visibility: inherit;
    color: rgb(30, 12, 190);
    font-size: 18px !important;
    left: 10%;
    width: 30px;
    height: 30px;
    background-color: #fff;
    top: 2px;
    border-radius: 50%;
    border: 1px solid #aca1a1;
  }
}
@media screen and (max-width: 600px) {
  #affhomes-openai-chat .default-text h1 {
    font-size: 2.3rem;
  }
  :where(.default-text p, textarea, .chat p) {
    font-size: 0.95rem!important;
  }
  #affhomes-openai-chat .chat-container .chat {
    padding: 20px 10px;
  }
  #affhomes-openai-chat .chat-container .chat img {
    height: 32px;
    width: 32px;
  }
  #affhomes-openai-chat .chat-container .chat p {
    padding: 0 10px;
  }
  #affhomes-openai-chat .chat .chat-content:not(:has(.typing-animation), :has(.error)) span {
    visibility: visible;
  }
  #affhomes-openai-chat .typing-container {
    padding: 15px 10px;
    padding-bottom: 60px;
  }
  #affhomes-openai-chat .file-area {
    padding-bottom: 8px;
  }
  #affhomes-openai-chat .typing-textarea textarea {
    height: 45px!important;
    padding: 10px 40px 10px 10px;
  }
  #affhomes-openai-chat .typing-content span {
    height: 30px;
    width: 30px;
    margin-left: 5px;
  }
  #affhomes-openai-chat span.material-symbols-rounded {
    font-size: 2.0rem !important;
  }
  #affhomes-openai-chat .affhome-audio span{
    visibility: inherit;
    color: rgb(30, 12, 190);
    font-size: 18px !important;
    left: 20%;
    width: 30px;
    height: 30px;
    background-color: #fff;
    top: 4px;
    border-radius: 50%;
    border: 1px solid #aca1a1;
  }
  #affhomes-openai-chat #file-name-display{
    visibility: inherit;
    color: rgb(255, 255, 255);
    font-size: 12px !important;
    left: 6%;
    top: 37px;
  }
}
/* ── Video credits: badge + upgrade plan cards ───────────────────────── */
#affhomes-openai-chat .affhomeai-video-quota {
  align-self: center;
  background: #092f19;
  color: #9be7b5;
  border: 1px solid #178245;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
#affhomes-openai-chat .affhomeai-video-quota.is-empty {
  background: #3a1414;
  color: #ffb4b4;
  border-color: #a83a3a;
}
#affhomes-openai-chat .affhomeai-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}
#affhomes-openai-chat .affhomeai-plan {
  position: relative;
  flex: 1 1 190px;
  max-width: 260px;
  background: #1e2a35;
  border: 1px solid #3a4a5a;
  border-radius: 12px;
  padding: 18px 16px 16px;
  color: #e6edf3;
  display: flex;
  flex-direction: column;
}
#affhomes-openai-chat .affhomeai-plan.has-badge {
  border-color: #178245;
  box-shadow: 0 0 0 1px #178245;
}
#affhomes-openai-chat .affhomeai-plan-badge {
  position: absolute;
  top: -11px;
  left: 14px;
  background: #178245;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
#affhomes-openai-chat .affhomeai-plan-name {
  margin: 0 0 4px;
  font-size: 17px;
  color: #fff;
}
#affhomes-openai-chat .affhomeai-plan-price {
  font-size: 26px;
  font-weight: 800;
  color: #8ab4f8;
  margin-bottom: 6px;
}
#affhomes-openai-chat .affhomeai-plan-meta {
  font-size: 14px;
  color: #e6edf3;
}
#affhomes-openai-chat .affhomeai-plan-valid {
  font-size: 12px;
  color: #9fb0c0;
  margin-bottom: 10px;
}
#affhomes-openai-chat .affhomeai-plan-features {
  list-style: none;
  margin: 0 0 14px;
  padding: 10px 0 0;
  border-top: 1px solid #3a4a5a;
  text-align: left;
  flex: 1 1 auto;
}
#affhomes-openai-chat .affhomeai-plan-features li {
  position: relative;
  padding: 3px 0 3px 20px;
  font-size: 13px;
  color: #d3dde6;
  list-style: none;
}
#affhomes-openai-chat .affhomeai-plan-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #3ddc84;
  font-weight: 700;
}
#affhomes-openai-chat .affhomeai-plan-btn {
  display: inline-block;
  background: #178245;
  color: #fff !important;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  margin-top: auto;
  visibility: visible !important;
}
#affhomes-openai-chat .affhomeai-plan-btn:hover:not(:disabled) {
  background: #0f5f32;
}
#affhomes-openai-chat .affhomeai-plan-btn:disabled {
  opacity: .6;
  cursor: default;
}
#affhomes-openai-chat .affhomeai-plan-link {
  margin-top: 12px;
}
#affhomes-openai-chat .affhomeai-plan-error {
  flex: 1 1 100%;
  color: #ff8a8a;
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════════════
   Chat composer: aligned, responsive action buttons + product scan
   ══════════════════════════════════════════════════════════════════════ */

/* One centred column so the input row and the buttons share the same
   left and right edges at every screen width. */
#affhomes-openai-chat .affhomeai-composer {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}
#affhomes-openai-chat .affhomeai-composer .typing-content {
  max-width: none;
}

/* The grey tool bar under the input (+ and mic) used to be absolutely
   positioned below the box, so it spilled over whatever followed it - the
   buttons below were partly covered and their top edge could not be clicked.
   Keeping it in normal flow makes the layout independent of the theme, and
   the invisible file-name label is made click-through. The send button stays
   aligned with the top of the input as before. */
#affhomes-openai-chat .affhomeai-composer .typing-content { align-items: flex-start; }
#affhomes-openai-chat .affhomeai-composer .typing-textarea { flex-direction: column; }
#affhomes-openai-chat .affhomeai-composer .file-area {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  box-sizing: border-box;
}
#affhomes-openai-chat .affhomeai-composer #file-name-display { pointer-events: none; }

/* Desktop / tablet: equal-width buttons that fill the row. */
#affhomes-openai-chat .affhomeai-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 16px;
}

/* !important on the visual properties on purpose: many themes style every
   <button> globally and would otherwise repaint these. */
#affhomes-openai-chat .affhomeai-actions .affhomeai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
#affhomes-openai-chat .affhomeai-actions .affhomeai-btn:hover { filter: brightness(1.08); }
#affhomes-openai-chat .affhomeai-actions .affhomeai-btn:active { transform: translateY(1px); }
#affhomes-openai-chat .affhomeai-actions .affhomeai-btn:focus-visible {
  outline: 2px solid #f7c547;
  outline-offset: 2px;
}
#affhomes-openai-chat .affhomeai-actions .affhomeai-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: none;
}
#affhomes-openai-chat .affhomeai-actions .affhomeai-btn svg { flex: 0 0 auto; }

#affhomes-openai-chat .affhomeai-actions .affhomeai-btn--scan {
  background: #e9b949 !important;
  color: #1b1608 !important;
}
#affhomes-openai-chat .affhomeai-actions .affhomeai-btn--clear   { background: #c0392b !important; }
#affhomes-openai-chat .affhomeai-actions .affhomeai-btn--history { background: #3b6e71 !important; }
#affhomes-openai-chat .affhomeai-actions .affhomeai-btn--pdf     { background: #c97c5a !important; }

#affhomes-openai-chat .affhomeai-actions .affhomeai-video-quota {
  grid-column: 1 / -1;
  justify-self: start;
}

/* Phones: Scan on top (full width), History + Download PDF side by side. */
@media screen and (max-width: 640px) {
  #affhomes-openai-chat .affhomeai-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
  }
  #affhomes-openai-chat .affhomeai-actions .affhomeai-btn { min-height: 48px; padding: 10px 8px; font-size: 13.5px; }
  #affhomes-openai-chat .affhomeai-actions .affhomeai-btn--scan    { grid-column: 1 / -1; order: 1; }
  #affhomes-openai-chat .affhomeai-actions .affhomeai-btn--clear   { order: 2; }
  #affhomes-openai-chat .affhomeai-actions .affhomeai-btn--history { order: 2; }
  #affhomes-openai-chat .affhomeai-actions .affhomeai-btn--pdf     { order: 3; }
  #affhomes-openai-chat .affhomeai-actions .affhomeai-video-quota  { order: 4; justify-self: center; }
}

/* Product photo shown inside the user's chat bubble. Selector is longer
   than the generic 35px avatar rules above so it wins on every width. */
#affhomes-openai-chat .chat .chat-details img.affhomeai-scan-thumb {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  align-self: center;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .25);
}
@media screen and (max-width: 600px) {
  #affhomes-openai-chat .chat .chat-details img.affhomeai-scan-thumb { width: 72px; height: 72px; }
}

/* Product reports can contain tables; let them scroll instead of overflowing. */
#affhomes-openai-chat .chat .chat-details p table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

@media (prefers-reduced-motion: reduce) {
  #affhomes-openai-chat .affhomeai-actions .affhomeai-btn { transition: none; }
}


/* ══════════════════════════════════════════════════════════════════════
   History panel: "+" (new chat) icon
   ══════════════════════════════════════════════════════════════════════ */
#affhomes-openai-chat .affhomeai-history-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
#affhomes-openai-chat .affhomeai-history-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid #4a505e !important;
  border-radius: 50% !important;
  background: #2a2e38 !important;
  box-shadow: none !important;
  color: #fff !important;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
#affhomes-openai-chat .affhomeai-history-new:hover {
  background: #3b6e71 !important;
  border-color: #3b6e71 !important;
}
#affhomes-openai-chat .affhomeai-history-new:focus-visible {
  outline: 2px solid #f7c547;
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════════════
   Scan chooser (camera / gallery) - native <dialog>, top layer
   ══════════════════════════════════════════════════════════════════════ */
#affhomes-openai-chat .affhomeai-sheet {
  box-sizing: border-box;
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
#affhomes-openai-chat .affhomeai-sheet::backdrop {
  background: rgba(8, 14, 28, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
#affhomes-openai-chat .affhomeai-sheet [hidden] { display: none !important; }

#affhomes-openai-chat .affhomeai-sheet__panel {
  position: relative;
  box-sizing: border-box;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 22px 20px 20px;
  background: #20232a;
  border: 1px solid #3a3f4b;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
#affhomes-openai-chat .affhomeai-sheet__title {
  margin: 0 40px 12px 0;
  padding: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}
#affhomes-openai-chat .affhomeai-sheet__hint {
  margin: 0 0 16px;
  padding: 0;
  color: #aab0bd;
  font-size: 13.5px;
  line-height: 1.5;
}
#affhomes-openai-chat .affhomeai-sheet__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #aab0bd !important;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
#affhomes-openai-chat .affhomeai-sheet__close:hover { color: #fff !important; background: rgba(255,255,255,.08) !important; }

#affhomes-openai-chat .affhomeai-sheet__options { display: grid; gap: 12px; }

#affhomes-openai-chat .affhomeai-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #3a3f4b !important;
  border-radius: 12px !important;
  background: #2a2e38 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: inherit;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
#affhomes-openai-chat .affhomeai-opt:hover { border-color: #e9b949 !important; background: #30343f !important; }
#affhomes-openai-chat .affhomeai-opt:focus-visible { outline: 2px solid #f7c547; outline-offset: 2px; }
#affhomes-openai-chat .affhomeai-opt svg { flex: 0 0 auto; color: #e9b949; }
#affhomes-openai-chat .affhomeai-opt__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#affhomes-openai-chat .affhomeai-opt__text strong { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.25; }
#affhomes-openai-chat .affhomeai-opt__text small  { color: #aab0bd; font-size: 12.5px; line-height: 1.4; }

/* Live camera */
#affhomes-openai-chat .affhomeai-cam {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
#affhomes-openai-chat .affhomeai-cam video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
#affhomes-openai-chat .affhomeai-cam video.is-mirrored { transform: scaleX(-1); }
#affhomes-openai-chat .affhomeai-cam__status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
#affhomes-openai-chat .affhomeai-cam__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
#affhomes-openai-chat .affhomeai-cam__bar .affhomeai-ghost:first-child { justify-self: start; }
#affhomes-openai-chat .affhomeai-cam__bar .affhomeai-ghost:last-child  { justify-self: end; }

#affhomes-openai-chat .affhomeai-shutter {
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  margin: 0;
  border: 4px solid #fff !important;
  border-radius: 50% !important;
  background: #fff !important;
  background-clip: content-box !important;
  box-shadow: none !important;
  cursor: pointer;
  /* inner white disc with a gap to the outer ring */
  padding: 4px;
}
#affhomes-openai-chat .affhomeai-shutter:active { transform: scale(.94); }
#affhomes-openai-chat .affhomeai-shutter:disabled { opacity: .4; cursor: not-allowed; transform: none; }
#affhomes-openai-chat .affhomeai-shutter:focus-visible { outline: 2px solid #f7c547; outline-offset: 3px; }

/* Shared small buttons inside the dialog */
#affhomes-openai-chat .affhomeai-ghost,
#affhomes-openai-chat .affhomeai-primary {
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
#affhomes-openai-chat .affhomeai-ghost {
  border: 1px solid #4a505e !important;
  background: transparent !important;
  color: #fff !important;
}
#affhomes-openai-chat .affhomeai-ghost:hover { background: rgba(255,255,255,.08) !important; }
#affhomes-openai-chat .affhomeai-primary {
  border: 0 !important;
  background: #e9b949 !important;
  color: #1b1608 !important;
}
#affhomes-openai-chat .affhomeai-primary:hover { filter: brightness(1.08); }
#affhomes-openai-chat .affhomeai-ghost:focus-visible,
#affhomes-openai-chat .affhomeai-primary:focus-visible { outline: 2px solid #f7c547; outline-offset: 2px; }

#affhomes-openai-chat .affhomeai-sheet__error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(229, 88, 101, .12);
  border: 1px solid rgba(229, 88, 101, .35);
  color: #ffd2d6;
  font-size: 14px;
  line-height: 1.5;
}
#affhomes-openai-chat .affhomeai-sheet__row { display: flex; flex-wrap: wrap; gap: 10px; }
#affhomes-openai-chat .affhomeai-sheet__row > button { flex: 1 1 140px; }

/* Phones: bottom sheet */
@media screen and (max-width: 640px) {
  #affhomes-openai-chat .affhomeai-sheet {
    width: 100vw;
    margin: auto 0 0;
  }
  #affhomes-openai-chat .affhomeai-sheet__panel {
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  }
  #affhomes-openai-chat .affhomeai-cam { aspect-ratio: 3 / 4; max-height: 58vh; }
}
@media (prefers-reduced-motion: reduce) {
  #affhomes-openai-chat .affhomeai-opt,
  #affhomes-openai-chat .affhomeai-history-new { transition: none; }
}

/* Leave room for a fixed site header when the History panel is scrolled into view. */
#affhomeai-history-panel { scroll-margin-top: 120px; }

/* ══════════════════════════════════════════════════════════════════════
   Compact chat — the conversation scrolls INSIDE the chat box instead of
   making the whole page longer, so the input never drifts off screen.
   ══════════════════════════════════════════════════════════════════════ */
#affhomes-openai-chat .chat-container {
  max-height: min(58vh, 560px);
  padding-bottom: 0;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
#affhomes-openai-chat .chat-container:empty { display: none; }
#affhomes-openai-chat .chat-container .chat { padding: 14px 10px; }
#affhomes-openai-chat .default-text { height: auto; padding: 28px 10px; }
#affhomes-openai-chat .typing-container { padding-top: 14px; padding-bottom: 18px; }
#affhomes-openai-chat .chat .chat-details img { width: 30px; height: 30px; }
#affhomes-openai-chat .chat .chat-details p { padding: 0 16px 0 16px; }
@media (max-width: 600px) {
  #affhomes-openai-chat .chat-container { max-height: 52vh; }
  #affhomes-openai-chat .chat-container .chat { padding: 10px 6px; }
}

/* Floating "Ask AI" button — appears when the chat is scrolled out of view. */
.affhomeai-chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 99990;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(100deg, #ff6b4a, #8b6cff); color: #fff;
  font: 700 15px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 10px 28px -8px rgba(60, 30, 140, .55);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.affhomeai-chat-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.affhomeai-chat-fab:hover { filter: brightness(1.08); }
.affhomeai-chat-fab:focus-visible { outline: 3px solid #ffd23f; outline-offset: 3px; }
.affhomeai-chat-fab__icon { font-size: 18px; line-height: 1; }
@media (max-width: 600px) { .affhomeai-chat-fab { right: 12px; bottom: 12px; padding: 12px 16px; } }
@media (prefers-reduced-motion: reduce) { .affhomeai-chat-fab { transition: none; } }

/* ══════════════════════════════════════════════════════════════════════
   Book → script → movie: storyboard + scene-by-scene filming
   ══════════════════════════════════════════════════════════════════════ */
#affhomes-openai-chat .affhomeai-movie { margin-top: 12px; }
#affhomes-openai-chat .affhomeai-movie-shoot {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0;
  padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(100deg, #ff6b4a, #8b6cff); color: #fff;
  font: 700 15px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 8px 22px -10px rgba(139,108,255,.9);
}
#affhomes-openai-chat .affhomeai-movie-shoot:hover { filter: brightness(1.08); }
#affhomes-openai-chat .affhomeai-movie-shoot[disabled] { opacity: .7; cursor: progress; }
#affhomes-openai-chat .affhomeai-movie-note { margin-top: 8px; font-size: 13px; color: #b9b6d3; }
#affhomes-openai-chat .affhomeai-movie-stage:not(:empty) { margin-top: 14px; }
#affhomes-openai-chat .affhomeai-movie-title { font-weight: 700; font-size: 16px; margin-bottom: 10px; color: #fff; }
#affhomes-openai-chat .affhomeai-movie-player { margin-bottom: 12px; }
#affhomes-openai-chat .affhomeai-movie-player video { display: block; width: 100%; max-width: 560px; border-radius: 12px; background: #000; }
#affhomes-openai-chat .affhomeai-movie-now { margin-top: 6px; font-size: 13px; color: #d7d4ef; }
#affhomes-openai-chat .affhomeai-movie-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 12px; }
#affhomes-openai-chat .affhomeai-scene {
  padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #e8e6f7;
}
#affhomes-openai-chat .affhomeai-scene.is-done { border-color: rgba(62,224,165,.45); }
#affhomes-openai-chat .affhomeai-scene-head { font-weight: 700; color: #fff; margin-bottom: 2px; }
#affhomes-openai-chat .affhomeai-scene-sum { color: #b9b6d3; margin-bottom: 8px; line-height: 1.35; }
#affhomes-openai-chat .affhomeai-scene-status video { display: block; width: 100%; border-radius: 8px; background: #000; }
#affhomes-openai-chat .chat .chat-content .affhomeai-scene-status span.affhomeai-scene-dl {
  visibility: visible; display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 6px;
  background: #ebebeb; color: #111; font-size: 12px; cursor: pointer;
}
#affhomes-openai-chat .chat .chat-content span.affhomeai-scene-spin {
  visibility: visible; display: inline-block; width: 12px; height: 12px; padding: 0; vertical-align: -1px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #ffd23f; border-radius: 50%; background: none;
  animation: affhomeaiSpin .9s linear infinite;
}
@keyframes affhomeaiSpin { to { transform: rotate(360deg); } }
#affhomes-openai-chat .affhomeai-scene-retry {
  margin-left: 4px; padding: 3px 10px; border: 0; border-radius: 6px; cursor: pointer;
  background: #ffd23f; color: #222; font-weight: 700; font-size: 12px;
}

/* ── Video progress loader (percentage) ─────────────────────────── */
.affhomeai-vprog { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 12px 14px; max-width: 420px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: inherit; transition: opacity .5s ease; }
.affhomeai-vprog.is-done { opacity: 0; }
.affhomeai-vprog__ring { position: relative; flex: 0 0 64px; width: 64px; height: 64px; }
.affhomeai-vprog__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.affhomeai-vprog__track { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 4; }
.affhomeai-vprog__arc { fill: none; stroke: #7c5cff; stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .5s linear; }
.affhomeai-vprog__ring .affhomeai-vprog__pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.affhomeai-vprog__info { flex: 1 1 auto; min-width: 0; }
.affhomeai-vprog__msg { font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.affhomeai-vprog__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.affhomeai-vprog__bar span { display: block; height: 100%; width: 1%; border-radius: 999px; background: linear-gradient(90deg, #7c5cff, #22c1c3); background-size: 200% 100%; animation: affhomeai-vprog-flow 2.4s linear infinite; transition: width .5s linear; }
.affhomeai-vprog__hint { margin-top: 7px; font-size: 12px; opacity: .7; line-height: 1.35; }
@keyframes affhomeai-vprog-flow { from { background-position: 0 0; } to { background-position: -200% 0; } }
.affhomeai-vprog--compact { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; padding: 8px 10px; margin-top: 4px; max-width: none; }
.affhomeai-vprog--compact .affhomeai-vprog__label { font-size: 13px; font-weight: 600; }
.affhomeai-vprog--compact .affhomeai-vprog__pct { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.affhomeai-vprog--compact .affhomeai-vprog__bar { grid-column: 1 / -1; height: 6px; }
@media (max-width: 480px) {
	.affhomeai-vprog { gap: 10px; padding: 10px; }
	.affhomeai-vprog__ring { flex-basis: 52px; width: 52px; height: 52px; }
	.affhomeai-vprog__ring .affhomeai-vprog__pct { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.affhomeai-vprog__bar span { animation: none; }
}
/* The chat hides message <span>s until hover (copy/download icons) -
   the progress loader's spans must always show and keep their own look. */
#affhomes-openai-chat .chat .chat-content .affhomeai-vprog span,
.affhomeai-vprog span { visibility: visible; cursor: default; padding: 0; color: inherit; font-size: inherit; }
#affhomes-openai-chat .chat .chat-content .affhomeai-vprog .affhomeai-vprog__bar span { background: linear-gradient(90deg, #7c5cff, #22c1c3); background-size: 200% 100%; border-radius: 999px; }
#affhomes-openai-chat .chat .chat-content .affhomeai-vprog .affhomeai-vprog__ring .affhomeai-vprog__pct { background: none; font-size: 15px; font-weight: 800; color: #fff; border-radius: 0; }
#affhomes-openai-chat .chat .chat-content .affhomeai-vprog--compact .affhomeai-vprog__pct,
#affhomes-openai-chat .chat .chat-content .affhomeai-vprog--compact .affhomeai-vprog__label { background: none; font-size: 13px; border-radius: 0; }
@media (max-width: 480px) {
	#affhomes-openai-chat .chat .chat-content .affhomeai-vprog .affhomeai-vprog__ring .affhomeai-vprog__pct { font-size: 13px; }
}
