/* Flockati Logo Overlay — overlay.css */

/* Przycisk toggle */
.flo-toggle-wrap {
    text-align: right;
    margin: 10px 0 6px;
}

.flo-toggle-btn {
    font-family: "Oswald", sans-serif;
    background: #57ba47;
    border: 3px solid #57ba47;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    padding: 7px 20px;
    cursor: pointer;
    transition: all 0.2s linear;
    display: inline-block;
}

.flo-toggle-btn:hover,
.flo-toggle-btn.active {
    color: #57ba47;
    background: transparent;
}

.flo-overlay-section {
    margin: 8px 0 24px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.flo-title {
    font-size: 18px;
    margin: 0 0 16px;
    font-weight: 600;
}

/* Wybór zdjęcia produktu */
.flo-image-select {
    margin-bottom: 14px;
}

.flo-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.flo-product-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color .2s;
}

.flo-product-thumb.active,
.flo-product-thumb:hover {
    border-color: #0083c5;
}

/* Etykiety kroków */
.flo-step-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

/* Upload */
.flo-upload-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.flo-upload-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
}

.flo-logo-count-wrap {
    font-size: 13px;
    color: #555;
}

/* Lista logotypów */
.flo-logo-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 0;
}

.flo-logo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 13px;
}

.flo-logo-item__num {
    font-weight: 700;
    color: #888;
    min-width: 18px;
}

.flo-logo-item__name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.flo-logo-remove {
    background: rgba(200,0,0,.75);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background .2s;
}

.flo-logo-remove:hover {
    background: #c00;
}

/* Przycisk "Pobierz logo" w modalu */
.flo-download-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
}

.flo-download-btn:hover {
    background: #e8e8e8;
    color: #000;
    text-decoration: none;
}

.flo-upload-name {
    font-size: 13px;
    color: #555;
}

/* Canvas */
.flo-canvas-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
}

.flo-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    height: auto !important;
}

.flo-canvas-hint {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #fff;
    background: rgba(0,0,0,.45);
    padding: 2px 8px;
    border-radius: 3px;
    pointer-events: none;
    white-space: nowrap;
}

/* Akcje / zoom */
.flo-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.flo-actions label {
    font-size: 13px;
    margin: 0;
}

#flo-zoom {
    width: 120px;
}

.flo-counter {
    font-size: 12px;
    color: #888;
    margin-left: auto;
}

/* Komunikaty */
.flo-msg {
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 12px;
}

.flo-msg--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flo-msg--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Galeria miniaturek */
.flo-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.flo-thumb-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 100px;
    height: 100px;
}

.flo-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flo-delete-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    background: rgba(200,0,0,.75);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .2s;
}

.flo-delete-btn:hover {
    background: #c00;
}

/* Koszyk */
.flo-cart-visuals {
    margin: 16px 0;
    padding: 14px;
    background: #f0f7ff;
    border: 1px solid #c5dff8;
    border-radius: 5px;
}

.flo-cart-visuals__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
}

.flo-cart-visuals__grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.flo-cart-visuals__item {
    text-align: center;
}

.flo-cart-visuals__item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #bcd;
    border-radius: 3px;
    display: block;
}

.flo-cart-visuals__label {
    display: block;
    font-size: 11px;
    color: #555;
    margin-top: 3px;
}

.flo-cart-visuals__note {
    font-size: 12px;
    color: #555;
    margin: 8px 0 0;
}

/* Moje konto — szczegóły zamówienia */
.flo-order-visuals {
    margin: 16px 0;
}

.flo-order-visuals__grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.flo-order-visuals__item img {
    max-width: 140px;
    max-height: 140px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
}
