/**
 * استایل‌های فرانت‌اند - جدول قیمت
 */

.selected-package {
	display:none
}
 .ppt-pricing-table-wrapper {
    margin: 30px 0;
    /* direction: rtl; */
}

.ppt-pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.ppt-pricing-card {
    padding: 0px 25px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: #eff8ff;
    display: flex;
    flex-direction: column;
}

.ppt-pricing-card:hover {
    /* border-color: #2271b1; */
    /* box-shadow: 0 4px 16px rgba(34, 113, 177, 0.2); */
    /* transform: translateY(-5px); */
}

.ppt-card-header {
    margin-bottom: 20px;
}

.ppt-package-title {
    font-size: 24px;
    font-weight: 700;
    color: #025197;
    margin: 0;
    background: #ffffff;
    display: inline-block;
    padding: 4px 29px;
}

.ppt-card-price {
    /* margin: 25px 0; */
    /* padding: 20px 0; */
    /* border-top: 2px solid #f0f0f0; */
    /* border-bottom: 2px solid #f0f0f0; */
}

.ppt-price-label {
    display: block;
    font-size: 14px;
    color: #646970;
    margin-bottom: 5px;
}

.ppt-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ppt-old-price {
    font-size: 20px;
    color: #8c8f94;
    text-decoration: line-through;
}

.ppt-new-price {
    font-size: 32px;
    font-weight: 700;
    color: #2271b1;
}

.ppt-current-price {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
}

.ppt-card-items {
    margin: 25px 0;
    text-align: left;
    min-height: 150px;
}

.ppt-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ppt-items-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #50575e;
    /* font-size: 15px; */
    line-height: 1.6;
    /* border-bottom: 1px solid #f0f0f0; */
}

.ppt-items-list li:last-child {
    border-bottom: none;
}

.ppt-items-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
    font-size: 11px;
    border: 1px solid #000;
    height: 16px;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.ppt-card-footer {
    margin-top: auto;
}

.ppt-select-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* width: 100%; */
    display: inline-block;
}

.ppt-select-btn:hover {
    background: #135e96;
    transform: scale(1.05);
}

.ppt-select-btn:active {
    transform: scale(0.98);
}

.ppt-no-packages-message {
    text-align: center;
    padding: 40px;
    color: #646970;
    font-size: 16px;
}

/* مودال */
.ppt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    /* direction: rtl; */
}

.ppt-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.ppt-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.ppt-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    color: red;
    transition: all 0.3s ease;
    background: unset !important;
}

.ppt-modal-close:hover {
    background: #dc3545 !important;
    color: #fff;
}

.ppt-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

.ppt-modal-left,
.ppt-modal-right {
    padding: 23px;
    overflow-y: auto;
}

.ppt-modal-right {
    background: #eff8ff;
    /* border-left: 2px solid #e0e0e0; */
}

.ppt-modal-left h3,
.ppt-modal-right h3 {
    margin-top: 0;
    color: #23282d;
    font-size: 20px;
    /* padding-bottom: 15px; */
    /* border-bottom: 2px solid #2271b1; */
    margin-bottom: 20px;
    /* background: #eee; */
}

.ppt-selected-package-info {
    position: sticky;
    top: 0;
}

.ppt-selected-package-details p {
    margin: 15px 0;
    font-size: 16px;
    color: #50575e;
}

.ppt-selected-package-details strong {
    color: #23282d;
    display: inline-block;
    min-width: 80px;
}

#ppt-selected-package-name,
#ppt-selected-package-price {
    color: #2271b1;
    font-weight: 600;
    font-size: 18px;
}

.selected-package {
    margin-top: 15px;
}

.selected-package-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .ppt-pricing-table {
        grid-template-columns: 1fr;
    }
    
    .ppt-modal-body {
        grid-template-columns: 1fr;
    }
    
    .ppt-modal-right {
        border-left: none;
        border-top: 2px solid #e0e0e0;
    }
    
    .ppt-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .ppt-modal-left,
    .ppt-modal-right {
        padding: 20px;
    }
}

/* استایل برای WPForms */
.ppt-modal-left .wpforms-container {
    max-width: 100%;
}

.ppt-modal-left .wpforms-form {
    margin: 0;
}


.ppt-card-price {
    display: flex;
    align-items: center;
}

.ppt-price-label:before {
    content: '/';
    margin: 0 6px;
}

.ppt-card-description {
    text-align: left;
    color: #000;
}

.ppt-modal .ppt-pricing-card {
    background: #ffffff;
}

.ppt-modal-left h3, .ppt-modal-right h3 {}

h3#ppt-selected-package-name {background: #ddeaf3;color: #000;padding-bottom: 7px;margin: 0;}

div#ppt-selected-items-container {
    margin: 0;
}

.ppt-modal-right .ppt-card-header {
    text-align: left;
}
