.btn-check+.btn-radio {
    border: 1px solid #dee2e6;
    color: #495057;
    background: #fff;
    font-size: 13px;
    padding: 6px 18px;
    border-radius: .375rem;
    cursor: pointer;
    transition: all .15s;
}

.btn-check:checked+.btn-radio {
    background-color: #ffebee;
    border-color: #e53935;
    color: #e53935;
    font-weight: 500;
}

.btn-check+.btn-radio:hover {
    background-color: #f5f5f5;
}

.table th {
    color: #666;
    font-weight: 400;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.express-card {
    overflow: hidden;
    border-radius: 8px !important;
    transition: all 0.2s ease-in-out;
    border-color: #dee2e6 !important;
    background-color: #ffffff !important;
}

.express-card .card-header {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid #edf2f7;
}

.express-card .card-body {
    background-color: #fff;
}

.express-card:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
}

.btn-check:checked+.card-ez {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.15);
}

.btn-check:checked+.card-ez .card-header {
    background-color: #ff3b30 !important;
    color: #fff !important;
}

.btn-check:checked+.card-ex {
    border-color: #ff9500 !important;
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.15);
}

.btn-check:checked+.card-ex .card-header {
    background-image: linear-gradient(to right, #ff3b30, #ff9500) !important;
    color: #fff !important;
}

.btn-check:checked+.card-js {
    border-color: #1e1e1e !important;
    box-shadow: 0 0 10px rgba(30, 30, 30, 0.15);
}

.btn-check:checked+.card-js .card-header {
    background-color: #1e1e1e !important;
    color: #e2b867 !important;
}

.btn-check:checked+.express-card .text-muted,
.btn-check:checked+.express-card #rate_EZ,
.btn-check:checked+.express-card #rate_EX,
.btn-check:checked+.express-card #rate_JS {
    color: #000 !important;
}

#barcode-target {
    max-width: 90vw;
    height: auto;
}

#qrcode-target {
    width: 260px !important;
    height: 260px !important;
}

/* Shipping navigation */
.shipping-sidebar {
    position: sticky;
    top: 90px;
}

.shipping-sidebar .nav-link {
    color: #495057;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 4px;
    transition: background-color 0.15s ease;
}

.shipping-sidebar .nav-link:hover {
    background-color: #f8f9fa;
    color: #E4002B;
}

.shipping-sidebar .nav-link.active {
    color: #fff;
    background-color: #E4002B;
    font-weight: 600;
}

/* Sender/receiver swap button */
.swap-button {
    width: 42px;
    height: 42px;
    border: 1px solid #E4002B;
    background-color: #fff;
    color: #E4002B;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.swap-button:hover {
    color: #fff;
    background-color: #dc3545;
}

@media (max-width: 991.98px) {
    .shipping-sidebar {
        position: static;
    }

    .shipping-sidebar .nav {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .shipping-sidebar .nav-link {
        white-space: nowrap;
    }

    .swap-button {
        transform: rotate(90deg);
    }
}

@media (max-width: 767px) and (orientation: portrait) {
    .barcode-render-zone {
        transform: rotate(90deg);
        transform-origin: center center;
    }

    #barcode-target {
        max-width: 80vh !important;
    }
}