.theme-onesim {
    --onesim-notice-ink: #17323a;
    --onesim-notice-success: #0a8f78;
    --onesim-notice-success-bg: #effbf7;
    --onesim-notice-success-border: #a9e3d2;
    --onesim-notice-info: #087f96;
    --onesim-notice-info-bg: #effaff;
    --onesim-notice-info-border: #abe1eb;
    --onesim-notice-error: #b42318;
    --onesim-notice-error-bg: #fff5f3;
    --onesim-notice-error-border: #fecaca;
}

.theme-onesim .woocommerce-notices-wrapper,
.theme-onesim .woocommerce-NoticeGroup {
    width: 100%;
    margin: 0 0 1.25rem;
}

.theme-onesim .woocommerce-message,
.theme-onesim .woocommerce-info,
.theme-onesim .woocommerce-error,
.theme-onesim .woocommerce-notice {
    position: relative;
    display: flex !important;
    min-height: 4.25rem;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    margin: 0 0 1rem !important;
    padding: 1rem 1.1rem 1rem 4.65rem !important;
    overflow: hidden;
    border: 1px solid var(--onesim-notice-info-border) !important;
    border-radius: 1.25rem !important;
    background:
        radial-gradient(circle at 100% 0, rgba(13, 178, 204, 0.1), transparent 34%),
        var(--onesim-notice-info-bg) !important;
    box-shadow: 0 16px 38px rgba(15, 42, 50, 0.08);
    color: var(--onesim-notice-ink) !important;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.55;
    list-style: none outside !important;
    animation: onesim-notice-arrive 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.theme-onesim .woocommerce-message {
    border-color: var(--onesim-notice-success-border) !important;
    background:
        radial-gradient(circle at 100% 0, rgba(10, 143, 120, 0.11), transparent 34%),
        var(--onesim-notice-success-bg) !important;
}

.theme-onesim .woocommerce-error {
    border-color: var(--onesim-notice-error-border) !important;
    background:
        radial-gradient(circle at 100% 0, rgba(180, 35, 24, 0.09), transparent 34%),
        var(--onesim-notice-error-bg) !important;
}

.theme-onesim .woocommerce-message::before,
.theme-onesim .woocommerce-info::before,
.theme-onesim .woocommerce-error::before,
.theme-onesim .woocommerce-notice::before {
    position: absolute;
    top: 50%;
    left: 1rem;
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    margin: 0;
    border: 1px solid rgba(8, 127, 150, 0.2);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 20px rgba(8, 127, 150, 0.1);
    color: var(--onesim-notice-info);
    content: "i";
    font-family: "Space Mono", monospace;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
}

.theme-onesim .woocommerce-message::before {
    border-color: rgba(10, 143, 120, 0.2);
    color: var(--onesim-notice-success);
    content: "\2713";
}

.theme-onesim .woocommerce-error::before {
    border-color: rgba(180, 35, 24, 0.18);
    color: var(--onesim-notice-error);
    content: "!";
}

.theme-onesim .woocommerce-error li {
    margin: 0;
    padding: 0;
}

.theme-onesim .woocommerce-message a,
.theme-onesim .woocommerce-info a,
.theme-onesim .woocommerce-error a,
.theme-onesim .woocommerce-notice a {
    color: #075f70;
    font-weight: 800;
    text-decoration: none;
    text-underline-offset: 0.2em;
}

.theme-onesim .woocommerce-message a:hover,
.theme-onesim .woocommerce-info a:hover,
.theme-onesim .woocommerce-error a:hover,
.theme-onesim .woocommerce-notice a:hover {
    color: #21005e;
    text-decoration: underline;
}

.theme-onesim .woocommerce-message .button,
.theme-onesim .woocommerce-info .button,
.theme-onesim .woocommerce-error .button,
.theme-onesim .woocommerce-notice .button,
.theme-onesim .woocommerce-form-login-toggle .showlogin,
.theme-onesim .woocommerce-form-coupon-toggle .showcoupon {
    flex: 0 0 auto;
    margin: 0 0 0 auto !important;
    padding: 0.72rem 1rem !important;
    border: 0 !important;
    border-radius: 0.9rem !important;
    background: #12333c !important;
    box-shadow: 0 8px 18px rgba(18, 51, 60, 0.15);
    color: #fff !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.theme-onesim .woocommerce-message .button:hover,
.theme-onesim .woocommerce-info .button:hover,
.theme-onesim .woocommerce-error .button:hover,
.theme-onesim .woocommerce-notice .button:hover,
.theme-onesim .woocommerce-form-login-toggle .showlogin:hover,
.theme-onesim .woocommerce-form-coupon-toggle .showcoupon:hover {
    background: #0a8f9f !important;
    box-shadow: 0 10px 24px rgba(10, 143, 159, 0.2);
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.theme-onesim .woocommerce-form-login-toggle,
.theme-onesim .woocommerce-form-coupon-toggle {
    margin-bottom: 0.85rem;
}

.theme-onesim .woocommerce-form-login-toggle .woocommerce-info,
.theme-onesim .woocommerce-form-coupon-toggle .woocommerce-info {
    min-height: 3.8rem;
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
    box-shadow: 0 10px 26px rgba(15, 42, 50, 0.06);
}

@keyframes onesim-notice-arrive {
    from {
        opacity: 0;
        transform: translateY(-0.45rem) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .theme-onesim .woocommerce-message,
    .theme-onesim .woocommerce-info,
    .theme-onesim .woocommerce-error,
    .theme-onesim .woocommerce-notice {
        flex-wrap: wrap;
        min-height: 0;
        padding: 1rem 1rem 1rem 4.25rem !important;
        border-radius: 1.1rem !important;
        font-size: 0.88rem;
    }

    .theme-onesim .woocommerce-message::before,
    .theme-onesim .woocommerce-info::before,
    .theme-onesim .woocommerce-error::before,
    .theme-onesim .woocommerce-notice::before {
        top: 0.9rem;
        left: 0.85rem;
        width: 2.4rem;
        height: 2.4rem;
        transform: none;
    }

    .theme-onesim .woocommerce-message .button,
    .theme-onesim .woocommerce-info .button,
    .theme-onesim .woocommerce-error .button,
    .theme-onesim .woocommerce-notice .button,
    .theme-onesim .woocommerce-form-login-toggle .showlogin,
    .theme-onesim .woocommerce-form-coupon-toggle .showcoupon {
        width: 100%;
        margin: 0.25rem 0 0 !important;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-onesim .woocommerce-message,
    .theme-onesim .woocommerce-info,
    .theme-onesim .woocommerce-error,
    .theme-onesim .woocommerce-notice {
        animation: none;
    }
}
