/* Buypass custom utility classes */

/* Yellow link — use on dark/gradient backgrounds where default blue is invisible */
.link-yellow {
    color: #ffc107 !important;
    text-decoration: underline;
}

.link-yellow:hover,
.link-yellow:focus {
    color: #e0a800 !important;
    text-decoration: underline;
}

/* Apply yellow to all links inside gradient sections automatically */
.gradient a {
    color: #ffc107;
}

.gradient a:hover,
.gradient a:focus {
    color: #e0a800;
}

/* =====================
   Chatbox
   ===================== */
.chatbox {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 123456;
}

.chatbox__support {
    display: none;
    flex-direction: column;
    width: 380px;
    height: 540px;
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 123456;
}

.chatbox--active {
    display: flex;
}

.chatbox__header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chatbox__image--header {
    margin-right: 10px;
}

.chatbox__image--header img {
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    padding: 2px;
}

.chatbox__heading--header {
    font-size: 1rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

.chatbox__time--header {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.chatbox__close--header {
    margin-left: auto;
}

.chatbox__close--header button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.chatbox__messages {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    overflow-y: auto;
    padding: 16px;
    background: #f5f5f5;
}

.messages__item {
    margin-top: 10px;
    padding: 8px 12px;
    max-width: 75%;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.messages__item--bot {
    background: #e6e6e8;
    color: #222;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-right: auto;
}

.messages__item--user {
    background: #0d6efd;
    color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    margin-left: auto;
}

.chatbox__footer {
    background: linear-gradient(135deg, #0a58ca, #0d6efd);
    padding: 10px 14px;
}

.chatbox__input-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chatbox__input-container textarea {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.88rem;
    resize: none;
    max-height: 100px;
    overflow-y: auto;
    background: #fff;
    color: #333;
}

.chatbox__input-container textarea:focus {
    outline: none;
}

.send__button {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.send__button:hover {
    opacity: 0.8;
}

.chatbox__footer--small {
    font-size: 0.68rem;
    text-align: center;
    padding: 4px;
    background: #f5f5f5;
    color: #888;
}

.chatbox__footer--small a {
    color: #0d6efd;
    text-decoration: none;
}

.chatbox__button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 123457;
}

.chatbox__button button {
    background: white;
    border: none;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    line-height: 1;
}

#chatbox-icon {
    width: 46px;
    height: 46px;
    display: block;
}
