.fapx-ffl-module {
    border: 1px solid #ddd;
    padding: 16px;
    margin: 0 0 20px;
    background: #fff;
}

.fapx-ffl-title {
    margin: 0 0 12px;
    color: #333;
}

.fapx-ffl-feedback {
    margin: 0 0 10px;
    font-size: 14px;
}

.fapx-ffl-feedback.is-error {
    color: #b00020;
}

.fapx-ffl-controls {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.fapx-ffl-controls label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.fapx-ffl-controls input,
.fapx-ffl-controls select {
    width: 100%;
}

.fapx-ffl-module .fancy-select-wrap {
    padding-top: 0 !important;
}

.fapx-ffl-module input.fapx-ffl-zip,
.fapx-ffl-module select.fapx-ffl-radius,
.fapx-ffl-module .select2-selection,
.fapx-ffl-module .fapx-ffl-search-btn {
    height: 42px !important;
    min-height: 42px !important;
}

.fapx-ffl-module .select2-container--default .select2-selection--single {
    height: 42px !important;
    display: flex;
    align-items: center;
}

.fapx-ffl-module .select2-selection__rendered {
    line-height: 42px !important;
}

.fapx-ffl-module .select2-selection__arrow {
    height: 42px !important;
}

.fapx-ffl-module .fapx-ffl-search-btn {
    align-self: flex-end;
    padding-top: 0;
    padding-bottom: 0;
}

.fapx-ffl-module .fapx-ffl-search {
    margin-bottom: 20px;
}

.fapx-ffl-results {
    list-style: none;
    margin: 12px 0;
    padding: 0;
    border: 1px solid #eee;
    max-height: 280px;
    overflow-y: auto;
}

.fapx-ffl-result-item {
    border-bottom: 1px solid #eee;
    padding: 10px;
}

.fapx-ffl-result-item:last-child {
    border-bottom: 0;
}

.fapx-ffl-result-item label {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    row-gap: 2px;
    align-items: center;
}

.fapx-ffl-result-item input[type="radio"] {
    padding: 0;
    margin: 0;
}

.fapx-ffl-result-name {
    display: block;
    font-weight: 600;
    color: #333;
}

.fapx-ffl-result-title {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 2;
}

.fapx-ffl-result-map {
    font-size: 12px;
    text-decoration: underline;
}

.fapx-ffl-result-meta {
    display: grid;
    gap: 0;
    font-size: 13px;
    margin-top: 0;
    grid-column: 2;
}

.fapx-ffl-result-meta span {
    line-height: 1em;
}

.fapx-ffl-module .fapx-ffl-selected p {
    margin: 0 0 6px;
    margin-bottom: 0;
    line-height: 1em;
    padding-bottom: 0 !important;
}

.fapx-ffl-details {
    margin-top: 0;
}

.fapx-ffl-details .woocommerce-order-details__title {
    margin: 0 0 6px;
}

.fapx-ffl-details p {
    margin: 0 0 4px;
    line-height: 1.2;
    padding-bottom: 0 !important;
}

.woocommerce-order-details.fapx-ffl-details p {
    padding-bottom: 0 !important;
    padding: 0 !important;
}

.fapx-ffl-details p:last-child {
    margin-bottom: 0;
}

/* Cart "Proceed to Checkout" button to match catalog buttons */
.wc-block-cart__submit-container .wc-block-cart__submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 14px;
    background: #d6a436;
    color: #fff;
    border: none;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button:hover {
    background: #c9962f;
    color: #fff;
}

.wc-block-components-checkout-place-order-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 14px;
    background: #d6a436;
    color: #fff;
    border: none;
}

.wc-block-components-checkout-place-order-button:hover {
    background: #c9962f;
    color: #fff;
}

/* Add "(ammo only)" to the Shipping address heading on block checkout */
.fapx-ammo-only .wc-block-checkout__shipping-address .wc-block-components-title:after,
.fapx-ammo-only .wc-block-components-shipping-address .wc-block-components-title:after,
.fapx-ammo-only .wc-block-checkout__shipping-fields .wc-block-components-title:after {
    content: " (ammo only)";
    font-weight: normal;
    opacity: 0.8;
    font-size: 0.9em;
}

.fapx-mixed-cart .wc-block-checkout__shipping-address .wc-block-components-title:after,
.fapx-mixed-cart .wc-block-components-shipping-address .wc-block-components-title:after,
.fapx-mixed-cart .wc-block-checkout__shipping-fields .wc-block-components-title:after {
    content: " (ammo delivery)";
    font-weight: normal;
    opacity: 0.8;
    font-size: 0.9em;
}
