/* Font: IRANYekanXVF */
@font-face {
  font-family: "IRANYekanXVF";
  src: url("../fonts/IRANYekanXVF.woff2") format("woff2"),
       url("../fonts/IRANYekanXVF.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  font-variation-settings: "wght" 400, "dots" 1;
}



.demo-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn { cursor: pointer; border: 0; border-radius: 12px; padding: 12px 18px; font-size: 14px; }
.btn-block { width: 100%; padding: 16px; font-size: 16px; }
.btn-primary { background: #1976d2; color: #fff; }
.btn-secondary { background: #757575; color: #fff; }
.btn-success { background: #25b66a; color: #fff;   font-family: "IRANYekanXVF";
;}
.btn-muted { background: #e9ecef; color: #222; }
.btn-icon { width: 56px; height: 56px; border-radius: 16px; background: #e9ecef; font-size: 22px; }
.btn:active { transform: translateY(1px); }

/* Disabled buttons */
.btn[disabled], button[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn[disabled]:active, button[disabled]:active { transform: none; }

/* Button loading state */
.btn.is-loading, button.is-loading { position: relative; pointer-events: none; opacity: 0.85; }
.btn.is-loading::after, button.is-loading::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 18px;
  margin-left: -9px; margin-top: -9px;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Cart icon button - minimal */
.easy-cart-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.easy-cart-icon__svg { width: 24px; height: 24px; display: inline-block; }
.easy-cart-count { min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: #fff; color: #1976d2; font-weight: 800; font-size: 12px; }

/* Overlay & Modal */
.overlay { position: fixed; inset: 0; display: none; place-items: center; background: rgba(0,0,0,0.35); padding: 16px; z-index: 1000; }
.overlay.is-open { display: grid; }

.modal {
  width: 920px; max-width: 100%; background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.modal__header { position: relative; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; }
.modal__title { margin: 0; font-size: 18px; font-weight: 700; }
.modal__close { border: 0; background: #eee; width: 36px; height: 36px; border-radius: 10px; font-size: 18px; cursor: pointer; }
.modal__close:hover { background: #e2e2e2; }
.modal__summary { color: #333; font-size: 15px; }
.modal__summary strong { font-weight: 800; }
/* Title + Close on right */
.modal__titlewrap { display: flex; align-items: center; gap: 10px; }

.divider { height: 1px; background: #e8e8e8; }

.modal__body { padding: 18px 24px; max-height: 60vh; overflow-y: auto;   font-family: "IRANYekanXVF";
; }
.modal__footer { padding: 18px 24px; }
.modal__footer--split { display: flex; gap: 12px; flex-direction: row-reverse; }
.modal__footer--split .btn-success { flex: 1; }
.modal__footer--split .btn-icon { flex: 0 0 56px; }

/* Global Loader */
.loader-overlay { position: fixed; inset: 0; display: none; place-items: center; background: rgba(0,0,0,0.25); z-index: 2000; }
.loader-overlay.is-visible { display: grid; }
.loader { width: 42px; height: 42px; border: 3px solid #e2e6ea; border-top-color: #1976d2; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cart item */
.cart-item { position: relative; border: 1px solid #e9edf3; border-radius: 16px; padding: 12px; }
.cart-item.is-removing { opacity: 0.5; filter: grayscale(0.1); pointer-events: none; transition: opacity 0.25s ease; }
.cart-item__remove { position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; background: #f4f4f4; border: 0; border-radius: 8px; cursor: pointer; }
.cart-item__content { display: grid; grid-template-columns: 1fr 220px; align-items: center; gap: 16px; }
.cart-item__image { width: 100%; height: 150px; border-radius: 12px; background: linear-gradient(135deg, #d9dbe1, #f2f3f7); border: 1px solid #e9edf3; }
.cart-item__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.cart-item__price { color: #4a5568; font-weight: 700; }

/* Coupon */
.coupon { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 22px; padding: 12px; border: 1px solid #e9edf3; border-radius: 16px; font-family: "IRANYekanXVF"; }
.coupon input{
	font-family: "IRANYekanXVF";
	
}

.btn-muted{
	font-family: "IRANYekanXVF";
	
}
/* Inputs */
.input { width: 100%; border: 1.6px solid #e2e6ea; border-radius: 12px; padding: 12px 14px; font-size: 15px; outline: none; background: #fff; }
.input:focus { border-color: #9ec8ff; box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.12); }
.input--valid { border-color: #72cf9a; background: #fff; }
.form { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form__label { display: grid; gap: 8px; font-weight: 600; }
.required { color: #e53935; }

/* Payment */
.payment-box { border: 1px solid #e9edf3; border-radius: 16px; padding: 14px; display: grid; gap: 8px; background: #fafafa; }
.payment-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-weight: 600; }
.payment-note { color: #9aa2ac; font-size: 13px; }
.final-amount { text-align: right; font-weight: 700; margin-top: 6px; }

/* Responsive */
@media (max-width: 768px) {
  .modal { width: 640px; }
  .cart-item__content { grid-template-columns: 1fr 180px; }
}

@media (max-width: 520px) {
  .modal { width: 100%; border-radius: 16px; }
  .modal__header { padding: 16px; }
  .modal__body { padding: 16px; }
  .modal__footer { padding: 16px; }
  .modal__titlewrap { gap: 8px; }
  .cart-item__content { grid-template-columns: 1fr; }
  .cart-item__image { height: 160px; }
  .coupon { flex-direction: column; align-items: stretch; }
  .modal__footer--split { flex-direction: row; }
  .final-amount { text-align: right; }
	.modal__footer--split{
	direction:ltr !important;
}
	
    .input {
    width: 89% !important;
    border: 1.6px solid #e2e6ea;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    background: #fff;
}
}



.place-order{
	display:none !important;
}



.is-loading{
  background:#ff6602c9 !important;
}


.cart-item__image img{
	width:100% !important;
	border-radius:9px !important;
	object-fit:cover !important;
  height: revert-layer;

}


.cart-item {
    margin-top: 10px !important;
}



.payment_method_wallet{
display:none !important;

}

/* Card to Card Payment Styles */
.card-to-card-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: "IRANYekanXVF";
}

.card-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
}

.card-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
}

.card-details p {
    margin: 12px 0;
    font-size: 15px;
    color: #495057;
}

.card-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #1976d2;
    letter-spacing: 2px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e3f2fd;
    display: inline-block;
    margin-right: 10px;
}

.receipt-upload h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
}

.upload-area {
    position: relative;
    border: 2px dashed #ced4da;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.upload-area:hover {
    border-color: #1976d2;
    background: #f0f8ff;
}

.upload-area.dragover {
    border-color: #1976d2;
    background: #e3f2fd;
    transform: scale(1.02);
}

#receipt-file {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-label {
    color: #1976d2;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #d4edda;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #c3e6cb;
}

.file-name {
    color: #155724;
    font-weight: 500;
    font-size: 14px;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.remove-file:hover {
    background: #c82333;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "IRANYekanXVF";
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Payment method selection styling */
.payment_method_card_to_card {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
}

.payment_method_card_to_card label {
    font-weight: 600;
    color: #e65100;
    font-size: 16px;
}

.payment_method_card_to_card .payment_box {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    margin-top: 10px;
    padding: 15px;
    border-radius: 8px;
}

/* Responsive design for card-to-card */
@media (max-width: 768px) {
    .card-to-card-container {
        margin: 10px;
        padding: 15px;
    }
    
    .card-info {
        padding: 15px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .card-number {
        font-size: 16px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .card-details p {
        font-size: 14px;
    }
    
    .file-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .btn-primary {
        width: 100%;
        padding: 16px;
    }
}
/* Card to Card Modal Styles */
.card-to-card-modal-content {
    font-family: "IRANYekanXVF";
    max-height: 70vh;
    overflow-y: auto;
}

.card-to-card-modal-content .card-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
}

.card-to-card-modal-content .card-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
}

.card-to-card-modal-content .card-details p {
    margin: 10px 0;
    font-size: 14px;
    color: #495057;
}

.card-to-card-modal-content .card-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.card-to-card-modal-content .card-number {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #1976d2;
    letter-spacing: 1px;
    background: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #e3f2fd;
    display: inline-block;
}

.card-to-card-modal-content .receipt-upload h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
}

.card-to-card-modal-content .upload-area {
    position: relative;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 30px 15px;
    text-align: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.card-to-card-modal-content .upload-area:hover {
    border-color: #1976d2;
    background: #f0f8ff;
}

.card-to-card-modal-content .upload-area.dragover {
    border-color: #1976d2;
    background: #e3f2fd;
    transform: scale(1.01);
}

.card-to-card-modal-content #modal-receipt-file {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
}

.card-to-card-modal-content .upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.card-to-card-modal-content .upload-area:hover .upload-label {
    color: #1976d2;
}

.card-to-card-modal-content .upload-icon {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.card-to-card-modal-content .upload-text {
    font-size: 14px;
    font-weight: 500;
}

.card-to-card-modal-content .file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #d4edda;
    padding: 10px 12px;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid #c3e6cb;
}

.card-to-card-modal-content .file-name {
    color: #155724;
    font-weight: 500;
    font-size: 13px;
}

.card-to-card-modal-content .remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.card-to-card-modal-content .remove-file:hover {
    background: #c82333;
}

.card-to-card-modal-content .form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.card-to-card-modal-content .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "IRANYekanXVF";
}

.card-to-card-modal-content .btn-secondary:hover {
    background: #5a6268;
}

/* Responsive adjustments for modal */
@media (max-width: 520px) {
    .card-to-card-modal-content .card-info {
        padding: 15px;
    }
    
    .card-to-card-modal-content .upload-area {
        padding: 20px 10px;
    }
    
    .card-to-card-modal-content .upload-icon {
        font-size: 28px;
    }
    
    .card-to-card-modal-content .form-actions {
        flex-direction: column;
    }
    
    .card-to-card-modal-content .btn,
    .card-to-card-modal-content .btn-secondary {
        width: 100%;
    }
    
    .card-to-card-modal-content .card-number {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
}
/* Hide payment button when card-to-card is selected */
.payment_method_card_to_card:checked ~ .form-row .place-order,
.payment_method_card_to_card:checked ~ * .place-order,
input[value="card_to_card"]:checked ~ .form-row .place-order,
input[value="card_to_card"]:checked ~ * .place-order,
input[name="payment_method"][value="card_to_card"]:checked ~ .form-row .place-order {
    display: none !important;
}

/* Hide payment button in card-to-card modal content */
.card-to-card-modal-content ~ .place-order,
.card-to-card-modal-content + * .place-order {
    display: none !important;
}

/* More specific selectors for WooCommerce checkout */
.woocommerce-checkout .payment_method_card_to_card:checked ~ .form-row .place-order,
.woocommerce-checkout input[name="payment_method"][value="card_to_card"]:checked ~ .form-row .place-order,
.woocommerce-checkout input[name="payment_method"][value="card_to_card"]:checked ~ * .place-order {
    display: none !important;
}

/* Hide when card-to-card form is shown */
#easyCheckoutFormWrap:has(.card-to-card-modal-content) .place-order {
    display: none !important;
}

/* Hide "پرداخت در لحظه" button when card-to-card modal is active */
.modal:has(.card-to-card-modal-content) #easyPayNow,
#easyCheckoutModal:has(.card-to-card-modal-content) #easyPayNow {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Alternative CSS selector for when card-to-card content exists */
.card-to-card-modal-content ~ #easyPayNow,
.card-to-card-modal-content + * #easyPayNow {
    display: none !important;
}

/* Style for card-to-card info message */
.card-to-card-message {
    font-family: "IRANYekanXVF";
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    color: #856404;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-to-card-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.card-to-card-message strong {
    color: #b8860b;
}