/* FlexiPets — WooCommerce Hinweise (Block + Classic) */

.woocommerce-notices-wrapper,
.woocommerce > .woocommerce-message,
.woocommerce > .woocommerce-info,
.woocommerce > .woocommerce-error {
    margin: 0 0 20px !important;
}

/* Block notices (Add to cart, etc.) */
.woocommerce-notices-wrapper .wc-block-components-notice-banner,
.wc-block-components-notice-banner {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    margin: 0 0 16px !important;
    padding: 18px 22px 18px 20px !important;
    border: 1px solid rgba(139, 92, 246, 0.18) !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 252, 0.96) 100%) !important;
    box-shadow: 0 10px 24px rgba(91, 53, 138, 0.1) !important;
    color: #342952 !important;
    font-family: 'Baloo 2', system-ui, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

.woocommerce-notices-wrapper .wc-block-components-notice-banner::before,
.wc-block-components-notice-banner::before {
    display: none !important;
}

.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-error,
.wc-block-components-notice-banner.is-warning {
    border-top: 1px solid rgba(139, 92, 246, 0.18) !important;
    border-left: 1px solid rgba(139, 92, 246, 0.18) !important;
}

.wc-block-components-notice-banner.is-success {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 240, 255, 0.96) 100%) !important;
}

.wc-block-components-notice-banner.is-error {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 241, 245, 0.96) 100%) !important;
    border-color: rgba(255, 76, 152, 0.22) !important;
}

.wc-block-components-notice-banner.is-info {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.96) 100%) !important;
}

.wc-block-components-notice-banner > svg {
    flex: 0 0 auto !important;
    width: 42px !important;
    height: 42px !important;
    padding: 8px !important;
    margin-right: 4px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    background: rgba(139, 92, 246, 0.12) !important;
    fill: #7c3aed !important;
}

.wc-block-components-notice-banner.is-success > svg {
    fill: #7c3aed !important;
    background: rgba(139, 92, 246, 0.14) !important;
}

.wc-block-components-notice-banner.is-error > svg {
    fill: #e11d48 !important;
    background: rgba(255, 76, 152, 0.12) !important;
}

.wc-block-components-notice-banner.is-info > svg {
    fill: #2563eb !important;
    background: rgba(37, 99, 235, 0.1) !important;
}

.wc-block-components-notice-banner__content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
    font-family: 'Baloo 2', system-ui, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #342952 !important;
}

.wc-block-components-notice-banner__content p {
    margin: 0 !important;
}

.woocommerce-notices-wrapper .wc-block-components-notice-banner__content .wc-forward,
.woocommerce-notices-wrapper .wc-block-components-notice-banner__content a.button,
.wc-block-components-notice-banner__content .wc-forward,
.wc-block-components-notice-banner__content a.button,
.wc-block-components-notice-banner .wc-block-components-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 8px 0 0 !important;
    padding: 9px 18px !important;
    border: none !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #ff72b6, #ff4c98) !important;
    color: #fff !important;
    font-family: 'Baloo 2', system-ui, sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(255, 76, 152, 0.22) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

@media (min-width: 640px) {
    .woocommerce-notices-wrapper .wc-block-components-notice-banner,
    .wc-block-components-notice-banner {
        flex-wrap: nowrap !important;
    }

    .woocommerce-notices-wrapper .wc-block-components-notice-banner__content .wc-forward,
    .woocommerce-notices-wrapper .wc-block-components-notice-banner__content a.button,
    .wc-block-components-notice-banner__content .wc-forward,
    .wc-block-components-notice-banner__content a.button {
        margin: 0 0 0 12px !important;
        white-space: nowrap !important;
    }

    .wc-block-components-notice-banner__content {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 16px !important;
        flex-wrap: wrap !important;
    }
}

.woocommerce-notices-wrapper .wc-block-components-notice-banner__content .wc-forward:hover,
.woocommerce-notices-wrapper .wc-block-components-notice-banner__content a.button:hover,
.wc-block-components-notice-banner__content .wc-forward:hover,
.wc-block-components-notice-banner__content a.button:hover {
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 22px rgba(255, 76, 152, 0.28) !important;
}

/* Classic notices (Produktseite: .woocommerce-message + ::before) */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px 20px !important;
    position: relative !important;
    margin: 0 0 16px !important;
    padding: 18px 22px 18px 92px !important;
    border: 1px solid rgba(139, 92, 246, 0.18) !important;
    border-radius: 24px !important;
    border-top: 1px solid rgba(139, 92, 246, 0.18) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 240, 255, 0.96) 100%) !important;
    box-shadow: 0 10px 24px rgba(91, 53, 138, 0.1) !important;
    color: #342952 !important;
    font-family: 'Baloo 2', system-ui, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    list-style: none !important;
}

.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    position: absolute !important;
    top: 50% !important;
    left: 20px !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: rgba(139, 92, 246, 0.14) !important;
    color: #7c3aed !important;
    font-family: WooCommerce, sans-serif !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce-error::before {
    color: #e11d48 !important;
    background: rgba(255, 76, 152, 0.12) !important;
}

.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-info::before {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.1) !important;
}

.woocommerce-error {
    border-color: rgba(255, 76, 152, 0.22) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 241, 245, 0.96) 100%) !important;
}

.woocommerce-notices-wrapper .woocommerce-message a.button,
.woocommerce-notices-wrapper .woocommerce-info a.button,
.woocommerce-notices-wrapper .woocommerce-message .wc-forward,
.woocommerce-notices-wrapper .woocommerce-info .wc-forward,
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-message .wc-forward,
.woocommerce-info .wc-forward {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: auto !important;
    padding: 9px 18px !important;
    border: none !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #ff72b6, #ff4c98) !important;
    color: #fff !important;
    font-family: 'Baloo 2', system-ui, sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(255, 76, 152, 0.22) !important;
}

.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-message .wc-forward:hover,
.woocommerce-info .wc-forward:hover {
    color: #fff !important;
}

/* Snackbar (AJAX add to cart on some setups) */
.wc-block-components-snackbar-list {
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(520px, calc(100vw - 32px)) !important;
}

.wc-block-components-snackbar {
    border: 1px solid rgba(139, 92, 246, 0.18) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 12px 28px rgba(91, 53, 138, 0.14) !important;
    font-family: 'Baloo 2', system-ui, sans-serif !important;
    font-weight: 700 !important;
    color: #342952 !important;
}
