.df-dpd-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 50px;
    opacity: 0;
    visibility: hidden;
    transition: 0.6s ease;
}

.df-dpd-popup-close {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.df-dpd-popup-close::before {
    position: absolute;
    content: '';
    width: 100%;
    left: 50%;
    top: 50%;
    height: 3px;
    background-color: #003366;
    transform: translate(-50%, -50%) rotate(45deg);
}
.df-dpd-popup-close::after {
    position: absolute;
    content: '';
    width: 100%;
    left: 50%;
    top: 50%;
    height: 3px;
    background-color: #003366;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.df-dpd-popup.show {
    opacity: 1;
    visibility: visible;
}

.df-dpd-popup-inner {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    height: 100%;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.df-dpd-popup-nav {
    width: 400px;
    overflow: hidden;
    height: 100%;
}

.df-dpd-popup-map {
    width: calc(100% - 400px);
}

.df-dpd-location-item {
    background-color: #f1f1f1;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 20px;
    transition: 0.6s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.df-dpd-popup-nav-inner {
    padding: 15px;
    height: calc(100% - 115px);
    overflow-y: auto;
}

.df-dpd-location-item.active, .df-dpd-location-item:hover {
    border-color: #003366;
}

.df-dpd-location-item.active .df-dpd-location-item-arrow {
    transform: rotate(135deg);
}

.df-dpd-location-item:last-of-type {
    margin-bottom: 0;
}

.df-dpd-location-item-name {
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
    line-height: 1.1;
}

.df-dpd-location-item-top {
    display: flex;
    align-items: center;
}

.df-dpd-location-item-top-right {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}

.df-dpd-location-item-address {
    font-size: 12px;
    line-height: 1.1;
    color: rgba(0, 0, 0, 0.5);
}

.df-dpd-location-item-image {
    width: 30px;
    height: auto;
}

.leaflet-div-icon {
    background-color: transparent !important;
    border: none !important;
}

.df-dpd-location-item-arrow {
    position: relative;
    margin-left: auto;
    width: 10px;
    min-width: 10px;
    height: 10px;
    display: block;
    transform-origin: center center;
    transform: rotate(45deg);
    border-top: 1px solid #000;
    border-right: 1px solid #000;
    transition: 0.6s ease;
}

.df-dpd-location-item-bottom {
    padding: 15px 0 0;
    display: none;
}

.df-dpd-location-item-bottom-hours {
    display: flex;
    align-items: flex-start;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px 5px 0;
}

.df-dpd-location-item-clock {
    width: 20px;
    margin-right: 15px;
}

.df-dpd-location-item-bottom-hours-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.df-dpd-location-item-bottom-hours-list span {
    color: rgba(0, 0, 0, 0.5);
    font-size: 14px;
}

.df-dpd-location-item-bottom-usluge {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px 5px 0;
    margin-top: 15px;
}

.df-dpd-location-item-bottom-usluge-title {
    width: 100%;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600 !important;
}

#deliveryfrom-pickuppoint-dpd_field .optional {
    display: none;
}

.df-dpd-location-item-bottom-usluge span {
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 5px 10px;
    margin: 5px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.df-dpd-filters {
    padding: 15px 32px 15px 15px;
    display: flex;
    flex-direction: column;
}

.df-dpd-filters input {
    border: 1px solid rgba(0, 0, 0, 0.2);
    height: 45px;
    padding: 0 15px;
    width: 100%;
    border-radius: 20px;
}

.df-dpd-filter {
    display: flex;
    flex-wrap: wrap;
    padding-top: 10px;
}

.df-dpd-filter label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0 0 5px 5px;
}

.df-dpd-filter label:first-of-type {
    margin-left: 0;
}

.df-dpd-filter label input {
    width: 15px;
    height: 15px;
    display: none;
}

.df-dpd-filter label span {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1;
}

.df-dpd-filter label span {
    height: 25px;
    padding: 0 15px;
    border-radius: 20px;
    border: 1px solid #003366;
}

.df-dpd-filter label input:checked + span {
    background-color: #003366;
    color: #fff;
}

#deliveryfrom-pickuppoint-dpd {
    color: transparent;
}

#deliveryfrom-pickuppoint-dpd_field .woocommerce-input-wrapper {
    position: relative;
    display: block;
}

.dpd-value-input {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    pointer-events: none;
}

.df-dpd-confirm {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.df-dpd-confirm-cta {
    background-color: #003366;
    border-radius: 30px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    transition: 0.6s ease;
}

.df-dpd-confirm-cta:hover {
    background-color: rgba(0, 51, 102, 0.9);
    color: #fff;
}

.leaflet-control-zoom-in, .leaflet-control-zoom-out {
    text-decoration: none !important;
}

@media screen and (max-width: 900px) {
    .df-dpd-popup-nav {
        width: 100%;
    }
    
    .df-dpd-popup-map {
        display: none;
    }

    .df-dpd-filters {
        padding-right: 15px;
    }
}

@media screen and (max-width: 575px) {
    .df-dpd-filter label {
        width: 100%;
        margin: 0 0 5px;
    }

    .df-dpd-filter label span {
        width: 100%;
        text-align: center;
        justify-content: center;
        height: 30px;
    }

    .df-dpd-popup-nav-inner {
        height: calc(100% - 190px);
    }

    .df-dpd-popup {
        padding: 30px;
    }

    .df-dpd-popup-close {
        width: 25px;
        height: 25px;
        top: 5px;
        right: 5px;
    }
}