.btn-paypal-express {
    background-color: #ffc439;
    border-color: #ffc439;
    color: #111;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-paypal-express:hover,
.btn-paypal-express:focus {
    background-color: #f2ba36;
    border-color: #f2ba36;
    color: #111;
}

.paypal-express-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.paypal-express-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.paypal-express-modal__dialog {
    position: relative;
    width: 90%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.paypal-express-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 0;
    /*font-size: 26px;*/
    line-height: 1;
    padding: 10px 15px;
}

.paypal-express-modal__body {
    padding: 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.paypal-express-modal__spinner {
    display: none;
}

.paypal-express-placeholder {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.paypal-express-placeholder__meta {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.paypal-express-loading {
    text-align: center;
    padding: 25px 15px;
    color: #333;
}

.paypal-express-loading__spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #c2c8d0;
    border-top-color: #0070ba;
    display: inline-block;
    animation: paypal-express-spin 0.9s linear infinite;
    margin-bottom: 10px;
}

@keyframes paypal-express-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.paypal-express-summary {
    font-size: 14px;
}

.paypal-express-summary h2 {
    margin-top: 0;
    font-size: 18px;
}

.paypal-express-items,
.paypal-express-totals {
    list-style: none;
    margin: 0 0 15px;
    padding: 0;
}

.paypal-express-items li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f2f2f2;
}

.paypal-express-items__title {
    flex: 1;
}

.paypal-express-items__qty {
    color: #666;
}

.paypal-express-items__price {
    font-weight: 600;
}

.paypal-express-summary__carrier,
.paypal-express-summary__coupon,
.paypal-express-summary__payee,
.paypal-express-summary__secure {
    font-size: 13px;
    color: #555;
    margin: 5px 0;
}

.paypal-express-totals__row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-weight: 500;
}

.paypal-express-totals__row--highlight {
    font-size: 16px;
    font-weight: 700;
    border-top: 1px solid #e3e6eb;
    margin-top: 6px;
    padding-top: 10px;
}

.paypal-express-summary__cta {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.paypal-express-summary__cta #paypal-express-sdk-button {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.paypal-express-summary__cta #paypal-express-sdk-button iframe {
    max-width: 100% !important;
}

.paypal-express-error {
    text-align: center;
    padding: 20px;
}

.paypal-express-error p {
    color: #b12704;
    margin-bottom: 15px;
}
