.shipit-quote {
    width: 100%;
    margin: 1rem 0 1.5rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.shipit-quote__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e8edf3;
}

.shipit-quote__icon,
.shipit-price-card__logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 12px;
    font-size: 1.4rem;
}

.shipit-quote__header h2,
.shipit-results-heading h2 {
    margin: 0;
    color: #1e40af;
    font-size: 1.05rem;
    font-weight: 700;
}

.shipit-quote__header p,
.shipit-results-heading p {
    margin: 0.3rem 0 0;
    color: #64748b;
    font-size: 0.83rem;
}

.shipit-quote__body {
    padding: 1.5rem;
}

.shipit-quote__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shipit-quote__route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 2fr);
    align-items: end;
    gap: 1rem;
}

.shipit-quote__route-icon {
    display: flex;
    justify-content: center;
    padding-bottom: 0.75rem;
    color: #94a3b8;
    font-size: 1.2rem;
}

.shipit-quote__dimensions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.shipit-package-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.shipit-package-row {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.shipit-package-row__title {
    padding: 0 0.35rem;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
}

.shipit-package-row__selector {
    max-width: 620px;
    margin-bottom: 1.5rem;
}

.shipit-package-row__fields {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.shipit-mode {
    display: inline-flex;
    gap: 0.25rem;
    margin: 0.5rem 0 1.25rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 999px;
}

.shipit-mode label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.shipit-mode input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shipit-mode label:has(input:checked) {
    background: #3979e5;
    color: #fff;
    box-shadow: 0 2px 6px rgba(57, 121, 229, 0.3);
}

.shipit-box-catalog {
    margin-top: 1.25rem;
}

.shipit-box-catalog h4 {
    margin: 0 0 0.6rem;
    color: #334155;
    font-size: 0.85rem;
}

.shipit-box-catalog__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
}

.shipit-box-catalog__item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 0.8rem;
    color: #475569;
}

.shipit-box-catalog__item strong { color: #1e293b; }
.shipit-box-catalog__item { text-align: left; font: inherit; font-size: 0.8rem; cursor: pointer; }
.shipit-box-catalog__item:disabled { cursor: not-allowed; }
.shipit-box-catalog__item--ok { border-left-color: #16a34a; background: #f0fdf4; }
.shipit-box-catalog__item--best { border-left-color: #3979e5; background: #eff6ff; }
.shipit-box-catalog__item--no { opacity: 0.75; }
.shipit-box-catalog__status { font-weight: 700; }
.shipit-box-catalog__item--ok .shipit-box-catalog__status { color: #15803d; }
.shipit-box-catalog__item--best .shipit-box-catalog__status { color: #1d4ed8; }
.shipit-box-catalog__item--no .shipit-box-catalog__status { color: #b91c1c; }

.shipit-package-row__recommendation {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.shipit-package-row__capacity {
    margin-top: 1.25rem;
}

.shipit-package-recommendation__empty,
.shipit-package-recommendation__result {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

.shipit-package-recommendation__empty {
    align-items: center;
    color: #64748b;
    font-size: 0.84rem;
}

.shipit-package-recommendation__empty i {
    color: #3979e5;
    font-size: 1.2rem;
}

.shipit-package-recommendation__result {
    border: 1px solid #bfdbfe;
    background: linear-gradient(110deg, #eff6ff 0%, #fff 85%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.07);
}

.shipit-package-recommendation__result--custom {
    border-color: #fcd34d;
    background: #fffbeb;
}

.shipit-package-recommendation__icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: #dbeafe;
    border-radius: 10px;
    font-size: 1.2rem;
}

.shipit-package-recommendation__result--custom .shipit-package-recommendation__icon {
    color: #b45309;
    background: #fef3c7;
}

.shipit-package-recommendation__content {
    min-width: 0;
    flex: 1;
}

.shipit-package-recommendation__result strong {
    display: block;
    color: #1e40af;
    font-size: 0.93rem;
}

.shipit-package-recommendation__result--custom strong {
    color: #92400e;
}

.shipit-package-recommendation__result p {
    margin: 0.3rem 0 0;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.5;
}

.shipit-package-recommendation__result small {
    display: block;
    margin-top: 0.3rem;
    color: #64748b;
    font-size: 0.75rem;
}

.shipit-package-recommendation__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.shipit-package-recommendation__option {
    display: flex;
    min-width: 150px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.6rem 0.75rem;
    color: #334155;
    text-align: left;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

.shipit-package-recommendation__option--best {
    border-color: #60a5fa;
    box-shadow: inset 0 0 0 1px #60a5fa;
}

.shipit-package-recommendation__option--selected {
    background: #eff6ff;
}

.shipit-package-recommendation__option strong {
    color: #1e40af;
    font-size: 0.8rem;
}

.shipit-package-recommendation__option span,
.shipit-package-recommendation__option small {
    color: #64748b;
    font-size: 0.72rem;
}

.shipit-package-recommendation__option:hover {
    border-color: #3b82f6;
    background: #f8fbff;
}

.shipit-package-row__capacity {
    margin-top: 0.8rem;
}

.shipit-package-capacity__empty,
.shipit-package-capacity__result {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

.shipit-package-capacity__empty {
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    font-size: 0.82rem;
}

.shipit-package-capacity__empty i {
    color: #16a34a;
    font-size: 1.2rem;
}

.shipit-package-capacity__result--none {
    background: #fffbeb;
    border-color: #fcd34d;
}

.shipit-package-capacity__number {
    display: inline-flex;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #16a34a;
    border-radius: 14px;
    font-size: 1.5rem;
    font-weight: 800;
}

.shipit-package-capacity__result--none .shipit-package-capacity__number {
    color: #92400e;
    background: #fde68a;
}

.shipit-package-capacity__result strong {
    color: #166534;
    font-size: 0.95rem;
}

.shipit-package-capacity__result--none strong {
    color: #92400e;
}

.shipit-package-capacity__result p {
    margin: 0.25rem 0;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.45;
}

.shipit-package-capacity__result small {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.4;
}

.shipit-package-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shipit-package-row__add,
.shipit-package-row__remove {
    min-height: 38px;
    padding: 0.5rem 0.75rem;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
}

.shipit-package-row__add:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.shipit-package-row__remove {
    margin-top: 0.85rem;
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.shipit-package-count {
    color: #64748b;
    font-size: 0.78rem;
}

.shipit-quote__field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.45rem;
}

.shipit-quote__field > span {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
}

.shipit-quote__field small {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 400;
}

.shipit-quote__field input,
.shipit-quote__field select {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    color: #334155;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
    font-size: 0.88rem;
}

.shipit-quote__origin {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0.65rem 0.75rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.88rem;
}

.shipit-quote__field input:focus,
.shipit-quote__field select:focus {
    border-color: #3b82f6;
    outline: 3px solid rgba(59, 130, 246, 0.15);
}

.shipit-quote__submit {
    display: inline-flex;
    width: min(100%, 460px);
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #fff;
    background: #3979e5;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.15s ease, transform 0.15s ease;
}

.shipit-quote__submit:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

.shipit-quote__submit:disabled {
    cursor: wait;
    opacity: 0.8;
}

.shipit-quote__hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: -0.75rem 0 0;
    color: #64748b;
    font-size: 0.75rem;
}

.shipit-quote__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.25rem;
    color: #64748b;
    font-size: 0.88rem;
}

.shipit-quote__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #dbeafe;
    border-top-color: #3979e5;
    border-radius: 50%;
    animation: shipit-spin 0.8s linear infinite;
}

.shipit-quote__spinner--light {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
}

@keyframes shipit-spin {
    to { transform: rotate(360deg); }
}

.shipit-quote__message {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem;
    border-radius: 9px;
    font-size: 0.87rem;
}

.shipit-quote__message--error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.shipit-quote__message--empty {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.shipit-quote__retry {
    margin-left: auto;
    padding: 0.45rem 0.75rem;
    color: #fff;
    background: #2563eb;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    white-space: nowrap;
}

.shipit-quote__results {
    width: 100%;
    margin: 0 0 2rem;
}

.shipit-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.85rem;
}

.shipit-results-heading h2 {
    color: #0f172a;
    font-size: 1.1rem;
}

.shipit-results-heading span {
    padding: 0.35rem 0.65rem;
    color: #1e40af;
    background: #eff6ff;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.shipit-results-heading p i {
    margin: 0 0.25rem;
}

.shipit-price-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
}

.shipit-price-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.shipit-price-card--best {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.shipit-price-card__carrier,
.shipit-price-card__details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shipit-price-card__carrier h3 {
    margin: 0;
    color: #0f172a;
    font-size: 0.94rem;
    text-transform: capitalize;
}

.shipit-price-card__carrier p {
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.76rem;
}

.shipit-price-card__logo {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.shipit-price-card__badge {
    margin-left: auto;
    padding: 0.3rem 0.5rem;
    color: #166534;
    background: #dcfce7;
    border-radius: 99px;
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.shipit-price-card__details {
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
}

.shipit-price-card__details > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
}

.shipit-price-card__details strong {
    color: #0f172a;
    font-size: 1.08rem;
}

@media (max-width: 720px) {
    .shipit-quote {
        margin: 0.5rem 0 1rem;
        border-radius: 11px;
    }

    .shipit-quote__header,
    .shipit-quote__body {
        padding: 1rem;
    }

    .shipit-quote__route {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.85rem;
    }

    .shipit-quote__route-icon {
        display: none;
    }

    .shipit-quote__dimensions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .shipit-package-row__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shipit-package-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .shipit-quote__submit {
        width: 100%;
    }

    .shipit-quote__results {
        margin-bottom: 1rem;
    }
}
