/* Header Delivery Widget Stilleri */
#ddt-header-widget {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
    width: 100%;
    display: block !important;
    position: relative;
    z-index: 100;
}

/* Container temanın container'ını kullanıyor, ek stil gerekmiyor */

.ddt-widget-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: nowrap;
}

.ddt-widget-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-right: 15px;
    white-space: nowrap;
}

.ddt-field {
    flex: 0 0 auto;
}

.ddt-select,
.ddt-input {
    padding: 6px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    min-width: 150px;
    max-width: 180px;
    background-color: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
    color: #333;
    height: 36px;
    line-height: 24px;
}

.ddt-select:hover,
.ddt-input:hover {
    border-color: #999;
}

.ddt-select:focus,
.ddt-input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.ddt-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.ddt-input {
    cursor: pointer;
    background-color: #fafafa;
}

.ddt-button {
    padding: 6px 20px;
    background-color: #333;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 36px;
    line-height: 24px;
    white-space: nowrap;
}

.ddt-button:hover {
    background-color: #000;
}

.ddt-button:active {
    transform: scale(0.98);
}

.ddt-min-amount-message {
    text-align: center;
    margin-left: 15px;
    padding: 6px 14px;
    background-color: #e7f5ff;
    color: #004a99;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #99d6ff;
    white-space: nowrap;
    height: 36px;
    display: flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .ddt-widget-inner {
        gap: 10px;
    }

    .ddt-select,
    .ddt-input {
        min-width: 130px;
        max-width: 160px;
    }

    .ddt-widget-title {
        font-size: 13px;
        margin-right: 8px;
    }
}

@media (max-width: 992px) {
    #ddt-header-widget {
        padding: 15px 0;
    }

    .ddt-widget-container {
        padding: 0 20px;
    }

    .ddt-widget-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .ddt-widget-title {
        width: 100%;
        margin-bottom: 5px;
    }

    .ddt-select,
    .ddt-input,
    .ddt-button {
        flex: 1 1 auto;
        min-width: auto;
        max-width: none;
    }

    .ddt-min-amount-message {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    .ddt-widget-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ddt-select,
    .ddt-input,
    .ddt-button {
        width: 100%;
    }
}

/* Datepicker kapalı günler */
.ddt-disabled-date {
    background-color: #f0f0f0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
}

/* Loading durumu */
.ddt-button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.ddt-button.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* jQuery UI Datepicker z-index düzeltmesi */
.ui-datepicker {
    z-index: 99999 !important;
}

/* Datepicker overlay için */
.ui-widget-overlay {
    z-index: 99998 !important;
}
