 .fotosell-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 15px;
	background: #f7f1e9;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: white;
    border-radius: 15px;
	margin-bottom: 60px;
}
.fotosell-card {
	max-width: 780px;
	width: 100%;
}
.fotosell-card.fotosell-podglad-kartki{
	padding: 0;
}

.fotosell-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #666;
	margin-bottom: 18px;
	text-decoration: none!important;
}
.fotosell-back-icon {
	font-size: 18px;
	line-height: 1;
}
.fotosell-title {
	font-size: 24px;
	font-weight: 700;
	margin-top: 40px;
	text-align: center;
	color: #222;
}
.fotosell-subtitle {
	font-size: 14px;
	line-height: 1.5;
	color: #666;
	text-align: center;
	margin-bottom: 24px;
}

.fotosell-drop {
	border: 2px dashed #3dbf72;
	border-radius: 16px;
	padding: 24px 18px;
	background: #f9fff9;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 60%;
	margin: auto;
}
.fotosell-drop.is-dragover {
	border-color: #2c9e5d;
	box-shadow: 0 0 0 3px rgba(60,191,114,0.15);
	background: #f2fff5;
}
.fotosell-preview-main {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	border: 4px solid #e3f6ec;
	background: #f5f5f5 center center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	position: relative;
	overflow: hidden;
}
.fotosell-preview-main.has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6);
}
.fotosell-status {
	font-size: 14px;
	margin-bottom: 4px;
}
.fotosell-status-default {
	color: #555;
}
.fotosell-status-added {
	color: #2f9b57;
	display: none;
}
.fotosell-status-added strong {
	font-weight: 600;
}
.fotosell-hint {
	font-size: 12px;
	color: #888;
	margin-bottom: 8px;
}
.fotosell-change {
	font-size: 12px;
	color: #2f7bee;
	text-decoration: underline;
}

.fotosell-preview-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}
.fotosell-thumb {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	border: 2px solid #e0e0e0;
}

.fotosell-input {
	display: none;
}

.fotosell-footer {
	display: flex;
	justify-content: center;
	margin-top: 26px;
}
.fotosell-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 200px;
	padding: 12px 24px;
	border-radius: 7px;
	border: none;
	background: #D42426;
	color: #ffffff;
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
.fotosell-btn-primary:hover {
	background: #c72a24;
	box-shadow: 0 8px 18px rgba(228,49,43,0.25);
	transform: translateY(-1px);
}
.fotosell-btn-primary:active {
	transform: translateY(0);
	box-shadow: none;
}
.fotosell-btn-primary-icon {
	font-size: 18px;
	line-height: 1;
}

@media (max-width: 480px) {
	.fotosell-card {
		padding: 24px 16px 20px; 
	}
	.fotosell-preview-main {
		width: 150px;
		height: 150px;
	}
}

.fotosell-wrapper-loader {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Kroki 1-2-3 */
.fotosell-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.fotosell-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #195f34;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #195f34;
    background: #ffffff;
}

.fotosell-step-completed,
.fotosell-step-active {
    background: #195f34;
    color: #ffffff;
}

.fotosell-step-line {
    flex: 1;
    height: 2px;
    background: #cfd9d2;
}

.fotosell-step-line-active {
    background: #195f34;
}

/* Karta loadera */
.fotosell-loader-card-inner {
    text-align: center;
    padding: 24px 10px 10px;
}

.fotosell-loader-spinner {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.fotosell-loader-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid #e4312b;
    border-top-color: transparent;
    animation: fotosell-spin 0.8s linear infinite;
}

@keyframes fotosell-spin {
    to { transform: rotate(360deg); }
}

.fotosell-loader-title {
    font-size: 22px;
    font-weight: 700;
    margin: 12px 0 4px;
}

.fotosell-loader-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
}

.fotosell-loader-icon img.fotosell-loader-santa {
    width: 40px;
    height: 40px;
}

/* Modal – tło pełnoekranowe */
.fotosell-modal {
    position: fixed;
    inset: 0;
    display: none; /* pokazywany przez .is-visible */
    z-index: 9999;
}

.fotosell-modal.is-visible {
    display: block;
}

.fotosell-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

/* Wewnętrzna karta podglądu – centrowanie */
.fotosell-modal-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;   /* pionowe wycentrowanie */
    justify-content: center; /* poziome wycentrowanie */
    padding: 20px;
}

/* Biała karta z obramowaniem */
.fotosell-modal-card {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.35);

    /* maksymalny rozmiar względem okna */
    max-width: 90vw;
    max-height: 90vh;
}

/* Kontener na obraz + overlay tekstów */
.fotosell-modal-card-inner {
    position: relative;
    display: inline-block;
    max-height: calc(100vh - 160px); /* zapas na marginesy / nagłówki */
}

/* Obraz kartki – dopasowanie do wysokości ekranu */
.fotosell-modal-card-image {
    display: block;
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 200px); /* tu kontrolujesz "ile miejsca" ma kartka */
    margin: 0 auto;
}

/* Warstwa z napisami – pozycjonowana względem kartki */
.fotosell-modal-card-text-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Teksty na kartce */
.kartka_napis {
    position: absolute;
    transform: translate(-50%, -50%);
    white-space: pre-wrap;
    max-width: 100%;      /* domyślnie tekst max 80% szerokości kartki */
    text-align: center;  /* można nadpisać inline z JSON */
	width: 100%;
}

/* Przycisk zamknięcia */
.fotosell-modal-close {
	position: absolute;
    top: 40px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 45px;
    padding: 0;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding-bottom: 8px;
}
.fotosell-validation{
  margin: 14px 0 10px;
  padding: 10px 12px;
  border: 1px solid #e0b4b4;
  background: #fff6f6;
  color: #9f3a38;
  border-radius: 10px;
  font-weight: 500;
  text-align: left;
}
#oplacBtn.is-disabled{
  opacity: .55;
  cursor: not-allowed;
}


.fotosell-loader-santa{
  width: 64px;              /* opcjonalnie */
  height: auto;
  image-rendering: pixelated; /* żeby pixel-art wyglądał ostro */
  transform: translateY(0);
  transform-origin: center bottom;
  animation: fotosellSantaHop 3.5s ease-in-out infinite;
  will-change: transform;
}

/* krótki podskok na początku cyklu, potem przerwa */
@keyframes fotosellSantaHop{
  0%, 78%   { transform: translateY(0); }
  82%       { transform: translateY(-10px); }
  86%       { transform: translateY(0); }
  90%       { transform: translateY(-6px); }
  94%, 100% { transform: translateY(0); }
}
