.ginnimee-sr-wrap {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.ginnimee-sr-card {
    background: #fff;
    border: 1px solid #ece8f4;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 8px 28px rgba(78, 46, 133, .08);
}

.ginnimee-sr-heading {
    text-align: center;
    margin-bottom: 28px;
}

.ginnimee-sr-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.ginnimee-sr-heading h2 {
    margin: 0 0 7px;
    color: #4E2E85;
    font-size: 30px;
    line-height: 1.2;
}

.ginnimee-sr-heading p {
    margin: 0;
    color: #777;
}

.ginnimee-sr-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.ginnimee-sr-input-row {
    display: flex;
    gap: 10px;
}

.ginnimee-sr-input-row input {
    flex: 1;
    min-width: 0;
    height: 52px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 16px;
    outline: none;
}

.ginnimee-sr-input-row input:focus {
    border-color: #4E2E85;
    box-shadow: 0 0 0 3px rgba(78, 46, 133, .10);
}

.ginnimee-sr-input-row button {
    height: 52px;
    border: 0;
    border-radius: 8px;
    padding: 0 24px;
    background: #4E2E85;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.ginnimee-sr-input-row button:hover {
    opacity: .92;
}

.ginnimee-sr-input-row button:disabled {
    opacity: .65;
    cursor: wait;
}

.ginnimee-sr-message {
    margin-top: 18px;
}

.ginnimee-sr-message.error,
.ginnimee-sr-message.info {
    padding: 13px 15px;
    border-radius: 8px;
    background: #f7f3ff;
    color: #4E2E85;
}

.ginnimee-sr-message.error {
    background: #fff4f4;
    color: #a33;
}

.ginnimee-sr-result {
    margin-top: 24px;
}

.ginnimee-sr-tracking-card {
    border-top: 1px solid #eee;
    padding-top: 24px;
}

.ginnimee-sr-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.ginnimee-sr-label {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 3px;
}

.ginnimee-sr-summary strong {
    font-size: 22px;
}

.ginnimee-sr-status {
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13px;
    background: #eee;
}

.ginnimee-sr-status.active,
.ginnimee-sr-status.delivered {
    background: #efe9fa;
    color: #4E2E85;
}

.ginnimee-sr-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.ginnimee-sr-details-grid > div {
    background: #faf9fc;
    border-radius: 10px;
    padding: 14px;
}

.ginnimee-sr-details-grid span {
    display: block;
    color: #777;
    font-size: 12px;
    margin-bottom: 5px;
}

.ginnimee-sr-details-grid strong {
    display: block;
    word-break: break-word;
    font-size: 14px;
}

.ginnimee-sr-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin: 15px 0 35px;
    position: relative;
}

.ginnimee-sr-timeline:before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 12px;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.ginnimee-sr-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ginnimee-sr-step .dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    font-size: 12px;
}

.ginnimee-sr-step.done .dot {
    background: #4E2E85;
}

.ginnimee-sr-step.current .dot {
    box-shadow: 0 0 0 5px rgba(78, 46, 133, .12);
}

.step-text {
    display: block;
    font-size: 12px;
    line-height: 1.35;
}

.ginnimee-sr-history {
    border-top: 1px solid #eee;
    padding-top: 22px;
}

.ginnimee-sr-history h3 {
    margin: 0 0 18px;
    color: #4E2E85;
}

.ginnimee-sr-history-item {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 18px;
}

.ginnimee-sr-history-item:not(:last-child):before {
    content: "";
    position: absolute;
    left: 5px;
    top: 13px;
    bottom: 0;
    width: 1px;
    background: #ddd;
}

.history-dot {
    width: 11px;
    height: 11px;
    min-width: 11px;
    margin-top: 3px;
    border-radius: 50%;
    background: #4E2E85;
    position: relative;
    z-index: 1;
}

.history-content strong,
.history-content small {
    display: block;
}

.history-content small {
    color: #777;
    margin-top: 4px;
}

.ginnimee-sr-extra {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: #777;
    font-size: 13px;
}

.ginnimee-sr-external {
    display: inline-block;
    margin-top: 20px;
    color: #4E2E85;
    text-decoration: underline;
}

.ginnimee-sr-loading {
    text-align: center;
    padding: 20px;
    color: #777;
}

@media (max-width: 700px) {
    .ginnimee-sr-card {
        padding: 22px 16px;
        border-radius: 12px;
    }

    .ginnimee-sr-heading h2 {
        font-size: 25px;
    }

    .ginnimee-sr-input-row {
        display: block;
    }

    .ginnimee-sr-input-row input,
    .ginnimee-sr-input-row button {
        width: 100%;
        box-sizing: border-box;
    }

    .ginnimee-sr-input-row button {
        margin-top: 10px;
    }

    .ginnimee-sr-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ginnimee-sr-timeline {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: left;
        margin-left: 8px;
    }

    .ginnimee-sr-timeline:before {
        left: 12px;
        right: auto;
        top: 12px;
        bottom: 12px;
        width: 2px;
        height: auto;
    }

    .ginnimee-sr-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 12px;
    }

    .ginnimee-sr-step .dot {
        margin: 0;
        min-width: 25px;
    }
}

@media (max-width: 430px) {
    .ginnimee-sr-details-grid {
        grid-template-columns: 1fr;
    }
}
