/* Cummins QuickServe – styles */

/* ── Hero banner ────────────────────────────────────────────────── */

.cumminsqs-hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

@media all and (max-width: 768px) {
	.cumminsqs-hero {
		min-height: 400px;
	}
}

.cumminsqs-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
}

.cumminsqs-hero__content {
    position: relative;
    z-index: 1;
    padding: 40px 24px;
}

.cumminsqs-hero__title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 28px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.cumminsqs-hero__btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: #e31b23;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 16px rgba(227, 27, 35, 0.45);
}

.cumminsqs-hero__btn:hover,
.cumminsqs-hero__btn:focus {
    background-color: #b8151c;
    box-shadow: 0 6px 20px rgba(227, 27, 35, 0.55);
    outline: none;
}

.cumminsqs-hero__btn:active {
    background-color: #8f1016;
    box-shadow: none;
    transform: translateY(1px);
}

.cumminsqs-hero__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Legacy wrapper (backwards compat) ──────────────────────────── */

.cumminsqs-wrapper {
    display: inline-block;
    font-family: inherit;
}

.cumminsqs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #e31b23; /* Cummins red */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cumminsqs-btn:hover,
.cumminsqs-btn:focus {
    background-color: #b8151c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    outline: none;
}

.cumminsqs-btn:active {
    background-color: #8f1016;
    box-shadow: none;
    transform: translateY(1px);
}

.cumminsqs-btn__icon {
    font-size: 16px;
    line-height: 1;
}

.cumminsqs-error {
    color: #c0392b;
    font-size: 13px;
    padding: 6px 10px;
    border-left: 3px solid #c0392b;
    background: #fdf3f2;
    border-radius: 2px;
}

/* ── Niedostępne części ─────────────────────────────────────────── */

.cumminsqs-unavailable {
    margin: 20px 0;
    border: 1px solid #f0a500;
    border-left: 4px solid #f0a500;
    border-radius: 4px;
    background: #fffbf0;
    padding: 14px 18px;
    font-size: 14px;
    color: #333;
}

.cumminsqs-unavailable__header {
    font-weight: 700;
    font-size: 15px;
    color: #b07800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.cumminsqs-unavailable__icon {
    font-size: 18px;
}

.cumminsqs-unavailable__list {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: disc;
}

.cumminsqs-unavailable__item {
    margin-bottom: 6px;
    line-height: 1.5;
}

.cumminsqs-unavailable__item code {
    background: #f5e8c8;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 13px;
    color: #7a5500;
}

/* ── Błąd API (punkt 6) ─────────────────────────────────────────── */

.cumminsqs-error-box {
    margin: 16px 0;
    border: 1px solid #c0392b;
    border-left: 4px solid #c0392b;
    border-radius: 4px;
    background: #fdf3f2;
    padding: 14px 18px;
    font-size: 14px;
    color: #333;
}

.cumminsqs-error-box__header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #a93226;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.cumminsqs-error-box__icon {
    font-size: 18px;
}

.cumminsqs-error-box__code {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    background: #f5c6c2;
    border-radius: 3px;
    padding: 2px 8px;
    color: #7b241c;
    white-space: nowrap;
}

.cumminsqs-error-box__message {
    margin: 0 0 8px;
    line-height: 1.5;
}

.cumminsqs-error-box__details {
    margin-top: 10px;
    border-top: 1px solid #f1c0bc;
    padding-top: 8px;
    font-size: 13px;
}

.cumminsqs-error-box__details summary {
    cursor: pointer;
    color: #922b21;
    font-weight: 600;
    user-select: none;
    margin-bottom: 8px;
}

.cumminsqs-error-box__details dl {
    margin: 0 0 8px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
}

.cumminsqs-error-box__details dt {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.cumminsqs-error-box__details dd {
    margin: 0;
    word-break: break-word;
}

.cumminsqs-error-box__contact {
    margin: 6px 0 0;
    color: #666;
}

.cumminsqs-error-box__contact a {
    color: #c0392b;
}
