/* ================= فونت Vazirmatn ================= */
@font-face {
    font-family: 'VazirMatnFN';
    src: url('../font/Vazirmatn.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
:root{
    --hani-color: #8c314e;
    --hani-font-size: 14px;
}

.hani-card-visual{
       background: linear-gradient(135deg, #1a3456, var(--hani-color));
    color: #fff;
    padding: 20px;
    border-radius: 20px;
    margin: 20px auto;
    width: fit-content;
    line-height: 2;
}

.hani-card{
    background:#fff;
    padding:25px;
    border-radius:25px;
    font-size:var(--hani-font-size);
}

.hani-card input,
.hani-card button{
    width:100%!important;
    padding:12px!important;
    margin-bottom:12px!important;
    border-radius:12px!important;
    border:1px solid #ddd!important;
}

.hani-card button{
    background:var(--hani-color);
    color:#fff!important;
    border:none!important;
    cursor:pointer!important;
}
table.form-table {
    background: #fff;
    padding: 30px;
    border-radius: 30px;
    display: block;
}

section.woocommerce-bacs-bank-details{
	display : none;
}
.woocommerce-order {
    background: #fff;
    padding: 20px;
    border-radius: 25px;
    font-family: 'TanhaFN';
    color: #000;
}

section.woocommerce-order-details {
    padding: 20px;
    margin: 25px auto;
}
h3.wc-bacs-bank-details-account-name {
    color: #8c314e !important;
    font-size: 20px !important;
}
.woocommerce ul.order_details li {
    float: none!important;
    margin-left: 0!important;
    text-transform: uppercase!important;
    font-size: 12px!important;
    line-height: 2!important;
    border-left:none!important;
    display: inline-grid;
}
td.woocommerce-table__product-name.product-name a, table td.download-product a {
    color: #000!important;
}
p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
    text-align: center;
    background: #8c314e;
    padding: 20px 0;
    border-radius: 15px;
    font-size: 16px;
    color: #fff;
}
table.woocommerce-table.woocommerce-table--order-downloads.shop_table.shop_table_responsive.order_details {
    border: 1px solid #dcdcdc;
    border-radius: 15px;
	overflow:hidden;
}
table.woocommerce-table.woocommerce-table--order-downloads.shop_table.shop_table_responsive.order_details th ,table.woocommerce-table.woocommerce-table--order-downloads.shop_table.shop_table_responsive.order_details td {
    border-left: 1px solid #dcdcdc !important;
    border-bottom: 1px solid #dcdcdc !important;
}
/* ================= تقویم شمسی ================= */
.hani-datepicker-wrapper {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px;
    font-family: VazirMatnFN;
    font-size: 14px;
    color: #333;
    z-index: 9999;
    min-width: 200px;
}

.hani-datepicker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: bold;
}

.hani-datepicker-nav {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
}

.hani-datepicker-nav:hover {
    background: #f0f0f0;
}

.hani-datepicker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.hani-datepicker-day-name {
    text-align: center;
    font-weight: bold;
    color: #555;
}

.hani-datepicker-day {
    text-align: center;
    padding: 6px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    user-select: none;
}

.hani-datepicker-day:hover {
    background: #0073aa;
    color: #fff;
}

.hani-datepicker-day.selected {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}

.hani-datepicker-day.empty {
    cursor: default;
    background: transparent;
}

/* ================= پرداخت مستقل از ووکامرس ================= */
.hani-independent-payment-page{
    font-family:'VazirMatnFN',Tahoma,Arial,sans-serif;
    padding:40px 15px;
    background:#f7f7f9;
    min-height:70vh;
}
.hani-payment-container{
    max-width:760px;
    margin:0 auto;
}
.hani-payment-header,
.hani-payment-amount{
    background:#fff;
    padding:25px;
    border-radius:25px;
    margin-bottom:20px;
    box-shadow:0 8px 30px rgba(0,0,0,.05);
}
.hani-payment-header h1{
    margin:0 0 15px;
    color:#1a3456;
    font-size:25px;
}
.hani-payment-header p{
    margin:7px 0;
}
.hani-payment-description{
    background:#f7f7f9;
    padding:15px;
    border-radius:14px;
    margin-top:15px;
    line-height:2;
}
.hani-payment-amount{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    color:#1a3456;
}
.hani-payment-amount strong{
    color:#8c314e;
    font-size:22px;
}
.hani-payment-amount small{
    font-size:13px;
}
.hani-independent-payment-page .hani-card-visual{
    width:auto;
    max-width:100%;
    box-sizing:border-box;
}
.hani-independent-payment-page .hani-card-visual button{
    margin:10px auto;
    display:block;
    padding:6px 14px;
    border-radius:8px;
    background:rgba(255,255,255,.2);
    color:#fff;
    border:none;
    cursor:pointer;
}
.hani-independent-form label{
    display:block;
    margin-bottom:8px;
    font-weight:bold;
}
.hani-payment-success{
    background:#e8f7ed;
    color:#176b35;
    border:1px solid #b8e5c5;
    padding:18px;
    border-radius:15px;
    margin-bottom:20px;
    text-align:center;
}
.hani-payment-thankyou{
    background:#fff;
    padding:40px 25px;
    border-radius:25px;
    box-shadow:0 8px 30px rgba(0,0,0,.05);
    text-align:center;
}
.hani-payment-thankyou-icon{
    width:70px;
    height:70px;
    line-height:70px;
    margin:0 auto 20px;
    border-radius:50%;
    background:#e8f7ed;
    color:#176b35;
    font-size:34px;
    font-weight:bold;
}
.hani-payment-thankyou h2{
    margin:0 0 20px;
    color:#1a3456;
    font-size:21px;
}
.hani-payment-thankyou-note{
    background:#fff8e6;
    color:#7a5b00;
    border:1px solid #f2dfa3;
    padding:14px 16px;
    border-radius:14px;
    margin:0 0 14px;
    line-height:2;
    text-align:right;
}
.hani-payment-thankyou-note:last-of-type{
    margin-bottom:0;
}
@media(max-width:600px){
    .hani-payment-amount{
        flex-direction:column;
        align-items:stretch;
        text-align:center;
    }
    .hani-payment-header h1{
        font-size:21px;
    }
}

/* ================= صفحه پرداخت مستقل: بدون وابستگی به قالب ================= */
html.hani-independent-payment-standalone,
html.hani-independent-payment-standalone body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100% !important;
    background: #f7f7f9 !important;
    overflow-x: hidden !important;
}
body.hani-independent-payment-standalone {
    width: 100% !important;
}
body.hani-independent-payment-standalone * {
    box-sizing: border-box;
}


/* True standalone payment page: never inherit theme/cart drawer UI */
html.hani-independent-payment-standalone {
    background:#f7f7f9 !important;
}
html.hani-independent-payment-standalone,
html.hani-independent-payment-standalone body {
    overflow-x:hidden !important;
    overflow-y:hidden !important;
}
html.hani-independent-payment-standalone body {
    margin:0 !important;
    padding:0 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    background:#f7f7f9 !important;
    overflow-x:hidden !important;
}
html.hani-independent-payment-standalone body > *:not(.hani-independent-payment-page):not(.hani-datepicker-wrapper) { display:none !important; }
.hani-independent-payment-page {
    display:block !important;
    position:relative !important;
    width:100% !important;
    min-height:100vh !important;
    margin:0 !important;
    padding:40px 15px !important;
    background:#f7f7f9 !important;
    z-index:1 !important;
}
.hani-independent-payment-page ~ *:not(.hani-datepicker-wrapper) { display:none !important; }

/* v2.6.4: standalone page must never create horizontal/vertical browser scrollbars */
html.hani-independent-payment-standalone,
html.hani-independent-payment-standalone body {
    width:100vw !important;
    max-width:100vw !important;
    height:100vh !important;
    max-height:100vh !important;
    overflow-x:hidden !important;
    overflow-y:hidden !important;
}
html.hani-independent-payment-standalone .hani-independent-payment-page {
    width:100% !important;
    height:100vh !important;
    max-height:100vh !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    scrollbar-width:none !important;
}
html.hani-independent-payment-standalone .hani-independent-payment-page::-webkit-scrollbar {
    width:0 !important;
    height:0 !important;
    display:none !important;
}

/* v2.6.5: payment date field remains editable and calendar opens reliably */
.hani-independent-form #hani-payment-date { cursor:text !important; }
.hani-datepicker-wrapper { z-index:2147483647 !important; }
