.yenglish-receipt-panel-wrap {
    direction: rtl;
    margin: 18px 0 28px;
}

.yenglish-receipt-panel {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border: 2px solid #7a00df;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(122, 0, 223, 0.14);
    color: #2f2538;
    padding: 20px;
    text-align: right;
}

.yenglish-receipt-panel__header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.yenglish-receipt-panel__header h2 {
    color: #4c00b0;
    font-size: 20px;
    margin: 0;
}

.yenglish-receipt-panel__header span {
    background: #fff;
    border: 1px solid #d8b4fe;
    border-radius: 999px;
    color: #5b21b6;
    font-size: 12px;
    padding: 5px 10px;
    white-space: nowrap;
}

.yenglish-receipt-panel p {
    line-height: 1.8;
    margin: 0 0 14px;
}

.yenglish-receipt-form {
    box-sizing: border-box;
    display: grid;
    gap: 12px;
    max-width: 100%;
    min-width: 0;
}

.yenglish-receipt-meta {
    color: #5f5568;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px 16px;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.yenglish-receipt-submit {
    justify-self: start;
    min-height: 42px;
    padding-inline: 18px !important;
}

.ympr-upload-box,
.ympr-upload-box * {
    box-sizing: border-box;
}

.ympr-upload-box {
    display: grid;
    gap: 10px;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.ympr-file-input {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
    z-index: -1;
}

.ympr-file-button,
.ympr-submit-button {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    line-height: 1.4;
    max-width: 100%;
    min-height: 44px;
    padding: 11px 16px;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.ympr-file-button {
    background: #fff;
    border: 1px dashed #b77dff;
    color: #4c00b0;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 160ms ease;
}

.ympr-file-button:hover,
.ympr-file-button:focus {
    background: #fbf7ff;
    border-color: #7a00df;
    outline: none;
}

.ympr-file-button:not(:disabled):hover {
    transform: translateY(-1px);
}

.ympr-file-button:not(:disabled):active {
    transform: scale(0.995);
}

.ympr-file-button:disabled {
    cursor: wait;
    opacity: 0.88;
}

.ympr-file-button.ympr-btn-idle {
    background: #fff;
    border-color: #b77dff;
    color: #4c00b0;
}

.ympr-file-button.ympr-btn-ready {
    background: #0f766e;
    border-color: #0f766e;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
    color: #fff;
}

.ympr-file-button.ympr-btn-ready:hover,
.ympr-file-button.ympr-btn-ready:focus {
    background: #0d9488;
    border-color: #0d9488;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.28);
}

.ympr-file-button.ympr-btn-uploading {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.ympr-file-button.ympr-btn-uploading::before {
    animation: ympr-spin 800ms linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 16px;
    margin-left: 8px;
    width: 16px;
}

.ympr-file-button.ympr-btn-success {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
    cursor: default;
}

@keyframes ympr-spin {
    to {
        transform: rotate(360deg);
    }
}

.ympr-submit-button {
    border: 0 !important;
    cursor: pointer;
    justify-self: stretch;
    margin: 0 !important;
}

.ympr-submit-button[hidden] {
    display: none !important;
}

.ympr-submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.ympr-file-name {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #ead8ff;
    border-radius: 10px;
    color: #5f5568;
    direction: ltr;
    font-size: 13px;
    line-height: 1.6;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 8px 10px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ympr-file-name.is-empty {
    direction: rtl;
}

.ympr-file-name.has-file {
    color: #4c00b0;
    font-weight: 700;
}

.ympr-file-name.ympr-upload-error {
    border-color: #fecaca;
    color: #b91c1c;
    direction: rtl;
    font-weight: 700;
}

.yenglish-receipt-inline {
    border-top: 1px solid rgba(122, 0, 223, 0.18);
    margin-top: 18px;
    padding-top: 18px;
    text-align: right;
}

.yenglish-receipt-inline__title {
    color: #4c00b0;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
}

.yenglish-receipt-message {
    background: #fff;
    border: 1px solid #d8b4fe;
    border-radius: 12px;
    color: #4c00b0;
    font-weight: 700;
    line-height: 1.8;
    padding: 14px;
}

.yenglish-receipt-message small {
    color: #7f1d1d;
    display: block;
    font-weight: 400;
    margin-top: 6px;
}

.yenglish-receipt-message--rejected {
    border-color: #fecaca;
    color: #b91c1c;
    margin-bottom: 12px;
}

.yenglish-receipt-message--approved {
    border-color: #bbf7d0;
    color: #15803d;
}

.yenglish-receipt-payment-box {
    margin: 24px 0;
}

.yenglish-receipt-payment-details {
    background: #fff;
    border: 1px dashed #c69cff;
    border-radius: 14px;
    display: grid;
    gap: 10px;
    margin: 16px auto 0;
    max-width: 560px;
    padding: 18px;
}

.yenglish-receipt-payment-detail {
    color: #333;
    font-size: 14px;
}

.yenglish-receipt-payment-detail span {
    color: #777;
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.yenglish-receipt-payment-detail strong {
    display: block;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.yenglish-receipt-payment-detail--card_number strong,
.yenglish-receipt-payment-detail--iban_number strong,
.yenglish-receipt-payment-detail--swift_code strong {
    color: #4c00b0;
    direction: ltr;
    font-size: 18px;
    letter-spacing: 0;
    text-align: right;
}

.yenglish-receipt-orders-badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    padding: 4px 9px;
    white-space: normal;
}

.yenglish-receipt-orders-badge--missing {
    background: #fff7ed;
    color: #9a3412;
}

.yenglish-receipt-orders-badge--pending {
    background: #eff6ff;
    color: #1d4ed8;
}

.yenglish-receipt-orders-badge--approved {
    background: #f0fdf4;
    color: #15803d;
}

.yenglish-receipt-orders-badge--rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.yenglish-receipt-orders-muted {
    color: #999;
}

@media (max-width: 600px) {
    .yenglish-receipt-panel-wrap,
    .yenglish-receipt-panel,
    .yenglish-receipt-inline,
    .yenglish-receipt-form,
    .ympr-upload-box {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .yenglish-receipt-panel {
        border-radius: 12px;
        padding: 15px;
    }

    .yenglish-receipt-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .yenglish-receipt-panel__header span {
        white-space: normal;
    }

    .yenglish-receipt-submit {
        justify-self: stretch;
        width: 100%;
    }

    .ympr-file-button,
    .ympr-submit-button {
        border-radius: 10px;
        font-size: 14px;
        min-height: 40px;
        padding: 9px 12px;
    }

    .ympr-file-name,
    .yenglish-receipt-meta {
        font-size: 12px;
    }

    .yenglish-receipt-meta {
        display: grid;
        gap: 5px;
    }

    .yenglish-receipt-payment-details {
        padding: 14px;
    }
}
