#loginButton,
button {
    color: #fff;
    cursor: pointer
}

.main-wrapper,
body {
    user-select: none
}

.links li a,
button,
img {
    display: block
}

.links li a,
.notification23,
h1,
select {
    text-align: center
}

#notification-area,
body {
    height: 100vh;
    display: flex
}

.heading-top,
img {
    pointer-events: none
}

#myTable,
table {
    width: 100%;
    border-collapse: collapse
}

.label,
.links li a,
.selected,
.trboard,
select {
    font-weight: 700
}

body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: #121212;
    overflow-x: hidden;
    align-items: center;
    justify-content: center
}

/* Override body flex layout for chat page */
body.chat-page {
    display: block;
    align-items: initial;
    justify-content: initial;
    height: auto;
    overflow-x: visible;
}

.container {
    margin: 25px auto;
    max-width: 1150px;
    display: block;
}

.heading-top,
.links {
    justify-content: center
}

.container-login {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 80px;
    background-color: #1f1f1f;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1)
}

h1 {
    color: red;
    font-size: 28px
}

.form-group {
    margin: 15px auto
}

input[type=email],
input[type=password] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #111 !important;
    color: #fff;
    font-weight: 700
}

/* Ensure all buttons have consistent borders */
button.button,
button.fa-icon,
button.kb-source {
    border: 2px solid #555;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 1px;
    padding: 8px 16px;
    min-height: 40px;
}

/* Override any existing margins to ensure minimal spacing */
.button,
.button5,
.button-florida,
.button100,
.buttonmattress,
.button8wales,
.button-green,
.button8sea,
.button5greym,
.btn,
.buttonp {
    margin: 1px !important;
}

button.button:hover,
button.fa-icon:hover,
button.kb-source:hover {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* General button styles - only for basic buttons */
button:not(.button):not(.fa-icon):not(.kb-source) {
    width: 112%;
    padding: 8px 16px;
    margin: 1px;
    background-color: #c50e0e;
    border: 2px solid #555;
    border-radius: 8px;
    transition: all 0.3s ease;
}

button:not(.button):not(.fa-icon):not(.kb-source):hover {
    background-color: #9c0c0c
}

.links {
    list-style: none;
    padding: 0;
    align-items: center
}

.links li {
    margin-bottom: 10px
}

.links li a {
    padding: 10px 0 15px 10px;
    background-color: red;
    color: #fff;
    text-decoration: none;
    border-radius: 45px
}

.links li a:hover {
    background-color: #640000
}

#loginButton {
    position: relative;
    padding: 16px 32px;
    width: 100%;
    background: linear-gradient(135deg, #f44 0, #c00 100%);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 15px rgba(255, 68, 68, .4);
    overflow: hidden;
    letter-spacing: .5px
}

#loginButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, .6);
    background: linear-gradient(135deg, #f33 0, #b30000 100%)
}

#loginButton:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, .4)
}

#loginButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    transition: left .5s
}

#loginButton:hover::before {
    left: 100%
}

#loginButton.loading {
    background: linear-gradient(135deg, #4a5568 0, #2d3748 100%);
    cursor: not-allowed;
    transform: scale(.98);
    box-shadow: 0 2px 10px rgba(74, 85, 104, .4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(74, 85, 104, .4);
    }
    50% {
        box-shadow: 0 2px 20px rgba(74, 85, 104, .6);
    }
}

#loginButton .progress-ring,
#loginButton .spinner {
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
    transition: .3s;
    opacity: 0;
    position: absolute;
    top: 50%
}

#loginButton.loading .button-text {
    opacity: 0;
    transform: translateY(-10px);
    transition: .3s
}

#loginButton .loading-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    color: #fff;
    font-weight: 600;
}

#loginButton.loading .loading-text {
    opacity: 1;
    visibility: visible;
}

#loginButton .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top: 2px solid #fff;
    border-radius: 50%
}

#loginButton.loading .spinner {
    opacity: 1;
    visibility: visible;
    animation: 1s linear infinite spin
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0)
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

#loginButton .progress-ring {
    width: 40px;
    height: 40px
}

#loginButton.loading .progress-ring {
    opacity: 1;
    visibility: visible
}

#loginButton .progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg)
}

#loginButton .progress-ring circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 3;
    stroke-linecap: round
}

#loginButton .progress-ring .progress {
    stroke: #fff;
    stroke-dasharray: 113;
    stroke-dashoffset: 113;
    animation: 2s ease-in-out infinite progress
}

@keyframes progress {

    0%,
    100% {
        stroke-dashoffset: 113
    }

    50% {
        stroke-dashoffset: 56
    }
}

.content {
    color: #000;
    background: #000
}

label {
    color: #fff;
    margin-right: 10px
}

select {
    padding: 7px;
    margin: 5px auto;
    border: 3px solid red;
    border-radius: 5px;
    transition: background-color .3s;
    width: 50%;
    background-color: #4e0000;
    color: #fff
}

img {
    margin: 0 auto;
    max-width: 100%;
    height: auto
}

.notification23 {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: red;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    display: none;
    transition: opacity .5s ease-in-out
}

.button {
    background-color: #000;
    border: 2px solid #555;
    color: #fff;
    padding: 8px 16px;
    width: 19.3%;
    margin: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.button:hover {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.button,
.button-florida,
.button100,
.buttonmattress {
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition-duration: .4s;
    text-align: left;
    cursor: pointer
}

.button:focus,
.button:hover {
    outline: #fff solid 2px;
    outline-offset: -4px;
    color: #ff1212
}

.button5 {
    width: 99.5% !important
}

.button-7row {
    width: 13.9% !important
}

.button-2row {
    width: 49.4% !important
}

.button-3row {
    width: 32.7% !important
}

.button-4row {
    width: 24.3% !important
}

.button-5row {
    width: 19.34% !important
}

.notification23.show {
    opacity: 1
}

.button-florida {
    background-color: #000;
    color: #fff;
    padding: 8px 16px;
    width: 49%;
    margin: 1px;
    border: 2px solid #555;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.button-florida:hover {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-florida-100 {
    width: 99%
}

.active,
.btn:hover,
.button-florida:hover,
.button5greym:hover,
.button:hover,
.buttonp:hover {
    background-color: #bd0000;
    color: #fff
}

@media screen and (max-width:480px) {
    .button {
        width: 99%;
        margin: 1px
    }

    .btn,
    .buttonp {
        padding: 6px 8px;
        font-size: 13px;
        width: 23%;
        margin: 1px
    }
}

.button100 {
    background-color: #8f005f;
    border: 2px solid #555;
    color: #fff;
    width: 98%;
    margin: 1px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.button100:hover {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.base-gn,
.bed-gn,
.fullbed,
.ottoman,
.ottoman-frame {
    border: 3px solid #00640f;
    padding-right: 40px;
    position: relative
}

.bed-gn {
    background: url(https://res.cloudinary.com/dc1q32wzt/image/upload/v1685648029/florida_ameer_2_2_gsz5oi.png) right center/contain no-repeat
}

.base-gn {
    background: url(https://res.cloudinary.com/dc1q32wzt/image/upload/v1685648223/88c38cf0-c003-48b3-b634-e7c8642f92f6_nnwhrl.png) right center/contain no-repeat
}

.ottoman {
    background: url(https://res.cloudinary.com/dc1q32wzt/image/upload/v1685648664/0_q229h3.png) right center/contain no-repeat
}

.ottoman-frame {
    background: url(https://res.cloudinary.com/dc1q32wzt/image/upload/v1685581331/image-removebg-preview_1_hb59u9.png) right center/contain no-repeat
}

.fullbed {
    background: url(https://res.cloudinary.com/dc1q32wzt/image/upload/v1680470401/alexis-ottoman-faux-leather-white-large-removebg-preview_tntdmg.ico) right center/contain no-repeat
}

.base7 {
    position: relative;
    padding-right: 40px;
    background: url(https://res.cloudinary.com/dc1q32wzt/image/upload/v1680471718/zqf5bMnsSsiHHAijAtet1-transformed__1_-removebg-preview_mkvqra.ico) right center/contain no-repeat;
    border: 3px solid #570000
}

.mattress5 {
    position: relative;
    padding-right: 40px;
    background: url(https://res.cloudinary.com/dc1q32wzt/image/upload/v1680471482/Mattress-PNG-File_iulcud.ico) right center/contain no-repeat;
    border: 3px solid #740080
}

.bed2drawer {
    position: relative;
    padding-right: 40px;
    background: url(https://res.cloudinary.com/dc1q32wzt/image/upload/v1680473098/reinforced-base-angle-drawers-open_1024x1024_2x-removebg-preview_1_von9hj.ico) right center/contain no-repeat;
    border: 3px solid #3e0eac
}

.bed4drawer {
    position: relative;
    padding-right: 40px;
    background: url(https://res.cloudinary.com/dc1q32wzt/image/upload/v1680475086/clempton-custom-timber-4-drawers-storage-bed-base-removebg-preview_dhwl31.ico) right center/contain no-repeat;
    border: 3px solid #a24500
}

.headboardonly {
    position: relative;
    padding-right: 40px;
    background: url(https://res.cloudinary.com/dc1q32wzt/image/upload/v1680476283/ziggy-base-divan-bed-removebg-preview_l9ulti.ico) right center/contain no-repeat;
    border: 3px solid #6d8300
}

.base2draw {
    position: relative;
    padding-right: 40px;
    background: url(https://res.cloudinary.com/dc1q32wzt/image/upload/v1680473600/drawers_1_dgv8p4.ico) right center/contain no-repeat;
    border: 3px solid #004280
}

.base4draw {
    position: relative;
    padding-right: 40px;
    background: url(https://res.cloudinary.com/dc1q32wzt/image/upload/v1680473526/drawers_2_qqhakh.ico) right center/contain no-repeat;
    border: 3px solid #806a00
}

.button5 {
    background-color: #000;
    color: #fff
}

.button8wales {
    background-color: #2b0000;
    color: #fff;
    padding: 8px 16px;
    margin: 1px;
    border: 2px solid #555;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.button8wales:hover {
    background-color: #e40000;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.button-green {
    background-color: #003002;
    color: #fff;
    padding: 8px 16px;
    margin: 1px;
    border: 2px solid #555;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.button-green:hover {
    background-color: #00d10a;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.b-border {
    border: 2px solid #aaa
}

.button8wales:hover {
    background-color: #e40000;
    color: #fff
}

.button8sea {
    background-color: #012611;
    color: #fff;
    padding: 8px 16px;
    margin: 1px;
    border: 2px solid #555;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.button8sea:hover {
    background-color: #00e422;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.buttonmattress {
    background-color: #4caf50;
    border: 2px solid #555;
    color: #fff;
    padding: 8px 16px;
    width: 95%;
    margin: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.buttonmattress:hover {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.centered-text,
td {
    text-align: center
}

.button5greym {
    background-color: #007522;
    color: #fff;
    padding: 8px 16px;
    margin: 1px;
    border: 2px solid #555;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.button5greym:hover {
    background-color: #bd0000;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Ensure notification area is visible and properly positioned */
#notification-area {
    position: fixed;
    top: -20px;
    left: 10px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#notification-area .notification {
    position: relative;
    padding: 15px 45px;
    background: #111;
    color: #f5f5f5;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    margin: 5px 0px;
    opacity: 0;
    left: 200px;
    animation: showNotification 500ms ease-in-out forwards;
}

@keyframes showNotification {
    to {
        opacity: 1;
        left: 0
    }
}

#notification-area .notification.success {
    background: #bd5200;
}

#notification-area .notification.error {
    background: #111;
    color: #f5f5f5;
}

.fa-icon {
    position: relative;
    overflow: hidden
}

.fa-icon i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%)
}

.button,
.fa-icon,
.notification {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    border-radius: 8px
}

.heading-top,
.main-wrapper,
body {
    user-select: none;
    font-family: Arial, sans-serif
}

.containereu {
    margin: -20px auto;
    max-width: 1150px
}

.hidden {
    display: none
}

.topbar {
    position: fixed;
    top: 0
}

.btn,
.buttonp {
    border: 2px solid #555;
    outline: 0;
    padding: 7px 10px;
    background-color: #411;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn:hover,
.buttonp:hover {
    background-color: #bd0000;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

#myTable tr.header,
#myTable tr:hover,
.selected {
    background-color: #000
}

#myInput,
#myTable {
    border: 1px solid #ddd
}

.Invernessr,
.aberdeenr,
.cornwallr,
.daylong,
.everydayfree,
.n-ireland,
.portsmouthr {
    position: relative
}

.everydayfree::after {
    content: "Everyday/Free Delivery";
    font-size: .8em;
    top: -1.1em;
    left: 30em;
    color: #75b6ff
}

.daylong::after {
    content: "Everyday/Long Route";
    font-size: .8em;
    top: -1.1em;
        left: 2em;
    color: #ff7575
}

.portsmouthr::after {
    content: "Tue and Fri /Long Route";
    font-size: .8em;
    top: -1.1em;
    left: 2em;
    color: #75ff87
}

@media only screen and (max-width:600px) {
    .n-ireland::after {
        font-size: .7em;
        position: absolute;
        top: -1.1em;
        left: 2em
    }

    #myTable td:first-child,
    #myTable th:first-child {
        width: 15%
    }

    #myTable td:nth-child(2),
    #myTable th:nth-child(2) {
        width: 100%
    }

    .everydayfree::after {
        font-size: .7em;
        position: absolute;
        top: -1em;
        left: 2em
    }

    .daylong::after,
    .portsmouthr::after {
        font-size: .7em;
        position: absolute;
        top: -1.3em;
        left: 2em
    }
}

.n-ireland::after {
    content: "3 to 5 Days EST Delivery";
    font-size: .8em;
    top: -1.1em;
    left: 2em;
    color: #f80
}

.cornwallr::after {
    content: "Thur and Sun /Long Route";
    font-size: .8em;
    top: -1.1em;
    left: 2em;
    color: #75ff87
}

.aberdeenr::after {
    content: "Wed and Sat /Long Route ";
    font-size: .8em;
    top: -1.1em;
    left: 2em;
    color: #75ff87
}

.Invernessr::after {
    content: "Wed & Sat /20 Extra from LDR";
    font-size: .8em;
    top: -1.1em;
    left: 2em;
    color: #ff2414
}

#myTable {
    font-size: 18px;
    cursor: pointer
}

#myTable td,
#myTable th {
    color: #ebebeb;
    text-align: left;
    padding: 12px;
    border-right: 1px solid #ddd
}

#myTable td:last-child {
    border-right: none
}

#myTable tr {
    border-bottom: 1px solid #ddd;
    background-color: #121212
}

.selected {
    color: #fff;
    outline: red solid 3px;
    outline-offset: -2px
}

#myInput,
.main-wrapper,
body {
    background-color: #121212;
    color: #fff
}

.trboard {
    outline: #fff solid 3px;
    outline-offset: -3px
}

#myInput {
    background-image: url(https://res.cloudinary.com/dc1q32wzt/image/upload/v1685751275/search_eeh8e2.png);
    background-position: 10px 10px;
    background-repeat: no-repeat;
    width: 95%;
    font-size: 16px;
    padding: 12px 20px 12px 40px;
    left: 2.5%
}

@media only screen and (max-width:600px) {

    .Invernessr::after,
    .aberdeenr::after,
    .cornwallr::after,
    .n-ireland::after {
        font-size: .7em;
        position: absolute;
        top: -1.3em;
        left: 2em
    }

    #myInput {
        width: 81%;
        font-size: 19px;
        padding: 12px 20px 12px 40px;
        top: auto;
        left: auto;
        margin-bottom: -15px;
        z-index: initial
    }
}

#myTable td:nth-child(2),
#myTable th:nth-child(2) {
    width: 300px;
    height: 35px
}

.heading-top {
    color: #fff;
    display: flex;
    font-size: 18px;
    padding: 2px;
    border-radius: 5px
}

/* Menu container styling - horizontal top layout */
.container-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #1a1a1a;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.container-menu .btn {
    background-color: #c50e0e;
    color: #fff;
    border: 2px solid #555;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.container-menu .btn:hover {
    background-color: #9c0c0c;
    border-color: #fff;
    transform: translateY(-2px);
}

.container-menu .btn.active {
    background-color: #8B0000;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.container-table {
    margin: 0 auto 12px;
    max-width: 1150px;
    overflow: auto
}

#scroll-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #ff1919;
    color: #fff;
    font-size: 20px;
    opacity: .7;
    transition: opacity .3s
}

#scroll-to-top:hover {
    background: #d60000
}

td {
    padding: 10px;
    border: 1px solid #ddd;
    width: 25%;
    box-sizing: border-box
}

.label {
    font-size: 20px;
    margin-bottom: 5px
}

.image-container {
    display: flex;
    justify-content: center
}

.image-container img {
    width: 50%;
    margin: 2px;
    pointer-events: auto
}

a {
    color: red
}

.centered-text {
    color: red;
    font-size: 40px
}

.selectable-table {
    user-select: text
}

@media (max-width:768px) {
    td {
        width: 100%;
        display: block;
        box-sizing: border-box
    }

    .image-container img {
        width: 50%
    }
}

/* Ensure minimal gaps between buttons in chat page */
.chat-page .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: flex-start;
    align-items: flex-start;
}

.chat-page .button {
    margin: 1px;
    box-sizing: border-box;
}

/* Additional spacing control for all containers */
.container {
    gap: 2px;
}

/* Chat header styling */
.chat-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    border-bottom: none;
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.made-with-love {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    pointer-events: auto;
}

.logout-btn {
    background-color: #c50e0e;
    color: #fff;
    border: 2px solid #555;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    max-width: 100px;
    white-space: nowrap;
    flex-shrink: 0;
    pointer-events: auto;
}

.logout-btn:hover {
    background-color: #9c0c0c;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.logout-btn:active {
    transform: translateY(0);
}

/* Adjust container margin to account for fixed header */
.chat-page .container {
    margin-top: 30px;
}

/* Made with love text styling for login page */
.made-with-love-login {
    text-align: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    margin: 20px auto;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 8px;
    max-width: 400px;
    border: 2px solid #333;
}

/* Mobile responsive styles for chat page */
@media screen and (max-width: 768px) {
    .chat-page .container {
        margin: 20px 10px;
        gap: 5px;
    }
    
    /* Make all buttons 100% width on mobile */
    .chat-page .button,
    .chat-page .fa-icon,
    .chat-page .kb-source,
    .chat-page .button5,
    .chat-page .button-2row,
    .chat-page .button-3row,
    .chat-page .button-4row,
    .chat-page .button-5row,
    .chat-page .button-7row {
        width: 100% !important;
        margin: 2px 0 !important;
        font-size: 14px;
        padding: 12px 16px;
        min-height: 50px;
    }
    
    /* Adjust chat header for mobile */
    .chat-header {
        padding: 0px 15px;
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .made-with-love {
        font-size: 14px;
        text-align: center;
    }
    
    .logout-btn {
        font-size: 11px;
        padding: 6px 12px;
        min-width: 70px;
    }
    
    /* Adjust container margin for mobile header */
    .chat-page .container {
        margin-top: 80px;
    }
    
    /* Ensure proper spacing between buttons */
    .chat-page .button + .button,
    .chat-page .fa-icon + .fa-icon,
    .chat-page .kb-source + .kb-source {
        margin-top: 5px;
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    .chat-page .container {
        margin: 15px 8px;
        gap: 3px;
    }
    
    .chat-page .button,
    .chat-page .fa-icon,
    .chat-page .kb-source,
    .chat-page .button5,
    .chat-page .button-2row,
    .chat-page .button-3row,
    .chat-page .button-4row,
    .chat-page .button-5row,
    .chat-page .button-7row {
        font-size: 13px;
        padding: 10px 14px;
        min-height: 45px;
    }
    
    .chat-header {
        padding: 0px 10px;
    }
    
    .made-with-love {
        font-size: 12px;
    }
    
    .logout-btn {
        font-size: 10px;
        padding: 5px 10px;
        min-width: 60px;
    }
    
    .chat-page .container {
        margin-top: 70px;
    }
}