/* Graver Product File Upload 1.5.4 */
.gpfu-wrap {
    width: 100%;
    flex-basis: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 10px 0 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d8dadd;
    border-radius: 7px;
    background: #fff;
}

.gpfu-strip {
    width: 100%;
    min-height: 92px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px 9px;
    border: 0;
    background: #fafafa;
    cursor: pointer;
    position: relative;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.gpfu-strip:hover { background: #f7f7f7; }
.gpfu-strip.is-dragover { background: #f0f5f9; box-shadow: inset 0 0 0 2px #7c8995; }

.gpfu-label {
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    color: inherit;
}

.gpfu-drop-message {
    min-height: 46px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 7px 9px;
    border: 1px dashed #b8bdc3;
    border-radius: 5px;
    background: #fff;
    text-align: center;
}

.gpfu-strip:hover .gpfu-drop-message,
.gpfu-strip.is-dragover .gpfu-drop-message { border-color: #7c8995; }

.gpfu-drop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid #c8ccd0;
    border-radius: 50%;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.gpfu-drop-text { font-size: 13px; font-weight: 600; line-height: 22px; }
.gpfu-paste-hint { font-size: 11px; line-height: 22px; opacity: .72; font-weight: 600; }
.gpfu-or { font-size: 11px; line-height: 22px; opacity: .5; }

.gpfu-browse,
.gpfu-paste-button {
    flex: 0 0 auto;
    min-height: 30px !important;
    height: 30px !important;
    padding: 4px 12px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border: 1px solid #d9dcdf !important;
    border-radius: 3px !important;
    background: #f1f1f1 !important;
    color: inherit !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
.gpfu-browse:hover,
.gpfu-browse:focus,
.gpfu-paste-button:hover,
.gpfu-paste-button:focus {
    border-color: #aeb4ba !important;
    outline: none;
}

.gpfu-file-input {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border: 0 !important;
}

.gpfu-paste-fallback {
    display: none;
    width: calc(100% - 18px);
    min-height: 42px;
    box-sizing: border-box;
    margin: 0 9px 2px;
    padding: 10px 12px;
    border: 1px dashed #9fa7ae;
    border-radius: 5px;
    background: #fff;
    font-size: 12px;
    line-height: 20px;
    color: #666;
    text-align: center;
    outline: none;
    cursor: text;
    -webkit-user-select: text;
    user-select: text;
}
.gpfu-paste-fallback.is-visible { display: block; }
.gpfu-paste-fallback:empty::before { content: attr(data-placeholder); color: #666; }
.gpfu-paste-fallback:focus { border-color: #7c8995; box-shadow: 0 0 0 1px #7c8995; }

.gpfu-clipboard-status {
    display: none;
    padding: 0 10px 4px;
    font-size: 10px;
    line-height: 15px;
    color: #666;
    text-align: center;
}
.gpfu-clipboard-status.is-visible { display: block; }
.gpfu-clipboard-status.is-error { color: #b32d2e; }

.gpfu-files:empty { display: none; }
.gpfu-files { width: auto; margin: 0; padding: 1px 12px 8px; background: #fafafa; }

.gpfu-file-row {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    margin: 5px 0 0;
    box-sizing: border-box;
    border: 1px solid #e1e4e7;
    border-radius: 5px;
    background: #fff;
    font-size: 11px;
    line-height: 16px;
}

.gpfu-file-row.is-done { border-color: #d6ded8; }
.gpfu-file-row.is-replacement { border-style: dashed; }
.gpfu-file-row.is-error { border-color: #d63638; background: #fffafa; }

.gpfu-preview {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #e0e3e6;
    border-radius: 4px;
    background: #f4f5f6;
}

.gpfu-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gpfu-file-badge { font-size: 10px; font-weight: 800; letter-spacing: .3px; opacity: .72; }

.gpfu-file-body { min-width: 0; flex: 1 1 auto; }
.gpfu-file-top, .gpfu-file-bottom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gpfu-file-top { margin-bottom: 5px; }
.gpfu-file-name { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gpfu-file-size { flex: 0 0 auto; opacity: .58; font-size: 10px; }

.gpfu-progress {
    position: relative;
    height: 4px;
    margin: 0 0 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #eceff1;
}
.gpfu-progress span { display: block; width: 0; height: 100%; background: currentColor; opacity: .5; transition: width .12s linear; }
.gpfu-progress.is-hidden { visibility: hidden; }
.gpfu-file-state { min-width: 0; flex: 1 1 auto; opacity: .65; font-size: 10px; }
.gpfu-file-row.is-error .gpfu-file-state { color: #b32d2e; opacity: 1; }

.gpfu-file-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.gpfu-replace,
.gpfu-remove {
    min-height: 24px !important;
    height: 24px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 2px 7px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #d9dcdf !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: inherit !important;
    font-size: 10px !important;
    line-height: 18px !important;
    cursor: pointer;
}
.gpfu-replace:disabled { opacity: .42; cursor: default; }
.gpfu-remove span:first-child { margin-right: 4px; font-size: 15px; line-height: 1; }
.gpfu-replace:hover:not(:disabled), .gpfu-remove:hover { border-color: #9ea4aa !important; }

.gpfu-choice-divider { position: relative; height: 1px; margin: 0 12px; background: #e7e7e7; text-align: center; }
.gpfu-choice-divider span { position: relative; top: -8px; display: inline-block; padding: 0 8px; background: #fff; font-size: 10px; line-height: 16px; color: #8a8a8a; }

.gpfu-url-row { width: 100%; box-sizing: border-box; margin: 0; padding: 10px 12px 11px; border: 0; background: #fff; }
.gpfu-url-label { display: block; margin: 0 0 5px; font-size: 12px; font-weight: 600; line-height: 18px; }
.gpfu-url-input { display: block; width: 100% !important; max-width: none !important; min-height: 34px !important; height: 34px !important; box-sizing: border-box !important; margin: 0 !important; padding: 5px 9px !important; border-radius: 3px !important; font-size: 12px !important; line-height: 22px !important; }
.gpfu-url-help { margin-top: 4px; font-size: 10px; line-height: 14px; opacity: .62; }

form.cart > .gpfu-wrap,
form.cart .woocommerce-variation-add-to-cart > .gpfu-wrap,
form.cart .wcpa_form_outer ~ .gpfu-wrap { flex-basis: 100% !important; max-width: 100% !important; width: 100% !important; order: initial !important; }

@media (max-width: 767px) {
    .gpfu-wrap { margin: 8px 0 10px; }
    .gpfu-strip { min-height: 96px; padding: 9px 8px 8px; gap: 7px; }
    .gpfu-label { font-size: 11px; line-height: 17px; }
    .gpfu-drop-message { min-height: 70px; gap: 6px; padding: 8px 6px; }
    .gpfu-drop-icon { display: none; }
    .gpfu-drop-text { width: 100%; font-size: 11px; line-height: 17px; opacity: .72; }
    .gpfu-paste-hint { display: none; }
    .gpfu-or { display: none; }
    .gpfu-browse, .gpfu-paste-button { min-height: 34px !important; height: 34px !important; padding: 5px 11px !important; font-size: 11px !important; }
    .gpfu-paste-fallback { width: calc(100% - 12px); margin-left: 6px; margin-right: 6px; min-height: 48px; font-size: 11px; }
    .gpfu-clipboard-status { padding-left: 7px; padding-right: 7px; }
    .gpfu-files { padding-left: 8px; padding-right: 8px; }
    .gpfu-file-row { gap: 7px; padding: 6px; }
    .gpfu-preview { width: 42px; height: 42px; flex-basis: 42px; }
    .gpfu-remove-text { display: none; }
    .gpfu-remove span:first-child { margin-right: 0; }
    .gpfu-choice-divider { margin-left: 8px; margin-right: 8px; }
    .gpfu-url-row { padding: 10px 8px 9px; }
}
