.view_border {
    /* margin-top: -20px; */
    border-top: 2px solid #e3e9ef;
    margin-bottom: 20px;
}

.cart_information {
    background: white;
    border-radius: 9px;
    padding: 16px;
}

.cart_total {
    background: #ffffff 0% 0% no-repeat padding-box;
    border-radius: 9px;
    padding: 16px;
}

.cart_title {
    font-weight: 400 !important;
    font-size: 16px;
}

.cart_value {
    font-weight: 600 !important;
    font-size: 16px;
}

.deal-title {
    font-weight: 400 !important;
    font-size: 13px !important;
}

.cart_information .cart_item {
    box-shadow: 0px 3px 6px #0000000d;
    border-radius: 3px;
}

.media {
}

.media-header {
    min-height: 115px;
    padding-right: 8px;
    padding-left: 8px;
}

.media-body {
    min-height: 115px;
}

.cart_product .product-title {
    font-weight: 400 !important;
    font-size: 16px !important;
    position: relative;
    display: inline-block;
    word-wrap: break-word;
    overflow: hidden;
    max-height: 2.4em; /* (Number of lines you want visible) * (line-height) */
    line-height: 1.2em;
}

.cart_product .text-muted {
    font-weight: 400 !important;
    font-size: 12px;
    color: #6a6a6a !important;
}

.cart_product .text-accent {
    font-weight: 400 !important;
    font-size: 16px;
}

@media (max-width: 768px) {
    .view_border {
        margin: 10px 0px;
        border-top: 2px solid #e2f0ff !important;
    }

    .cart_information {
        border: none;
        border-radius: 0;
        padding: 0;
    }
}

/* QazPost Cart Integration Styles */
.qazpost-shipping-method:hover {
    background-color: #f8f9fa !important;
}

.qazpost-address-section {
    background-color: #f8f9fa;
    border-radius: 6px;
}

.qazpost-loader {
    color: #007bff;
    font-size: 14px;
}

.qazpost-delivery-details {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

.qazpost-office-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

.qazpost-cost-breakdown {
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
}

.qazpost-cost-breakdown .cost-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.qazpost-cost-breakdown .total-cost {
    border-top: 1px solid #e9ecef;
    padding-top: 8px;
    margin-top: 8px;
    font-size: 16px;
}

.qazpost-cost-breakdown .cost-value {
    color: #28a745;
    font-weight: 600;
}

.qazpost-cost-breakdown .delivery-time {
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.qazpost-choose-office-btn {
    width: 100%;
    margin-top: 10px;
}

/* QazPost Office Modal Styles */
#qazpostOfficeModal .office-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#qazpostOfficeModal .office-item:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#qazpostOfficeModal .office-item h6 {
    color: #007bff;
    margin-bottom: 8px;
    font-weight: 600;
}

#qazpostOfficeModal .office-item p {
    margin-bottom: 5px;
    color: #6c757d;
}

#qazpostOfficeModal .office-item small {
    font-size: 12px;
}

/* QazPost Error Styles */
.qazpost-delivery-info .alert {
    margin-bottom: 0;
    font-size: 14px;
}

.qazpost-delivery-info .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsive styles */
@media (max-width: 768px) {
    .qazpost-address-section {
        padding: 15px 10px;
    }
    
    .qazpost-delivery-details {
        padding: 10px;
    }
    
    .qazpost-office-info {
        padding: 8px;
        font-size: 13px;
    }
    
    .qazpost-cost-breakdown .cost-item {
        font-size: 13px;
    }
    
    .qazpost-cost-breakdown .total-cost {
        font-size: 15px;
    }
}

/* Animation for QazPost sections */
.qazpost-address-section {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* QazPost loader animation */
.qazpost-loader .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== QAZPOST CART STYLES ==================== */

/* QazPost опция в dropdown */
.qazpost-shipping-method {
    background-color: #f8f9fa !important;
    border: 1px solid #e3f2fd !important;
    border-radius: 4px;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.qazpost-shipping-method:hover {
    background-color: #e3f2fd !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.qazpost-shipping-method i {
    color: #2196f3 !important;
    margin-right: 8px;
}

.qazpost-shipping-method strong {
    color: #1976d2 !important;
}

/* Секция выбора адреса QazPost */
.qazpost-address-section {
    background-color: #f8f9fa;
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    margin-top: 10px;
}

.qazpost-address-section .form-label {
    color: #1976d2;
    font-weight: 600;
}

.qazpost-address-section .form-control {
    border: 1px solid #e3f2fd;
    border-radius: 6px;
}

.qazpost-address-section .form-control:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Информация о доставке QazPost */
.qazpost-delivery-details {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.qazpost-office-info {
    background-color: white;
    border: 1px solid #e3f2fd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.qazpost-office-info h6 {
    color: #1976d2;
    margin-bottom: 8px;
    font-weight: 600;
}

.qazpost-office-info p {
    margin-bottom: 4px;
    color: #666;
}

/* Разбивка стоимости */
.qazpost-cost-breakdown {
    background-color: white;
    border: 1px solid #e3f2fd;
    border-radius: 6px;
    padding: 12px;
}

.qazpost-cost-breakdown h6 {
    color: #1976d2;
    margin-bottom: 10px;
    font-weight: 600;
}

.qazpost-cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.qazpost-cost-item:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #1976d2;
    background-color: #f8f9fa;
    margin: 8px -12px -12px;
    padding: 12px;
    border-radius: 0 0 6px 6px;
}

.qazpost-cost-label {
    color: #666;
}

.qazpost-cost-value {
    font-weight: 600;
    color: #333;
}

/* Кнопка выбора другого отделения */
.qazpost-choose-office-btn {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.qazpost-choose-office-btn:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    color: white;
    text-decoration: none;
}

.qazpost-choose-office-btn i {
    margin-right: 6px;
}

/* Loader */
.qazpost-loader {
    color: #2196f3;
    font-weight: 600;
    padding: 20px;
}

.qazpost-loader i {
    color: #2196f3;
    margin-right: 8px;
}

/* Сообщения об ошибках */
.qazpost-error {
    background-color: #ffebee;
    border: 1px solid #f44336;
    border-radius: 6px;
    padding: 12px;
    color: #c62828;
    margin-top: 10px;
}

.qazpost-error i {
    color: #f44336;
    margin-right: 8px;
}

/* Responsive стили */
@media (max-width: 768px) {
    .qazpost-delivery-details {
        padding: 12px;
    }
    
    .qazpost-office-info,
    .qazpost-cost-breakdown {
        padding: 10px;
    }
    
    .qazpost-cost-item {
        font-size: 14px;
    }
    
    .qazpost-choose-office-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* Анимации */
@keyframes qazpostFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qazpost-address-section {
    animation: qazpostFadeIn 0.3s ease-out;
}

.qazpost-delivery-details {
    animation: qazpostFadeIn 0.4s ease-out;
}

/* Выделение выбранной опции */
.qazpost-shipping-method.selected {
    background-color: #e3f2fd !important;
    border-color: #2196f3 !important;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

/* Иконки */
.qazpost-delivery-details .fa-truck,
.qazpost-delivery-details .fa-map-marker,
.qazpost-delivery-details .fa-clock-o,
.qazpost-delivery-details .fa-money {
    color: #2196f3;
    margin-right: 8px;
}

/* Улучшение видимости */
.qazpost-shipping-method {
    position: relative;
}

.qazpost-shipping-method::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-radius: 4px 0 0 4px;
}

/* ==================== QAZPOST CART INTEGRATION STYLES ==================== */

/* QazPost Always Visible Block */
.qazpost-always-visible {
    background-color: #f8f9fa !important;
    border: 1px solid #e3f2fd !important;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.qazpost-always-visible:hover {
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

/* QazPost Shipping Method Button */
.qazpost-shipping-method {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.qazpost-shipping-method:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    transform: scale(1.05);
}

.qazpost-shipping-method.selected {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

/* QazPost Address Section */
.qazpost-address-section {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* QazPost Loader */
.qazpost-loader {
    text-align: center;
    color: #007bff;
    font-size: 14px;
    padding: 10px;
}

.qazpost-loader .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* QazPost Address Selector */
.qazpost-address-selector {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.qazpost-address-selector:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* QazPost Delivery Details */
.qazpost-delivery-details {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

.qazpost-delivery-details h6 {
    color: #007bff;
    margin-bottom: 10px;
    font-weight: 600;
}

/* QazPost Office Info */
.qazpost-office-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

.qazpost-office-info strong {
    color: #495057;
}

/* QazPost Cost Breakdown */
.qazpost-cost-breakdown {
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
    margin-top: 10px;
}

.qazpost-cost-breakdown h6 {
    color: #495057;
    font-size: 14px;
    margin-bottom: 8px;
}

.qazpost-cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
}

.qazpost-cost-item:last-child {
    border-top: 1px solid #e9ecef;
    padding-top: 8px;
    margin-top: 8px;
    font-weight: 600;
    font-size: 16px;
}

.qazpost-cost-label {
    color: #6c757d;
}

.qazpost-cost-value {
    color: #28a745;
    font-weight: 600;
}

/* QazPost Choose Office Button */
.qazpost-choose-office-btn {
    width: 100%;
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.qazpost-choose-office-btn:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: white;
    transform: translateY(-1px);
}

.qazpost-choose-office-btn i {
    margin-right: 5px;
}

/* QazPost Error Styles */
.qazpost-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
}

.qazpost-error i {
    margin-right: 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .qazpost-delivery-details {
        padding: 10px;
    }
    
    .qazpost-office-info,
    .qazpost-cost-breakdown {
        font-size: 13px;
    }
    
    .qazpost-cost-item {
        font-size: 13px;
    }
    
    .qazpost-choose-office-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Animation for QazPost blocks */
@keyframes qazpostFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qazpost-address-section {
    animation: qazpostFadeIn 0.4s ease-out;
}

.qazpost-delivery-details {
    animation: qazpostFadeIn 0.3s ease-out;
}

/* QazPost highlighting */
.qazpost-shipping-method.selected {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* QazPost icons styling */
.qazpost-delivery-details .fa-truck,
.qazpost-choose-office-btn .fa-map-marker {
    color: #007bff;
}

.qazpost-error .fa-exclamation-triangle {
    color: #dc3545;
}

/* QazPost main button styling */
.qazpost-shipping-method {
    position: relative;
    overflow: hidden;
}

.qazpost-shipping-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.qazpost-shipping-method:hover::before {
    left: 100%;
}

/* ==================== END QAZPOST STYLES ==================== */

 