/**
 * EBMS Checkout Page Styles - NEUE VERSION
 */

.ebms-checkout-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Hauptprodukt */
.ebms-checkout-product {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.ebms-checkout-product h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    color: #333;
}

.ebms-product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ebms-product-price {
    font-size: 32px;
    font-weight: bold;
    /* color wird dynamisch gesetzt */
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ebms-price-label {
    font-size: 18px;
    color: #666;
    font-weight: normal;
}

.ebms-price-interval {
    font-size: 18px;
    color: #666;
    font-weight: normal;
}

/* Orderbumps Section */
.ebms-orderbumps-section {
    margin-bottom: 30px;
}

.ebms-orderbumps-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

/* NEUES ORDERBUMP LAYOUT */
.ebms-orderbump-item {
    background: #fff;
    border: 3px solid #ff6900;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.ebms-orderbump-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 0, 0.15);
}

.ebms-orderbump-item.selected {
    border-width: 4px;
    box-shadow: 0 8px 25px rgba(255, 105, 0, 0.25);
}

/* Badge */
.ebms-orderbump-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6900;
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(255, 105, 0, 0.3);
    z-index: 10;
}

/* Bild - 100% Breite */
.ebms-orderbump-image {
    width: 100%;
    margin: 0;
    padding: 0;
}

.ebms-orderbump-image img {
    width: 100%;
    max-height: 250px;
    display: block;
    border-radius: 0;
}

/* Content-Bereich - Linksbündig */
.ebms-orderbump-content {
    padding: 25px;
    text-align: left;
}

.ebms-orderbump-details {
    width: 100%;
}

.ebms-orderbump-headline {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
    text-align: left;
}

.ebms-orderbump-subheadline {
    font-size: 16px;
    color: #ff6900;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: left;
}

.ebms-orderbump-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

.ebms-orderbump-description p {
    margin-bottom: 10px;
}

.ebms-orderbump-description p:last-child {
    margin-bottom: 0;
}

/* Pricing - Linksbündig */
.ebms-orderbump-pricing {
    margin-bottom: 20px;
    text-align: left;
}

.ebms-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
    margin-bottom: 5px;
}

.ebms-orderbump-price {
    font-size: 24px;
    font-weight: bold;
    /* color wird dynamisch gesetzt */
}

.ebms-orderbump-price-display {
    font-size: 24px;
    font-weight: bold;
    /* color wird dynamisch gesetzt */
}

/* Checkbox unten */
.ebms-orderbump-checkbox {
    padding: 20px 25px;
    background: rgba(255, 105, 0, 0.05);
    border-top: 1px solid rgba(255, 105, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.ebms-orderbump-check {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff6900;
    margin: 0;
    display:none;
}

.ebms-checkbox-label {
    font-size: 16px;
    font-weight: 600;
    color: #ff6900;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ebms-checkbox-label:hover {
    color: #e55a00;
}

/* Custom Checkbox Design */
.checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ff6900;
    border-radius: 3px;
    background: white;
    transition: all 0.3s ease;
}

.ebms-orderbump-check:checked + .ebms-checkbox-label .checkmark {
    background: #ff6900;
    border-color: #ff6900;
}

.ebms-orderbump-check:checked + .ebms-checkbox-label .checkmark::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Bestellübersicht */
.ebms-order-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.ebms-order-summary h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.ebms-summary-items {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.ebms-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 16px;
}

.ebms-main-product {
    font-weight: 600;
}

.ebms-orderbump-summary-item {
    color: #666;
    padding-left: 20px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.ebms-orderbump-summary-item::before {
    content: "↳";
    position: absolute;
    left: 5px;
    color: #ff6900;
    font-weight: bold;
}

.ebms-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 24px;
    font-weight: bold;
}

.ebms-total-label {
    color: #333;
}

.ebms-total-amount {
    color: #2ecc71;
}

.ebms-total-interval {
    font-size: 16px;
    color: #666;
    font-weight: normal;
    margin-left: 5px;
}

/* Checkout Button */
.ebms-checkout-actions {
    text-align: center;
}

.ebms-checkout-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    width: 100%;
    max-width: 450px;
    position: relative;
}

.ebms-checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.ebms-checkout-button:active {
    transform: translateY(0);
}

.ebms-checkout-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.ebms-button-loader {
    display: none;
}

.ebms-checkout-button.loading .ebms-button-text {
    display: none;
}

.ebms-checkout-button.loading .ebms-button-loader {
    display: inline-block;
}

/* Secure Badge */
.ebms-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.ebms-secure-badge svg {
    color: #2ecc71;
}

/* Selected State */
.ebms-orderbump-item.selected .ebms-orderbump-headline {
    color: #ff6900;
}

.ebms-orderbump-item.selected .ebms-orderbump-checkbox {
    background: rgba(255, 105, 0, 0.1);
}

/* Animationen */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ebms-checkout-container {
        padding: 10px;
    }
    
    .ebms-checkout-product {
        padding: 20px;
    }
    
    .ebms-product-price {
        font-size: 24px;
    }
    
    .ebms-orderbump-content {
        padding: 20px;
    }
    
    .ebms-orderbump-checkbox {
        padding: 15px 20px;
    }
    
    .ebms-orderbump-headline {
        font-size: 20px;
    }
    
    .ebms-checkout-button {
        padding: 15px 30px;
        font-size: 16px;
    }
}