﻿.os-card {
    background: #0f172a;
    color: #fff;
    border-radius: 16px;
    padding: 1.25rem;
}

.os-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.os-items {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.os-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
    align-items: start;
}

.os-item-img-wrap {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.os-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.os-item-main {
    min-width: 0;
}

.os-item-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: start;
}

.os-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.os-item-total {
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 700;
}

.os-item-meta {
    margin-top: 0.2rem;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.os-discount-form {
    margin-bottom: 1rem;
}

    .os-discount-form label {
        display: block;
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
        font-weight: 700;
        color: #cbd5e1;
    }

.os-discount-row {
    display: flex;
    gap: 0.5rem;
}

    .os-discount-row input {
        flex: 1;
        min-width: 0;
        height: 40px;
        min-height: 40px;
        padding: 0 0.75rem;
        border: none;
        border-radius: 8px;
        font-size: 0.95rem;
        background: #fff9c4;
        color: #0f172a;
        box-sizing: border-box;
    }

        .os-discount-row input:focus {
            outline: 2px solid #94a3b8;
        }

    .os-discount-row button {
        height: 40px;
        padding: 0 1rem;
        border: none;
        border-radius: 8px;
        font-weight: 700;
        font-size: 0.9rem;
        background: #fff;
        color: #0f172a;
        cursor: pointer;
        white-space: nowrap;
    }

        .os-discount-row button:hover {
            background: #e2e8f0;
        }

.os-discount-applied {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #93c5fd;
}

.os-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.98rem;
}

.os-row-discount {
    color: #93c5fd;
}

.os-row-total {
    font-size: 1.1rem;
    font-weight: 800;
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 0.75rem;
    margin-top: 0.15rem;
}

@media (max-width: 575.98px) {
    .os-discount-row {
        flex-direction: column;
    }

        .os-discount-row button {
            width: 100%;
        }
}

.os-discount-row input {
    font-size: 1rem; /* already set, but must be >= 16px to prevent iOS zoom */
}
