/* ==========================================================================
   ArsanGame - Global Base Styles & Messages (Loaded Site-Wide)
   ========================================================================== */

body.lang-fa_IR, body.lang-fa_IR a, body.lang-fa_IR button, body.lang-fa_IR div, body.lang-fa_IR h1, body.lang-fa_IR h1 a, body.lang-fa_IR h2, body.lang-fa_IR h2 a, body.lang-fa_IR h3, body.lang-fa_IR h3 a, body.lang-fa_IR h4, body.lang-fa_IR h4 a, body.lang-fa_IR h5, body.lang-fa_IR h5 a, body.lang-fa_IR h6, body.lang-fa_IR h6 a, body.lang-fa_IR input, body.lang-fa_IR label, body.lang-fa_IR li, body.lang-fa_IR nav, body.lang-fa_IR optgroup, body.lang-fa_IR section, body.lang-fa_IR select, body.lang-fa_IR textarea, body.lang-fa_IR ul {
    border-radius: 15px 15px 15px 15px;
    /* font-family: IRANSansEn,tahoma,sans-serif; */
}

.figureAddToCart figure>a .overlay {
    border-radius: 15px 15px 0px 0px;
}

a.button.wc-backward {
    display: block; /* برای وسط‌چین کردن */
    margin: 15px auto; /* برای قرار گرفتن در مرکز */
    border: 1px solid #fff;
    color: #000;
    min-width: 135px;
    max-width: 15%;
    text-align: center;
    border-radius: 25px;
    padding: 7px 40px;
    position: relative;
    background-color: white; /* پس‌زمینه‌ی پیش‌فرض */
    transition: background-color 0.3s ease, color 0.3s ease; /* برای افکت نرم تغییر رنگ */
}

a.button.wc-backward:hover {
		border: 1px solid #f66;
    background-color: #f66; /* تغییر رنگ پس‌زمینه هنگام هاور */
    color: #fff; /* رنگ متن ثابت بماند */
}

button#cupri_submit {
    display: block; /* برای وسط‌چین کردن */
    margin: 15px auto; /* برای قرار گرفتن در مرکز */
    border: 1px solid #fff;
    color: #fff;
    min-width: 145px;
    max-width: 100%;
    text-align: center;
    border-radius: 25px;
    padding: 7px 40px;
    position: relative;
    background-color: transparent; /* پس‌زمینه‌ی پیش‌فرض */
    transition: background-color 0.3s ease, color 0.3s ease; /* برای افکت نرم تغییر رنگ */
}

button#cupri_submit:hover {
		border: 1px solid #f66;
    background-color: #f66; /* تغییر رنگ پس‌زمینه هنگام هاور */
    color: #fff; /* رنگ متن ثابت بماند */
}

span.bold-text.anton {
    color: #f66!important;
}

.cupri_full_centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.quantity .quantity-button.quantity-down {
    margin-left: -26px;
}

.mnsfpt .button,
.mnsfpt button,
.mnsfpt input[type=submit] {
    height: 40px;
    text-align: center;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    width: calc(10% - 5px);
    max-width: calc(10% - 5px);
    border: 1px solid #fff;
    transition: all 0.3s ease;
		background-color:#2d2d2d !important
}

.mnsfpt .button:hover,
.mnsfpt button:hover,
.mnsfpt input[type=submit]:hover {
    background-color: #fff !important;
    color: #1e1e1e;
}

.mnsfpt-upload-area.mnsfpt-image .mnsfpt-uploader .mnsfpt-button {
    position: absolute;
    font-weight: 100;
    text-align: center;
    bottom: -50%;
    left: 50%;
    max-width: 100px !important;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom .3s cubic-bezier(.68,-.55,.16,1.35), opacity .3s ease;
}

.mnsfpt-upload-area.mnsfpt-image .mnsfpt-uploader:hover .mnsfpt-button:hover {
    background-color: #fff !important;
    color: #1e1e1e !important;
}

/* حذف لوگوی تکراری هدر در صفحات حساب کاربری */

section.header-topnavbar-section figure h2::before,
section.header-topnavbar-section figure h2::after {
    display: none !important;
    content: none !important;
}

div.messages {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 20px auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    direction: rtl !important;
}

div.messages div.message {
    --msg-rgb: 56, 189, 248;
    position: relative !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px 68px 16px 20px !important;
    border-radius: 12px !important;
    background-color: #18181b !important;
    background-image: linear-gradient(90deg, rgba(var(--msg-rgb), 0.05) 0%, rgba(var(--msg-rgb), 0.16) 100%) !important;
    border: 1px solid rgba(var(--msg-rgb), 0.25) !important;
    border-right: 4px solid rgb(var(--msg-rgb)) !important;
    color: #e4e4e7 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.9 !important;
    text-align: right !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* حذف عناصر اضافی قالب */

div.messages div.message::before,
div.messages div.message::after,
div.messages div.message > i::after {
    display: none !important;
    content: none !important;
}

div.messages div.message:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(var(--msg-rgb), 0.5) !important;
    border-right-color: rgb(var(--msg-rgb)) !important;
    box-shadow: 0 8px 24px -8px rgba(var(--msg-rgb), 0.3) !important;
}

/* باکس آیکون اصلی در سمت راست */

div.messages div.message > i {
    position: absolute !important;
    right: 14px !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    line-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    background: rgba(var(--msg-rgb), 0.16) !important;
    border: 1px solid rgba(var(--msg-rgb), 0.28) !important;
    color: rgb(var(--msg-rgb)) !important;
    font-size: 19px !important;
    box-shadow: none !important;
}

/* برچسب کلمه "توجه" */

div.messages div.message > span {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    height: auto !important;
    float: none !important;
    padding: 2px 10px !important;
    margin: 0 0 0 10px !important;
    border-radius: 6px !important;
    background: rgba(var(--msg-rgb), 0.18) !important;
    color: rgb(var(--msg-rgb)) !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    vertical-align: middle !important;
}

div.messages div.message > span i {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    color: inherit !important;
    font-size: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
}

div.messages div.message > span .fa-angle-double-left {
    display: none !important;
}

/* رنگ‌بندی مدل‌های مختلف پیام */

div.messages div.message.info {
    --msg-rgb: 56, 189, 248 !important;
}

div.messages div.message.success {
    --msg-rgb: 16, 185, 129 !important;
}

div.messages div.message.warning {
    --msg-rgb: 245, 158, 11 !important;
}

div.messages div.message.danger,
div.messages div.message.error {
    --msg-rgb: 244, 63, 94 !important;
}

@media (max-width: 576px) {
    div.messages div.message {
        padding: 14px 56px 14px 14px !important;
        font-size: 13px !important;
    }

    div.messages div.message > i {
        right: 10px !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        font-size: 16px !important;
    }
}
