/* Mahan WooCommerce Tools v3.4.0 */
.mahan-dk-cart {
    direction: rtl;
    width: 100%;
    position: relative;
    font-family: danam, sans-serif;
}

.mahan-dk-purchase-wrap { width: 100%; }

.mahan-dk-purchase {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    direction: rtl;
    overflow: visible;
}

.mahan-dk-add-button {
    order: 2;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px;
    margin: 0;
    padding: 16px;
    border: 0;
    border-radius: 7px;
    background: #E40137;
    color: #fff;
    cursor: pointer;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    box-sizing: border-box;
}

.mahan-dk-add-button:hover,
.mahan-dk-add-button:focus,
.mahan-dk-add-button:active {
    background: #E40137;
    color: #fff;
    opacity: 1;
    transform: none;
    outline: none;
    box-shadow: none;
}

.mahan-dk-add-button:disabled { opacity: .55; cursor: not-allowed; }

.mahan-dk-add-button__label {
    font-family: danam, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    color: #fff;
}

.mahan-dk-stepper {
    order: 1;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px;
    display: grid;
    grid-template-columns: 34px minmax(38px, 1fr) 34px;
    align-items: center;
    justify-items: center;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    box-sizing: border-box;
    direction: rtl;
    overflow: visible;
}

.mahan-dk-stepper__btn {
    width: 34px;
    height: 52px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    box-sizing: border-box;
}

.mahan-dk-stepper__btn:hover,
.mahan-dk-stepper__btn:focus,
.mahan-dk-stepper__btn:active {
    border: 0;
    background: transparent;
    color: #111;
    opacity: 1;
    outline: none;
    box-shadow: none;
    transform: none;
}

.mahan-dk-stepper__btn:disabled { opacity: .35; cursor: not-allowed; }

.mahan-dk-control-icon {
    display: block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    pointer-events: none;
    filter: brightness(0) saturate(100%);
}

.mahan-dk-stepper__count {
    width: 100%;
    height: 52px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.mahan-dk-qty,
.mahan-dk-qty:hover,
.mahan-dk-qty:focus,
.mahan-dk-qty:active {
    width: 100% !important;
    height: 42px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #6b6b6b !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #111 !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: textfield;
    -moz-appearance: textfield;
    font-family: danam, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: normal !important;
    text-align: center !important;
    text-indent: 0 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.mahan-dk-qty::-webkit-inner-spin-button,
.mahan-dk-qty::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }

.mahan-dk-inline-message {
    min-height: 0;
    margin-top: 8px;
    font-family: danam, sans-serif;
    font-size: 12px;
}

.mahan-dk-inline-message:empty { display: none; }

.mahan-dk-inline-message.is-error {
    display: block;
    padding: 15px;
    border: 1px solid #F18700;
    border-radius: 7px;
    background-color: #FFF8EC;
    color: #F18700;
    font-family: danam, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5em;
    box-sizing: border-box;
}

.mahan-dk-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 999999;
    transform: translate(-50%, -50%) scale(.96);
    width: 260px;
    max-width: calc(100vw - 32px);
    min-height: 150px;
    padding: 24px 18px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #222;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.mahan-dk-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.mahan-dk-toast__icon {
    display: block;
    width: 42px;
    height: 42px;
    min-width: 42px;
    object-fit: contain;
}

.mahan-dk-toast__text {
    font-family: danam, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #222;
}

.mahan-dk-spinner {
    display: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    box-sizing: border-box;
    animation: mahan-spin .7s linear infinite;
}

.mahan-dk-purchase.is-loading .mahan-dk-spinner { display: block; }
.mahan-dk-purchase.is-loading .mahan-dk-add-button__label { display: none; }
.mahan-dk-purchase.is-loading { opacity: .7; }

.mahan-dk-variation-fields { display: grid; gap: 10px; margin-bottom: 14px; }
.mahan-dk-variation-field { display: grid; gap: 6px; }
.mahan-dk-variation-field label { font-weight: 700; font-size: 13px; }
.mahan-dk-variation-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    background: #fff;
    padding: 8px 10px;
    font: inherit;
}

.added_to_cart.wc-forward { display: none !important; }
.is-hidden { display: none !important; }
@keyframes mahan-spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
    .mahan-dk-purchase { gap: 7px; }
    .mahan-dk-add-button { min-height: 50px; }
    .mahan-dk-stepper { min-width: 0 !important; min-height: 50px; grid-template-columns: 40px minmax(40px, 1fr) 40px; }
    .mahan-dk-stepper__btn, .mahan-dk-stepper__count { height: 50px; }
    .mahan-dk-control-icon { width: 17px; height: 17px; min-width: 17px; min-height: 17px; }
    .mahan-dk-qty, .mahan-dk-qty:hover, .mahan-dk-qty:focus, .mahan-dk-qty:active { height: 40px !important; line-height: normal !important; font-size: 14px; }
    .mahan-dk-toast { width: 240px; min-height: 145px; }
}
