/* Mini Kalkulator Tarasowy - Style */
.mkt-calculator {
    --mkt-primary: #e63946;
    --mkt-primary-hover: #e63946;
    --mkt-link: #3b7dd8;
    --mkt-bg: #faf9fb;
    --mkt-bg-light: #ffffff;
    --mkt-text: #1a1a2e;
    --mkt-text-muted: #6b7280;
    --mkt-border: #6b7280;
    
    background: var(--mkt-bg);
    border-radius: 12px;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.mkt-calculator *,
.mkt-calculator *::before,
.mkt-calculator *::after {
    box-sizing: border-box;
}

/* Header */
.mkt-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mkt-header-icon {
    width: 32px;
    height: 32px;
    color: var(--mkt-primary);
    flex-shrink: 0;
}

.mkt-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--mkt-text);
    margin: 0;
    line-height: 1.3;
}

/* Form */
.mkt-form {
    margin-bottom: 20px;
}

.mkt-row {
    display: flex;
    gap: 12px;
}

.mkt-field {
    flex: 1;
}

.mkt-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--mkt-text-muted);
    margin-bottom: 6px;
}

.mkt-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mkt-input-wrap input {
    width: 100%;
    background: var(--mkt-bg);
    border: 1px solid var(--mkt-border);
    border-radius: 8px;
    padding: 12px 44px 12px 14px;
    font-size: 16px;
    color: var(--mkt-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mkt-input-wrap input:focus {
    border-color: var(--mkt-primary);
    box-shadow: 0 0 0 3px rgba(194, 58, 90, 0.1);
}

.mkt-input-wrap input::-webkit-outer-spin-button,
.mkt-input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mkt-input-wrap input[type=number] {
    -moz-appearance: textfield;
}

.mkt-unit {
    position: absolute;
    right: 14px;
    font-size: 14px;
    color: var(--mkt-text-muted);
    pointer-events: none;
}

.mkt-info {
    font-size: 12px;
    color: var(--mkt-text-muted);
    margin-top: 8px;
    margin-bottom: 0;
}

/* Result */
.mkt-result {
    background: var(--mkt-bg-light);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.mkt-result-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.mkt-result-label {
    font-size: 14px;
    color: var(--mkt-text-muted);
}

.mkt-result-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--mkt-primary);
    line-height: 1;
}

.mkt-result-unit {
    font-size: 14px;
    color: var(--mkt-text-muted);
}

.mkt-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--mkt-primary);
    color: #ffffff !important;;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
    cursor: pointer;
}

.mkt-add-to-cart:hover {
    background: var(--mkt-primary-hover);
    color: #ffffff !important;;
    text-decoration: none;
}

.mkt-add-to-cart:active {
    transform: scale(0.98);
}

.mkt-add-to-cart svg {
    flex-shrink: 0;
}

/* Preview */
.mkt-preview {
    background: var(--mkt-bg-light);
    border-radius: 10px;
    padding: 12px;
    aspect-ratio: 1;
}

.mkt-preview svg {
    width: 100%;
    height: 100%;
}

.mkt-tile {
    fill: #e8e8f0;
    stroke: #c0c0d0;
    stroke-width: 0.3;
}

.mkt-support {
    fill: var(--mkt-primary);
}

/* Responsive */
@media (max-width: 420px) {
    .mkt-calculator {
        padding: 16px;
    }
    
    .mkt-result-value {
        font-size: 32px;
    }
    
    .mkt-header h3 {
        font-size: 16px;
    }
}
