/**
 * Customer email and account notices.
 */

.szydelkowy-customer-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: clamp(1rem, 2.5vw, 1.35rem);
    border: 1px solid color-mix(in srgb, var(--color-primary, #c8d5c0) 72%, #56705e 28%);
    border-radius: var(--radius-lg, 1rem);
    background: linear-gradient(135deg, #f2f8f3 0%, #fffdf9 100%);
    box-shadow: var(--shadow-sm, 0 5px 20px rgba(63, 48, 38, .08));
    color: var(--color-text, #3f3026);
    text-align: left;
}

.szydelkowy-customer-notice__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 12px rgba(63, 48, 38, .09);
    font-size: 1.35rem;
}

.szydelkowy-customer-notice__content > strong {
    display: block;
    margin: .05rem 0 .35rem;
    color: var(--color-heading, #4d352f);
    font-size: 1.06rem;
}

.szydelkowy-customer-notice__content p {
    margin: 0;
    color: var(--color-text-light, #6f625b);
    line-height: 1.65;
}

.szydelkowy-customer-notice__content p + p {
    margin-top: .65rem;
}

.szydelkowy-customer-notice__account {
    font-size: .94rem;
}

.szydelkowy-customer-notice__account a:not(.szydelkowy-customer-notice__button) {
    margin-left: .2rem;
    font-weight: 750;
}

.szydelkowy-customer-notice__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: .8rem 0 0;
    padding: .7rem 1rem;
    border-radius: 999px;
    background: var(--color-primary-dark, #587262);
    color: #fff !important;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
}

.szydelkowy-customer-notice__button:hover,
.szydelkowy-customer-notice__button:focus-visible {
    background: var(--color-heading, #4d352f);
}

.szydelkowy-customer-notice--checkout {
    margin-bottom: 1rem;
}

.szydelkowy-customer-notice--success {
    margin-block: 1.25rem 2rem;
    border-color: #a9c9b1;
    background: linear-gradient(135deg, #edf8ef 0%, #fffaf2 100%);
}

.custom-order-email-hint {
    display: block;
    margin-top: .55rem;
    color: var(--color-text-light, #6f625b);
    font-size: .86rem;
    line-height: 1.5;
}

.custom-order-email-hint a {
    font-weight: 750;
}

.order-success-message .szydelkowy-customer-notice {
    max-width: 42rem;
    margin: 1.5rem auto 0;
    color: var(--color-text, #3f3026);
}

.order-success-message .szydelkowy-customer-notice__content p {
    color: var(--color-text-light, #6f625b);
}

body.woocommerce-checkout .wc-block-checkout > .szydelkowy-customer-notice {
    margin-inline: auto;
}

[data-theme="dark"] .szydelkowy-customer-notice {
    border-color: color-mix(in srgb, var(--color-primary, #c8d5c0) 56%, #fff 16%);
    background: linear-gradient(135deg, #26362d 0%, #322b28 100%);
    color: #f7f1ec;
}

[data-theme="dark"] .szydelkowy-customer-notice__icon {
    background: #403833;
}

[data-theme="dark"] .szydelkowy-customer-notice__content > strong,
[data-theme="dark"] .szydelkowy-customer-notice__content p,
[data-theme="dark"] .custom-order-email-hint {
    color: #f0e8e2;
}

@media (max-width: 36rem) {
    .szydelkowy-customer-notice {
        grid-template-columns: 1fr;
    }

    .szydelkowy-customer-notice__icon {
        width: 2.4rem;
        height: 2.4rem;
    }
}
