/* ── Pishro Delivery — Frontend ── */
.pd-box {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-block: 14px;
    background: #fff;
    font-family: inherit;
    direction: rtl;
    text-align: right;
}

/* ── Product context: integrated into sidebar card, no floating box ── */
.pd-product-wrap {
    margin-block-start: 4px;
}

.pd-product-wrap .pd-box {
    border: none;
    border-radius: 0;
    background: transparent;
    margin-block: 0;
    padding: 14px 0 0;
    border-block-start: 1px solid #e9ecef;
}

.pd-box__header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-block-end: 12px;
    font-weight: 600;
    font-size: 13px;
    color: #4a5568;
}

.pd-box__header svg {
    color: #F5A623;
    flex-shrink: 0;
}

.pd-city-name {
    font-size: 12px;
    color: #2d3748;
    font-weight: 600;
    background: #edf2f7;
    border-radius: 20px;
    padding: 2px 10px;
    margin-inline-start: 2px;
}

.pd-change-city {
    margin-inline-start: auto;
    background: none;
    border: none;
    padding: 2px 6px;
    font-family: inherit;
    font-size: 11px;
    color: #F5A623;
    cursor: pointer;
    border: 1px solid #F5A623;
    border-radius: 20px;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
}

.pd-change-city:hover {
    background: #F5A623;
    color: #fff;
}

/* ── City Selector ── */
.pd-city-selector {
    display: flex;
    gap: 8px;
    margin-block-end: 10px;
    flex-wrap: wrap;
}

.pd-city-selector select {
    flex: 1;
    min-width: 130px;
    padding: 8px 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    color: #4a5568;
    background: #fff;
    cursor: pointer;
    direction: rtl;
    text-align: right;
}

.pd-city-selector select:focus {
    outline: none;
    border-color: #F5A623;
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.15);
}

.pd-city-selector select:disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}

/* ── Result ── */
.pd-no-city {
    margin: 0;
    font-size: 12px;
    color: #a0aec0;
    padding: 2px 0;
}

.pd-result-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-date-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fff4;
    border: 1.5px solid #9ae6b4;
    color: #22543d;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
}

.pd-date-badge svg {
    color: #38a169;
    flex-shrink: 0;
}

/* ── Cutoff messages ── */
.pd-cutoff-msg {
    font-size: 12px;
    border-radius: 6px;
    padding: 8px 12px;
    line-height: 1.8;
    color: #718096;
    background: #f8f9fa;
}

.pd-cutoff-before {
    color: #7b341e;
    background: #fffbeb;
    border: 1px solid #fbd38d;
}

.pd-cutoff-after {
    color: #718096;
    background: #f8f9fa;
    border: none;
}

/* ── Loading ── */
.pd-loading {
    font-size: 13px;
    color: #a0aec0;
    padding: 6px 0;
    text-align: center;
}

/* ── Utility ── */
.pd-hidden {
    display: none !important;
}

/* ── Checkout context ── */
.pd-box--checkout {
    margin-block-end: 16px;
    border-color: #F5A623;
    border-inline-start: 3px solid #F5A623;
    border-radius: 0 6px 6px 0;
}

/* ── Cart context ── */
.pd-box--cart {
    margin-block: 16px;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .pd-city-selector {
        flex-direction: column;
    }
    .pd-city-selector select {
        width: 100%;
    }
    .pd-date-badge {
        font-size: 13px;
    }
}
