/* Hauptcontainer des Booking Widgets */
#booking-widget {
    font-family: 'Poppins', sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Überschrift des Widgets */
#booking-widget h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

/* Allgemeine Stile für Buchungsschritte */
.booking-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    position: relative;
}

.booking-step.active {
    display: block;
    opacity: 1;
}

.booking-step h3 {
    color: #555;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Eingabefelder */
#booking-widget input[type="date"],
#booking-widget input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#booking-widget input[type="date"]:focus,
#booking-widget input[type="text"]:focus {
    border-color: #976DF1;
    outline: none;
}

/* Buttons */
#booking-widget button {
    width: 100%;
    padding: 12px;
    background-color: #976DF1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#booking-widget button:hover {
    background-color: #8A5CE8;
}

/* Fortschrittsbalken */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.progress-step.active {
    background-color: #976DF1;
}

.progress-step.completed {
    background-color: #4CAF50;
}

/* Nachrichten für Schritte */
.step-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.step-message.success {
    background-color: #e8f5e9;
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.step-message.error {
    background-color: #ffebee;
    color: #f44336;
    border: 1px solid #f44336;
}

/* Ladeanimation */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #976DF1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Produktauswahl */
.product-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.fotobox-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.product-option {
    flex: 1 1 calc(33.333% - 10px);
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.product-option:hover {
    border-color: #976DF1;
}

.product-option.selected {
    background-color: #f0e6ff;
    border-color: #976DF1;
}

.product-option h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.product-option p {
    margin: 5px 0;
    color: #666;
    font-weight: bold;
    font-size: 14px;
}

.product-option .bundle-text {
    color: #976DF1;
    font-size: 0.9em;
    margin: 5px 0;
}

.product-option .original-price {
    color: #666;
}

.product-option .discounted-price {
    color: #000;
    font-weight: bold;
    display: none;
}

.product-option img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Datumsauswahl */
.date-selection {
    margin-top: 20px;
}

.date-selection h3 {
    margin-bottom: 8px;
}

/* Extras */
.extras-title {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.extras-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.extras-options .product-option {
    flex: 1 1 calc(50% - 10px);
    min-width: 200px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.modal-button.gray {
    background-color: #f0f0f0;
    color: #333;
}

.modal-button.purple {
    background-color: #976DF1;
    color: white;
}

.modal-button:hover {
    opacity: 0.8;
}

.modal-button + .modal-button {
    margin-left: 10px;
}

/* Checkbox Container */
.checkbox-container {
    display: flex;
    align-items: center;
    margin: 30px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #976DF1;
}

.switch input:checked + .slider:before {
    transform: translateX(26px);
}

.checkbox-label {
    font-size: 16px;
    color: #333;
}

/* Zeitauswahl */
.time-slot-picker {
    margin-bottom: 20px;
}

.time-slot-picker label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.time-slot-picker select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    height: auto;
    line-height: 1.3;
}

.address-autocomplete-wrap {
    position: relative;
}

.address-autocomplete-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    margin-top: 2px;
}

.address-autocomplete-item {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 12px 14px;
    border: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #111827 !important;
    text-align: left;
    cursor: pointer;
    appearance: none;
    box-shadow: none !important;
    line-height: 1.35;
    text-transform: none;
}

.address-autocomplete-item:last-child {
    border-bottom: 0;
}

.address-autocomplete-item:hover,
.address-autocomplete-item:focus {
    background: #f8fafc !important;
    color: #111827 !important;
    outline: none;
}

.address-autocomplete-item.muted {
    color: #64748b !important;
    cursor: default;
}

.address-autocomplete-main,
.address-autocomplete-sub {
    display: block;
}

.address-autocomplete-main {
    color: #111827;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0;
}

.address-autocomplete-sub {
    color: #64748b;
    font-size: 13px;
    margin-top: 3px;
    letter-spacing: 0;
}

/* Info-Box für Nutzungsdauer */
.usage-info {
    background-color: #f8f9fa;
    border-left: 4px solid #976DF1;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.usage-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* Skip Time Slot Link */
.skip-time-slot {
    margin-top: 20px;
    text-align: center;
}

.skip-time-slot a {
    color: #976DF1;
    text-decoration: none;
}

/* Delivery Fee Message */
#delivery-fee-message {
    font-size: 15px;
    line-height: 1.5;
    padding: 12px;
    margin: 15px 0;
}

#delivery-fee-message strong {
    font-weight: 700;
    color: #333;
}

/* Checkout Loader */
#checkout-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
}

#checkout-loader .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #976DF1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

/* Responsive Design */
@media (max-width: 767px) {
    #booking-widget {
        padding: 15px;
    }

    .product-option {
        flex: 1 1 100%;
    }

    .extras-options .product-option {
        flex: 1 1 100%;
    }

    .fotobox-mobile-layout-left .product-option[data-product="classic"],
    .fotobox-mobile-layout-left .product-option[data-product="premium"],
    .fotobox-mobile-layout-left .product-option[data-product="mirror"] {
        display: flex;
        align-items: center;
    }

    .fotobox-mobile-layout-left .product-option[data-product="classic"] img,
    .fotobox-mobile-layout-left .product-option[data-product="premium"] img,
    .fotobox-mobile-layout-left .product-option[data-product="mirror"] img {
        max-width: 40%;
        margin-right: 15px;
        margin-bottom: 0;
    }

    .fotobox-mobile-layout-left .product-option[data-product="classic"] .fotobox-text-content,
    .fotobox-mobile-layout-left .product-option[data-product="premium"] .fotobox-text-content,
    .fotobox-mobile-layout-left .product-option[data-product="mirror"] .fotobox-text-content {
        flex: 1;
    }

    .checkbox-container {
        margin: 20px 0;
    }

    .usage-info {
        border-left: 4px solid #976DF1;
        margin: 15px 0;
    }
}

@media (max-width: 600px) {
    #booking-widget h2 {
        font-size: 20px;
    }
}

/* Extras Styling Anpassung */
.product-option[data-product="audio"],
.product-option[data-product="requisiten"] {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.audio-content-wrapper,
.requisiten-content-wrapper {
    display: flex;
    flex-direction: row; /* Bild neben Text statt darüber */
    width: 100%;
    align-items: center;
}

.product-option[data-product="audio"] img,
.product-option[data-product="requisiten"] img {
    max-width: 40%;
    height: auto;
    object-fit: cover;
    margin-right: 15px;
}

.audio-text-content,
.requisiten-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
