/* ==========================================================================
   EBikeshop Configurator & Checkout Styles
   ========================================================================== */

:root {
    --primary-color: #0d47a1;
    --primary-light: #e3f2fd;
    --accent-color: #2979ff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --bg-light: #f9fbfd;
    --white: #ffffff;
    --success-green: #28a745;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.ebikeshop-configurator-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 40px auto 120px auto;
    padding: 0 20px;
    color: var(--text-color);
    float: left;
    width: 100%;
}

.configurator-header {
    margin-bottom: 30px;
}

.configurator-header .badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.configurator-header h2 {
    font-size: 28px;
    margin: 8px 0;
    color: #111;
}

.configurator-header .product-desc {
    color: var(--text-muted);
    font-size: 14px;
}

/* Items */
.configurator-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
}

.configurator-item.item-hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
}

.configurator-item.item-visible {
    display: block !important;
    animation: slideUpFade 0.5s forwards ease-out;
}

.item-header {
    background-color: #4479AC;
}

.configurator-content 
{
    padding:30px;
    padding-top:10px;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-header h3 {
    font-size: 20px;
    margin:10px 0 10px 0;
    display: inline-flex;
    align-items: center;
    color:white;
    font-weight: 700;
}

.item-icon-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.item-icon-img, 
.default-item-icon {
    width: 48px;
    height: 48px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.item-icon-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.default-item-icon {
    font-size: 22px;
    line-height: 1;
}

/* Extras Cards Grid Layout (2-Spaltig) */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .extras-grid {
        grid-template-columns: 1fr;
    }
}

.extra-card-label {
    display: block;
    cursor: pointer;
    position: relative;
}

.extra-card-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Card Styling - Einemheitlicher Abstand für ALLE Karten (mit oder ohne Info-Icon) */
.extra-card-content {
    background: #fafbfc;
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 0 20px 0 25px; /* Einheitlicher Innenabstand, damit auch Karten ohne Icon einen rechten Rand haben */
    min-height: 52px;       /* Garantiert einheitliche Höhe */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s ease;
    overflow: hidden;       /* Schneidet das grüne Icon an der abgerundeten Ecke perfekt ab */
}

/* Wenn ein Info-Icon vorhanden ist, setzen wir das rechte Padding der Karte auf 0, 
   damit das grüne Element bündig mit der runden Kapsel abschließt */
.extra-card-content:has(.info-icon) {
    padding-right: 0;
}

.extra-card-label:hover .extra-card-content {
    border-color: #b0c4de;
    background: #f4f7fb;
}

.radio-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    align-self: center;
}

.extra-card-label input[type="radio"]:checked + .extra-card-content {
    border-color: var(--accent-color);
    background: #f0f5ff;
}

.extra-card-label input[type="radio"]:checked + .extra-card-content .radio-indicator {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

.extra-card-label input[type="radio"]:checked + .extra-card-content .radio-indicator::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.extra-details {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.extra-name {
    font-weight: 500;
    font-size: 15px;
}

.extra-price-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right:0px;
}

/* Falls kein Info-Icon da ist, darf der Preis ein bisschen näher/normal zum Rand sein */
.extra-card-content:not(:has(.info-icon)) .extra-price-info {
    margin-right: 0;
}

.extra-price {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 15px;
}

/* GROSSES, GRÜNES INFO-ICON (Volle Höhe der Karte) */
.info-icon {
    height: 100%;               /* Füllt die Eltern-Höhe von oben bis unten aus */
    min-height: 52px;           
    width: 65px;                /* Feste Breite des grünen Blocks */
    background-color: var(--success-green); 
    color: var(--white);        
    border-radius:40px; /* Rundung nur auf der rechten Seite */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 32px;            
    font-weight:normal;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.info-icon:hover {
    opacity: 0.9;
}

.item-description {
    margin-bottom: 15px;
}

/* Sticky Footer */
.configurator-sticky-footer {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 900px;
    background: #091e42;
    border-radius: 12px;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(9, 30, 66, 0.25);
    z-index: 1000;
    padding: 15px 25px;
    transition: all 0.3s ease;
}

.sticky-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon {
    font-size: 20px;
}

.price-summary {
    display: flex;
    flex-direction: column;
    margin-right: auto;
    margin-left: 20px;
}

.price-label {
    font-size: 12px;
    color: #9cb1d6;
    text-transform: uppercase;
    font-weight: bold;
}

.total-price {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.shipping-info {
    font-size: 11px;
    color: #4cd964;
}

.btn-order-now {
    background: #0052cc;
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
}

.btn-order-now:hover:not(:disabled) {
    background: #0065ff;
}

.btn-order-now:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-order-now:disabled {
    background: #4a5c7d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Soldout State */
.extra-card-label.is-soldout {
    cursor: not-allowed;
}

.extra-card-label.is-soldout .extra-card-content {
    background: #f5f5f5 !important;
    border-color: #d9d9d9 !important;
    opacity: 0.6;
    pointer-events: none;
}

.extra-card-label.is-soldout .radio-indicator {
    background: #e0e0e0 !important;
    border-color: #cccccc !important;
}

.extra-card-label.is-soldout .extra-name {
    text-decoration: line-through;
    color: var(--text-muted);
}

.soldout-badge {
    background-color: #ff4d4f;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    display: inline-block;
    text-decoration: none !important;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   EBikeshop Checkout Styles
   ========================================================================== */

.ebikeshop-checkout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333333;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.checkout-col-billing h3,
.checkout-col-summary h3 {
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #111111;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #ff4d4f;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.summary-sticky-box {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.checkout-cart-item {
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.item-main-line {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 8px;
}

.item-name {
    padding-right: 15px;
}

.item-extras-minimal {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #666666;
}

.item-extras-minimal li {
    margin-bottom: 4px;
}

.item-qty-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e8e8e8;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 2px;
}

.qty-btn {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0.8;
}

.qty-btn.plus {
    background: #28a745 !important;
}

.qty-btn.minus {
    background: #ff4d4f !important;
}

.qty-btn:hover {
    opacity: 1;
}

.qty-val {
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.btn-remove-item {
    background: none;
    border: none;
    color: #ff4d4f;
    font-size: 13px;
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.2s;
}

.btn-remove-item:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.summary-divider {
    border: 0;
    border-top: 1px solid #e8e8e8;
    margin: 20px 0;
}

.grand-total-line {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    color: #111111;
}

.total-amount {
    font-size: 22px;
    color: #000000;
}

.tax-info {
    text-align: right;
    color: #8c8c8c;
    margin-top: 4px;
    font-size: 12px;
}

.payment-methods-box {
    margin-top: 30px;
}

.payment-methods-box h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.payment-radio-label {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-radio-label:hover {
    background: #f9f9f9;
    border-color: #d9d9d9;
}

.payment-radio-label input[type="radio"] {
    margin-top: 4px;
    margin-right: 12px;
}

.payment-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.payment-desc {
    margin: 0;
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
}

.payment-radio-label:has(input[type="radio"]:checked) {
    border-color: #0073aa;
    background-color: rgba(0, 115, 170, 0.02);
}

.legal-checkboxes {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #0073aa;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-checkout-submit {
    width: 100%;
    background: #28a745;
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
}

.btn-checkout-submit:hover {
    background: #218838;
}

.btn-checkout-submit:active {
    transform: scale(0.98);
}

.ebikeshop-empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.ebikeshop-empty-cart p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #666666;
}

.btn-back {
    display: inline-block;
    background: #0073aa;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.btn-back:hover {
    background: #005983;
    color: #ffffff;
}

.shipping-fields-hidden {
    display: none !important;
}

.shipping-toggle-wrap {
    margin: 25px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.checkbox-toggle .toggle-text {
    font-weight: bold;
    font-size: 15px;
    color: #111111;
}

.shipping-title {
    margin-top: 20px;
    color: #111111;
}

.voucher-section {
    margin-top: 20px;
    background: #fdfdfd;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 15px;
}

.voucher-input-group {
    display: flex;
    gap: 10px;
}

.voucher-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

#btn-apply-voucher {
    background: #333333;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

#btn-apply-voucher:hover {
    background: #111111;
}

#voucher-message {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

.text-success { color: #28a745; }
.text-error { color: #ff4d4f; }
.style-hidden { display: none !important; }

.subtotal-line {
    font-size: 15px;
    color: #666666;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.discount-line {
    font-size: 15px;
    color: #28a745;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.config-h1 {
    font-family: "Roboto", Sans-serif;
    font-size: 25px;
    font-weight: 500;
    color: #3B54A1;
    line-height: 1.4em;
    width: 100%;
    text-align: center;
    margin-top: 50px;
}

.config-logo {
    width: 115px;
    margin: 0 auto;
    display: table;
    float: unset;
    margin-bottom: 20px;
}

.config-pretext {
    font-weight: bold;
    line-height: 1.4em;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding-bottom: 0px;
}