/* Details */

.abo-interval-container {
    padding-left: 20px;
    padding-top: 10px;
}

#gn2_abo_interval_notes ul.checklist {
    width: auto;
    float: right;
    margin-bottom: 0;
}

#gn2_abo_interval_notes ul.checklist li:last-child {
    margin-bottom: 0;
}

/* Kundenaccount */

.abo-level-bar { display: none; }

.gn2_abo_change_payment {
    font-size: .9rem;
}

.gn2_abo_change_address_modal .modal-header,
.gn2_abo_change_address_modal .modal-body,
.gn2_abo_change_address_modal.modal-footer,
.gn2_abo_add_once_article_modal .modal-body,
.gn2_abo_add_article_modal .modal-body {
    background: #f9f9f9;
}

.gn2_abo_change_address_modal .modal-header {
    padding-bottom: 10px;
}

.gn2_abo_resume_modal .modal-dialog,
.gn2_abo_change_interval_modal .modal-dialog,
.gn2_abo_change_delivery_modal .modal-dialog,
.gn2_abo_change_article_modal .modal-dialog,
.gn2_abo_add_voucher_modal .modal-dialog,
.gn2_abo_postpone_modal .modal-dialog {
    max-width: 500px !important;
    padding: 0 .5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.gn2_abo_change_address_modal .modal-dialog,
.gn2_abo_add_once_article_modal .modal-dialog,
.gn2_abo_add_article_modal .modal-dialog {
    padding: 0 .5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* F011 - Wizard */
.gn2_abo_hide { display: none !important; }

.gn2_abo_wizard_head {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E5E5E5;
}

.gn2_abo_wizard_back.btn {
    padding: 0 15px 0 0;
    color: #646363;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
}

.gn2_abo_wizard_back.btn:hover {
    color: #295b35;
}

.gn2_abo_wizard_head_title {
    margin-left: auto;
    text-align: right;
    font-size: 1rem;
    font-weight: 700;
    color: #547351;
}

.gn2_abo_wizard_desc {
    margin-bottom: 20px;
}

.gn2_abo_wizard_prompt {
    font-size: 1rem;
    font-weight: 700;
    color: #646363;
    margin-bottom: 12px;
}

/* Step 1 - species tiles */
.gn2_abo_species_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.gn2_abo_species_card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #E5E5E5;
    /*border-radius: 8px;*/
    background: #ffffff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.gn2_abo_species_card:hover,
.gn2_abo_species_card:focus {
    /*border-color: #547351;*/
    border-color: #D57A5B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    outline: none;
}

.gn2_abo_species_card_label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #646363;
}

.gn2_abo_species_card:hover .gn2_abo_species_card_label,
.gn2_abo_species_card:focus .gn2_abo_species_card_label {
    color: #547351;
}

/* Step 2 - live search */
.gn2_abo_article_search_wrap {
    position: relative;
    margin-bottom: 18px;
}

.gn2_abo_article_search_icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #646363;
    pointer-events: none;
}

/* compound selector (.x.form-control) to beat Bootstrap's .form-control padding shorthand regardless of load order */
.gn2_abo_article_search.form-control {
    padding-left: 34px;
}

/* Step 2 - category groups + card grid */
.gn2_abo_card_category {
    margin-bottom: 20px;
}

.gn2_abo_card_category_title {
    font-size: 1rem;
    font-weight: 700;
    color: #646363;
    padding-bottom: 6px;
    margin-bottom: 12px;
    border-bottom: 1px solid #E5E5E5;
}

.gn2_abo_card_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.gn2_abo_article_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #E5E5E5;
    /*border-radius: 8px;*/
    background: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.gn2_abo_article_card:hover,
.gn2_abo_article_card:focus {
    border-color: #D57A5B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    outline: none;
}

.gn2_abo_article_card_img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /*height: 90px;*/
    margin-bottom: 8px;
}

.gn2_abo_article_card_img img {
    max-width: 100%;
    /*max-height: 90px;*/
    object-fit: contain;
}

/* compound with .fa to beat Font Awesome's .fa `font` shorthand (which would reset font-size) */
.gn2_abo_article_card_noimg.fa {
    font-size: 2rem;
    color: #E5E5E5;
}

.gn2_abo_article_card_title {
    font-size: .8rem;
    line-height: 1.2rem;
    color: #333333;
}

.gn2_abo_article_search_empty {
    color: #646363;
    font-style: italic;
}

/* Step 3 - product image left of the variant selection (room thanks to the 800px desktop width) */
.gn2_abo_step3_body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.gn2_abo_step3_image {
    flex: 0 0 180px;
    max-width: 180px;
}

.gn2_abo_step3_image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #E5E5E5;
}

.gn2_abo_step3_content {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100px;
    /* default: top-aligned (most articles have variant/sortenmix dropdowns -> height changes while picking) */
    align-self: flex-start;
}

/* only the few articles without any selection (no variants, no sortenmix): align to the bottom edge of the image */
.gn2_abo_step3_content.gn2_abo_step3_bottom {
    align-self: flex-end;
}

/* hide the product image on mobile (the 800px widening only applies on desktop) */
@media (max-width: 767px) {
    .gn2_abo_step3_image {
        display: none;
    }

    .gn2_abo_step3_body {
        display: block;
    }
}

@media (max-width: 575px) {
    .gn2_abo_species_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gn2_abo_card_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /*
    .gn2-abo-article-variant {
        display: block;
        width: 100%;
    }
    */

    /*
    .gn2_abo_article_card_img {
        height: 80px;
    }

    .gn2_abo_article_card_img img {
        max-height: 80px;
    }
    */
}

@media (min-width: 400px) and (max-width: 575px) {
    .gn2_abo_add_article_variant label.col-12,
    .gn2_abo_add_article_premium label.col-12 {
        flex: 0 0 35%;
        max-width: 35%;
        padding-right: 0;
    }

    .gn2_abo_add_article_variant div.col-12,
    .gn2_abo_add_article_premium div.col-12 {
        flex: 0 0 65%;
        max-width: 65%;
    }
}

@media (max-width: 339px) {
    .gn2_abo_species_grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .gn2_abo_card_grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 8px;
    }
}

.gn2-abo-article-list {
    width: 100%;
}

.gn2-abo-article-variant-part {
    white-space: nowrap;
}

.gn2-abo-card hr {
    border-top-color: #cacaca;
}

.gn2-abo-card .gn2-abo-summary {
    max-width: 350px;
    margin-left: auto;
    margin-right: 0;
}

.gn2-abo-adding-controls .btn {
    text-align: left;
}

.gn2_abo_sortenmix_hint {
    max-width: 460px;
    margin-left: auto;
}

/* Adressformular */

@media (min-width: 768px) {


    .gn2_abo_change_address_modal .delStreet {
        -ms-flex: 0 0 38%;
        flex: 0 0 38%;
        max-width: 38%;
    }
    .gn2_abo_change_address_modal .delStreetNr {
        -ms-flex: 0 0 12%;
        flex: 0 0 12%;
        max-width: 12%;
    }
}

@media (max-width: 450px) {

    .gn2-abo-adding-controls .btn,
    .gn2_abo_actions .btn,
    .gn2-abo-card-head,
    .gn2-abo-summary,
    .gn2-abo-article-list,
    .gn2-abo-additional-info,
    .abo-level-bar .note {
        font-size: .85rem;
        line-height: 1.4rem;
    }

}

@media (max-width: 360px) {
    .gn2_abo_add_voucher_modal .modal-footer .btn-light {
        display: none;
    }

    /*
    .gn2-abo-adding-controls .btn,
    .gn2_abo_actions .btn,
    .gn2-abo-card-head,
    .gn2-abo-summary,
    .gn2-abo-article-list,
    .gn2-abo-additional-info,
    .abo-level-bar .note {
        font-size: .8rem;
        line-height: 1.3rem;
    }
    */
}

/* Function "Add to subscription" - Summary */

.cl-account_subscriptions .gn2_abo_article_summary .productPrice {
    margin-left: auto;
    margin-bottom: 5px;
    display: block;
    text-align: right;
}

.cl-account_subscriptions .gn2_abo_article_summary .productPrice .price {
    font-size: 22px;
    font-weight: 700;
    color: #295b35;
}

.cl-account_subscriptions .gn2_abo_article_summary .pricePerUnitSummary {
    display: block;
    font-size: .9em;
    color: #646363;
    text-align: right;
    margin-bottom: 0.5rem;
}

.cl-account_subscriptions .gn2_abo_article_summary .tobasketFunction .input-group {
    max-width: 250px; margin-left: auto;
}

.cl-account_subscriptions .gn2_abo_article_summary .details-vat-shipping-info .details-notes {
    font-size: .9em;
    color: #646363;
    margin: 5px 0;
}

.cl-account_subscriptions .gn2_abo_article_summary .details-vat-shipping-info .details-notes p {
    display: inline;
    white-space: nowrap;
    margin: 0 0 0 15px;
}