/* Teslimat seçim stilleri */
.address-selector-container {
    --ds-green: #2e7d32;
    --ds-green-2: #43a047;
    --ds-bg: #2e7d32;
    --ds-surface: #ffffff;
    --ds-border: rgba(0, 0, 0, 0.08);
    --ds-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
    --ds-radius: 14px;
}

.address-selector-container {
    background: linear-gradient(90deg, var(--ds-bg), var(--ds-green-2));
    border-radius: var(--ds-radius);
    padding: 14px 14px;
    box-shadow: 0 8px 22px rgba(46, 125, 50, 0.18);
    margin: 16px 0;
}

.address-selector-container .location-start-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.address-selector-container .location-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.address-selector-container .location-info i {
    opacity: 0.95;
}

.address-selector-container .location-input {
    position: relative;
    flex: 1 1 auto;
    min-width: 240px;
}

.address-selector-container .location-input input.form-control {
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--ds-border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    font-weight: 600;
    color: #1f2937;
    padding-left: 42px !important;
    padding-right: 84px !important;
}

.address-selector-container .location-input input.form-control::placeholder {
    color: rgba(31, 41, 55, 0.65);
    font-weight: 500;
}

.address-selector-container .location-input .fa-map-pin {
    left: 16px !important;
    color: var(--ds-green) !important;
    z-index: 3;
}

.address-selector-container .location-input .change-location,
.address-selector-container .location-input .clear-location {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    border-radius: 999px;
    line-height: 1;
    z-index: 4;
}

.address-selector-container .location-input .change-location {
    right: 12px;
    color: var(--ds-green);
    background: rgba(46, 125, 50, 0.10);
}

.address-selector-container .location-input .change-location:hover {
    background: rgba(46, 125, 50, 0.16);
    text-decoration: none;
}

.address-selector-container .location-input .clear-location {
    right: 48px;
    color: rgba(31, 41, 55, 0.55);
    background: rgba(0, 0, 0, 0.04);
}

.address-selector-container .location-input .clear-location:hover {
    background: rgba(0, 0, 0, 0.07);
    text-decoration: none;
}

/* Dropdown (autocomplete) */
.location-dropdown {
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid var(--ds-border);
    box-shadow: var(--ds-shadow);
    overflow: hidden;
}

.location-dropdown .location-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--ds-surface);
}

.location-dropdown .location-dropdown-item i {
    color: var(--ds-green);
}

.location-dropdown .location-dropdown-item:hover {
    background: rgba(46, 125, 50, 0.06) !important;
}

.location-dropdown .location-dropdown-item span {
    font-weight: 600;
    color: #111827;
    line-height: 1.25;
}

.digibouqet-disabled {
    cursor: not-allowed !important;
}

/* Disabled add-to-cart: kısa açıklama */
[data-selector="add-to-cart"].digibouqet-disabled {
    position: relative;
}

[data-selector="add-to-cart"].digibouqet-disabled::after {
    content: attr(data-digibouqet-disabled-text);
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    padding: 8px 10px;
    border-radius: 10px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    max-width: 280px;
}

@media (max-width: 575.98px) {
    [data-selector="add-to-cart"].digibouqet-disabled::after {
        white-space: normal;
        width: min(280px, 92vw);
        text-align: center;
    }
}

/* Ürün sayfası: konum arama + teslimat blokları (tema ile uyumlu) */
.product-location-container {
    margin-top: 10px;
}

.digibouqet-location-input {
    position: relative;
    width: 100%;
}

.digibouqet-location-input .fa-map-pin {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ds-green);
    z-index: 3;
}

.digibouqet-location-input input.form-control {
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--ds-border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
    font-weight: 600;
    color: #1f2937;
    padding-left: 42px !important;
    padding-right: 54px !important;
}

.digibouqet-location-input .clear-location {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    border-radius: 999px;
    color: rgba(31, 41, 55, 0.55);
    background: rgba(0, 0, 0, 0.04);
    z-index: 4;
}

.digibouqet-location-input .clear-location:hover {
    background: rgba(0, 0, 0, 0.07);
    text-decoration: none;
}

/* Teslimat sekmeleri mobilde taşmasın: yatay scroll */
.delivery-date-tabs {
    gap: 8px;
}

.delivery-date-tabs.d-flex {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.delivery-date-tab {
    min-width: 110px;
}

.delivery-date-tabs.d-flex::-webkit-scrollbar {
    height: 6px;
}
.delivery-date-tabs.d-flex::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 999px;
}

/* Saat slotları: küçük ekranda 2 sütun gibi dursun */
.time-slots-row {
    gap: 8px;
}

.time-slot-item {
    margin: 0 !important;
}

@media (max-width: 575.98px) {
    .time-slots-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }
}

/* Uyarı ve buton taşmalarını engelle */
.delivery-warning,
.alternative-delivery-info .alert,
#addressSelectionWarning {
    border-radius: 14px;
    word-break: break-word;
}

.alternative-delivery-info a.btn,
.alternative-delivery-info button.btn {
    white-space: normal;
    text-align: left;
    width: 100%;
}

@media (min-width: 576px) {
    .alternative-delivery-info a.btn,
    .alternative-delivery-info button.btn {
        width: auto;
        text-align: center;
    }
}

/* Delivery features mobil kırılım */
@media (max-width: 575.98px) {
    .delivery-feature-item {
        max-width: 50%;
    }
}

/* Mobil */
@media (max-width: 575.98px) {
    .address-selector-container {
        border-radius: 16px;
        padding: 12px;
        margin: 12px 0;
    }

    .address-selector-container .location-start-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .address-selector-container .location-input {
        min-width: 0;
    }

    .address-selector-container .location-input input.form-control {
        height: 48px;
        padding-right: 74px !important;
    }
}

.delivery-date-tabs .delivery-date-tab .date-tab-inner {
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delivery-date-tabs .delivery-date-tab .date-tab-inner:hover {
    border-color: #4CAF50;
}

.delivery-date-tabs .delivery-date-tab.active .date-tab-inner {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.calendar-popup {
    background-color: white;
    border: 1px solid #e0e0e0;
}

.time-slot-item .time-slot-inner {
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot-item .time-slot-inner:hover {
    border-color: #4CAF50;
}

.time-slot-item.active .time-slot-inner {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.time-slot-item.disabled .time-slot-inner {
    background-color: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

.delivery-features {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    justify-content: space-around;
}

.delivery-feature-item {
    flex: 1 0 auto;
    max-width: 25%;
}

.delivery-feature-item .feature-icon {
    font-size: 24px;
    color: #4CAF50;
}

.delivery-info-note {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.alternative-delivery-info .alert {
    background-color: #f1f8e9;
    border-color: #c5e1a5;
}

.alternative-delivery-info .btn-success {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.alternative-delivery-info .btn-success:hover {
    background-color: #43A047;
    border-color: #388E3C;
}