/*
 Theme Name:   octavian-child
 Theme URI:    http://example.com/octavian-child/
 Description:  octavian-child Theme
 Author:       Your Name
 Author URI:   http://example.com
 Template:     octavian
 Version:      1.0.0
*/

/* Add your custom styles here or below the import statement */

@import url("../octavian/style.css");

.loading-circle {
  border: 5px solid #f3f3f3; /* Light grey background */
  border-top: 5px solid #3498db; /* Blue color */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.email-button,
.custom-button {
    padding: 10px 20px;
    background-color: #0073aa; /* Change this to your desired button color */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 5px; /* Adds spacing between the buttons */
    display: inline-block; /* Align buttons side-by-side */
    vertical-align: middle; /* Align buttons vertically */
}

.chat-logo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Ensures the logo stays on top */
    cursor: pointer;
}

.chat-logo img {
    max-width: 0.75in; /* Adjusted size */
    height: auto;
    transition: transform 0.3s ease;
}

.chat-logo img:hover {
    transform: scale(1.2); /* Enlarge logo on hover */
}

.chat-box {
    position: fixed;
    bottom: 70px;
    right: 70px;
    width: 400px;
    height: 500px;
    border: 1px solid #ccc;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none; /* Initially hidden */
    z-index: 999; /* Slightly below the logo to allow hover effect */
}

.chat-box.visible {
    display: block;
}


.chat-messages {
    position: relative;
    overflow-y: auto;
    height: 420px; /* Adjusted for input area */
    padding: 10px; /* Padding for content */
    font-size: 0.9em; /* Smaller font size */
}

.chat-input {
    display: flex;
    border-top: 1px solid #ccc; /* Separator from messages */
    padding: 5px; /* Adjust padding as needed */
    align-items: center; /* Align items vertically */
    height:77px;
}

.chat-input input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd; /* Style for input box */
    margin-right: 10px; /* Space between input box and button */
}

.chat-input button {
    padding: 5px 15px; /* Padding for button */
    border: none; /* No border for button */
    background-color: #007bff; /* Example button color */
    color: white; /* Text color for button */
    cursor: pointer; /* Cursor style for button */
}

/* Optional: Style for button hover effect */
.chat-input button:hover {
    background-color: #0056b3;
}

.chat-message {
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 5px;
}



.bot-message {
    background-color: #f1f1f1;
    color: black;
    align-self: flex-start;
}

.user-message {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
}


.chat-messages {
    display: flex;
    flex-direction: column;
    /* Other existing styles... */
}

.chat-input textarea {
    flex-grow: 1;
    padding: 5px; /* Adjust padding to reduce size */
    border: 1px solid #ddd;
    margin-right: 10px;
    resize: none; /* Prevents resizing the textarea */
    font-size: 0.7em; /* Smaller font size */
    height: 60px; /* Adjust height as needed */
    box-sizing: border-box; /* Include padding and border in height/width */
    overflow-y: auto; /* Allow scrolling within the textarea */
}

.typing-indicator {
    display: none; /* Hidden by default */
    text-align: right;
    position: absolute; /* Position it within the chat-messages */
    bottom: 10px; /* Place it at the bottom */
    left: 10px; /* Align it to the left */
    /*display: flex; /* Align dots horizontally */
}

.typing-indicator span {
    display: inline-block;
    background-color: black;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 2px;
    /* Animation */
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@media screen and (max-width: 500px) {
    .chat-box {
        width: 98%; /* Make the chat box wider on small screens */
        right: 1%; /* Adjust positioning */
        bottom: 1%; /* Adjust positioning */
    }
    
    .chat-logo .small-logo {
        transform: scale(0.7); /* Scale down the logo, adjust the value as needed */
        position: fixed;
        bottom: 74px;
        right: 1px;
        transition: transform 0.3s ease, bottom 0.3s ease, right 0.3s ease;
    }
    
    .chat-input textarea {
    font-size: 16px; /* Ensure the font size is at least 16 pixels */
    /* Other existing styles... */
    }
    
    .close-chat {
        position: fixed;
        bottom: 495px; /* Position just above the chat box */
        right: 1px; /* Align with the right side of the chat box */
        cursor: pointer;
        z-index: 1001; /* Ensure it's above the chat box */
        max-width: 0.23in;
    }
}

.enlarge-and-wiggle {
    animation: enlargeWiggleShrink 1.5s ease; /* Updated animation */
}

@keyframes enlargeWiggleShrink {
    0%, 100% { transform: scale(1) rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: scale(1.2) rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: scale(1.2) rotate(10deg); }
    95% { transform: scale(1.2) rotate(0); }
}

@media screen and (min-width: 501px) {
    .close-chat {
        position: fixed;
        bottom: 559px; /* Position just above the chat box */
        right: 72px; /* Align with the right side of the chat box */
        cursor: pointer;
        z-index: 1001; /* Ensure it's above the chat box */
        max-width: 0.23in;
    }
}

#checkout-processing-message {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin-top: 20px;
}

.loader {
    background-color: #3498db; /* Adjust the color as needed */
    border-radius: 50%;
    width: 100px; /* Adjust size as needed */
    height: 100px; /* Adjust size as needed */
    opacity: 0.5; /* Starting opacity; will be animated */
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

