/* Guest Post Plugin Frontend Styles */

.gpp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gpp-main-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.gpp-form-wrapper {
    padding: 30px;
}

.gpp-form-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

/* Form Sections */
.gpp-form-section {
    overflow: hidden;
}

.gpp-section-title {
    color: #007cba;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 5px 0;
    border-bottom: 1px solid #007cba;
}

.gpp-form-section > *:not(.gpp-section-title):not(button) {
    padding: 15px 0 0 0;
}

/* Form Layout */
.gpp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.gpp-form-row.gpp-six-column-layout {
    grid-template-columns: repeat(6, 1fr);
}

.gpp-form-row.gpp-five-column-layout {
    grid-template-columns: repeat(5, 1fr);
}

.gpp-form-row.gpp-four-column-layout {
    grid-template-columns: repeat(4, 1fr);
}


.gpp-form-group {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.gpp-form-group.gpp-full-width {
    grid-column: 1 / -1;
}

.gpp-form-group label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 6px;
    font-size: 14px;
}

.gpp-form-group label .required {
    color: #e74c3c;
    margin-left: 3px;
}

/* Form Controls */
input.gpp-form-control {
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 0;
}

.gpp-form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.gpp-form-control:invalid {
    border-color: #e74c3c;
}
input.gpp-form-control.gpp-form-small {
    padding: 4px 10px;
    line-height: 1;
    font-size: 15px;
    height: 36px;
}
.gpp-form-small + .select2-container .select2-selection--single {
    height: 36px;
}
.gpp-form-small + .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 1 !important;
}
.form-input-wrapper {
    position: relative;
}
.form-input-wrapper > input.gpp-form-control,
.form-input-wrapper > textarea.gpp-form-control,
.form-input-wrapper > select.gpp-form-control {
    padding-left: 36px;
}
.form-input-wrapper > svg {
    width: 24px;
    height: 24px;
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    fill: #007cba;
}

/* Address Search Dropdown */
.gpp-address-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

/* Hide dropdown when Google Places is active */
.gpp-google-places-active .gpp-address-dropdown {
    display: none !important;
}

.gpp-address-dropdown.show {
    display: block;
}

.gpp-address-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.4;
    transition: background-color 0.2s ease;
}

.gpp-address-item:last-child {
    border-bottom: none;
}

.gpp-address-item:hover {
    background-color: #f8f9fa;
}

.gpp-address-item.selected {
    background-color: #007cba;
    color: #fff;
}

.gpp-address-item .address-main {
    font-weight: 600;
    color: inherit;
    display: block;
    margin-bottom: 2px;
}

.gpp-address-item .address-detail {
    font-size: 12px;
    opacity: 0.8;
    color: inherit;
}

.gpp-address-item:hover .address-detail,
.gpp-address-item.selected .address-detail {
    opacity: 1;
}

/* Loading indicator */
.gpp-address-loading {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.gpp-address-no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

textarea.gpp-form-control {
    resize: vertical;
    min-height: 120px;
}

select.gpp-form-control {
    cursor: pointer;
}

.gpp-form-help {
    font-size: 12px;
    color: #505050;
    font-style: italic;
}

/* Features Grid */
.gpp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
}

.gpp-feature-item {
    display: flex;
    align-items: center;
}

.gpp-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #34495e;
    user-select: none;
}

.gpp-checkbox-label input[type="checkbox"] {
    display: none;
}

.gpp-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.gpp-checkbox-label input[type="checkbox"]:checked + .gpp-checkbox-custom {
    background: #3498db;
    border-color: #3498db;
}

.gpp-checkbox-label input[type="checkbox"]:checked + .gpp-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Additional Features */
.gpp-additional-features {
    padding: 15px;
}

.gpp-additional-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    margin-bottom: 15px;
    align-items: end;
}

/* Buttons */
.gpp-btn {
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1;
}

.gpp-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.gpp-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.gpp-btn-secondary {
    background: #59b9fb;
    color: white;
}

.gpp-btn-secondary:hover {
    background: #2980b9;
}

.gpp-btn-danger {
    background: #e74c3c;
    color: white;
}

.gpp-btn-danger:hover {
    background: #c0392b;
}

.gpp-btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

/* Advanced Options Toggle */
.gpp-advanced-toggle {
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #007cba;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.gpp-advanced-toggle:hover {
    background: #003870;
}

.gpp-toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.gpp-advanced-options {
    padding-top: 15px;
    margin-top: 15px;
}

/* Rich Editor Styling */
.wp-editor-container {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wp-editor-area {
    border: none !important;
    border-radius: 0 0 4px 4px !important;
}

.wp-editor-tools {
    background: #fff;
    border-bottom: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
}

.wp-editor-tabs {
    border-bottom: 1px solid #ddd;
}
.wp-core-ui .quicktags-toolbar input.button.button-small,
.wp-switch-editor.switch-html:focus {
    height: unset;
}
.wp-switch-editor {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    color: #666;
}

.wp-switch-editor:hover {
    background: #e9ecef;
    color: #333;
}

.wp-switch-editor.switch-tmce {
    border-right: none;
}

.wp-switch-editor.switch-html {
    border-left: none;
}

.wp-editor-tools .wp-editor-tabs .wp-switch-editor {
    float: left;
    margin: 0;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

.wp-editor-tools .wp-editor-tabs .wp-switch-editor.switch-tmce {
    border-right: 1px solid #ddd;
}

.wp-editor-tools .wp-editor-tabs .wp-switch-editor.switch-html {
    border-left: 1px solid #ddd;
}

.wp-editor-tools .wp-editor-tabs .wp-switch-editor.switch-tmce:hover,
.wp-editor-tools .wp-editor-tabs .wp-switch-editor.switch-html:hover {
    background: #e9ecef;
}

.wp-editor-tools .wp-editor-tabs .wp-switch-editor.switch-tmce.active,
.wp-editor-tools .wp-editor-tabs .wp-switch-editor.switch-html.active {
    background: #fff;
    border-bottom: 1px solid #fff;
    color: #333;
}

/* Media Upload */
.gpp-media-upload-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 15px 0;
}

.gpp-media-upload-section.gpp-three-column-layout {
    grid-template-columns: repeat(3, 1fr);
}

.gpp-upload-item {
    text-align: left;
}

.gpp-upload-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 14px;
}

.gpp-upload-preview {
    width: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}


.gpp-upload-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.gpp-upload-placeholder {
    color: #7f8c8d;
    font-size: 12px;
    text-align: center;
}

.gpp-gallery-preview {
    min-height: 80px;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.gpp-gallery-item {
    position: relative;
    width: 60px;
    height: 60px;
}

.gpp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* .gpp-gallery-remove {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
} */

/* Panorama Preview */
.gpp-panorama-preview {
    width: 100%;
    min-height: 80px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gpp-panorama-preview:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.gpp-panorama-preview.has-image {
    background: #fff;
}

.gpp-panorama-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* .gpp-panorama-preview .gpp-panorama-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 200px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

.gpp-panorama-preview .gpp-panorama-remove:hover {
    background: #c0392b;
} */

/* Panorama Container */
.gpp-panorama-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.gpp-panorama-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.gpp-upload-item .gpp-btn {
    font-size: 13px;
    margin-top: 0;
    padding: 10px 15px;
    width: 100%;
    height: unset;
    line-height: 1;
}

/* Map */
.gpp-map-container {
    padding: 15px;
}

.gpp-map {
    width: 100%;
    height: 400px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Form Actions */
.gpp-form-actions {
    text-align: center;
    padding: 25px 15px;
}

.gpp-form-note {
    margin-top: 12px;
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

/* Messages */
.gpp-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    text-align: center;
}

.gpp-success-message h3 {
    margin: 0 0 10px 0;
    color: #155724;
}

.gpp-error-messages {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.gpp-error-messages h4 {
    margin: 0 0 15px 0;
    color: #721c24;
}

.gpp-error-messages ul {
    margin: 0;
    padding-left: 20px;
}

.gpp-rate-limit-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    text-align: center;
}

.gpp-rate-limit-warning h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.gpp-rate-limit-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

/* Turnstile */
.cf-turnstile {
    display: flex;
    justify-content: center;
    padding: 15px;
}

/* Dynamic Input Fields */
.gpp-dynamic-input {
    position: relative;
}

.gpp-dynamic-input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

/* Datalist styling */
.gpp-dynamic-input::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

.gpp-dynamic-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Auto-fill indicator */
.gpp-dynamic-input.auto-filled {
    background-color: #f0f8ff;
    border-color: #007cba;
}

/* Loading state for auto-fill */
.gpp-dynamic-input.loading {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%23007cba" d="M10 3.5A1.5 1.5 0 0 1 11.5 5v2a1.5 1.5 0 0 1-3 0V5A1.5 1.5 0 0 1 10 3.5z"/><path fill="%23007cba" d="M10 16.5a1.5 1.5 0 0 1-1.5-1.5v-2a1.5 1.5 0 0 1 3 0v2a1.5 1.5 0 0 1-1.5 1.5z"/><path fill="%23007cba" d="M16.5 10a1.5 1.5 0 0 1-1.5 1.5h-2a1.5 1.5 0 0 1 0-3h2a1.5 1.5 0 0 1 1.5 1.5z"/><path fill="%23007cba" d="M3.5 10a1.5 1.5 0 0 1 1.5-1.5h2a1.5 1.5 0 0 1 0 3h-2A1.5 1.5 0 0 1 3.5 10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

/* Success state for auto-fill */
.gpp-dynamic-input.auto-fill-success {
    background-color: #f0fff4;
    border-color: #48bb78;
}

/* Error state for auto-fill */
.gpp-dynamic-input.auto-fill-error {
    background-color: #fff5f5;
    border-color: #f56565;
}

/* Price Input with VND Currency */
.gpp-price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gpp-price-input {
    padding-right: 40px;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.gpp-currency-symbol {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.gpp-price-input:focus + .gpp-currency-symbol {
    color: #007cba;
}

/* Price input focus state */
.gpp-price-input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

/* Price input placeholder */
.gpp-price-input::placeholder {
    color: #999;
    font-family: inherit;
    font-weight: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gpp-container {
        padding: 10px;
    }
    
    .gpp-form-wrapper {
        padding: 20px;
    }
    
    .gpp-form-row, 
	.gpp-form-row.gpp-six-column-layout,
	.gpp-form-row.gpp-five-column-layout,
	.gpp-form-row.gpp-four-column-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gpp-additional-feature-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gpp-media-upload-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gpp-media-upload-section.gpp-three-column-layout {
        grid-template-columns: 1fr;
    }
    
    .gpp-gallery-preview {
        min-height: 70px;
        padding: 8px;
    }
    
    .gpp-gallery-item {
        width: 50px;
        height: 50px;
    }
    
    .gpp-panorama-preview {
        min-height: 70px;
    }
    
    .gpp-features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gpp-form-title {
        font-size: 24px;
    }
    
    .gpp-section-title {
        font-size: 15px;
        padding: 5px 10px;
    }
    
    .gpp-form-section > *:not(.gpp-section-title):not(button) {
        padding: 12px 0 0 0;
    }
}

@media (max-width: 480px) {
    .gpp-form-wrapper {
        padding: 15px;
    }
    
    .gpp-form-section > *:not(.gpp-section-title):not(button) {
        padding: 10px 0 0 0;
    }
    
    .gpp-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .gpp-map {
        height: 300px;
    }
    
    .gpp-section-title {
        font-size: 14px;
        padding: 5px 8px;
    }
    
    .gpp-upload-preview {
        height: 80px;
    }
    
    .gpp-gallery-preview {
        min-height: 60px;
        padding: 6px;
    }
    
    .gpp-gallery-item {
        width: 45px;
        height: 45px;
    }
    
    .gpp-upload-item .gpp-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .gpp-panorama-preview {
        min-height: 60px;
    }
}

/* Upload Loading and Error States */
.gpp-upload-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    font-style: italic;
    width: 100%;
}

.gpp-upload-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gpp-upload-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    text-align: center;
    font-weight: 500;
}

.gpp-upload-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    text-align: center;
    font-weight: 500;
}

/* File input styling */
.gpp-file-input {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.gpp-file-input input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.gpp-file-input:hover .gpp-btn {
    background-color: #005a87;
}

/* Image Preview Containers */
.gpp-preview-container {
    position: relative;
    display: inline-block;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gpp-gallery-preview-item {
    position: relative;
    display: inline-block;
    margin: 5px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    vertical-align: top;
}

.gpp-preview-image {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

.gpp-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gpp-preview-container:hover .gpp-preview-overlay,
.gpp-gallery-preview-item:hover .gpp-preview-overlay {
    opacity: 1;
}

.gpp-preview-overlay .gpp-btn {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 80px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gpp-upload-confirm {
    background: #28a745;
    color: white;
}

.gpp-upload-confirm:hover {
    background: #218838;
}

.gpp-upload-cancel {
    background: #6c757d;
    color: white;
}

.gpp-upload-cancel:hover {
    background: #5a6268;
}

/* Gallery preview grid */
#gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.gpp-gallery-preview-item {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
}

.gpp-gallery-preview-item .gpp-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thumbnail preview */
#thumbnail-preview .gpp-preview-container {
    width: 100%;
    max-width: 300px;
}

#thumbnail-preview .gpp-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Thumbnail and Gallery Containers (after upload) */
.gpp-thumbnail-container {
    position: relative;
    display: inline-block;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.gpp-thumbnail-image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gpp-btn-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 200px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

.gpp-btn-remove:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.gpp-gallery-item {
    position: relative;
    display: inline-block;
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    vertical-align: top;
    width: 90px;
    height: 90px;
    padding: 2px;
    border: 1px solid #ccc;
    background: #ddd;
}

.gpp-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .gpp-gallery-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 200px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

.gpp-gallery-remove:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
} */

/* Upload placeholder styling */
.gpp-upload-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.gpp-upload-placeholder:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* Gallery Loading Items */
.gpp-gallery-loading-item {
    display: inline-block;
    margin: 5px;
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    vertical-align: top;
}

.gpp-gallery-loading-item .gpp-upload-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    font-style: italic;
    font-size: 12px;
    padding: 10px;
    margin: 0;
    text-align: center;
}
.gpp-gallery-loading-item .gpp-upload-loading::before {
    margin-right: 0;
}
/* Validation Success Message */
.gpp-validation-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

/* Validation Error Message */
.gpp-validation-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

