/* assets/css/frontend.css */
.acf-pu-wrapper {
    max-width: 720px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.acf-pu-notice {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.acf-pu-notice--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

/* ACF Repeater drag handle */
.acf-pu-wrapper .acf-row-handle {
    cursor: grab;
    opacity: 0.6;
}
.acf-pu-wrapper .acf-row-handle:hover {
    opacity: 1;
}

/* Gallery grid */
.acf-pu-gallery {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.acf-pu-collection__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.acf-pu-collection__title a {
    color: inherit;
    text-decoration: none;
}

/* Share overlay */
.acf-pu-photo__share {
    display: flex;
    gap: 0.4rem;
    opacity: 0;
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    transition: opacity 0.2s;
    z-index: 2;
}

.acf-pu-photo:hover .acf-pu-photo__share { opacity: 1 }

@media (hover: none) {
    .acf-pu-photo__share { opacity: 1 }
}

.acf-pu-share {
    align-items: center;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-size: 16px;
    height: 32px;
    justify-content: center;
    text-decoration: none;
    transition: opacity .2s;
    width: 32px
}

.acf-pu-share:hover { opacity: .8; }

.acf-pu-share--twitter  { background: #000; }
.acf-pu-share--whatsapp { background: #25d366; }
.acf-pu-share--facebook { background: #1877f2; }   

/* Edit toggle */
.acf-pu-edit-toggle {
    padding: 0.4rem 1rem;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}

.acf-pu-edit-toggle:hover {
    background: #334155;
}

/* Edit form container */
.acf-pu-edit-form {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.acf-pu-bulk-upload {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.acf-pu-bulk-upload h3 {
    margin-top: 0;
}

.acf-pu-bulk-mode label {
    display: block;
    margin-bottom: 6px;
}

.acf-pu-bulk-btn {
    margin-right: 10px;
}

.acf-pu-bulk-status {
    font-size: 13px;
}

.acf-pu-mode-select {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.acf-pu-mode-select label {
    cursor: pointer;
    font-size: 15px;
}

@media (max-width: 600px) {
    .acf-pu-mode-select {
        flex-direction: column;
        gap: 12px;
    }
}

.acf-pu-instructions {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.acf-pu-caption-mode label {
    display: block;
    margin-bottom: 6px;
}

.acf-pu-step {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.acf-pu-step h3 {
    margin-top: 0;
    font-size: 16px;
}

.acf-pu-caption-mode label {
    display: block;
    margin-bottom: 6px;
}

.acf-pu-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.acf-pu-preview-item {
    text-align: center;
    width: 120px;
}

.acf-pu-preview-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.acf-pu-preview-item span {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}