.pg-layout {
    max-width: 680px;
    margin: 2.5rem auto 4rem;
    padding: 0 1rem;
    direction: inherit;
    text-align: start;
    color: #1f2937;
}

.pg-brand {
    display: flex;
    align-items: center; 
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.pg-brand small {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: #6b7280;
}

.pg-brandmark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary_color, #1e6fb8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pg-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.pg-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primary_color, #1e6fb8);
    margin: 0 0 0.4rem;
}

.pg-panel h1,
.pg-dialog h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #111827;
}

.pg-muted {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.pg-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.15rem;
}

.pg-amounts button {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pg-amounts button:hover {
    border-color: var(--primary_color, #1e6fb8);
}

.pg-amounts button.active {
    background: var(--primary_color, #1e6fb8);
    border-color: var(--primary_color, #1e6fb8);
    color: #fff;
}

.pg-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.75rem 0 0.35rem;
    color: #374151;
}

.pg-money {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1.15rem;
    background: #fff;
    direction: ltr;
}

.pg-money span,
.pg-money strong {
    color: #6b7280;
    font-weight: 600;
}

.pg-money input {
    border: 0;
    outline: 0;
    width: 100%;
    padding: 0.4rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.pg-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary_color, #1e6fb8);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.pg-primary:hover {
    opacity: 0.92;
}

.pg-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pg-wide {
    width: 100%;
}

.pg-footnote {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0.9rem 0 0;
    text-align: center;
}

.pg-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
    text-align: center;
}

.pg-features > div {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.pg-overlay[hidden],
.pg-step[hidden],
.pg-error[hidden] {
    display: none !important;
}

.pg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000000000;
}

.pg-dialog-amount {
    max-width: 520px;
}

.pg-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

#donor_phone_container { 
    direction: ltr;
    text-align: left;
}

.pg-close {
    position: absolute;
    top: 0.9rem;
    inset-inline-end: 1rem;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
}

.pg-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0 1rem;
}

.pg-form input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    color: #111827;
    box-sizing: border-box;
}

.pg-form input:focus {
    outline: none;
    border-color: var(--primary_color, #1e6fb8);
}

.pg-rowform {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.pg-donorFields {
    margin-bottom: 1.1rem;
}

.pg-row2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.pg-phoneWrap .phone_container {
    width: 100%;
    display: flex;
    align-items: stretch;
}

.pg-phoneWrap .country_code {
    z-index: 20;
    border-radius: 8px 0 0 8px;
}

.pg-phoneWrap .niceCountryInputMenu {
    height: 41px;
    padding-inline: 4px;
    border-color: #d1d5db;
    border-radius: 8px 0 0 8px;
}

.pg-phoneWrap .niceCountryInputMenuDefaultText {
    width: auto;
    padding: 0 4px;
}

.pg-phoneWrap .niceCountryInputMenuFilter input {
    width: calc(100% - 10px);
    margin: 5px;
    padding: 5px;
}

.pg-phoneWrap .phone_number_container {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.pg-phoneWrap .phone_number_container input.phone_number {
    width: 100% !important;
    height: 41px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.niceCountryInputMenu,.country_code{
    height:100% !important
}

.pg-error {
    color: #b91c1c;
    background: #fee2e2;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0.85rem;
}

.pg-statusIcon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pg-statusIcon.bad {
    background: #fee2e2;
    color: #b91c1c;
}

.pg-resultList {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
}

.pg-resultList > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}

.pg-resultList > div:last-child {
    border-bottom: 0;
}

.pg-resultList dt {
    color: #6b7280;
    font-weight: 600;
    margin: 0;
}

.pg-resultList dd {
    color: #111827;
    font-weight: 600;
    margin: 0;
    text-align: end;
    word-break: break-all;
}

#card,
#expMonth,
#expYear,
#cvv,
#donorEmail,
#resultTransaction,
#resultCard {
    direction: ltr;
}

@media (max-width: 576px) {
    .pg-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    .pg-features,
    .pg-rowform,
    .pg-row2 {
        grid-template-columns: 1fr;
    }
}

