/* Notice & Alert Styles */

/* Enhanced Notice Styling - Positioned at top of steps */
.osp-3sc-notices-wrapper {
    margin-bottom: 20px;
    animation: slideInFromTop 0.3s ease-out;
}

.osp-3sc-notices-wrapper .woocommerce-notices-wrapper {
    background: transparent;
}

.osp-3sc-notices-wrapper .woocommerce-notices-wrapper:empty {
    display: none;
}

.osp-3sc-notices-wrapper .woocommerce-message,
.osp-3sc-notices-wrapper .woocommerce-error,
.osp-3sc-notices-wrapper .woocommerce-info,
.osp-3sc-notices-wrapper .woocommerce-NoticeGroup {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideInFromTop 0.3s ease-out;

}

/* Fix notice icons positioning */
.osp-3sc-notices-wrapper .woocommerce-message::before,
.osp-3sc-notices-wrapper .woocommerce-error::before,
.osp-3sc-notices-wrapper .woocommerce-info::before {
display: none;
}

.osp-3sc-notices-wrapper .woocommerce-message,
.osp-3sc-notices-wrapper .woocommerce-NoticeGroup .woocommerce-message {
    background-color: #d4edda;
    color: #155724;
}

.osp-3sc-notices-wrapper .woocommerce-error,
.osp-3sc-notices-wrapper .woocommerce-NoticeGroup .woocommerce-error {
    background-color: #f8d7da;
    color: #721c24;
}

.osp-3sc-notices-wrapper .woocommerce-info,
.osp-3sc-notices-wrapper .woocommerce-NoticeGroup .woocommerce-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.osp-3sc-notices-wrapper .woocommerce-message a,
.osp-3sc-notices-wrapper .woocommerce-error a,
.osp-3sc-notices-wrapper .woocommerce-info a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

/* Coupon-specific notices */
.osp-3sc-coupon-notices {
    margin-bottom: 15px;
    margin-top: 15px;
}

.osp-3sc-coupon-notices:empty {
    display: none;
}

.osp-3sc-coupon-notices .woocommerce-message,
.osp-3sc-coupon-notices .woocommerce-error,
.osp-3sc-coupon-notices .woocommerce-info {
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: none;
    font-size: 14px;
    animation: slideInFromTop 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Fix coupon notice icons positioning */
.osp-3sc-coupon-notices .woocommerce-message::before,
.osp-3sc-coupon-notices .woocommerce-error::before,
.osp-3sc-coupon-notices .woocommerce-info::before {
    position: static !important;
    display: inline-block !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.osp-3sc-coupon-notices .woocommerce-message {
    background-color: #d4edda;
    color: #155724;
}

.osp-3sc-coupon-notices .woocommerce-error {
    background-color: #f8d7da;
    color: #721c24;
}

.osp-3sc-coupon-notices .woocommerce-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Processing states for forms */
.osp-3sc-coupon-section.processing {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.osp-3sc-coupon-section.processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 10;
}

/* Hide any inline coupon notices since we're redirecting them to the top */
.osp-3sc-coupon-section .woocommerce-message,
.osp-3sc-coupon-section .woocommerce-error,
.osp-3sc-coupon-section .woocommerce-info,
.osp-3sc-coupon-section .woocommerce-notices-wrapper {
    display: none !important;
}



/* Animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


