#deliveryplz-modal .modal-dialog {
    max-width: 520px;
    margin: 1.5rem auto;
}

#deliveryplz-modal .modal-content {
    border-radius: 28px;
    border: none;
    background: #fff;
    padding: 2.25rem 2rem;
    color: #372b27;
    box-shadow: 0 25px 50px rgba(55, 43, 39, 0.35);
}

.deliveryplz-modal-body {
    text-align: center;
}

.deliveryplz-section {
    border: none;
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.deliveryplz-section + .deliveryplz-section {
    margin-top: 1.75rem;
}

.deliveryplz-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.deliveryplz-toggle,
.deliveryplz-time-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.deliveryplz-time-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.deliveryplz-time-toggle button {
    width: 100%;
}

.deliveryplz-toggle button,
.deliveryplz-time-toggle button {
    border-radius: 14px;
    border: 1px solid #ded8d5;
    background: #fff;
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: #372b27;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(55, 43, 39, 0.07);
}

.deliveryplz-time-toggle button[data-time-choice="asap"] {
    min-width: 150px;
}

.deliveryplz-time-toggle.deliveryplz-only-later {
    grid-template-columns: 1fr;
}

.deliveryplz-time-toggle.deliveryplz-only-later [data-time-choice="asap"] {
    display: none;
}

.deliveryplz-toggle button small {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: #6d6461;
}

.deliveryplz-toggle button.is-active,
.deliveryplz-time-toggle button.is-active {
    background: #ff7a18;
    border-color: #ff7a18;
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 122, 24, 0.35);
}

.deliveryplz-toggle button.is-active small {
    color: #fff;
    opacity: 0.9;
}

.deliveryplz-toggle button:focus-visible,
.deliveryplz-time-toggle button:focus-visible {
    outline: 3px solid rgba(255, 122, 24, 0.5);
    outline-offset: 2px;
}

.deliveryplz-input-group {
    display: flex;
    align-items: stretch;
    border-radius: 18px;
    border: 1px solid #ded8d5;
    overflow: hidden;
    margin-top: 0.75rem;
}

.deliveryplz-input-group span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    color: #ff7a18;
    background: rgba(255, 122, 24, 0.08);
}

.deliveryplz-input-group .form-control {
    border: none;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    text-align: center;
    font-weight: 600;
    color: #372b27;
}

.deliveryplz-input-group .form-control:focus {
    box-shadow: none;
}

.deliveryplz-input-group .btn {
    border: none;
    background: #ff7a18;
    color: #fff;
    padding: 0 1.25rem;
}

.deliveryplz-helper {
    font-size: 0.9rem;
    color: #6d6461;
    margin-top: 0.6rem;
}

.deliveryplz-planned {
    border: 1px solid #ded8d5;
    border-radius: 16px;
    padding: 1rem;
    background: rgba(255, 122, 24, 0.06);
    margin-top: 1rem;
    display: none;
}

.deliveryplz-planned .form-select {
    border-radius: 12px;
    border-color: #ded8d5;
}

.deliveryplz-note {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: #6d6461;
}

[data-deliveryplz-timepicker].deliveryplz-timepicker-locked .btn-timepicker {
    pointer-events: none;
    opacity: 0.55;
    cursor: not-allowed;
}

[data-deliveryplz-timepicker].deliveryplz-timepicker-locked::after {
    content: 'Zeitwahl über \"PLZ/Art ändern\"';
    display: block;
    font-size: 0.75rem;
    color: #6d6461;
    text-align: center;
    margin-top: 0.25rem;
}

@media (min-width: 576px) {
    #deliveryplz-modal .modal-dialog {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: calc(100% - 3rem);
        margin: 0 auto;
    }

    #deliveryplz-modal .modal-content {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    #deliveryplz-modal {
        --bs-modal-margin: 1.5rem;
    }

    #deliveryplz-modal .modal-dialog {
        margin: 2rem auto;
        width: calc(100% - 2.5rem);
        max-width: 420px;
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        display: block !important;
        pointer-events: auto;
    }

    #deliveryplz-modal .modal-dialog.modal-dialog-centered {
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        display: block !important;
        align-items: initial !important;
        justify-content: flex-start !important;
    }

    #deliveryplz-modal .modal-content {
        border-radius: 22px;
        min-height: auto;
    }

    .deliveryplz-toggle button,
    .deliveryplz-time-toggle button {
        min-width: 110px;
    }

    .deliveryplz-time-toggle button[data-time-choice="asap"] {
        min-width: 140px;
    }
}
