.ah-order-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: inherit;
}

.ah-order-popup.is-visible {
    display: flex;
}

.ah-order-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.ah-order-popup__content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 480px;
    width: 100%;
    padding: 0;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.ah-order-popup__close {
    position: absolute;
    right: 16px;
    top: 16px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ah-order-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.ah-order-popup__service-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}
.ah-order-delivery_note {
    margin: 12px 0 18px;
}

.ah-order-popup_delivery_note{
    color: #ff6c00;
    font-style: italic;
    text-align: right;
}

.ah-order-popup__service-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--e-global-color-primary);
    white-space: nowrap;
}
.ah-order-popup__service-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    align-items: flex-end;
}

.ah-order-popup__service-quantity {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}
.ah-order-form__field input {
    border: 1px solid #ccc;
}
.ah-order-form__field input:focus, .ah-order-form__field textarea:focus {
    outline: none;
    box-shadow: 0px 0px 2px var(--e-global-color-primary);
}
.ah-order-popup__form-heading {
    margin: 0 0 24px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.ah-order-form__field {
    margin-bottom: 16px;
}

.ah-order-form__field label {
    display: block;
    font-weight: 400;
    margin-bottom: 6px;
    font-size: 18px;
}
button.ah-order-popup__close svg {
    width: 24px;
}

.ah-order-form__field input,
.ah-order-form__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db !important;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    height: 44px;
    line-height: 1.2em;
}
.ah-order-form__field textarea {
    height: auto;
}
.ah-order-form__actions button {
    background: var(--e-global-color-primary);
    color: #fff;
    border: 0;
    padding: 11px 25px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    min-width: 150px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3)
}
.ah-order-form__actions button svg {
    width: 22px;
    transition: .4s;
}
.ah-order-form__actions button:hover svg {
    transform: translateX(3px);
}
.ah-order-form__field textarea {
    resize: vertical;
}

.ah-order-form__required {
    color: #dc2626;
    margin-left: 4px;
}

.ah-order-form__error {
    margin: 6px 0 0;
    font-size: 13px;
    color: #b91c1c;
    min-height: 0;
}

.ah-order-form__actions {
    margin-top: 20px;
    text-align: right;
}

.ah-order-form__response {
    margin-top: 16px;
    font-size: 14px;
}

.ah-order-form__response--error {
    color: #b91c1c;
}

.ah-order-form__response--success {
    color: #15803d;
}

.ah-order-form__success {
    display: none;
    text-align: center;
}

.ah-order-form__success.is-visible {
    display: block;
    margin-bottom: 25px;
}

.ah-order-form__success-content p {
    margin: 0 0 12px;
}

.ah-order-form--hidden {
    display: none !important;
}

.ah-order-form__loader {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 20;
    max-width: 520px;
    width: 100%;
    margin: 30px auto;
    border-radius: 15px;
}

.ah-order-form__loader.is-visible {
    display: flex;
}

.ah-order-form__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--e-global-color-primary, #2563eb);
    border-radius: 50%;
    animation: ah-order-spinner 0.8s linear infinite;
}

@keyframes ah-order-spinner {
    to { transform: rotate(360deg); }
}

html.ah-order-popup-open,
body.ah-order-popup-open {
    overflow: hidden;
}

body.ah-order-popup-open {
    position: fixed;
    width: 100%;
}
.cod-badge {
    display: inline-flex;
    align-items: center;
    background-color: #e6f7ee;
    color: #0e7c57;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin: 15px 0 0;
}
.cod-badge svg {
    width: 20px;
    margin-right: 6px;
}
.trust-icons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 33%;
    font-size: 14px;
}
.trust-item svg {
    width: 25px;
    color: var(--e-global-color-primary);
}
.support-line a {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
}
.support-line svg {
    width: 16px;
    color: var(--e-global-color-primary);
}
.product-box {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}
.ah-order-header {
    padding: 15px;
    text-align: center;
}
.product-image img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: contain;
    margin-right: 15px;
    display: block;
}
.product-details {
    display: flex;
    margin-left: 15px;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}
.ah-footer-text {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
}
.product-name {
    line-height: 1.2em;
    font-size: 16px;
    font-weight: 600;
}
.ah-order-header h3 {
    text-align: center;
    margin: 0;
    color: var(--e-global-color-primary);
    text-transform: capitalize;
    font-weight: 700;
    font-size: 24px;
}
.delivery-info {
    background-color: #eff6ff;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--e-global-color-primary);
    text-align: center;
}
.delivery-info p {
    margin: 0;
    font-weight: 500;
}

form#ah-order-form {
    padding: 20px 20px 15px;
}

button.ah-order-popup__close {
    border-radius: 30px;
    color: #999;
    border-color: #ddd;
    width: 35px;
    height: 35px;
    padding: 0;
    margin-top: -6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    background-color: transparent;
}
button.ah-order-popup__close:hover {
    background-color: #000 !important;
}
.service-bottom-order-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: space-between;
    padding: 15px;
    box-shadow: 0px -1px 3px -1px #ddd;
    border-radius: 15px 15px 0 0;
    position: fixed;
    bottom: -100px;
    left: 0;
    background: #fff;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    visibility: hidden;
    opacity: 0;
    z-index: 30;
    pointer-events: none;
}

.service-bottom-order-bar.is-visible {
    bottom: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 40;
}

.srv_btn .service-action-wrapper {
    margin: 0;
}

.srv_btn .service-action-wrapper {
    display: block;
}

.srv-lft-content h4.service-post-title {
    font-size: 18px;
    margin-bottom: 4px;
}

.srv-lft-content .service-price {
    font-weight: bold;
    font-size: 20px;
    color: var(--e-global-color-primary);
}
.srv-lft-content span.service-price__original {
    display: none;
}
.srv_btn .service-action-wrapper .button-buy-now {
    border-radius: 12px;
    min-width: 140px;
}

@media (max-width: 767px){
    .ah-order-popup {
        align-items: flex-start;
        padding: 0;
    }
    .ah-order-popup__content{
        border-radius: 0;
        max-height: 100vh;
        height: 100%;
    }
    .ah-order-header {
        padding: 25px 15px 15px;
        padding-bottom: 0;
    }
}
