.delivery-flow-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.delivery-section-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.delivery-section-header h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 24px;
}

.delivery-section-header .text-muted {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

.delivery-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.delivery-option-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.delivery-option-card:hover {
    border-color: var(--merchant-bg-color, #dc3545);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--merchant-bg-color, #dc3545);
}

.delivery-option-card:hover .delivery-card-icon i {
    color: var(--merchant-icon-color, #dc3545);
}

.delivery-option-card.selected {
    border-color: var(--merchant-bg-color, #dc3545);
    box-shadow: 0 6px 20px var(--merchant-bg-color);
    transform: translateY(-3px);
}

.delivery-option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--merchant-check-icon-color, #00df38);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 8px var(--merchant-check-icon-color, #00df38);
}

.delivery-option-card.changebackground {
    border-color: var(--merchant-bg-color, #dc3545);
    box-shadow: 0 6px 20px var(--merchant-bg-color, #dc3545);
    transform: translateY(-3px);
    background-color: white !important;
}

.delivery-option-card.changebackground::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--merchant-check-icon-color, #00df38);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 8px var(--merchant-check-icon-color, #00df38);
}

.delivery-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.delivery-card-icon {
    margin-bottom: 15px;
}

.delivery-card-icon i {
    font-size: 36px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.delivery-option-card.selected .delivery-card-icon i {
    color: var(--merchant-icon-color, #dc3545);
}

.changebackground.delivery-option-card .delivery-card-icon i,
.delivery-option-card.changebackground .delivery-card-icon i {
    color: var(--merchant-icon-color, #dc3545);
}


.delivery-card-title h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 18px;
}

.delivery-card-description p {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
}

.delivery-option-card.selected .delivery-card-description p,
.delivery-option-card.selected .delivery-card-title h5,
.changebackground.delivery-option-card .delivery-card-description p,
.changebackground.delivery-option-card .delivery-card-title h5 {
    color: var(--merchant-text-color, #2c3e50);
}

.delivery-option-card:hover .delivery-card-description p,
.delivery-option-card:hover .delivery-card-title h5 {
    color: var(--merchant-text-color, #2c3e50);
}

.schedule-options-panel {
    background: white;
    border: 2px solid var(--merchant-bg-color, #dc3545);
    border-radius: 12px;
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-form-container {
    padding: 25px;
}

.schedule-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.schedule-header h5 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    font-size: 20px;
}

.schedule-date-section {
    margin-bottom: 20px;
}

.schedule-date-section .form-group {
    margin-bottom: 15px;
}

.delivery-date-picker {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    background: white !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

.delivery-date-picker::-webkit-calendar-picker-indicator {
    cursor: pointer !important;
    opacity: 1 !important;
    background: transparent !important;
    color: #007bff !important;
    width: 20px !important;
    height: 20px !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.delivery-date-picker::-moz-focus-inner {
    border: 0 !important;
}

.specific-time-toggle {
    text-align: center;
    margin-top: 15px;
}

.specific-time-toggle a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
}

.specific-time-toggle a:hover {
    text-decoration: underline;
}

.time-selection-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.timezone-section {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.timezone-field {
    flex: 1;
    margin-right: 10px;
}

.time-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.time-dropdowns table {
    width: 100%;
    border-spacing: 10px;
}

.time-dropdowns .form-group {
    margin: 0;
}

.time-dropdowns select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
}

.schedule-submit-container {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.schedule-submit-container .btn-primary {
    background: #007bff;
    border-color: #007bff;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
}

.schedule-submit-container .btn-primary:hover {
    background: #0056b3;
    border-color: #004085;
}

.schedule-submit-container .btn-link {
    color: #6c757d;
    font-size: 14px;
}

@media (max-width: 768px) {
    .delivery-options-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .delivery-flow-container {
        padding: 20px 15px;
    }

    .time-fields-row {
        grid-template-columns: 1fr;
    }
}

.delivery-option-card.purchase-send-now:hover {
    background-color: white !important;
}