.foto_sell_wrapper{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.foto_sell_wrapper_editor{
    width: 30%;
    border: 1px solid red;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.foto_sell_wrapper_editor_propozycje_item{
    width: 100px;
    cursor: pointer;
}

.foto_sell_wrapper_editor_propozycje_item img{
    width: 100%;
}

.foto_sell_wrapper_editor_napisow_wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.foto_sell_wrapper_editor_napisow_wrapper input{
    width: 100%;
    padding: 6px 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.foto_sell_download_btn{
    margin-top: 10px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #333;
    background: #f5f5f5;
}

/* PRAWA CZĘŚĆ: UPLOAD + PODGLĄD KARTKI */
.foto_sell_wrapper_image{
    width: 70%;
    border: 1px solid green;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
}

/* lewy (upload) i prawy (kartka) box po 50% szerokości */
.foto_sell_wrapper_upload_image_wrapper,
.foto_sell_wrapper_image_wrapper{
    flex: 1 1 0;
    width: auto;
}

.foto_sell_wrapper_image_inner{
    position: relative;
    width: 100%;
}

.foto_sell_wrapper_image_inner img{
    width: 100%;
    height: auto;
    display: block;
}

/* NAPISY NA KARTCE */
#kartka-napisy{
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.kartka_napis{
    position: absolute;
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: pre-line;
    word-wrap: break-word;
    line-height: 1.2;
}

/* UPLOAD ZDJĘCIA */
.foto_sell_wrapper_upload_image_wrapper{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.foto_sell_wrapper_upload_controls{
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
}

.upload_label{
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 14px;
    background: #f8f8f8;
}

.upload_hint{
    font-size: 12px;
    color: #666;
}

.upload-drop-zone{
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 5px;
    transition: border-color 0.2s, background-color 0.2s;
    position: relative;
    min-height: 150px;
}

.upload-drop-zone.is-dragover{
    border-color: #4a90e2;
    background-color: #f0f6ff;
}

/* placeholder na środku */
.upload-placeholder{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    pointer-events: none;
    text-align: center;
}

.upload-placeholder-icon{
    font-size: 28px;
    line-height: 1;
}

/* obrazek użytkownika – domyślnie ukryty */
#kartka-upload-preview{
    display: none;
    width: 100%;
    height: auto;
}

/* koszyk w prawym górnym rogu – domyślnie ukryty */
.upload-clear-btn{
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 6px 9px;
}
.foto-sell-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.foto-sell-modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px 20px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.foto-sell-modal-message {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.foto-sell-modal-message strong {
  font-weight: 700;
}

.foto-sell-modal-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.foto-sell-modal-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.foto-sell-modal-btn-cancel {
  background: #e5e5e5;
}

.foto-sell-modal-btn-confirm {
  background: #2f855a;
  color: #fff;
}
