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

html {
    direction: rtl;
}

body {
    overflow: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
    direction: rtl;
}

* {
    font-family: "Greta Arabic";
}

.wpwl-form,
.wpwl-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.wpwl-form-card {
    border: 0;
}

.wpwl-clearfix:after {
    clear: none;
}

.wpwl-label-brand,
.wpwl-wrapper-brand {
    display: none !important;
}

.wpwl-group-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.wpwl-brand,
.wpwl-img {
    display: block;
    margin: 0;
}

.wpwl-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    float: none;
    clear: both;
}

.wpwl-label {
    display: block;
    width: 100%;
    margin: 0 0 8px 0;
    padding: 0;
    float: none;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.wpwl-wrapper,
.wpwl-wrapper-cardNumber,
.wpwl-wrapper-expiry,
.wpwl-wrapper-cardHolder,
.wpwl-wrapper-cvv {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.wpwl-control,
input.wpwl-control,
select.wpwl-control,
.wpwl-wrapper iframe,
.wpwl-control-cardNumber,
.wpwl-control-expiry,
.wpwl-control-cardHolder,
.wpwl-control-cvv {
    width: 100% !important;
    max-width: 100% !important;
    height: 50px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
    font-family: "ff-good-headline-web-pro-con", "Pathway Gothic One", sans-serif;
    text-transform: none;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 16px;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
}

.wpwl-control-cardNumber,
.wpwl-control-expiry,
input.wpwl-control-cardNumber,
input.wpwl-control-expiry {
    direction: ltr;
    text-align: left;
}

.wpwl-button-pay {
    border-radius: 16px;
    background: rgba(25, 105, 86, 1);
    border: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    height: 50px;
    width: 100%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.wpwl-hint {
    text-align: right;
    width: 100%;
    margin-top: 6px;
}

body:has(.wpwl-form-card) {
    overflow: auto;
}

apple-pay-button {
    width: 100%;
    max-width: 100%;
    height: auto;
    --apple-pay-button-height: 48px;
    --apple-pay-button-border-radius: 8px;
    --apple-pay-button-padding: 0;
    --apple-pay-button-box-sizing: border-box;
}

html.o_hyperpay_standalone {
    height: 100%;
}

body.o_hyperpay_standalone {
    min-height: 100vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f5f7f6;
}

body.o_hyperpay_standalone .wpwl-form,
body.o_hyperpay_standalone .wpwl-container,
body.o_hyperpay_standalone form.paymentWidgets {
    max-width: 420px;
    margin: 0 auto;
}

body.o_hyperpay_standalone apple-pay-button {
    --apple-pay-button-height: 56px;
    --apple-pay-button-border-radius: 12px;
    width: 100%;
    max-width: 360px;
    height: 56px;
    margin: 0 auto;
    display: block;
}

@media (max-width: 480px) {
    .wpwl-control,
    input.wpwl-control,
    select.wpwl-control {
        font-size: 15px;
        height: 46px;
        padding: 8px 12px;
    }

    .wpwl-label {
        font-size: 13px;
    }

    .wpwl-group {
        margin-bottom: 12px;
    }

    body.o_hyperpay_standalone {
        padding: 16px;
    }
}
