/* ========== ОБЩИЕ СТИЛИ (ранее были в тегах style) ========== */

#button-review {
    background-color: #ffde00;
    border: 0;
    color: #000;
    padding: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.button-review {
    background-color: #ffde00;
    border: 0;
    color: #000;
    padding: 12px;
    font-weight: 600;
    margin-bottom: 0px;
    border-radius: 0px !important;
}

.thumbb {
    width: 295px;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .thumbb {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}

/* ========== УНИКАЛЬНЫЕ СТИЛИ ДЛЯ ОТЗЫВОВ В КАТЕГОРИИ ========== */
.review-rating-widget {
    display: inline-flex;
    gap: 2px;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.review-star {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d3d3d3"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>') no-repeat center;
    background-size: contain;
    background-color: transparent;
}

.review-star-active {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffc107"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
}

.review-products-list {
    margin-top: 12px;
    padding: 0;
}

.review-products-list h5 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.review-item-card {
    margin-bottom: 10px;
    padding: 10px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #ffc107;
    transition: all 0.2s ease;
}

.review-item-card:hover {
    background: #f5f5f5;
}

.review-author-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-author-name {
    font-weight: 600;
    font-size: 13px;
    color: #2c3e50;
}

.review-date {
    font-size: 11px;
    color: #999;
    margin-left: auto;
}

.review-text-content {
    font-size: 12px;
    line-height: 1.4;
    color: #555;
    margin-top: 8px;
}

.review-text-content p {
    margin: 0;
}

.review-empty-message {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .review-star { width: 12px; height: 12px; }
    .review-item-card { padding: 8px; margin-bottom: 8px; }
    .review-author-name { font-size: 12px; }
    .review-text-content { font-size: 11px; }
    .review-date { font-size: 10px; }
}

@media (max-width: 480px) {
    .review-star { width: 10px; height: 10px; }
    .review-author-block { gap: 6px; }
    .review-item-card { padding: 6px; }
}

@media (max-width: 640px) {
    .review-products-list {
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        gap: 10px;
        padding: 5px 0 15px 0;
        -webkit-overflow-scrolling: touch;
    }
    .review-products-list h5 {
        display: block;
        white-space: normal;
        flex-shrink: 0;
        min-width: 120px;
    }
    .review-item-card {
        display: inline-block;
        white-space: normal;
        width: 260px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
}

/* ========== ТРАНСПОРТНЫЕ ЗАКАЗЫ ========== */
.transport-orders-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.transport-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.transport-orders-header h3 {
    margin: 0;
    color: #1a3e50;
    font-size: 20px;
}

.orders-count {
    background: #2c7da0;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.transport-orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.transport-order-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #eef2f6;
    transition: all 0.2s ease;
}

.transport-order-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.transport-order-item.urgent {
    border-left: 4px solid #ff6b6b;
    background: #fff8f8;
}

.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.order-id-date {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-id {
    font-weight: 700;
    color: #1a3e50;
    font-size: 15px;
}

.order-date {
    color: #8899aa;
    font-size: 12px;
}

.order-urgent-badge {
    background: #ff6b6b;
    color: #fff;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.order-route {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    font-size: 13px;
}

.route-point.waypoint {
    padding-left: 20px;
}

.point-icon {
    font-size: 14px;
    width: 20px;
}

.point-label {
    color: #667788;
    font-weight: 500;
    min-width: 100px;
}

.point-address {
    color: #1a2a3a;
}

.order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 10px;
    padding: 8px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.detail-label {
    color: #667788;
}

.detail-value {
    color: #1a2a3a;
    font-weight: 600;
}

.order-comment {
    padding: 8px 14px;
    background: #f0f7fa;
    border-radius: 6px;
    font-size: 13px;
    color: #334455;
    margin-bottom: 12px;
}

.comment-label {
    font-weight: 600;
    color: #2c7da0;
}

.show-route-btn {
    background: #2c7da0;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.show-route-btn:hover {
    background: #1a5d7a;
}

@media (max-width: 768px) {
    .transport-orders-section { padding: 12px; }
    .transport-order-item { padding: 12px 14px; }
    .order-top { flex-direction: column; align-items: flex-start; }
    .route-point { flex-wrap: wrap; }
    .point-label { min-width: auto; }
    .order-details { flex-direction: column; gap: 6px; }
}

/* ========== СТИЛИ ДЛЯ БЛОКА БЫСТРОЙ ЗАЯВКИ ========== */
.phone-section {
    width: 100%;
}

.phone-input-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    padding: 0 12px;
    box-sizing: border-box;
}

.phone-input-wrapper-calc {
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.phone-section .phone-input-wrapper-calc {
    position: relative;
}

#phoneInput1 {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 12px;
    font-size: 16px;
    color: #1a3e50;
    font-weight: 500;
    box-sizing: border-box;
}

.phone-icon {
    flex-shrink: 0;
    margin-right: 10px;
    font-size: 18px;
    color: #2c7da0;
}

.error-message {
    display: none;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    padding: 4px 10px;
    background: #fef2f2;
    border-radius: 6px;
}

.error-message.show {
    display: block;
}

.order-submit:hover {
    background: #f03a17;
    box-shadow: 0 4px 12px rgba(240, 194, 122, 0.4);
}

.order-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#phoneInput1.error {
    color: #e74c3c;
}

.phone-input-wrapper:focus-within {
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.1);
}

.category-item {
    box-sizing: border-box;
}