.engraving-upload-label {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
    padding: 40px 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    color: #666;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s, background-color 0.3s;
    user-select: none;
    position: relative;
}

.engraving-upload-label:hover,
.engraving-upload-label.dragover {
    border-color: #0073aa;
    background-color: #f0f8ff;
    color: #0073aa;
}

.engraving-upload-label .upload-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
    color: #999;
    font-weight: normal;
}

#engraving_file {
    display: none;
}

.wc-engraving-shortcode {
    background: #fafafa;
    color: #313842;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    line-height: normal;
    margin: 1rem 0 0 !important;
    padding: 0 15px 5px !important;
    text-align: left;
    width: 100%;
    font-family: Roboto, sans-serif !important;
}

.wc-engraving-shortcode label {
    color: #313842;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5rem;
}

.wc-engraving-shortcode p {
    margin: 0;
}

.upload-icon img {
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.upload-instruction {
    font-weight: normal;
}

.engraving-text-wrap {
    margin-top: 1rem;
    max-width: 400px;
}
.engraving-text-wrap input[type="text"],
.engraving-numbering-wrap input[type="text"] {
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 0 2.9em 0 1em;
    font-size: 1rem;
}

/* #engraving_file_group,
.engraving-text-wrap,
.engraving-numbering-wrap {
    display: none;
} */

.engraving-text-wrap input,
.engraving-numbering-wrap input {
    margin-bottom: 15px;
}

.engraving-numbering-range,
.engraving-numbering-range-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.engraving-numbering-range{
    padding-bottom: 15px;
}

.engraving-numbering-range-label{
    font-weight: 700;
}

.engraving-service-wrap {
    margin: 30px 0 10px;
}

.variation-File,
.variation-Details,
.variation-Numbering ,
.variation-Service  {
    display: block !important;
    font-size: 14px !important;
}

.dialog-widget.dialog-lightbox-widget {
    z-index: 10005;
}

.engraving-info {
    color: #197333 !important;
    font-size: .75rem;
    font-weight: 700;
    font-family: Roboto, sans-serif;
    margin-bottom: 5px;
}

.engraving-info.engraving-info--dark{
    color: #000000 !important;
    font-weight: 400;
}

#pick-from-my-files {
    display: flex;
    align-items: center;
    gap: 0.5em;
    width: 100%;
    border: none;
    background: none;
    font-size: 14px;
    margin-bottom: 10px;
}

#my-files-list {
    margin-bottom: 2rem;
}

.my-files-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.my-file-item {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.my-file-item:hover,
.my-file-item:focus {
    border-color: #197333; /* matching your green color */
    outline: none;
}

.my-file-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 6px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 4px solid #c6e5cc; /* lighter green background ring */
    border-top: 4px solid #197333; /* your dark green color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

.my-file-item { position: relative; }

.my-file-delete { 
    display: none; 
    position: absolute; 
    right: 5px; 
    bottom: 0; 
    background: rgba(255,255,255,0.7); 
    /* #197333 */
    border-radius: 50%; 
    padding: 2px 4px; 
    font-size: 14px; 
    transition: background 0.2s;
    width: 32px;
    height: 32px;
}

.my-file-delete::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: url('/wp-content/themes/xstore-child/dist/_/assets/img/icons/icon-trash.svg') no-repeat center;
    background-size: contain; /* optional, to fit icon nicely */
    transform: translate(-50%, -50%);
    filter: #197333;
}

.my-file-item:hover .my-file-delete { display: inline-block; }

.my-file-delete:hover::before {
    background: url('/wp-content/themes/xstore-child/dist/_/assets/img/icons/icon-trash-active.svg') no-repeat center;
}