/* ===== BASE ===== */
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #e7f8f5 0%, #f3f7fb 45%, #eef2f7 100%);
    color: #111827;
}

/* ===== CHECKOUT LAYOUT ===== */

.checkout-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px 16px;
}

.checkout-card {
    width: 100%;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    padding: 22px 20px 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: checkoutFadeIn 0.25s ease-out;
}


/* Szeroka karta tylko dla kroku ze stojaczkami */
.checkout-card--wide {
    max-width: 900px;   /* możesz zmniejszyć/większyć wg uznania */
}

@media (min-width: 640px) {
    .checkout-card {
        padding: 26px 26px 22px;
    }
}

/* ===== HEADER ===== */

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.checkout-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-logo {
    width: 110px;
    height: auto;
    display: block;
}

.checkout-brand-text{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #034737;

  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;

  background: rgb(69 191 174 / 12%);
  border: 1px solid rgb(69 191 174 / 28%);
}

/* ===== STEPPER ===== */

.checkout-stepper {
    display: flex;
    gap: 8px;
    margin: 35px 0;
    flex-wrap: wrap;
    font-size: 11px;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
}

.stepper-circle {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: #fff;
}

.stepper-label {
    white-space: nowrap;
}

.stepper-item--active {
    color: #034737;
    font-weight: 600;
}

.stepper-item--active .stepper-circle {
    background: #034737;
    border-color: #034737;
    color: #fff;
    box-shadow: 0px 2px 7px rgb(69 191 174 / 50%)
}

.stepper-item--done {
    color: #6b7280;
}

.stepper-item--done .stepper-circle {
    background: #ecfdf5;
    border-color: #034737;
    color: #034737;
}

/* ===== TYPO & ALERT ===== */

.checkout-title {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0;      /* było 16px */
    line-height: 1.5;      /* trochę luźniejszy tekst */
}

.checkout-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;       /* góra między akapitami */
    margin-bottom: 20px;   /* dół przed listą produktów */
}

.alert-error {
    border-radius: 12px;
    padding: 9px 11px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    margin-bottom: 12px;
}

/* ===== FIELDS ===== */

.field-group {
    margin-bottom: 12px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #111827;
}

.field-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.field-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    padding: 9px 11px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
}

.field-input:focus {
    outline: none;
    border-color: #034737;
    box-shadow: 0 0 0 2px #03473733;
}

/* ===== PACKAGE OPTIONS ===== */

.package-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 11px;
    margin-bottom: 8px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.package-main {
    font-size: 15px;
    font-weight: 600;
}

.package-sub {
    font-size: 12px;
    color: #6b7280;
}

.package-sub-note {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}


.package-option:hover {
    border-color: rgba(0,150,129,0.7);
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
    background: #f9fafb;
}

.package-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #034737;
}

/* ===== DISPLAYS / NAKLEJKI ===== */

.display-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    margin-bottom: 8px;
}

.display-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.display-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.display-label {
    font-size: 14px;
    font-weight: 500;
}

.display-price {
    font-size: 12px;
    color: #6b7280;
}

.display-qty {
    width: 72px;
}

/* ===== SUMMARY ===== */

.summary-block {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 9px 11px;
    font-size: 13px;
}

.summary-section-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-contact-line {
    margin-bottom: 2px;
}

/* ===== BUTTONS ===== */

.checkout-actions {
    display: flex;
    gap: 8px;
    margin: 35px 0;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.08s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.btn-primary {
    background: #034737;
    border:1px solid transparent;
    color: #ffffff;
   box-shadow: 0px 2px 7px rgb(69 191 174 / 50%)
}

.btn-primary:hover {
    background: #034737;
    border-color: rgb(69 191 174 / 55%);
    box-shadow:
    0px 6px 16px rgb(69 191 174 / 42%),
    0px 1px 0px rgb(255 255 255 / 10%) inset;
}

.btn-primary:active {
    border-color: rgb(2 55 44);
    transform: translateY(1px) scale(0.99);
    box-shadow:
    0px 2px 6px rgb(0 0 0 / 35%) inset,
    0px 1px 3px rgb(69 191 174 / 25%);
}

.btn-secondary {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* ===== ANIMACJA ===== */

@keyframes checkoutFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.display-section {
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.display-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.display-section-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.display-tagline {
    font-size: 0.9rem;
    color: #4b5563;
    margin-top: 0.15rem;
}

.display-description {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.15rem;
    max-width: 480px;
}

.image-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.image-overlay--visible {
    display: flex;
}

.image-overlay-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-overlay-inner img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    background: #ffffff;
    padding: 8px;
}

.image-overlay-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Pojedynczy wiersz produktu */
.display-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f9fafb;
    margin-bottom: 10px;
    overflow: visible; /* ważne – żeby powiększony obrazek nie był ucięty */
}

/* Lewa część: miniatura + teksty */
.display-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

/* Miniaturka – większa + zoom na hover */
.display-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: default;  /* usuwamy lupę */
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.display-thumb:hover {
    position: relative;
    transform: scale(2.2);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    z-index: 20;
}

/* Tytuł / tagline / opis */
.display-label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.display-tagline {
    font-size: 0.9rem;
    color: #4b5563;
}

.display-description {
    font-size: 0.85rem;
    color: #6b7280;
    max-width: 480px;
    margin-top: 2px;
}

/* Cena po prostu trochę niżej, ale czytelnie */
.display-price {
    margin-top: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Pole ilości po prawej */
.display-qty {
    width: 70px;
}


.qty-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.qty-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.display-qty {
    width: 64px;
    text-align: center;
    padding: 6px 4px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

/* Pasek podsumowania */
.display-summary {
    margin: 16px 0 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f3f4f6;
}

.display-summary-inner {
    display: flex;
    justify-content: space-between;
    font-size: 0.98rem;
    font-weight: 600;
    color: #111827;
}

/* Ukrywanie domyślnych strzałek w input[type=number] */

/* Chrome, Safari, Edge */
.display-qty::-webkit-inner-spin-button,
.display-qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.display-qty[type="number"] {
  appearance: textfield;      /* standard */
  -moz-appearance: textfield; /* Firefox legacy */
}

.summary-price-right {
    text-align: right;
    font-size: 14px;
    color: #111827;
}

.summary-price-right small {
    font-size: 12px;
    color: #6b7280;
}

.summary-total-box {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    background: #ecfdf5;
    border-radius: 10px;
    padding: 10px 12px;
}

.summary-grand-total {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
    color: #047857;
}

.summary-note-success {
    color: #059669;
    font-size: 13px;
}