
.calculator-container {
    max-width: 768px;
    margin: 40px auto;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1.5px 6px rgba(0,0,0,0.06);
    overflow: hidden;
}
.calculator-inner {
    padding: 32px 24px;
}
@media (min-width: 640px) {
    .calculator-inner { padding: 40px 32px; }
}
.calculator-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}
@media (min-width: 640px) {
    .calculator-title { font-size: 2.25rem; }
}
.calculator-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: #718096;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
    .calculator-subtitle { font-size: 1.25rem; }
}
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (min-width: 640px) {
    .calculator-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .calculator-grid { grid-template-columns: repeat(3, 1fr); }
}
.calculator-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.flex-row {
    display: flex;
    flex-direction: row;
}
.align-center {
    align-items: center;
}
.pointer {
    cursor: pointer;
}
.checkbox-box {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.375rem;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
}
.checkbox-item input[type="checkbox"]:checked + .checkbox-box {
    border-color: #2563eb;
    background: #2563eb;
}
.checkbox-item input[type="checkbox"]:checked + .checkbox-box i {
    display: inline;
}
.checkbox-label {
    color: #374151;
    transition: color 0.2s;
}
.checkbox-item:hover .checkbox-label {
    color: #3b82f6;
}
.checkbox-item:hover .checkbox-box {
    border-color: #3b82f6;
}
.selected-devices {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.calculator-center {
    display: flex;
    justify-content: center;
}
.price-btn {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -1px rgba(0,0,0,0.06);
    border: none;
}
.price-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}
.modal-box {
    background: #fff;
    border-radius: 1rem;
    padding: 20px 16px;
    max-width: 370px;
    width: 100%;
    margin: 0 0.5rem;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 18px 0 #27ae6012, 0 1.5px 6px 0 #27ae6011;
    border: 1px solid #e0e0e0;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.modal-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #27ae60;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
}
.modal-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #374151;
}
.modal-content {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 1rem;
    color: #222;
}
.modal-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}
.modal-confirm {
    background: #2563eb;
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    font-size: 1rem;
    transition: background 0.2s;
    display: block;
    margin: 1.5rem auto 0 auto;
    width: 70%;
}
.modal-confirm:hover {
    background: #1d4ed8;
}
.hidden { display: none !important; }

.device-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
    box-shadow: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.device-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.device-item .flex {
    display: flex;
}
.device-item .justify-between {
    justify-content: space-between;
}
.device-item .items-center {
    align-items: center;
}
.device-item .font-medium {
    font-weight: 500;
    color: #1f2937;
}
.device-item .text-gray-800 {
    color: #1f2937;
}
.device-item .space-x-4 > * + * {
    margin-left: 1rem;
}
.device-item .space-x-2 > * + * {
    margin-left: 0.5rem;
}
.device-item .weight-input {
    width: 4rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    text-align: center;
    font-size: 1rem;
    background: #fff;
    color: #374151;
}
.device-item .rounded {
    border-radius: 0.375rem;
}
.device-item .border {
    border: 1px solid #d1d5db;
}
.device-item .text-center {
    text-align: center;
}
.device-item .ml-2 {
    margin-left: 0.5rem;
}
.device-item .text-gray-600 {
    color: #4b5563;
}
.device-item .remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.device-item .remove-btn:hover {
    color: #b91c1c;
}
.device-item .text-red-500 {
    color: #ef4444;
}
.device-item .hover\:text-red-700:hover {
    color: #b91c1c;
}
.checkbox-box .ri-check-line {
    color: #fff !important;
}

.order-label {
    display: block;
    margin: 1.1rem 0 0.2rem 0;
    font-size: 1.1rem;
    color: #444;
    text-align: center;
}
.order-input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: 2px solid #2563eb;
    border-radius: 2rem;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
    background: #fff;
    color: #222;
    box-sizing: border-box;
}
.order-input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px #2563eb22;
}
.order-form {
    /* Возвращено к прежнему виду */
}
#confirm-btn.modal-confirm {
    width: 70%;
    margin: 1.5rem auto 0 auto;
    display: block;
    background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 2rem;
    padding: 0.8rem 0;
    box-shadow: 0 8px 24px 0 #2563eb22;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
#confirm-btn.modal-confirm:hover {
    background: linear-gradient(90deg, #1d4ed8 0%, #6366f1 100%);
    box-shadow: 0 12px 32px 0 #2563eb33;
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}
.success-text {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 1rem;
}

.quantity-round-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #2563eb;
    background: #f3f4f6;
    color: #2563eb;
    font-size: 1.25rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    margin: 0 0.15rem;
    box-shadow: 0 1px 4px 0 #2563eb11;
    cursor: pointer;
    outline: none;
}
.quantity-round-btn:hover, .quantity-round-btn:focus {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
    box-shadow: 0 2px 8px 0 #2563eb22;
}
.quantity-round-btn i {
    font-size: 1.3rem;
    pointer-events: none;
}

.quantity-group {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border: 2px solid #2563eb;
    border-radius: 2rem;
    overflow: hidden;
    height: 2.25rem;
    box-shadow: 0 1px 4px 0 #2563eb11;
}
.quantity-group .quantity-round-btn {
    border: none;
    border-radius: 0;
    background: transparent;
    color: #2563eb;
    width: 2.5rem;
    height: 100%;
    font-size: 1.3rem;
    transition: background 0.2s, color 0.2s;
    margin: 0;
    box-shadow: none;
}
.quantity-group .minus-btn {
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
}
.quantity-group .plus-btn {
    border-top-right-radius: 2rem;
    border-bottom-right-radius: 2rem;
}
.quantity-group .quantity-round-btn:hover, .quantity-group .quantity-round-btn:focus {
    background: #2563eb;
    color: #fff;
}
.quantity-group .weight-input {
    border: none;
    border-radius: 0;
    background: transparent;
    width: 3.2rem;
    height: 100%;
    text-align: center;
    font-size: 1rem;
    color: #222;
    outline: none;
    box-shadow: none;
    padding: 0;
}
.quantity-group .weight-input:focus {
    background: #e0e7ff;
}
.quantity-group .ml-2 {
    margin-left: 0.5rem;
}

/* Скрыть нативные стрелки у input[type=number] */
.quantity-group .weight-input::-webkit-outer-spin-button,
.quantity-group .weight-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity-group .weight-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

#result-content .flex.justify-between.pt-2 {
    background: #f7faf9;
    border-radius: 0.7rem;
    padding: 0.7rem 0.9rem;
    margin: 0.2rem 0 0.4rem 0;
    box-shadow: 0 1px 4px 0 #27ae6010;
    border: 1px solid #e0e0e0;
    align-items: center;
}
#result-content .text-lg.font-bold {
    color: #27ae60 !important;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}
#result-content .cta-offer {
    background: #f7faf9;
    border: 1px solid #e0e0e0;
    border-radius: 0.7rem;
    box-shadow: 0 1px 4px 0 #27ae6010;
    color: #222;
    font-size: 0.98rem;
    font-weight: 500;
    padding: 0.7rem 0.9rem;
    margin: 0.3rem 0 0 0;
    text-align: center;
    letter-spacing: 0.01em;
}
#result-content .cta-offer i {
    display: none;
}

#calculator-total-block {
    /* Возвращено к прежнему виду, без фона, рамки, тени */
    margin-bottom: 1.5rem;
    text-align: center;
}
#calculator-total-block .text-lg.font-bold {
    font-weight: 900;
    font-size: 1.3rem;
}
#calculator-total-block .text-lg.font-semibold {
    font-size: 1.1rem;
    color: #222;
    font-weight: 600;
}

@media (max-width: 640px) {
    .selected-devices {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .device-item {
        padding: 0.6rem 0.5rem;
        border-radius: 0.5rem;
        font-size: 0.97rem;
    }
    .device-item .font-medium {
        font-size: 1rem;
    }
    .device-item .weight-input {
        width: 2.5rem;
        font-size: 0.97rem;
        padding: 0.15rem 0.3rem;
    }
    .quantity-group .quantity-round-btn {
        width: 1.7rem;
        height: 1.7rem;
        font-size: 1rem;
    }
    .device-item .ml-2 {
        margin-left: 0.3rem;
    }
}


