:root {
    --bg-success: #079455;
    --bg-error: #f34141;

    --color-white: #ffffff;
    --color-border: #D5D7DA;
    --color-black-light: #414651;

    --shadow-light: 0 1px 2px 0 #0A0D120D;
    --shadow-error: 0 0 0 4px rgba(243, 65, 65, 0.16),
        0 2px 5px 0 rgba(103, 110, 118, 0.08), 0 0 0 1px rgba(243, 65, 65, 0.16),
        0 1px 1px 0 rgba(0, 0, 0, 0.12);
    --shadow-success: 0 0 0 4px rgba(83, 180, 131, 0.16),
        0 2px 5px 0 rgba(103, 110, 118, 0.08),
        0 0 0 1px rgba(83, 180, 131, 0.16), 0 1px 1px 0 rgba(0, 0, 0, 0.12);
}

.custom-toast-selector {
    position: fixed;
    z-index: 999;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}
.woocommerce-message-toast,
.woocommerce-error-toast-list {
    width: 350px;
    margin-bottom: 12px;
}

/* Error Notice */
.woocommerce-error-toast {
    list-style: none;
    padding: 0;
}
.woocommerce-error-toast-list {
    background-color: var(--bg-error);

    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    padding: 14px;
    border-radius: 12px;
}

/* Success Notice */
.woocommerce-message-toast {
    background-color: var(--bg-success);

    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    padding: 14px;
    border: none;
    border-radius: 12px;
}
.woocommerce-message-toast__content {
    display: grid;
    grid-template-columns: 1fr 24px;
    gap: 10px;
    color: var(--color-white);
}

.woocommerce-message-toast__content svg {
    height: 14px;
    width: 14px;
    fill: var(--color-white);
}

/* Button */
button.notice-close__btn {
    padding: 0;
    border: 0;
    color: #ffffff;
    font-size: 22px;
    line-height: 24px;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #ffffff3b;
    border-radius: 8px;
}
button.notice-close__btn:hover,
button.notice-close__btn:focus {
    background-color: #ffffff3b;
}

/* Media Query */
@media only screen and (max-width: 480px) {
    .woocommerce-notices-wrapper {
        width: 100%;
    }

    .woocommerce-message-toast,
    .woocommerce-error-toast-list {
        width: calc(100% - 40px);
        margin: 0 auto 10px auto;
    }
}
