/* 🌐 Umumiy sozlamalar */
body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* 📌 Asosiy konteyner */
.container {
    max-width: 450px;
    width: 100%;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* 🧾 Chek dizayni */
#cheque {
    background: #fdfdfd;
    /* ✅ Yumshoq oq fon */
    width: 300px;
    margin: 15px auto;
    padding: 20px;
    font-family: monospace;
    font-size: 14px;
    color: #222;
    line-height: 1.5;
    border-radius: 6px;

    /* 🌟 3D soya effekti */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

#cheque h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px dashed #666;
    padding-bottom: 5px;
}

#cheque p {
    margin: 3px 0;
}

#cheque hr {
    border: none;
    border-top: 1px dashed #999;
    margin: 8px 0;
}

#cheque .total {
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    margin-top: 10px;
}

/* 🧾 Chek */
.receipt {
    background: #fdfdfd;
    /* ✅ bir xil fon */
    width: 300px;
    margin: 15px auto;
    padding: 20px;
    font-family: monospace;
    font-size: 14px;
    color: #222;
    line-height: 1.5;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.receipt h3 {
    text-align: center;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: bold;
}

.receipt small {
    display: block;
    text-align: center;
    font-size: 11px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #666;
    padding-bottom: 5px;
}

/* 🔢 Chek ma’lumotlari */
.receipt .meta {
    text-align: center;
    font-size: 12px;
    margin-bottom: 8px;
}

/* 📊 Narxlar bo‘limi */
.receipt p {
    margin: 3px 0;
}

.receipt hr {
    border: none;
    border-top: 1px dashed #999;
    margin: 8px 0;
}

/* 💰 Yakuniy narx */
.receipt .total {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    margin-top: 10px;
}

/* 📌 Pastki qism */
.receipt .footer {
    text-align: center;
    border-top: 1px dashed #000;
    margin-top: 8px;
    padding-top: 8px;
}

.receipt .footer img {
    margin: 5px auto;
    display: block;
}

.receipt .footer p {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
}

/* 🖼 Banner va narxlar qismi */
.price-info {
    background: #e7f3ff;
    border: 1px solid #b3d8fd;
    border-radius: 8px;
    padding: 15px 18px;
    margin-bottom: 22px;
    box-shadow: 0 2px 7px rgba(0, 123, 255, 0.07);
    overflow: hidden;
}

.price-banner {
    margin: 0 0 12px;
}

.price-banner img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* 📊 Jadval */
.price-info table {
    width: 100%;
    margin-bottom: 6px;
    border-collapse: collapse;
}

.price-info th,
.price-info td {
    padding: 7px 0;
    font-size: 1.08em;
    text-align: center;
    color: #222;
}

.price-info th {
    color: #007bff;
    font-weight: bold;
    background: #f3f9fe;
}

/* 📍 Sarlavhalar */
h2 {
    color: #343a40;
    text-align: center;
    margin-bottom: 20px;
}

/* 🔤 Label */
label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    font-size: 0.9em;
    color: #555;
}

/* 🔢 Input qutilari */
.count-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.count-box input {
    flex: 1;
}

input[type="number"],
input[type="text"],
input[type="tel"],
textarea {
    width: calc(100% - 22px);
    text-align: center;
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin-top: 5px;
    box-sizing: border-box;
}

input[type="number"]#regularCount {
    background-color: #e9ecef;
}

/* 🟩 Tugmalar */
button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #218838;
}

button#submitOrderBtn {
    background-color: #007bff;
}

button#submitOrderBtn:hover {
    background-color: #0056b3;
}

/* 📊 Hisoblash natijasi */
.result {
    margin-top: 20px;
    padding: 15px;
    border: 1px dashed #007bff;
    border-radius: 5px;
    background-color: #e7f3ff;
    text-align: left;
    font-size: 0.95em;
}

.result h3 {
    text-align: center;
    color: #007bff;
    margin-top: 0;
}

.result p {
    margin: 8px 0;
}

/* 📝 Buyurtma formasi */
#orderSection {
    margin-top: 25px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}

#orderSection h3 {
    text-align: center;
    color: #343a40;
    margin-bottom: 15px;
}

/* ✅ Xabarlar */
#error-message,
#orderStatus,
.success-message {
    font-size: 0.9em;
    margin-top: 5px;
    text-align: center;
}

.error-message {
    color: red;
    font-weight: bold;
}

.success-message {
    color: green;
    font-weight: bold;
}

/* 🤝 Tugmalar bloki (Buyurtma + Operator) */
#orderButtonBox {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

#orderButtonBox button,
#orderButtonBox a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    min-width: 180px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 📝 Buyurtma tugmasi */
#orderButtonBox button {
    background: linear-gradient(135deg, #28a745, #218838);
    color: #fff;
    border: none;
}

#orderButtonBox button:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
}

/* 💬 Operator tugmasi */
#orderButtonBox a {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    text-decoration: none;
}

#orderButtonBox a:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

/* 📱 Mobil dizayn */
@media (max-width: 600px) {

    html,
    body {
        height: 100%;
    }

    body {
        padding: 0;
        align-items: stretch;
        min-height: 100svh;
    }

    .container {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 16px;
        min-height: 100svh;
    }

    .price-info {
        border-radius: 0;
    }

    .price-banner img {
        border-radius: 0;
    }

    input[type="number"],
    input[type="text"],
    input[type="tel"],
    textarea,
    button {
        font-size: 16px;
        /* iOS zoom chiqmasin */
    }
}