.ph-widget,
.ph-listing,
.ph-unavailable,
.ph-back-to-grid {
    box-sizing: border-box;
}

.ph-widget *,
.ph-widget *::before,
.ph-widget *::after {
    box-sizing: border-box;
}

.ph-widget .hidden {
    display: none !important;
}

.ph-widget .ph-step.is-visible {
    display: block;
}

.ph-widget-card {
    overflow: hidden;
}

.ph-widget button {
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.ph-widget .ph-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.ph-widget .ph-progress-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ph-widget .ph-progress-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: width 0.2s ease, background 0.2s ease;
}

.ph-widget .ph-progress-dot.is-done {
    background: #34d399;
}

.ph-widget .ph-progress-dot.is-active {
    width: 18px;
    background: #10b981;
}

.ph-widget .ph-progress-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ph-widget .ph-amount-kicker {
    margin: 0 0 14px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.ph-widget .ph-method-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 18px;
}

.ph-widget .ph-method-grid p,
.ph-widget .ph-method-grid br {
    display: contents !important;
}

.ph-widget .ph-method-btn {
    display: flex !important;
    flex: 1 1 158px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    min-width: min(100%, 158px);
    margin: 0;
    padding: 16px 12px 14px;
    background: #fff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 20px;
    box-shadow: none;
    color: inherit;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ph-widget .ph-method-btn:hover,
.ph-widget .ph-method-btn:focus {
    border-color: #6ee7b7 !important;
    background: #f0fdf4 !important;
    outline: none;
}

.ph-widget .ph-method-btn.is-active {
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.ph-widget .ph-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    padding: 12px;
    border-radius: 22px;
    background: #f8fafc;
    overflow: hidden;
}

.ph-widget .ph-method-btn.is-active .ph-method-icon {
    background: #fff;
}

.ph-widget .ph-method-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ph-widget .ph-method-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.ph-widget .ph-method-hint {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
}

.ph-widget .ph-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-radius: 16px;
    background: #6ee7b7 !important;
    color: #022c22 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.ph-widget .ph-btn:hover,
.ph-widget .ph-btn:focus {
    background: #34d399 !important;
    outline: none;
}

.ph-widget .ph-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.ph-widget .ph-btn-back {
    display: block;
    width: 100%;
    margin: 8px 0 0;
    padding: 10px;
    border: 0;
    background: transparent !important;
    color: #64748b !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ph-widget .ph-amount-input {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    text-align: center;
    font-size: clamp(2.25rem, 12vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
}

.ph-amount-input::placeholder {
    color: #cbd5e1;
}

.ph-amount-input:focus {
    outline: none;
    box-shadow: none;
}

.ph-widget .ph-amount-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.ph-widget .ph-pill {
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px;
    background: #fff !important;
    color: #334155 !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ph-widget .ph-pill:hover,
.ph-widget .ph-pill.is-active {
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
    color: #047857 !important;
}

.ph-widget .ph-field input {
    display: block;
    width: 100%;
    max-width: 100%;
}

.ph-listing-card,
.ph-listing-card:hover,
.ph-listing-card:focus {
    text-decoration: none;
    color: inherit;
}

.ph-listing-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: 14px 48px;
    border-radius: 16px;
    background: #6ee7b7;
    color: #022c22;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.01em;
    box-sizing: border-box;
}

.ph-listing-card:hover .ph-listing-cta,
.ph-listing-card:focus .ph-listing-cta {
    background: #34d399;
    color: #022c22;
}

.ph-listing-cta-label {
    display: block;
    text-align: center;
}

.ph-listing-cta-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}

@media (max-width: 420px) {
    .ph-widget-card {
        padding: 16px !important;
        border-radius: 18px !important;
    }

    .ph-widget .ph-method-btn {
        flex-basis: 100%;
        min-width: 100%;
        padding: 18px 12px 16px;
    }

    .ph-widget .ph-method-icon {
        width: 96px;
        height: 96px;
        border-radius: 24px;
        padding: 14px;
    }
}
