/**
 * PrestaShop module created by VEKIA – modified for AgroKrajna.
 */

#send_AAP_form {
    max-width: 620px;
}

#send_AAP_form .product {
    text-align: center;
    border-bottom: 1px solid #cecece;
    margin-bottom: 10px;
    padding-bottom: 6px;
}

#send_AAP_form .product img {
    width: 140px;
    height: auto;
}

#send_AAP_form .product_name {
    margin: 6px 0 4px;
}

#send_AAP_form .aap-heading {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 4px 0 8px;
}

/* mode switching */
#send_AAP_form.aap-mode-order .aap-only-question,
#send_AAP_form.aap-mode-question .aap-only-order {
    display: none !important;
}

#send_AAP_form .aap-disclaimer {
    background: #f1f8e9;
    border-left: 4px solid #2e7d32;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #333;
}

#send_AAP_form .aap-date {
    font-size: 14px;
    margin: 0 0 8px;
}

#send_AAP_form textarea {
    height: 110px;
    resize: vertical;
}

#send_AAP_form .aap-qty {
    max-width: 110px;
}

#send_AAP_form .aap-min-qty {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 3px;
}

#send_AAP_form .aap-req {
    color: #c62828;
}

#send_AAP_form .aap-opt {
    font-weight: normal;
    color: #888;
    font-size: 12px;
}

#send_AAP_form .aap-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#send_AAP_form .gdpr_disabled {
    opacity: .5;
    cursor: not-allowed !important;
}

#send_AAP_form .aap-sending {
    opacity: .6;
    cursor: wait !important;
}

#send_AAP_form .aap-gdpr {
    font-weight: normal;
    margin-right: 10px;
}

.send_AAP_form_content_button {
    border-top: 1px solid #cecece;
    padding-top: 15px;
    margin-top: 10px;
    display: block;
    clear: both;
}

.send_AAP_form_content_button .submit {
    text-align: right;
    margin: 0;
}

#send_AAP_form .aap-submit {
    font-size: 15px;
    padding: 8px 18px;
}

#send_AAP_form .aap-gdpr-missing {
    color: #c62828;
    outline: 2px solid #c62828;
    outline-offset: 3px;
    border-radius: 3px;
}

#send_AAP_form .aap-gdpr-info {
    font-size: 12px;
    color: #777;
    margin-right: 10px;
}

/* ---------- phones ---------- */
@media (max-width: 767px) {
    #send_AAP_form {
        max-width: none;
        width: calc(100vw - 28px);
    }
    #send_AAP_form .card-block {
        display: flex;
        flex-direction: column;
    }
    #send_AAP_form .card-block > div {
        width: 100%;
        float: none;
        padding-left: 4px;
        padding-right: 4px;
    }
    /* product header: small thumbnail + name in one row */
    #send_AAP_form .product {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        gap: 10px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    #send_AAP_form .aap-heading {
        flex-basis: 100%;
        font-size: 18px;
        margin: 0 0 4px;
        text-align: center;
    }
    #send_AAP_form .product img {
        width: 64px;
        height: 64px;
        object-fit: contain;
        flex: 0 0 64px;
    }
    #send_AAP_form .product_desc {
        flex: 1;
    }
    #send_AAP_form .product_name {
        font-size: 13px;
        margin: 0;
    }
    #send_AAP_form .aap-date {
        font-size: 13px;
        margin-bottom: 6px;
    }
    #send_AAP_form .aap-disclaimer {
        font-size: 12px;
        padding: 8px 10px;
        margin-bottom: 8px;
    }
    /* contact fields first (phone is what we need), quantity + notes after */
    #send_AAP_form #send_AAP_form_content { order: 3; }
    #send_AAP_form .card-block > .col-lg-6:not(#send_AAP_form_content) { order: 4; }
    #send_AAP_form .send_AAP_form_content_button { order: 5; }
    #send_AAP_form #send_AAP_form_error { order: 2; }
    #send_AAP_form .form-group {
        margin-bottom: 8px;
    }
    /* 16px stops iOS from zooming into inputs */
    #send_AAP_form input.form-control,
    #send_AAP_form textarea {
        font-size: 16px;
    }
    #send_AAP_form textarea {
        height: 64px;
    }
    .send_AAP_form_content_button {
        padding-top: 10px;
        margin-top: 4px;
    }
    .send_AAP_form_content_button .submit {
        text-align: left;
    }
    #send_AAP_form .aap-submit {
        display: block;
        width: 100%;
        margin-top: 10px;
        padding: 12px;
        font-size: 16px;
    }
}

/* Theme button in the availability block (product.tpl) */
.aap-order-hint {
    display: block;
    margin-top: 6px;
    color: #777;
    font-size: 12px;
}
