/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --border: 214.3 31.8% 91.4%;
    --card: 0 0% 100%;
    --highlight: 24 95% 53%;
    --rating: 45 97% 51%;
    --radius: 0.5rem;
    
    /* Direct color values for easier use */
    --bg-color: #ffffff;
    --text-color: #0a0a0a;
    --muted-color: #f5f5f5;
    --muted-text: #737373;
    --border-color: #e5e7eb;
    --card-color: #ffffff;
    --highlight-color: #ff5e29;
    --highlight-soft: #ff5722;
    --highlight-dark: #e63d00;
    --highlight-hover: #e64a19;
    --rating-color: #facc15;
    --green-light: #dcfce7;
    --green-text: #16a34a;
    --green-badge-bg: #dcfce7;
    --green-badge-text: #15803d;
    --destructive: #ef4444;
    --font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: disc;
    margin-left: 1.25rem;
}

/* Main Container */
.main-container {
    display: flex;
    min-height: 100svh;
    justify-content: center;
    background-color: var(--bg-color);
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 448px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1rem;
}

.header-buttons {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
}

.icon-btn {
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    color: var(--muted-text);
    cursor: pointer;
}

.icon-btn svg {
    height: 1rem;
    width: 1rem;
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    right: -0.25rem;
    top: -0.25rem;
    display: inline-flex;
    height: 1rem;
    min-width: 1rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: var(--highlight-color);
    padding: 0 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
}

/* Content */
.content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 7rem;
}

/* Carousel */
.carousel-section {
    padding: 0.5rem 0.75rem 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background-color: var(--muted-color);
}

.carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 0.5rem;
}

.carousel-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: var(--highlight-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.carousel-btn:hover {
    background-color: var(--highlight-hover);
}

.carousel-btn svg {
    height: 1.25rem;
    width: 1.25rem;
}

.carousel-btn-left {
    left: 0.5rem;
}

.carousel-btn-right {
    right: 0.5rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.dot {
    height: 0.375rem;
    border-radius: 9999px;
    transition: all 0.3s;
    width: 0.75rem;
    background-color: var(--muted-color);
}

.dot.active {
    width: 1.25rem;
    background-color: var(--text-color);
}

/* Price Section */
.price-section {
    margin-top: 0.5rem;
}

.price-banner {
    position: relative;
    overflow: hidden;
    border-radius: 0.125rem;
}

.price-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #fff5ee;
}

.price-banner {
    display: flex;
    position: relative;
}

.price-main {
    background: linear-gradient(to right, var(--highlight-dark), var(--highlight-color));
    padding: 0.375rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    clip-path: polygon(0px 0px, 92% 0px, 100% 100%, 0px 100%);
}

.price-label {
    color: white;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 1;
}

.price-value {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.price-info {
    flex: 1;
    padding: 0.375rem 1.25rem 0.375rem 1.5rem;
    position: relative;
    z-index: 0;
    background-color: #fff5ee;
}

.flash-sale {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
}

.flash-sale span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
}

.price-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.detail-label {
    color: var(--muted-text);
    font-size: 0.6875rem;
}

.detail-value {
    color: var(--highlight-soft);
    font-weight: 600;
}

.price-separator {
    color: var(--muted-text);
    font-weight: 700;
}

/* Product Info */
.product-info {
    padding: 0.5rem 0.75rem;
}

.first-buy-badge {
    display: inline-block;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #ffe8dc;
    color: var(--destructive);
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.product-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-text);
}

.product-stats {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-text);
}

/* Stars */
.stars {
    display: flex;
    color: var(--rating-color);
}

.stars .star-icon {
    height: 0.875rem;
    width: 0.875rem;
}

.stars.small .star-icon {
    height: 0.875rem;
    width: 0.875rem;
}

.stars.tiny .star-icon {
    height: 0.75rem;
    width: 0.75rem;
}

.rating-value {
    font-weight: 600;
    color: var(--text-color);
}

/* Shipping Section */
.shipping-section {
    margin-top: 0.5rem;
    padding: 0 0.25rem;
}

.shipping-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.5rem 0.5rem 0;
    font-size: 0.75rem;
}

.free-shipping {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #dbf7f8;
    color: #1a6f6a;
    padding: 0.125rem 0.25rem;
    margin: 0;
}

.truck-icon {
    height: 0.875rem;
    width: 0.875rem;
    color: black;
}

.delivery-time {
    color: var(--muted-text);
    padding-right: 8rem;
}

.refund-guarantee {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.72rem;
    background-color: #f0fdf4;
    color: #16a34a;
}

.shield-icon {
    height: 0.875rem;
    width: 0.875rem;
}

/* Store Trust */
.store-trust {
    background-color: var(--bg-color);
    padding: 0.5rem 0.75rem;
}

.trust-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

.trust-label {
    font-weight: 500;
    color: var(--text-color);
}

.trust-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: #16a34a;
}

.trust-bar {
    height: 0.375rem;
    overflow: hidden;
    border-radius: 9999px;
    background-color: var(--muted-color);
    margin-top: 0.5rem;
}

.trust-fill {
    height: 100%;
    width: 91.67%;
    border-radius: 9999px;
    background-color: var(--highlight-color);
}

.trust-stats {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.65rem;
    color: #737373;
}

/* Seller Info */
.seller-info {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.seller-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seller-logo {
    height: 3rem;
    width: 3rem;
    border-radius: 0.5rem;
    object-fit: contain;
    background-color: white;
    padding: 0.25rem;
}

.seller-badges {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.trusted-badge {
    border-radius: 9999px;
    background-color: #dcfce7;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    color: #15803d;
}

.official-text {
    color: var(--muted-text);
    font-size: 0.75rem;
}

.seller-name {
    font-weight: 600;
    color: var(--text-color);
}

.seller-sales {
    font-size: 0.7rem;
    color: var(--muted-text);
}

.follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    border-radius: 9999px;
    padding: 0 1rem;
    height: 2rem;
    font-size: 0.75rem;
    transition: background-color 0.2s;
    color: var(--text-color);
}

.follow-btn:hover {
    background-color: var(--muted-color);
}

.follow-btn.small {
    height: 1.75rem;
    padding: 0 0.75rem;
    font-size: 0.7rem;
}

/* Reviews Section */
.reviews-section {
    padding: 1rem 0.75rem;
}

.reviews-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.reviews-title {
    font-size: 1rem;
    font-weight: 600;
    scroll-margin-top: 80px; /* Adjust based on header height */
}

.reviews-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.rating-number {
    font-weight: 600;
}

.reviews-list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Review Card */
.review-card {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background-color: var(--card-color);
    padding: 0.75rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reviewer-avatar {
    height: 2rem;
    width: 2rem;
    border-radius: 9999px;
    object-fit: cover;
}

.reviewer-name-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reviewer-name {
    font-size: 0.75rem;
    font-weight: 600;
}

.reviewer-meta {
    font-size: 0.7rem;
    color: var(--muted-text);
}

.review-text {
    margin-top: 0.75rem;
    line-height: 1.4;
    color: var(--text-color);
}

.review-image-container {
    margin-top: 0.75rem;
    overflow: hidden;
    border-radius: 0.5rem;
}

.review-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.review-actions {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--muted-text);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--muted-text);
}

/* See More Button */
.see-more-btn {
    margin-top: 1rem;
    width: 100%;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    padding: 0.625rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    transition: background-color 0.2s;
    color: var(--text-color);
}

.see-more-btn:hover {
    background-color: var(--muted-color);
}

/* Rating Distribution */
.rating-distribution {
    margin-top: 1rem;
}

.distribution-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.distribution-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.star-label {
    width: 2rem;
    text-align: right;
    font-weight: 500;
}

.bar-container {
    flex: 1;
    height: 0.375rem;
    overflow: hidden;
    border-radius: 9999px;
    background-color: var(--muted-color);
}

.bar-fill {
    height: 100%;
    border-radius: 9999px;
    background-color: var(--rating-color);
}

.bar-count {
    width: 2.5rem;
    text-align: right;
    font-size: 0.7rem;
    color: var(--muted-text);
}

/* Description Section */
.description-section {
    margin-top: 1rem;
    border-radius: 0.75rem;
    background-color: var(--card-color);
    padding: 1rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.description-content {
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.6;
}

.description-content p {
    margin-bottom: 1rem;
}

.feature-item {
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--muted-text);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--muted-text);
    font-style: italic;
}

.footer-note {
    font-size: 0.875rem;
    color: var(--muted-text);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Departments Section */
.departments-section {
    margin-top: 1rem;
    border-radius: 0.75rem;
    background-color: var(--card-color);
    padding: 0.75rem;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.chevron-icon {
    height: 1rem;
    width: 1rem;
    transition: transform 0.3s;
}

.accordion-item[open] .chevron-icon {
    transform: rotate(90deg);
}

.accordion-content {
    padding: 0 1rem 1rem;
    font-size: 0.875rem;
    color: var(--muted-text);
}

.accordion-content p {
    margin-bottom: 0.5rem;
}

.accordion-content ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Fixed Footer */
.fixed-footer {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    background-color: var(--bg-color);
}

.guarantee-banner {
    width: 100%;
    background-color: #e8f5e9;
    padding: 0.25rem 0;
    text-align: center;
}

.guarantee-banner p {
    font-weight: 500;
    font-size: 0.875rem;
    font-style: italic;
    color: #16a34a;
}

.footer-content {
    max-width: 448px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.footer-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-color);
}

.footer-icon-btn svg {
    height: 1.5rem;
    width: 1.5rem;
    color: var(--text-color);
}

.footer-icon-btn span {
    font-size: 0.75rem;
    color: var(--text-color);
}

.buy-section {
    display: flex;
    align-items: center;
}

.cart-icon-box {
    display: flex;
    height: 3.5rem;
    width: 3.5rem;
    align-items: center;
    justify-content: center;
    background-color: #ffe8dc;
    border-radius: 0.5rem 0 0 0.5rem;
}

.cart-icon-box svg {
    height: 1.5rem;
    width: 1.5rem;
    color: var(--highlight-soft);
}

.buy-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 1.5rem;
    height: 3.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    background-color: var(--highlight-soft);
    color: white;
    transition: background-color 0.2s;
}

.buy-button:hover {
    background-color: #e64a19;
}

.buy-text {
    font-size: 1rem;
    font-weight: 700;
}

.timer-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 400;
}

.zap-icon {
    height: 0.75rem;
    width: 0.75rem;
    fill: currentColor;
}

/* Hide scrollbar but allow scrolling */
.content::-webkit-scrollbar {
    display: none;
}

.content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Media query for larger screens */
@media (min-width: 448px) {
    .fixed-footer {
        left: 0;
        right: 0;
        max-width: none;
    }
    
    .fixed-footer .footer-content {
        max-width: 448px;
        margin: 0 auto;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 51;
    width: calc(100% - 2rem);
    max-width: 384px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.75rem 0.5rem;
}

.modal-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    color: var(--text-color);
}

.modal-close:hover {
    opacity: 1;
}

.modal-close svg {
    width: 1rem;
    height: 1rem;
}

.modal-content {
    padding: 0 0.75rem 0.75rem;
}

.modal-carousel {
    position: relative;
    max-width: 200px;
    margin: 0 auto;
}

.modal-carousel-image {
    border-radius: 0.5rem;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-carousel-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.modal-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background-color: var(--highlight-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modal-carousel-btn svg {
    width: 1rem;
    height: 1rem;
}

.modal-carousel-btn-left {
    left: 0.25rem;
}

.modal-carousel-btn-right {
    right: 0.25rem;
}

.modal-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.modal-dot {
    height: 0.25rem;
    width: 0.5rem;
    border-radius: 9999px;
    background-color: rgba(115, 115, 115, 0.3);
    transition: all 0.2s;
}

.modal-dot.active {
    width: 1rem;
    background-color: var(--text-color);
}

.modal-product-title {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.modal-badges {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.modal-badge {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 500;
}

.modal-badge svg {
    width: 0.625rem;
    height: 0.625rem;
}

.modal-badge-shipping {
    background-color: #dbf7f8;
    color: #1a6f6a;
}

.modal-badge-guarantee {
    background-color: #f0fdf4;
    color: #16a34a;
}

.modal-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.modal-price-current {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--highlight-color);
}

.modal-price-original {
    font-size: 0.65rem;
    color: var(--muted-text);
    text-decoration: line-through;
}

.modal-price-discount {
    background-color: var(--highlight-dark);
    color: white;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.modal-btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.25rem;
    border-radius: 0.5rem;
    background-color: var(--highlight-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.modal-btn-buy:hover {
    background-color: var(--highlight-dark);
}

.modal-btn-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    font-size: 0.75rem;
    font-weight: 500;
    transition: background-color 0.2s;
    color: var(--text-color);
}

.modal-btn-cancel:hover {
    background-color: var(--muted-color);
}

/* Chat Overlay */
.chat-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 51;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.chat-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Chat Panel Styles */
.chat-panel {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 52;
    height: 85vh;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    border-radius: 1rem 1rem 0 0;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
}

.chat-panel.active {
    transform: translateY(0);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    object-fit: contain;
    background-color: white;
    padding: 0.125rem;
}

.chat-shop-name {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #16a34a;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #22c55e;
}

.chat-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    color: var(--text-color);
}

.chat-close:hover {
    opacity: 1;
}

.chat-close svg {
    width: 1rem;
    height: 1rem;
}

.chat-body {
    display: flex;
    flex-direction: column;
    height: calc(85vh - 80px);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    display: flex;
}

.chat-message.attendant {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.chat-message.attendant .message-bubble {
    background-color: var(--muted-color);
    color: var(--text-color);
    border-bottom-left-radius: 0.25rem;
}

.chat-message.user .message-bubble {
    background-color: var(--highlight-color);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.chat-faq {
    border-top: 1px solid var(--border-color);
    padding: 1rem;
}

.faq-title {
    font-size: 0.75rem;
    color: var(--muted-text);
    margin-bottom: 0.5rem;
}

.faq-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--bg-color);
    transition: background-color 0.2s;
    white-space: normal;
    color: var(--text-color);
}

.faq-btn:hover {
    background-color: var(--muted-color);
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background-color: var(--muted-color);
    font-size: 0.875rem;
    outline: none;
}

.chat-input:focus {
    border-color: var(--highlight-color);
}

.chat-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: var(--highlight-color);
    color: white;
    transition: background-color 0.2s;
}

.chat-send-btn:hover:not(:disabled) {
    background-color: var(--highlight-dark);
}

.chat-send-btn:disabled {
    opacity: 0.7;
}

.chat-send-btn svg {
    width: 1rem;
    height: 1rem;
}
