
/* Order success page - Pakhor */

.pk-order-success {
    direction: rtl;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 15px 45px;
    color: #333;
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 13px;
}

.pk-order-success * {
    box-sizing: border-box;
}

.pk-success-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    font-size: 11px;
    color: #888;
}

.pk-success-breadcrumb a {
    color: #008fd3;
    text-decoration: none;
}

.pk-success-card {
    width: 100%;
    max-width: 965px;
    margin: 0 auto;
    padding: 28px 24px 22px;
    background: #fff;
    border: 1px solid #079be5;
    border-radius: 8px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .17);
}

.pk-success-heading {
    text-align: center;
    margin-bottom: 20px;
}

.pk-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #20a957;
    color: #fff;
    font-size: 23px;
    box-shadow: 0 2px 5px rgba(32, 169, 87, .2);
}

.pk-success-heading h1 {
    margin: 0 0 10px;
    color: #008fd3;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.8;
}

.pk-success-heading p {
    margin: 0;
    color: #555;
    line-height: 2;
}

.pk-success-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 12px;
    margin-bottom: 16px;
    border: 1px solid #b8e8cb;
    border-radius: 5px;
    background: #f0faf4;
    color: #278348;
    line-height: 1.9;
    text-align: center;
}

.pk-order-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #d8e3ed;
    border-radius: 5px;
    margin-bottom: 28px;
    padding: 14px 0;
}

.pk-order-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    padding: 0 12px;
    text-align: center;
    overflow-wrap: anywhere;
}

.pk-order-info-item + .pk-order-info-item {
    border-right: 1px solid #d8e3ed;
}

.pk-order-info-item span {
    color: #777;
    /*font-size: 12px;*/
}

.pk-order-info-item strong {
    color: #344e6d;
    font-size: 13px;
    line-height: 1.8;
}

.pk-order-status {
    color: #168c50 !important;
    background: #e9f8ef;
    padding: 3px 12px;
    border-radius: 20px;
}

.pk-order-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 0 5px 28px;
}

.pk-progress-line {
    position: absolute;
    top: 13px;
    right: 15%;
    left: 15%;
    height: 2px;
    background: #dce5ed;
    z-index: 0;
}

.pk-progress-line-fill {
    width: 0;
    height: 100%;
    background: #079be5;
}

.pk-progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33.333%;
    text-align: center;
    color: #8995a4;
}

.pk-progress-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-bottom: 7px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #cbd5df;
    color: #fff;
    font-size: 11px;
}

.pk-progress-step.active {
    color: #008fd3;
}

.pk-progress-step.active .pk-progress-dot {
    background: #079be5;
}

.pk-progress-step strong {
    font-size: 12px;
    line-height: 1.8;
}

.pk-progress-step small {
    margin-top: 3px;
    font-size: 11px;
}

.pk-paid-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    margin-bottom: 16px;
    border: 1px solid #e2eaf0;
    border-radius: 5px;
    background: #fafcfe;
}

.pk-paid-summary > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pk-paid-summary span {
    color: #666;
}

.pk-paid-summary strong {
    color: #008fd3;
    font-size: 19px;
}

.pk-paid-summary strong small {
    font-size: 12px;
    font-weight: normal;
    font-family: 'IRANSansWeb_Bold' !important;
}

.pk-paid-summary > i {
    color: #079be5;
    font-size: 22px;
}

.pk-shipping-note {
    text-align: right;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #b8e5fc;
    border-radius: 5px;
    background: #f8fcff;
}

.pk-shipping-icon {
    color: #079be5;
    font-size: 23px;
    padding-top: 3px;
}

.pk-shipping-note strong {
    display: block;
    color: #008fd3;
    margin-bottom: 6px;
    font-size: 13px;
}

.pk-shipping-note p {
    margin: 0;
    color: #666;
    line-height: 2;
}

.pk-success-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 18px;
}

.pk-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 43px;
    padding: 10px 22px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.8;
    text-align: center;
    text-decoration: none !important;
    transition: background .2s, color .2s;
}

.pk-btn-primary {
    color: #fff !important;
    background: #008fd3;
    border: 1px solid #008fd3;
    cursor: pointer;
}

.pk-btn-primary:hover {
    background: #007bb8;
    border-color: #007bb8;
}

.pk-btn-outline {
    color: #008fd3 !important;
    background: #fff;
    border: 1px solid #008fd3;
    cursor: pointer;
}

.pk-btn-outline:hover {
    color: #fff !important;
    background: #008fd3;
}

.pk-support-note {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 13px;
    border-top: 1px solid #edf0f2;
    color: #777;
    line-height: 2;
    text-align: center;
}

.pk-support-note i {
    color: #008fd3;
}

.pk-support-note a {
    color: #008fd3;
    text-decoration: none;
    direction: ltr;
}

/* تبلت */
@media (max-width: 767px) {
    .pk-order-success {
        padding: 8px 10px 30px;
    }

    .pk-success-card {
        padding: 22px 14px;
    }

    .pk-success-heading h1 {
        font-size: 17px;
    }

    .pk-order-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 16px;
        padding: 14px 0;
    }

    .pk-order-info-item {

        padding: 6px 8px;
    }

    .pk-order-info-item:nth-child(3) {
        border-right: none;
    }

    .pk-order-info-item:nth-child(3),
    .pk-order-info-item:nth-child(4) {
        border-top: 1px solid #edf0f2;
        padding-top: 16px;
    }

    .pk-progress-step strong {
        font-size: 10px;
    }

    .pk-progress-step small {
        font-size: 10px;
    }

    .pk-paid-summary {
        padding: 13px 10px;
    }

    .pk-paid-summary strong {
        font-size: 16px;
    }

    .pk-btn {
        width: 100%;
    }

    .pk-success-actions {
        gap: 9px;
    }
}

/* موبایل کوچک */
@media (max-width: 380px) {
    .pk-success-card {
        padding: 18px 10px;
    }

    .pk-order-info-item strong {
        font-size: 11px;
    }

    .pk-progress-step strong {
        font-size: 9px;
    }
}



/* کادر پیگیری سفارش */

.pk-track-box {
    max-width: 965px;
    margin: 0 auto 20px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #dce6ed;
    border-radius: 7px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .07);
}

.pk-track-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    text-align: right;
}

.pk-track-heading > i {
    margin-top: 5px;
    color: #008fd3;
    font-size: 23px;
}

.pk-track-heading h2 {
    margin: 0 0 6px;
    color: #008fd3;
    font-size: 16px;
    font-weight: bold;
    font-family: 'IRANSansWeb_Bold' !important;
}

.pk-track-heading p {
    margin: 0;
    color: #777;
    /*font-size: 12px;*/
    line-height: 2;
    font-family: 'IRANSansWeb_Bold' !important;
}

.pk-track-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 12px;
    text-align: right;
}

.pk-track-field {
    min-width: 0;
}

.pk-track-field label {
    display: block;
    margin-bottom: 7px;
    color: #444;
    font-size: 12px;
    font-weight: bold;
}

.pk-track-field input {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    background: #fff;
    font-family: inherit;
    font-size: 12px;
    text-align: right;
}

.pk-track-field input:focus {
    border-color: #008fd3;
    box-shadow: 0 0 0 2px rgba(0, 143, 211, .1);
}

.pk-track-form .pk-btn {
    min-height: 42px;
    white-space: nowrap;
    cursor: pointer;
}

.pk-track-error {
    font-family: 'IRANSansWeb_Bold';
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid #f0c5c5;
    border-radius: 4px;
    background: #fff5f5;
    color: #a52c2c;
    line-height: 1.9;
    /*font-size: 12px;*/
    text-align: center;
}

@media (max-width: 767px) {
    .pk-track-box {
        padding: 16px 12px;
    }

    .pk-track-form {
        grid-template-columns: 1fr;
    }

    .pk-track-form .pk-btn {
        width: 100%;
    }
}

/* چاپ فقط رسید سفارش */

@media print {

    @page {
        size: A4;
        margin: 12mm;
    }

    html,
    body {
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body * {
        visibility: hidden !important;
    }

    .pk-print-area,
    .pk-print-area * {
        visibility: visible !important;
    }

    .pk-print-area {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 15px !important;
        border: 1px solid #079be5 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #222 !important;
        font-family: IRANSans, Tahoma, sans-serif !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .pk-track-box,
    .pk-success-breadcrumb,
    .pk-success-actions,
    .pk-support-note,
    header,
    footer,
    nav,
    .header,
    .footer,
    .page-header,
    .page-footer,
    .chat-widget,
    .back-to-top {
        display: none !important;
    }

    .pk-success-card {
        max-width: none !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .pk-order-info,
    .pk-paid-summary,
    .pk-shipping-note {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    a {
        color: #222 !important;
        text-decoration: none !important;
    }
}

