/* Base Container Styles - Unified for all lottery types */
.wpcb-lotto-thai-block,
.wpcb-lotto-hanoi-block,
.wpcb-lotto-lao-block {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 10px auto;
    box-sizing: border-box;
    /* ลบ z-index: -1 ออกเพื่อให้ปุ่มกดได้ */
    text-align: left;
    justify-content: flex-start;
    align-items: stretch;
}

/* Position Styles */
.wpcb-position-header {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 10px auto;
    max-width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wpcb-position-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 11;
    margin: 10px;
    max-width: calc(100% - 20px);
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.wpcb-position-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 10px auto;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.wpcb-position-sidebar {
    max-width: 350px;
    margin: 10px;
    flex-direction: column;
    gap: 8px;
}

.wpcb-position-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    max-width: 400px;
    margin: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.wpcb-position-banner {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.wpcb-position-card {
    max-width: 600px;
    margin: 10px auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.wpcb-position-compact {
    max-width: 400px;
    margin: 10px auto;
    padding: 8px;
    flex-direction: column;
    gap: 6px;
}

/* Style Variations */
.wpcb-style-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.wpcb-style-minimal {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    box-shadow: none;
}

.wpcb-style-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.wpcb-style-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: 1px solid #34495e;
}

.wpcb-style-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border: none;
}

.wpcb-style-neon {
    background: #0a0a0a;
    color: #00ff88;
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Size Variations */
.wpcb-size-small {
    padding: 8px;
    gap: 8px;
    border-radius: 6px;
}

.wpcb-size-small .wpcb-lotto-thai-block__left-body-first-number {
    font-size: 28px;
    padding: 12px;
}

.wpcb-size-large {
    padding: 18px;
    gap: 18px;
    border-radius: 12px;
}

.wpcb-size-large .wpcb-lotto-thai-block__left-body-first-number {
    font-size: 48px;
    padding: 24px;
}

.wpcb-size-xl {
    padding: 24px;
    gap: 24px;
    border-radius: 16px;
}

.wpcb-size-xl .wpcb-lotto-thai-block__left-body-first-number {
    font-size: 56px;
    padding: 32px;
}

/* Color Themes */
.wpcb-color-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wpcb-color-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.wpcb-color-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wpcb-color-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.wpcb-color-red {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.wpcb-color-gold {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    color: #333;
}

/* Shadow Effects */
.wpcb-shadow {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.wpcb-shadow.wpcb-style-modern {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.wpcb-shadow.wpcb-style-dark {
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
}

.wpcb-shadow.wpcb-style-neon {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), 0 0 40px rgba(0, 255, 136, 0.1);
}

/* Border Effects */
.wpcb-border {
    border: 2px solid #e0e0e0;
}

.wpcb-border.wpcb-style-modern,
.wpcb-border.wpcb-style-gradient {
    border: none;
}

.wpcb-border.wpcb-style-neon {
    border: 2px solid #00ff88;
}

/* Animation Effects */
.wpcb-animated {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpcb-animated:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wpcb-position-floating {
        position: relative;
        top: auto;
        right: auto;
        margin: 20px 10px;
        max-width: calc(100% - 20px);
    }
    
    .wpcb-position-header-bar {
        position: relative;
        border-radius: 12px;
        margin: 10px;
    }
    
    .wpcb-position-sidebar {
        max-width: 100%;
    }
}

/* Unified left section styling for all lottery types */
.wpcb-lotto-thai-block__left,
.wpcb-lotto-hanoi-block__left,
.wpcb-lotto-lao-block__left {
    flex: 2;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}

.wpcb-lotto-thai-block__left-header h3 {
    color: #2c3e50;
    font-size: 20px;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.wpcb-lotto-thai-block__left-header div {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 12px;
}

.wpcb-lotto-thai-block__left-body-first {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.wpcb-lotto-thai-block__left-body-first-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 6px;
    letter-spacing: 3px;
}

.wpcb-lotto-thai-block__left-body-first-text {
    font-size: 16px;
    font-weight: 500;
}

.wpcb-lotto-thai-block__left-body-second {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.wpcb-lotto-thai-block__left-body-second-block {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.wpcb-lotto-thai-block__left-body-second-block-three-digit,
.wpcb-lotto-thai-block__left-body-second-block-two-digit {
    text-align: center;
}

.wpcb-lotto-thai-block__left-body-second-block-three-digit-number span,
.wpcb-lotto-thai-block__left-body-second-block-two-digit-number span {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 10px;
}

.wpcb-lotto-thai-block__left-body-second-block-three-digit-number-sep {
    width: 20px;
    height: 2px;
    background: #bdc3c7;
    display: inline-block;
    margin: 0 5px;
}

.wpcb-lotto-thai-block__left-body-second-block-three-digit-text,
.wpcb-lotto-thai-block__left-body-second-block-two-digit-text {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 8px;
}

.wpcb-lotto-thai-block__left-foot {
    text-align: center;
    margin-top: 20px;
}

.wpcb-lotto-thai-block__left-foot-link {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.wpcb-lotto-thai-block__left-foot-link:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    text-decoration: none;
    color: white;
}

/* Update Button Specific Styles */
.wpcb-lotto-thai-block__left-foot-link.wpcb-update-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    animation: pulse 2s ease-in-out infinite alternate;
}

.wpcb-lotto-thai-block__left-foot-link.wpcb-update-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.wpcb-lotto-thai-block__left-foot-link.wpcb-update-btn:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    cursor: not-allowed;
    transform: none;
    animation: none;
}

/* Pulse animation for update button */
@keyframes pulse {
    0% { box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3); }
    100% { box-shadow: 0 4px 16px rgba(40, 167, 69, 0.6); }
}

/* Unified right section styling for all lottery types */
.wpcb-lotto-thai-block__right,
.wpcb-lotto-hanoi-block__right,
.wpcb-lotto-lao-block__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    text-align: left;
}

.wpcb-lotto-thai-block__right-check {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
}

.wpcb-lotto-thai-block__right-check-title {
    color: #2c3e50;
    font-size: 16px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.wpcb-lotto-thai-block__right-check-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 8px;
    background: #fff;
    position: relative;
    z-index: 10;
}

.wpcb-lotto-thai-block__right-check-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpcb-lotto-thai-block__right-check-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
    z-index: 10;
}

.wpcb-lotto-thai-block__right-check-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.wpcb-lotto-thai-block__right-check-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpcb-lotto-thai-block__right-check-button {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.wpcb-lotto-thai-block__right-check-button:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
}


.wpcb-lotto-thai-block__right-archive {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.wpcb-lotto-thai-block__right-archive-title {
    color: #2c3e50;
    font-size: 18px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.wpcb-lotto-thai-block__right-archive-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wpcb-lotto-thai-block__right-archive-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    background: #f8f9fa;
}

.wpcb-lotto-thai-block__right-archive-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wpcb-lotto-thai-block__right-archive-item-title {
    font-size: 14px;
    margin: 0;
    flex: 1;
}

.wpcb-lotto-thai-block__right-archive-item-title a {
    color: #2c3e50;
    text-decoration: none;
}

.wpcb-lotto-thai-block__right-archive-item-title a:hover {
    color: #3498db;
}

.wpcb-lotto-thai-block__right-archive-item-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.wpcb-lotto-thai-block__right-archive-item-time-date {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    line-height: 1;
}

.wpcb-lotto-thai-block__right-archive-item-time-month {
    font-size: 12px;
    color: #7f8c8d;
}

.wpcb-lotto-thai-block__right-archive-item-result {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpcb-lotto-thai-block__right-archive-item-row {
    display: flex;
    gap: 10px;
}

.wpcb-lotto-thai-block__right-archive-item-col {
    flex: 1;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.wpcb-lotto-thai-block__right-archive-item-text {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.wpcb-lotto-thai-block__right-archive-item-number {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
}

.wpcb-lotto-thai-block__right-archive-item-number span {
    margin: 0 2px;
}

.lottery-result-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.lottery-result-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lottery-result-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.lottery-result-content .prize-list {
    margin: 20px 0;
    text-align: left;
}

.lottery-result-content .prize-item {
    background: #e8f5e8;
    padding: 10px;
    margin: 5px 0;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lottery-result-content .prize-item .prize-icon {
    font-size: 24px;
    min-width: 30px;
    text-align: center;
}

.lottery-result-content .prize-item .prize-details {
    flex: 1;
}

.lottery-result-content .prize-item .prize-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2px;
}

.lottery-result-content .prize-item .prize-amount {
    color: #27ae60;
    font-weight: bold;
    font-size: 16px;
}

.lottery-result-content .prize-item .prize-number {
    color: #7f8c8d;
    font-size: 14px;
}

.lottery-result-content .prize-total {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    margin: 10px 0;
    border-radius: 6px;
    text-align: center;
    color: #856404;
}

/* Prize-specific styling */
.lottery-result-content .prize-first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-left-color: #f39c12;
}

.lottery-result-content .prize-first-adjacent {
    background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
    border-left-color: #3498db;
}

.lottery-result-content .prize-second {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left-color: #6c757d;
}

.lottery-result-content .prize-third {
    background: linear-gradient(135deg, #fff2e6, #fde2cc);
    border-left-color: #fd7e14;
}

.lottery-result-content .prize-fourth,
.lottery-result-content .prize-fifth {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left-color: #6c757d;
}

.lottery-result-content .prize-front-three,
.lottery-result-content .prize-back-three {
    background: linear-gradient(135deg, #e8f5e8, #d1f2d1);
    border-left-color: #28a745;
}

.lottery-result-content .prize-back-two {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-left-color: #6c757d;
}

.lottery-result-content .no-prize {
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
    margin: 20px 0;
}

.lottery-result-content button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.lottery-result-content button:hover {
    background: #2980b9;
}


@media (max-width: 768px) {
    .wpcb-lotto-thai-block {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }
    
    .wpcb-lotto-thai-block__left {
        padding: 8px;
    }
    
    .wpcb-lotto-thai-block__left-body-second {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .wpcb-lotto-thai-block__left-body-first {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .wpcb-lotto-thai-block__left-body-first-number {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .wpcb-lotto-thai-block__right {
        gap: 8px;
    }
    
    .wpcb-lotto-thai-block__right-check {
        padding: 8px;
    }
    
    .wpcb-lotto-thai-block__right-check-buttons {
        gap: 4px;
    }
    
    .wpcb-lotto-thai-block__right-check-button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .wpcb-lotto-thai-block__right-archive-item-row {
        flex-direction: column;
    }
    
}

/* Comprehensive Prize Display Styles */
.wpcb-lotto-thai-block__left-body-comprehensive {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.wpcb-prize-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

/* No Data Prize Section */
.wpcb-prize-section.wpcb-no-data {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px dashed #adb5bd;
    text-align: center;
}

.wpcb-prize-section.wpcb-no-data h4 {
    color: #6c757d;
    margin-bottom: 8px;
}

.wpcb-prize-message p {
    color: #495057;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.wpcb-prize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.wpcb-prize-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.wpcb-prize-amount {
    font-size: 14px;
    font-weight: 500;
    color: #27ae60;
    background: #e8f5e8;
    padding: 4px 8px;
    border-radius: 4px;
}

.wpcb-prize-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wpcb-prize-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Different colors for different prize tiers */
.wpcb-prize-section:nth-child(1) .wpcb-prize-number {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.wpcb-prize-section:nth-child(2) .wpcb-prize-number {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.wpcb-prize-section:nth-child(3) .wpcb-prize-number {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.wpcb-prize-section:nth-child(4) .wpcb-prize-number {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.wpcb-prize-section:nth-child(5) .wpcb-prize-number {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.wpcb-prize-section:nth-child(6) .wpcb-prize-number {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

/* Enhanced styling for prize amounts */
.wpcb-prize-section:nth-child(1) .wpcb-prize-amount {
    background: #fef9e7;
    color: #f39c12;
}

.wpcb-prize-section:nth-child(2) .wpcb-prize-amount {
    background: #fdedec;
    color: #e74c3c;
}

.wpcb-prize-section:nth-child(3) .wpcb-prize-amount {
    background: #f4ecf7;
    color: #9b59b6;
}

.wpcb-prize-section:nth-child(4) .wpcb-prize-amount {
    background: #ebf3fd;
    color: #3498db;
}

.wpcb-prize-section:nth-child(5) .wpcb-prize-amount {
    background: #e8f8f5;
    color: #1abc9c;
}

.wpcb-prize-section:nth-child(6) .wpcb-prize-amount {
    background: #eafaf1;
    color: #27ae60;
}

/* Responsive adjustments for comprehensive display */
@media (max-width: 768px) {
    .wpcb-prize-section {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .wpcb-prize-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .wpcb-prize-header h4 {
        font-size: 14px;
    }
    
    .wpcb-prize-amount {
        font-size: 12px;
    }
    
    .wpcb-prize-numbers {
        justify-content: center;
    }
    
    .wpcb-prize-number {
        font-size: 14px;
        padding: 6px 8px;
        min-width: 60px;
    }
}

/* Animation for prize sections */
.wpcb-prize-section {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover effects for prize numbers */
.wpcb-prize-number:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Enhanced first prize section with animation */
.wpcb-lotto-thai-block__left-body-first {
    position: relative;
    overflow: hidden;
}

.wpcb-lotto-thai-block__left-body-first::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    animation: moveStripes 1s linear infinite;
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* Multi-Country Lottery Styles */
.wpcb-multi-country-check {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
    margin-top: 4px;
}

.wpcb-multi-country-check:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%) !important;
}

.multi-country-results {
    max-width: 600px;
    width: 95%;
}

.multi-country-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.summary-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.country-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.country-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.country-section.has-winnings {
    border-color: #27ae60;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
}

.country-section.no-winnings {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fdedec 0%, #fef2f2 100%);
}

.country-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.country-flag {
    font-size: 24px;
}

.country-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.country-status {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.country-status.won {
    background: #d4edda;
    color: #155724;
}

.country-status.lost {
    background: #f8d7da;
    color: #721c24;
}

.country-prizes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.country-section .prize-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-section .prize-item.prize-first {
    border-left: 4px solid #f39c12;
    background: linear-gradient(135deg, #fef9e7 0%, #fff8e1 100%);
}

.country-section .prize-item.prize-second {
    border-left: 4px solid #e74c3c;
    background: linear-gradient(135deg, #fdedec 0%, #fef2f2 100%);
}

.country-section .prize-item.prize-special {
    border-left: 4px solid #9b59b6;
    background: linear-gradient(135deg, #f4ecf7 0%, #f8f4f9 100%);
}

/* Responsive adjustments for multi-country */
@media (max-width: 768px) {
    .multi-country-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .country-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .country-name {
        font-size: 14px;
    }
    
    .country-flag {
        font-size: 20px;
    }
    
    .wpcb-lotto-thai-block__right-check-buttons {
        flex-direction: column;
        gap: 8px;
    }
}

/* Multi-Country Container Styles */
.wpcb-multi-country-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Country-specific color accents only */

/* Hanoi-specific styling */
.wpcb-lotto-hanoi-block {
    border-left: 4px solid #dc143c; /* Vietnam flag red */
}

.wpcb-lotto-hanoi-block__left-header h3 {
    color: #dc143c;
}

.wpcb-lotto-hanoi-block__left-body-special {
    text-align: center;
    background: linear-gradient(135deg, #dc143c 0%, #b91c5c 100%);
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.wpcb-lotto-hanoi-block__left-body-special-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 6px;
    letter-spacing: 3px;
}

.wpcb-lotto-hanoi-block__left-body-special-text {
    font-size: 16px;
    font-weight: 500;
}

/* Lao-specific styling */
.wpcb-lotto-lao-block {
    border-left: 4px solid #ce1126; /* Lao flag red */
}

.wpcb-lotto-lao-block__left-header h3 {
    color: #ce1126;
}

/* Copy Thai styling for consistency */
.wpcb-lotto-hanoi-block__left,
.wpcb-lotto-lao-block__left {
    flex: 2;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
}

.wpcb-lotto-hanoi-block__left-header h3,
.wpcb-lotto-lao-block__left-header h3 {
    font-size: 20px;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.wpcb-lotto-hanoi-block__left-header div,
.wpcb-lotto-lao-block__left-header div {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 12px;
}

.wpcb-lotto-lao-block__left-body-first {
    text-align: center;
    background: linear-gradient(135deg, #ce1126 0%, #8b0000 100%);
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.wpcb-lotto-lao-block__left-body-first-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 6px;
    letter-spacing: 3px;
}

.wpcb-lotto-lao-block__left-body-first-text {
    font-size: 16px;
    font-weight: 500;
}

.wpcb-lotto-hanoi-block__left-body-comprehensive,
.wpcb-lotto-lao-block__left-body-comprehensive {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.wpcb-lotto-hanoi-block__left-foot,
.wpcb-lotto-lao-block__left-foot {
    text-align: center;
    margin-top: 20px;
}

.wpcb-lotto-hanoi-block__left-foot-link,
.wpcb-lotto-lao-block__left-foot-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    z-index: 10;
}

.wpcb-lotto-hanoi-block__left-foot-link:hover,
.wpcb-lotto-lao-block__left-foot-link:hover {
    text-decoration: underline;
}

.wpcb-lotto-hanoi-block__right,
.wpcb-lotto-lao-block__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpcb-lotto-hanoi-block__right-check,
.wpcb-lotto-lao-block__right-check {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
}

.wpcb-lotto-hanoi-block__right-check-title,
.wpcb-lotto-lao-block__right-check-title {
    color: #2c3e50;
    font-size: 16px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.wpcb-lotto-hanoi-block__right-check-input,
.wpcb-lotto-lao-block__right-check-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
    z-index: 10;
}

.wpcb-lotto-hanoi-block__right-check-input:focus,
.wpcb-lotto-lao-block__right-check-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.wpcb-lotto-hanoi-block__right-check-buttons,
.wpcb-lotto-lao-block__right-check-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.wpcb-lotto-hanoi-block__right-check-button {
    background: linear-gradient(135deg, #dc143c 0%, #b91c5c 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.wpcb-lotto-hanoi-block__right-check-button:hover {
    background: linear-gradient(135deg, #b91c5c 0%, #991b1b 100%);
    transform: translateY(-1px);
}

.wpcb-lotto-lao-block__right-check-button {
    background: linear-gradient(135deg, #ce1126 0%, #8b0000 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.wpcb-lotto-lao-block__right-check-button:hover {
    background: linear-gradient(135deg, #8b0000 0%, #650000 100%);
    transform: translateY(-1px);
}

/* Responsive adjustments for multi-country */
@media (max-width: 768px) {
    .wpcb-multi-country-container {
        gap: 15px;
    }
    
    .wpcb-lotto-hanoi-block,
    .wpcb-lotto-lao-block {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }
    
    .wpcb-lotto-hanoi-block__left,
    .wpcb-lotto-lao-block__left {
        padding: 8px;
    }
    
    .wpcb-lotto-hanoi-block__left-body-special,
    .wpcb-lotto-lao-block__left-body-first {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .wpcb-lotto-hanoi-block__left-body-special-number,
    .wpcb-lotto-lao-block__left-body-first-number {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .wpcb-lotto-hanoi-block__right,
    .wpcb-lotto-lao-block__right {
        gap: 8px;
    }
    
    .wpcb-lotto-hanoi-block__right-check,
    .wpcb-lotto-lao-block__right-check {
        padding: 8px;
    }
    
    .wpcb-lotto-hanoi-block__right-check-button,
    .wpcb-lotto-lao-block__right-check-button {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* All Prizes Modal Styles */
.all-prizes-modal {
    z-index: 50;
}

.all-prizes-modal .lottery-result-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.all-prizes-modal .modal-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.all-prizes-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.all-prizes-modal .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.all-prizes-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.all-prizes-content {
    padding: 0 !important;
}

.all-prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.all-prizes-grid .prize-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.all-prizes-grid .prize-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.all-prizes-grid .prize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.all-prizes-grid .prize-header h4 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
}

.all-prizes-grid .prize-amount {
    font-weight: bold;
    color: #27ae60;
    font-size: 14px;
}

.all-prizes-grid .prize-number-large {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    background: #3498db;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.all-prizes-grid .prize-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.all-prizes-grid .prize-number {
    background: #3498db;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.all-prizes-grid .prize-number:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.all-prizes-grid .prize-number-small {
    background: #9b59b6;
    color: white;
    padding: 8px;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.all-prizes-grid .prize-number-small:hover {
    background: #8e44ad;
    transform: scale(1.05);
}

/* Special styling for different prize sections */
.all-prizes-grid .first-prize-section {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    grid-column: span 2;
}

.all-prizes-grid .first-prize-section .prize-header h4,
.all-prizes-grid .first-prize-section .prize-amount {
    color: white;
}

.all-prizes-grid .first-prize-section .prize-number-large {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 36px;
}

.all-prizes-grid .adjacent-section {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.all-prizes-grid .adjacent-section .prize-header h4,
.all-prizes-grid .adjacent-section .prize-amount {
    color: white;
}

.all-prizes-grid .adjacent-section .prize-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.all-prizes-grid .second-section {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.all-prizes-grid .second-section .prize-header h4,
.all-prizes-grid .second-section .prize-amount {
    color: white;
}

.all-prizes-grid .second-section .prize-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.all-prizes-grid .third-section {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    color: white;
}

.all-prizes-grid .third-section .prize-header h4,
.all-prizes-grid .third-section .prize-amount {
    color: white;
}

.all-prizes-grid .third-section .prize-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.all-prizes-grid .fourth-section,
.all-prizes-grid .fifth-section {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
}

.all-prizes-grid .fourth-section .prize-header h4,
.all-prizes-grid .fourth-section .prize-amount,
.all-prizes-grid .fifth-section .prize-header h4,
.all-prizes-grid .fifth-section .prize-amount {
    color: white;
}

.all-prizes-grid .fourth-section .prize-number,
.all-prizes-grid .fifth-section .prize-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.all-prizes-grid .three-digit-section {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.all-prizes-grid .three-digit-section .prize-header h4,
.all-prizes-grid .three-digit-section .prize-amount {
    color: white;
}

.all-prizes-grid .three-digit-section .prize-number-small {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.all-prizes-grid .two-digit-section {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.all-prizes-grid .two-digit-section .prize-header h4,
.all-prizes-grid .two-digit-section .prize-amount {
    color: white;
}

.all-prizes-grid .two-digit-section .prize-number-large {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.all-prizes-modal .modal-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    position: sticky;
    bottom: 0;
    text-align: center;
}

.all-prizes-modal .close-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.all-prizes-modal .close-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.loading-spinner {
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
}

/* Responsive for all prizes modal */
@media (max-width: 768px) {
    .all-prizes-modal .lottery-result-content {
        max-width: 95vw;
        margin: 20px auto;
    }
    
    .all-prizes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .all-prizes-grid .first-prize-section {
        grid-column: span 1;
    }
    
    .all-prizes-grid .prize-numbers-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .all-prizes-modal .modal-header h3 {
        font-size: 16px;
    }
}