/* ---- Step 3 Layout: Dynamic upsell products ---- */

/* Upsell container — centered flex row */
.awtgr-upsell-col {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2em;
    position: relative;
    width: 100%;
}

/* Action buttons below upsells — aligned right */
.awtgr-step-3-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1em;
    margin-top: 1.5em;
    width: 100%;
}

/* Hide "Vorige" button — navigation is handled by step indicators */
.awtgr-step-3-actions #awtgr-back-to-step-2 {
    display: none;
}

@media (max-width: 1024px) {
	.awtgr-upsell-block{
		height: 100%;
	}
}
@media (max-width: 768px) {
    /* Match step 2 mobile layout: block container, full-width cards */
    .awtgr-upsell-col {
        display: block;
        position: relative;
    }

    .awtgr-upsell-block {
        width: 100%;
        display: block;
        position: relative;
        padding: 14px;
        margin-bottom: 10px;
    }

    .awtgr-upsell-block img {
        max-width: 60px !important;
    }

    .awtgr-upsell-title strong {
        font-size: 18px;
        line-height: 20px;
    }

    .awtgr-upsell-card label {
        padding: 10px 12px;
        font-size: 14px;
    }

    .awtgr-step-3-actions {
        flex-direction: column;
    }

    .awtgr-step-3-actions .awtgr-btn {
        width: 100%;
    }
}

.awtgr-upsell-block {
    padding: 20px;
    background-color: #fff;
    color: #59595c;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.awtgr-upsell-block h4 {
    margin-bottom: 5px;
    font-size: 24px;
    line-height: 24px;
    color: #6ab52e;
}

.awtgr-summary-col {
    display: none;
}

.awtgr-summary-block {
    padding: 20px;
    background-color: #8bbb64;
    color: #fff;
    border-radius: 4px;
}

/* Hide summary heading and table, keep add-to-cart button visible */
.awtgr-summary-block h4,
.awtgr-summary-block .awtgr-summary-table {
    display: none;
}

body div .awtgr-summary-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    font-size: 16px;
    line-height: 1em;
    background: transparent;
    background-color: transparent !important;
}

body div .awtgr-summary-table tr {
    border: none;
    background: transparent;
    background-color: transparent !important;
}

body div .awtgr-summary-table td,
body div .awtgr-summary-table th {
    padding: 8px 6px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid #6d9925;
    line-height: 1em;
    vertical-align: baseline;
    background: transparent;
    background-color: transparent !important;
}

body div .awtgr-summary-table tr td:first-child {
    color: #235305;
    font-size: 13px;
    line-height: 1em;
}

body div .awtgr-summary-table strong {
    font-weight: 400;
    line-height: 1em;
    border: none;
}

body div .awtgr-summary-table #awtgr-price-total-display {
    font-weight: 600;
    font-size: 22px;
    line-height: 1em;
    border: none;
}

body div .awtgr-summary-block button[type="submit"].awtgr-btn,
body div .awtgr-summary-block .awtgr-btn {
    width: 100%;
    max-width: 100%;
}

@media (max-width:900px) {
    .awtgr-summary-col {
        width: 100%;
        min-width: unset;
    }
}

/**
 * Step 3 Specific Styles - Upsell Products and Calculation
 * Main styles are in awtgr-public.css
 */

/* Summary Grid */
.awtgr-summary-section h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.awtgr-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Upsell Products */
.awtgr-upsell-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.awtgr-upsell-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

/* Push price and button to the bottom of the card */
.awtgr-upsell-card .awtgr-upsell-price {
    margin-top: auto;
}


.awtgr-upsell-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #fff;
    line-height: 1em;
}

.awtgr-upsell-card label {
    line-height: 1;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-weight: bold;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #53982B;
    background-color: #53982B;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.awtgr-upsell-card label:hover {
    background-color: #235305;
    border-color: #235305;
}

.awtgr-upsell-title strong {
    margin-bottom: 5px;
    font-size: 24px;
    line-height: 24px;
    color: #6ab52e;
    font-weight: 600;
}

.awtgr-upsell-content {
    flex: 1;
}

.awtgr-upsell-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.awtgr-upsell-description {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.awtgr-upsell-price {
    font-size: 13px;
}

/* Calculation Preview */
.awtgr-calculation-preview {
    margin: 20px 0;
}

.awtgr-calculation-preview h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.awtgr-price-summary {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 16px;
}

.awtgr-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #fff;
}

.awtgr-price-item span:last-child {
    font-weight: 700;
}

.awtgr-price-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 8px 0;
}

.awtgr-price-total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 8px;
}

.awtgr-vat-notice {
    margin-top: 8px;
    text-align: right;
}

.awtgr-vat-notice small {
    font-size: 11px;
    opacity: 0.8;
}