/**
 * Kiosk Mode Styles for Resto M2
 * TV screen display and slideshow styles
 */

/* CSS Custom Properties */
:root {
    --kiosk-primary: #ffd700;
    --kiosk-secondary: #00d4ff;
    --kiosk-accent: #ff4b2b;
}

/* Kiosk Container */
.resto-m2-kiosk-container {
    /* Default styles for fullscreen */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    z-index: 999999;
    display: flex;
    flex-direction: column;
}

/* ============================================
   PARTICLE EFFECTS
   ============================================ */

.kiosk-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    top: -20px;
    animation: particle-fall linear infinite;
}

/* Snow Particles */
.particle-snow {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 10px white;
}

@keyframes particle-fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Leaves Particles */
.particle-leaves {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    opacity: 0.9;
}

/* Bubbles Particles */
.particle-bubbles {
    width: 15px;
    height: 15px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particle-rise linear infinite;
}

@keyframes particle-rise {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0;
    }
}

/* Confetti Particles */
.particle-confetti {
    width: 10px;
    height: 15px;
    opacity: 0.9;
}

.particle-confetti:nth-child(odd) {
    background: var(--kiosk-primary);
}

.particle-confetti:nth-child(even) {
    background: var(--kiosk-accent);
}

.particle-confetti:nth-child(3n) {
    background: var(--kiosk-secondary);
}

/* Stars Particles */
.particle-stars {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--kiosk-primary), 0 0 20px var(--kiosk-primary);
    animation: particle-twinkle ease-in-out infinite;
}

@keyframes particle-twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Embedded Mode */
.resto-m2-kiosk-container.kiosk-mode-embedded {
    position: relative;
    width: 100%;
    height: 600px;
    /* Fixed height for embedded */
    min-height: 500px;
    z-index: 10;
    /* Lower z-index for embedded */
    border-radius: 12px;
    /* Nice rounded corners for embedded */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Fullscreen specific overrides */
.resto-m2-kiosk-container.kiosk-mode-fullscreen {
    position: fixed;
    z-index: 999999;
}

/* Kiosk Header */
.kiosk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

/* Header Height Variants */
.kiosk-header.header-small {
    min-height: 50px;
    padding: 10px 30px;
}

.kiosk-header.header-small h1 {
    font-size: 1.8em;
}

.kiosk-header.header-small .kiosk-clock {
    font-size: 1.5em;
}

.kiosk-header.header-normal {
    min-height: 80px;
    padding: 20px 50px;
}

.kiosk-header.header-large {
    min-height: 100px;
    padding: 25px 60px;
}

.kiosk-header.header-large h1 {
    font-size: 3.5em;
}

.kiosk-header.header-large .kiosk-clock {
    font-size: 3em;
}

.kiosk-header h1 {
    margin: 0;
    font-size: 3em;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kiosk-clock {
    font-size: 2.5em;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-variant-numeric: tabular-nums;
}

/* Kiosk Content */
.kiosk-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.kiosk-slides {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
}

.kiosk-slide {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.kiosk-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 5;
}

.kiosk-slide.prev {
    transform: translateX(-100%);
    visibility: hidden;
}

/* Slide Header */
.slide-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 10px 20px;
    max-height: 100px;
    overflow: hidden;
}

.slide-header h2 {
    font-size: 2.8em;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   CLOSED MESSAGE SCREEN
   ============================================ */

.closed-message-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.closed-icon {
    font-size: 120px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.closed-title {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.closed-message {
    font-size: 1.8em;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.5;
    margin-bottom: 40px;
}

.opening-info {
    font-size: 1.4em;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.opening-info i {
    margin-right: 10px;
    color: var(--kiosk-primary);
}

/* Menu Items Grid */
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    flex: 1;
    align-content: start;
    max-height: 100%;
    overflow: hidden;
    padding: 10px;
}

/* Responsive Grid for Small Screens */
@media (max-width: 480px) {
    .menu-items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .menu-item-card {
        padding: 15px;
    }

    .item-image {
        max-height: 120px;
    }

    .item-name {
        font-size: 1em;
    }

    .item-description {
        font-size: 0.75em;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 8px;
    }

    .item-price {
        font-size: 1em;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .menu-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .menu-item-card {
        padding: 15px;
    }

    .item-description {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

.menu-item-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.menu-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.menu-item-card:hover::before {
    left: 100%;
}

.menu-item-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Item Image - Fixed square size */
.item-image {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
    margin: 0 auto 10px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    flex: 0 0 auto;
}

/* Image Shape Variants - fixed size */
.image-shape-square .item-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
}

.image-shape-rounded .item-image {
    width: 140px;
    height: 105px;
    border-radius: 15px;
}

.image-shape-circle .item-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.image-shape-wide .item-image {
    width: 160px;
    height: 90px;
    border-radius: 12px;
}

.image-shape-original .item-image {
    width: auto;
    max-width: 100%;
    height: 120px;
    border-radius: 10px;
}

.menu-item-card:hover .item-image {
    transform: scale(1.05);
}

.item-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 3em;
    color: rgba(255, 255, 255, 0.3);
}

/* Item Details */
.item-details {
    text-align: center;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    overflow: hidden;
}

.item-name {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.item-description {
    font-size: 0.95em;
    opacity: 0.9;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    font-size: 1.3em;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Kiosk Controls */
.kiosk-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resto-m2-kiosk-container:hover .kiosk-controls {
    opacity: 1;
}

.kiosk-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.kiosk-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.kiosk-controls button:active {
    transform: scale(0.95);
}

/* Progress Indicator */
.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    transition: width 0.1s linear;
    border-radius: 2px;
}

/* Loading State */
.kiosk-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.5em;
}

.kiosk-loading::before {
    content: '';
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   TRANSITION EFFECTS
   ============================================ */

/* Default - Slide */
.kiosk-slide {
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.kiosk-slide.active {
    transform: translateX(0);
}

.kiosk-slide.prev {
    transform: translateX(-100%);
}

/* Fade Transition */
.transition-fade .kiosk-slide {
    transform: none;
    transition: opacity 1s ease-in-out;
}

.transition-fade .kiosk-slide.active {
    opacity: 1;
}

.transition-fade .kiosk-slide:not(.active) {
    opacity: 0;
}

/* Slide Left Transition */
.transition-slide-left .kiosk-slide {
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

.transition-slide-left .kiosk-slide.active {
    transform: translateX(0);
    opacity: 1;
}

.transition-slide-left .kiosk-slide.prev {
    transform: translateX(-100%);
    opacity: 0;
}

/* Slide Right Transition */
.transition-slide-right .kiosk-slide {
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

.transition-slide-right .kiosk-slide.active {
    transform: translateX(0);
    opacity: 1;
}

.transition-slide-right .kiosk-slide.prev {
    transform: translateX(100%);
    opacity: 0;
}

/* Zoom In Transition */
.transition-zoom .kiosk-slide {
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-zoom .kiosk-slide.active {
    opacity: 1;
    transform: scale(1);
}

.transition-zoom .kiosk-slide:not(.active) {
    opacity: 0;
    transform: scale(0.8);
}

/* Zoom Out Transition */
.transition-zoom-out .kiosk-slide {
    transform: scale(1.2);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-zoom-out .kiosk-slide.active {
    opacity: 1;
    transform: scale(1);
}

.transition-zoom-out .kiosk-slide:not(.active) {
    opacity: 0;
    transform: scale(1.2);
}

/* Flip Transition */
.transition-flip .kiosk-slide {
    transform: rotateY(90deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

.transition-flip .kiosk-slide.active {
    opacity: 1;
    transform: rotateY(0deg);
}

/* Ken Burns Effect (for images/media) */
.transition-kenburns .kiosk-slide {
    transition: opacity 1.5s ease-in-out;
}

.transition-kenburns .kiosk-slide.active {
    opacity: 1;
}

.transition-kenburns .kiosk-slide:not(.active) {
    opacity: 0;
}

.transition-kenburns .kiosk-slide.active img,
.transition-kenburns .kiosk-slide.active video {
    animation: kenburns 15s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

/* ============================================
   TICKER / ANNOUNCEMENT BAND
   ============================================ */

.kiosk-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 0;
    height: 60px;
    overflow: hidden;
    z-index: 100;
    border-top: 2px solid rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
}

/* Ticker Height Variants */
.kiosk-ticker.ticker-height-small {
    height: 40px;
    padding: 8px 0;
    font-size: 0.9em;
}

.kiosk-ticker.ticker-height-normal {
    height: 60px;
    padding: 12px 0;
    font-size: 1em;
}

.kiosk-ticker.ticker-height-large {
    height: 80px;
    padding: 16px 0;
    font-size: 1.2em;
}

.kiosk-ticker.ticker-top {
    top: 0;
    bottom: auto;
    border-top: none;
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
}

.ticker-content {
    display: flex;
    align-items: center;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 60px;
    font-size: 1.2em;
    font-weight: 500;
}

.ticker-item::before {
    content: '•';
    margin-right: 15px;
    color: #ffd700;
    font-size: 1.5em;
}

.ticker-item.highlight {
    color: #ffd700;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Ticker Speed Variants */
.ticker-slow .ticker-content {
    animation-duration: 45s;
}

.ticker-fast .ticker-content {
    animation-duration: 20s;
}

.ticker-faster .ticker-content {
    animation-duration: 10s;
}

/* Ticker Pause on Hover */
.kiosk-ticker:hover .ticker-content {
    animation-play-state: paused;
}

/* ============================================
   IMAGE SHAPE VARIANTS
   ============================================ */

/* Square (1:1) */
.image-shape-square .item-image {
    aspect-ratio: 1 / 1;
    height: auto !important;
    object-fit: cover;
    border-radius: 8px;
}

/* Rounded (default) */
.image-shape-rounded .item-image {
    aspect-ratio: 4 / 3;
    height: auto !important;
    object-fit: cover;
    border-radius: 15px;
}

/* Circle */
.image-shape-circle .item-image {
    aspect-ratio: 1 / 1;
    height: auto !important;
    object-fit: cover;
    border-radius: 50%;
}

/* Wide (16:9) */
.image-shape-wide .item-image {
    aspect-ratio: 16 / 9;
    height: auto !important;
    object-fit: cover;
    border-radius: 12px;
}

/* Original Ratio */
.image-shape-original .item-image {
    aspect-ratio: auto;
    height: auto !important;
    object-fit: contain;
    border-radius: 8px;
    max-height: 200px;
}

/* ============================================
   BADGE ANIMATIONS
   ============================================ */

/* Pulse Animation - For discounted prices */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
        transform: scale(1.05);
    }
}

.badge-pulse,
.price-discounted {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Bounce Animation - For "New!" badge */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

.badge-bounce,
.badge-new {
    animation: bounce 2s ease infinite;
}

/* Shimmer Animation - For "Popular" badge */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.badge-shimmer,
.badge-popular {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

/* Glow Animation - For campaign items */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.6), 0 0 30px rgba(255, 107, 107, 0.3);
    }
}

.badge-glow,
.item-campaign {
    animation: glow 2s ease-in-out infinite;
}

/* Badge Base Styles */
.kiosk-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kiosk-badge.badge-new {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

.kiosk-badge.badge-popular {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    position: relative;
    overflow: hidden;
}

.kiosk-badge.badge-sale {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
}

.kiosk-badge.badge-chef {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

/* ============================================
   SPECIAL SLIDE TYPES
   ============================================ */

/* Media Slide (full screen image/video) */
.slide-type-media {
    padding: 0 !important;
}

.slide-type-media img,
.slide-type-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Campaign Slide */
.slide-type-campaign {
    padding: 0 !important;
}

.slide-type-campaign img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Event Slide */
.slide-type-event {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.event-slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.event-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: 1;
}

.event-info {
    position: relative;
    z-index: 2;
    padding: 60px;
    max-width: 900px;
}

.event-type-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.event-date {
    font-size: 1.5em;
    opacity: 0.9;
    margin-bottom: 10px;
    color: #fff;
}

.event-date i,
.event-time i {
    margin-right: 10px;
    color: #ffd700;
}

.event-title {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: #fff;
    line-height: 1.2;
}

.event-time {
    font-size: 2em;
    color: #ffd700;
    margin-bottom: 30px;
}

.event-description {
    font-size: 1.4em;
    max-width: 800px;
    line-height: 1.6;
    opacity: 0.9;
    color: #fff;
    margin-bottom: 30px;
}

.event-offer {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(255, 75, 43, 0.4);
    animation: pulse-glow 2s infinite;
}

.event-countdown {
    font-size: 2.5em;
    font-weight: 700;
    color: #ffd700;
    margin-top: 30px;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Dark Theme */
.kiosk-theme-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.kiosk-theme-dark .menu-item-card {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.kiosk-theme-dark .kiosk-header {
    background: rgba(0, 0, 0, 0.5);
}

/* Portrait Orientation */
.kiosk-orientation-portrait {
    flex-direction: column;
}

.kiosk-orientation-portrait .menu-items-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.kiosk-orientation-portrait .kiosk-header h1 {
    font-size: 2.5em;
}

.kiosk-orientation-portrait .kiosk-clock {
    font-size: 2em;
}

/* No Data State */
.kiosk-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    opacity: 0.7;
}

.kiosk-no-data .icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.kiosk-no-data h3 {
    font-size: 2em;
    margin: 0 0 10px 0;
    font-weight: 300;
}

.kiosk-no-data p {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.8;
}

/* Admin Styles */
.resto-m2-kiosk-admin {
    max-width: 1200px;
}

.kiosk-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.kiosk-preview,
.kiosk-qr {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kiosk-preview h3,
.kiosk-qr h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.preview-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.qr-container {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
}

.kiosk-settings {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.settings-tabs .tab-nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
}

.settings-tabs .tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
}

.settings-tabs .tab-button:hover {
    background: #f0f0f0;
    color: #333;
}

.settings-tabs .tab-button.active {
    background: #fff;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
}

.settings-tabs .tab-panel {
    display: none;
    padding: 30px;
}

.settings-tabs .tab-panel.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .menu-items-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .kiosk-header h1 {
        font-size: 2.5em;
    }

    .kiosk-clock {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .kiosk-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 30px;
    }

    .kiosk-header h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .kiosk-clock {
        font-size: 1.5em;
    }

    .menu-items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .menu-item-card {
        padding: 20px;
    }

    .slide-header h2 {
        font-size: 2em;
    }

    .kiosk-controls {
        bottom: 20px;
        padding: 10px 20px;
        gap: 15px;
    }

    .kiosk-controls button {
        padding: 10px 15px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .kiosk-header {
        padding: 15px 20px;
    }

    .kiosk-header h1 {
        font-size: 1.8em;
    }

    .kiosk-clock {
        font-size: 1.3em;
    }

    .menu-item-card {
        padding: 15px;
    }

    .item-image,
    .item-placeholder {
        height: 120px;
    }

    .item-name {
        font-size: 1.2em;
    }

    .item-description {
        font-size: 0.9em;
    }

    .item-price {
        font-size: 1.1em;
    }
}

/* Print Styles */
@media print {

    .kiosk-controls,
    .slide-progress {
        display: none;
    }

    .resto-m2-kiosk-container {
        position: static;
        height: auto;
        background: white;
        color: black;
    }

    .kiosk-header,
    .menu-item-card {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .menu-item-card {
        border-width: 2px;
        border-color: white;
    }

    .kiosk-controls button {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .kiosk-slide,
    .menu-item-card,
    .kiosk-controls button {
        transition: none;
    }

    .menu-item-card:hover {
        transform: none;
    }

    .kiosk-loading::before {
        animation: none;
    }

    .menu-item-card::before {
        display: none;
    }
}

/* ============================================
   THEME SYSTEM
   ============================================ */

/* Theme: Dark - Sleek minimalist dark mode */
.theme-dark .resto-m2-kiosk-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

.theme-dark .kiosk-header {
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-dark .menu-item-card {
    background: rgba(30, 30, 50, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-dark .item-name {
    color: #ffffff;
}

.theme-dark .item-description {
    color: rgba(255, 255, 255, 0.6);
}

.theme-dark .item-price {
    color: #00d4ff;
}

/* Theme: Neon - Vibrant cyberpunk style */
.theme-neon .resto-m2-kiosk-container {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0a2e 50%, #0d0d0d 100%);
}

.theme-neon .kiosk-header {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.theme-neon .header-title {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

.theme-neon .menu-item-card {
    background: rgba(20, 0, 40, 0.9);
    border: 1px solid rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.theme-neon .menu-item-card:hover {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.4), 0 0 60px rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

.theme-neon .item-name {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.theme-neon .item-price {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

.theme-neon .kiosk-ticker {
    background: rgba(0, 0, 0, 0.9) !important;
    border-top: 2px solid #00ffff;
    box-shadow: 0 -5px 20px rgba(0, 255, 255, 0.3);
}

/* Theme: Vintage - Retro diner style */
.theme-vintage .resto-m2-kiosk-container {
    background: linear-gradient(135deg, #f4e4c1 0%, #e6d5a8 50%, #d4c191 100%);
}

.theme-vintage .kiosk-header {
    background: #8b4513;
    border-bottom: 4px solid #654321;
}

.theme-vintage .header-title {
    color: #f4e4c1;
    font-family: 'Georgia', serif;
    letter-spacing: 2px;
}

.theme-vintage .menu-item-card {
    background: #fffef5;
    border: 2px solid #8b4513;
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(139, 69, 19, 0.3);
}

.theme-vintage .item-name {
    color: #654321;
    font-family: 'Georgia', serif;
}

.theme-vintage .item-description {
    color: #8b7355;
    font-style: italic;
}

.theme-vintage .item-price {
    color: #8b4513;
    font-weight: bold;
}

.theme-vintage .kiosk-ticker {
    background: #8b4513 !important;
    border-top: 3px solid #654321;
}

/* Theme: Minimal - Clean white modern */
.theme-minimal .resto-m2-kiosk-container {
    background: #ffffff;
}

.theme-minimal .kiosk-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.theme-minimal .header-title {
    color: #333333;
    font-weight: 300;
}

.theme-minimal .header-time {
    color: #666666;
}

.theme-minimal .menu-item-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.theme-minimal .menu-item-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.theme-minimal .item-name {
    color: #222222;
    font-weight: 500;
}

.theme-minimal .item-description {
    color: #888888;
}

.theme-minimal .item-price {
    color: #333333;
}

.theme-minimal .kiosk-ticker {
    background: #333333 !important;
    border-top: none;
}

/* Theme: Glassmorphism - Apple Liquid Glass Style */
.theme-glassmorphism .resto-m2-kiosk-container {
    background: linear-gradient(135deg,
            #1a1a2e 0%,
            #16213e 25%,
            #0f3460 50%,
            #1a1a2e 75%,
            #16213e 100%);
    background-size: 400% 400%;
    animation: liquid-gradient 15s ease infinite;
}

@keyframes liquid-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.theme-glassmorphism .kiosk-header {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.theme-glassmorphism .header-title {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 200, 255, 0.3);
    letter-spacing: 1px;
}

.theme-glassmorphism .menu-item-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Liquid Glass Refraction Effect */
.theme-glassmorphism .menu-item-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg,
            transparent 30%,
            rgba(255, 255, 255, 0.08) 45%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.08) 55%,
            transparent 70%);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.theme-glassmorphism .menu-item-card:hover::before {
    transform: rotate(45deg) translateY(100%);
}

/* Spectral Edge Glow */
.theme-glassmorphism .menu-item-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(0, 200, 255, 0.3),
            rgba(120, 0, 255, 0.3),
            rgba(255, 0, 150, 0.3),
            rgba(0, 200, 255, 0.3));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    animation: spectral-shift 4s linear infinite;
}

@keyframes spectral-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.theme-glassmorphism .menu-item-card:hover::after {
    opacity: 1;
}

.theme-glassmorphism .menu-item-card:hover {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.18) 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(100, 150, 255, 0.15);
}

.theme-glassmorphism .item-image {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.theme-glassmorphism .item-name {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.theme-glassmorphism .item-description {
    color: rgba(255, 255, 255, 0.75);
}

.theme-glassmorphism .item-price {
    color: #00d4ff;
    font-weight: 700;
    text-shadow:
        0 0 20px rgba(0, 212, 255, 0.5),
        0 0 40px rgba(0, 212, 255, 0.3);
}

.theme-glassmorphism .kiosk-ticker {
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(20, 20, 40, 0.5) 100%) !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.theme-glassmorphism .slide-header h2 {
    background: linear-gradient(135deg, #00d4ff, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* ============================================
   LAYOUT SYSTEMS
   ============================================ */

/* Full Screen Layout (Default) */
.layout-fullscreen .kiosk-slides {
    display: block;
}

/* Split Horizontal - Two slides side by side */
.layout-split-horizontal .kiosk-slides {
    display: flex;
    flex-direction: row;
}

.layout-split-horizontal .kiosk-slide {
    width: 50%;
    height: 100%;
    position: relative;
    opacity: 1;
}

.layout-split-horizontal .kiosk-slide.active {
    opacity: 1;
}

/* Split Vertical - Two slides stacked */
.layout-split-vertical .kiosk-slides {
    display: flex;
    flex-direction: column;
}

.layout-split-vertical .kiosk-slide {
    width: 100%;
    height: 50%;
    position: relative;
    opacity: 1;
}

/* Quad Grid - Four slides in 2x2 grid */
.layout-quad .kiosk-slides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}

.layout-quad .kiosk-slide {
    position: relative;
    opacity: 1;
    width: 100%;
    height: 100%;
}

/* Adjust menu grid for split layouts */
.layout-split-horizontal .menu-items-grid,
.layout-split-vertical .menu-items-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.layout-quad .menu-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Smaller cards for split layouts */
.layout-split-horizontal .menu-item-card,
.layout-split-vertical .menu-item-card,
.layout-quad .menu-item-card {
    padding: 15px;
}

.layout-quad .menu-item-card {
    padding: 10px;
}

.layout-split-horizontal .item-name,
.layout-split-vertical .item-name {
    font-size: 1em;
}

.layout-quad .item-name {
    font-size: 0.9em;
}

.layout-split-horizontal .item-price,
.layout-split-vertical .item-price {
    font-size: 1em;
}

.layout-quad .item-price {
    font-size: 0.85em;
}

/* Hide description in quad layout for space */
.layout-quad .item-description {
    display: none;
}

/* Adjust header for layouts */
.layout-split-horizontal .kiosk-header,
.layout-split-vertical .kiosk-header,
.layout-quad .kiosk-header {
    padding: 10px 20px;
}

.layout-quad .header-title {
    font-size: 1.2em;
}

/* ============================================
   MATCH BROADCAST SLIDES
   ============================================ */

.slide-type-match {
    padding: 0 !important;
}

.kiosk-match-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kiosk-match-slide .match-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.kiosk-match-slide .match-background img,
.kiosk-match-slide .match-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback gradient background for matches without template */
.kiosk-match-slide .match-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            #1a1a2e 0%,
            #16213e 25%,
            #0f3460 50%,
            #1a237e 75%,
            #0d1b2a 100%);
    background-size: 400% 400%;
    animation: match-gradient-flow 15s ease infinite;
}

/* Gradient animation for dynamic effect */
@keyframes match-gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Overlay pattern for depth */
.kiosk-match-slide .match-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 200, 255, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

/* Subtle vignette effect */
.kiosk-match-slide .match-gradient-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.kiosk-match-slide .match-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.kiosk-match-slide .team-name {
    position: absolute;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.kiosk-match-slide .vs-divider {
    position: absolute;
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%);
    animation: vs-pulse 2s ease-in-out infinite;
}

@keyframes vs-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.kiosk-match-slide .match-time {
    position: absolute;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.kiosk-match-slide .match-date {
    position: absolute;
    /* Simple text - no background */
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.kiosk-match-slide .match-offer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4);
    animation: offer-glow 2s ease-in-out infinite alternate;
}

@keyframes offer-glow {
    0% {
        box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4);
    }

    100% {
        box-shadow: 0 4px 25px rgba(255, 75, 43, 0.7);
    }
}

/* Match slide responsive - no !important to allow inline styles to override */
@media (max-width: 1024px) {
    .kiosk-match-slide .vs-divider {
        font-size: 36px;
    }

    .kiosk-match-slide .match-offer {
        font-size: 16px;
        padding: 10px 30px;
    }
}

/* ======================================== */
/* CRITICAL FIX: Menu Item Card Layout v1.0.6 */
/* These rules MUST be at the end to override */
/* ======================================== */

/* Force card to contain its content */
.menu-item-card {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Force image to fixed small size - prevents overflow */
.menu-item-card .item-image {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    margin: 0 auto 10px auto !important;
    flex: 0 0 auto !important;
    display: block !important;
}

/* Square shape override */
.image-shape-square .menu-item-card .item-image,
.image-shape-square .item-image {
    width: 120px !important;
    height: 120px !important;
    border-radius: 10px !important;
}

/* Details must be visible */
.menu-item-card .item-details {
    flex: 1 1 auto !important;
    overflow: visible !important;
    min-height: 0 !important;
}

/* Name always visible */
.menu-item-card .item-name {
    font-size: 1.2em !important;
    margin: 0 0 5px 0 !important;
    display: block !important;
}

/* Description always visible */
.menu-item-card .item-description {
    font-size: 0.9em !important;
    margin: 0 0 5px 0 !important;
    display: block !important;
}

/* Price always visible */
.menu-item-card .item-price {
    font-size: 1.3em !important;
    font-weight: bold !important;
    display: block !important;
    margin-top: auto !important;
}

/* ======================================== */
/* FINAL OVERRIDE: Force 1:1 Square Images */
/* Must override all media queries */
/* ======================================== */

/* Ultra-specific selector to override everything */
html body .resto-m2-kiosk-container .menu-item-card .item-image,
html body .kiosk-slide .menu-item-card .item-image,
.image-shape-square .menu-item-card .item-image,
.menu-item-card img.item-image,
img.item-image {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}