/**
 * Copyright © Inn. All rights reserved.
 * Postcode Notice Styles
 */

/* Notice Box */
.inn-postcode-notice-wrapper {
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.inn-postcode-notice-wrapper.inn-notice-hidden {
    display: none !important;
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}

.inn-postcode-notice.message.info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
    margin: 0;
}

.inn-postcode-notice .notice-content {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
}

.inn-postcode-notice .notice-icon {
    flex-shrink: 0;
    margin-right: 15px;
    color: #1565c0;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.inn-postcode-notice .notice-icon svg {
    width: 20px;
    height: 20px;
}

.inn-postcode-notice .notice-text {
    flex: 1;
    color: #1565c0;
}

.inn-postcode-notice .notice-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #0d47a1;
}

.inn-postcode-notice .notice-text p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.5;
}

.inn-postcode-notice .notice-text .weight-info {
    font-size: 12px;
    color: #1976d2;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.inn-postcode-notice .notice-text .threshold {
    color: #666;
    font-style: italic;
}

/* Postcode Field Highlight */
.inn-field-highlight {
    position: relative;
}

.inn-field-highlight::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #2196f3;
    border-radius: 6px;
    pointer-events: none;
    z-index: 1;
}

input.inn-postcode-required {
    border: 2px solid #2196f3 !important;
    background-color: #e3f2fd !important;
    transition: all 0.3s ease;
}

input.inn-postcode-required:focus {
    border-color: #1976d2 !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.25) !important;
}

/* Pulse Animation */
.inn-pulse-animation {
    animation: inn-pulse 2s ease-in-out infinite;
}

@keyframes inn-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
    }
    25% {
        box-shadow: 0 0 0 5px rgba(33, 150, 243, 0.4);
    }
    75% {
        box-shadow: 0 0 0 5px rgba(33, 150, 243, 0.4);
    }
}

/* Shipping Block Enhancement */
#block-shipping.active .inn-field-highlight::before {
    animation: inn-border-pulse 1.5s ease-in-out infinite;
}

@keyframes inn-border-pulse {
    0%, 100% {
        border-color: #2196f3;
    }
    50% {
        border-color: #64b5f6;
    }
}

/* Responsive */
@media only screen and (max-width: 768px) {
    .inn-postcode-notice .notice-content {
        flex-direction: column;
        text-align: center;
    }
    
    .inn-postcode-notice .notice-icon {
        margin: 0 auto 10px;
    }
    
    .inn-postcode-notice .notice-text .weight-info {
        display: block;
        margin-top: 10px;
    }
}

