#amwal-logo {
    width: auto !important;
    height: 24px !important;
    margin-inline-start: auto !important;
    float: right !important;
    padding-top: 6px !important;
}
html[lang="en"] #amwal-logo {
             float: right !important;
        }
html[lang="ar"] #amwal-logo {
    float: left !important;
}

.payment_method_amwal label {
    flex-grow: 1 !important;
    align-items: end !important;
}

li.payment_method_amwal div.payment_method_amwal {
    flex-wrap: wrap !important;
}

/* firefox */
@-moz-document url-prefix() {
    #amwal-logo {
        margin-left: auto !important;
    }
}

/* error-message */
.error-message {
    position: fixed;
    top: 50px;
    /* Increased padding from top */
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    animation: slideIn 0.5s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.error-message p {
    margin: 0;
    flex-grow: 1;
}

.error-message .close-error {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.error-message .close-error:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Container for Express Checkout */
.express-checkout-container {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: left;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
    max-width: 900px;
    margin: 20px auto;
}

/* Title with line separators */
.express-checkout-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-weight: bold;
    margin-bottom: 12px;
}

.express-checkout-title::before,
.express-checkout-title::after {
    content: "";
    flex: 1;
    border-top: 1px solid #ddd;
}

.express-checkout-title span {
    margin: 0 8px;
    font-size: 14px;
    color: #333;
}

/* Button row */
.express-checkout-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Apple Pay button */
#apple_pay_button {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #000; */
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', sans-serif;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    max-width: 240px;
    height: 50px;
    transition: background 0.2s ease;
}

#apple_pay_button:hover {
    background: #333;
}

/* Divider under button */
.express-checkout-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #555;
    margin-top: 12px;
    font-size: 14px;
    width: 100%;
}

.express-checkout-divider::before,
.express-checkout-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #ddd;
}

.express-checkout-divider span {
    margin: 0 8px;
    white-space: nowrap;
}

/* Loader */

#amwal-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.17);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    cursor: wait;
    pointer-events: all; 
	touch-action: none;
}

#amwal-applepay-after-placeorder {
  display: flex;
  justify-content: center;
}

#place_order_apple_pay_button {
     width: fit-content;
  	margin: 0 auto;
}
