@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat-VariableFont_wght.ttf');
}

@font-face {
    font-family: Gravity;
    src: url('../fonts/Gravity-Bold.otf');
    font-weight: 700;
}

@font-face {
    font-family: Gravity;
    src: url('../fonts/Gravity-Light.otf');
    font-weight: 300;
}
@font-face {
    font-family: Urbanist;
    src: url('../fonts/Urbanist-Medium.ttf');
    font-weight: 500;
}

.woocommerce-error[role="alert"],
.woocommerce-message:not([tabindex="-1"]),
.woocommerce-notices-wrapper {
    position: fixed;
    top: 35px;
    z-index: 99999999;
    right: -350px;
    background-color: unset;
    font-size: 14px;
    color: #F5EFF7;
    border: unset;
    opacity: 0;
    font-weight: 350 !important;
    font-family: Gravity !important;
}

.woocommerce-notices-wrapper:has(.woocommerce-NoticeGroup) {
    position: relative;
    right: unset;
    opacity: unset;
    top: unset;
}

.woocommerce-error[role="alert"].show-notifications,
.woocommerce-notices-wrapper.show-notifications {
    opacity: 1;
    right: 5px;
    transition: right 0.5s ease-out, opacity 0.5s ease-out;
    height: fit-content;
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 93vh;
}
li.show-notification strong {
    display: contents;
}
.woocommerce-error[role="alert"] li,
.woocommerce-notices-wrapper .woocommerce-message {
    background: #000;
    width: 344px;
    box-shadow: 0 4px 8px 3px #00000026;
    padding: 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    opacity: 0;
    margin-right: -100%;
    transition: margin-right 0.4s ease-in-out, opacity 0.4s ease-in-out;
    border: unset;
}

.woocommerce-error[role="alert"] li.show-notification,
.woocommerce-notices-wrapper .woocommerce-message.show-notification {
    opacity: 1;
    margin-right: 0;
}

.woocommerce-error[role="alert"] li.hiding,
.woocommerce-notices-wrapper .woocommerce-message.hiding {
    margin-right: -100%;
    opacity: 0;
}

.woocommerce-error[role="alert"] li:not(:last-child),
.woocommerce-notices-wrapper .woocommerce-message:not(:last-child) {
    margin-bottom: 20px;
}

.woocommerce-error[role="alert"] li .close-notify-icon,
.woocommerce-notices-wrapper .woocommerce-message .close-notify-icon {
    color: white;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border-radius: 50%;
    flex-shrink: 0;
    padding: 0 !important;
    line-height: 0 !important;
}

.woocommerce-error[role="alert"] li .close-notify-icon:hover,
.woocommerce-notices-wrapper .woocommerce-message .close-notify-icon:hover {
    background: #F5EFF714;
}

.woocommerce-error[role="alert"] li .close-notify-icon:active,
.woocommerce-error[role="alert"] li .close-notify-icon:focus,
.woocommerce-notices-wrapper .woocommerce-message .close-notify-icon:active,
.woocommerce-notices-wrapper .woocommerce-message .close-notify-icon:focus {
    background: #F5EFF71F;
}
.close-notify-icon {
    width: fit-content !important;
    margin-left: 15px;
}
.woocommerce-error[role="alert"] li .close-notify-icon svg path,
.woocommerce-notices-wrapper .woocommerce-message .close-notify-icon svg path {
    fill: white;
}

.woocommerce-error[role="alert"] li span,
.woocommerce-notices-wrapper .woocommerce-message > *:not(.close-notify-icon) {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-weight: 350 !important;
    font-family: Gravity !important;
    line-height: 21px !important;
}

.woocommerce-error[role="alert"] li span:not(.wrap-actions),
.woocommerce-notices-wrapper .woocommerce-message > *:not(.close-notify-icon, .wrap-actions) {
    width: fit-content;
}
.woocommerce-error[role="alert"] li span:not(.wrap-actions) {
    width: 100%;
    justify-content: space-between;
}
.woocommerce-error[role="alert"] li a,
.woocommerce-notices-wrapper .woocommerce-message a {
    color: #BFA671 !important;
    text-decoration: unset;
    font-weight: 500;
}

.woocommerce-NoticeGroup-checkout .woocommerce-error[role="alert"] li a,
.woocommerce-NoticeGroup-checkout .woocommerce-notices-wrapper .woocommerce-message a {
    font-weight: 500 !important;
    font-family: Urbanist !important;
}

.wrap-actions {
    justify-content: end !important;
    width: 25px;
}
.wrap-actions a {
    font-family: Urbanist;
    font-weight: 500;
}

.woocommerce-error[role="alert"] li:has(.wrap-actions a),
.woocommerce-notices-wrapper .woocommerce-message:has(.wrap-actions a) {
    flex-direction: column;
}
.woocommerce-error[role="alert"] li:has(.wrap-actions a) .wrap-actions,
.woocommerce-notices-wrapper .woocommerce-message:has(.wrap-actions a) .wrap-actions {
   width: 100%;
}
