/* WooCommerce notices using the V2 semantic surfaces. */

.osp-3sc-notices-wrapper {
    margin-bottom: 20px;
}

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

.osp-3sc-notices-wrapper .woocommerce-notices-wrapper:empty,
.osp-3sc-coupon-notices: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,
.osp-3sc-coupon-notices .woocommerce-message,
.osp-3sc-coupon-notices .woocommerce-error,
.osp-3sc-coupon-notices .woocommerce-info {
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid var(--osp-border);
    border-radius: var(--osp-radius-card);
    background: var(--osp-surface-raised);
    color: var(--osp-text-primary);
    font-size: 14px;
    line-height: 1.55;
    box-shadow: var(--osp-shadow-inset-highlight);
}

.osp-3sc-notices-wrapper .woocommerce-message,
.osp-3sc-notices-wrapper .woocommerce-NoticeGroup .woocommerce-message,
.osp-3sc-coupon-notices .woocommerce-message {
    border-color: color-mix(in srgb, var(--osp-accent) 35%, var(--osp-border));
    background: var(--osp-success-surface);
    color: var(--osp-accent);
}

.osp-3sc-notices-wrapper .woocommerce-error,
.osp-3sc-notices-wrapper .woocommerce-NoticeGroup .woocommerce-error,
.osp-3sc-coupon-notices .woocommerce-error {
    border-color: color-mix(in srgb, var(--osp-danger) 35%, var(--osp-border));
    background: var(--osp-danger-surface);
    color: var(--osp-danger);
}

.osp-3sc-notices-wrapper .woocommerce-info,
.osp-3sc-notices-wrapper .woocommerce-NoticeGroup .woocommerce-info,
.osp-3sc-coupon-notices .woocommerce-info {
    border-color: color-mix(in srgb, var(--osp-decorative-blue) 35%, var(--osp-border));
    background: var(--osp-blue-subtle);
    color: var(--osp-decorative-blue);
}

.osp-3sc-notices-wrapper .woocommerce-message::before,
.osp-3sc-notices-wrapper .woocommerce-error::before,
.osp-3sc-notices-wrapper .woocommerce-info::before,
.osp-3sc-coupon-notices .woocommerce-message::before,
.osp-3sc-coupon-notices .woocommerce-error::before,
.osp-3sc-coupon-notices .woocommerce-info::before {
    display: none !important;
}

.osp-3sc-notices-wrapper a,
.osp-3sc-coupon-notices a {
    color: inherit;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.osp-3sc-coupon-notices {
    margin: 14px 0;
}

.osp-3sc-coupon-section.processing {
    position: relative;
    pointer-events: none;
    opacity: 0.72;
}

.osp-3sc-coupon-section.processing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
    border-radius: var(--osp-radius-card);
    background: rgb(8 13 20 / 28%);
}

/* Notices are moved to the shared area by checkout.js. */
.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;
}
