/* AP Barcode - v1.1.1 */
.ap-bc-position-context {
    position: relative !important;
}

.ap-bc-inline-parent {
    align-items: stretch;
}

.ap-bc-btn {
    --ap-bc-theme-bg: #d884b6;
    --ap-bc-theme-color: #ffffff;
    --ap-bc-theme-border: var(--ap-bc-theme-bg);
    --ap-bc-theme-radius: 0;
    --ap-bc-btn-width: 46px;
    --ap-bc-btn-height: 46px;
    z-index: 50;
    width: var(--ap-bc-btn-width) !important;
    height: var(--ap-bc-btn-height) !important;
    min-width: var(--ap-bc-btn-width) !important;
    min-height: var(--ap-bc-btn-height) !important;
    max-width: var(--ap-bc-btn-width) !important;
    max-height: var(--ap-bc-btn-height) !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--ap-bc-theme-border) !important;
    border-radius: var(--ap-bc-theme-radius) !important;
    background: var(--ap-bc-theme-bg) !important;
    color: var(--ap-bc-theme-color) !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    text-decoration: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.ap-bc-btn:hover,
.ap-bc-btn:focus {
    filter: brightness(.96);
    outline: none !important;
    color: var(--ap-bc-theme-color) !important;
    background: var(--ap-bc-theme-bg) !important;
    border-color: var(--ap-bc-theme-border) !important;
}

.ap-bc-btn svg {
    width: min(22px, calc(var(--ap-bc-btn-width) * .52)) !important;
    height: min(22px, calc(var(--ap-bc-btn-height) * .52)) !important;
    display: block !important;
    color: currentColor !important;
    fill: currentColor !important;
    pointer-events: none !important;
}

.ap-bc-btn svg path {
    fill: currentColor !important;
}

.ap-bc-btn-inline {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    flex: 0 0 var(--ap-bc-btn-width) !important;
}

.ap-bc-btn-absolute {
    position: absolute !important;
    transform: none !important;
}

.ap-bc-btn-before-submit {
    top: var(--ap-bc-submit-top, 0) !important;
    bottom: var(--ap-bc-submit-bottom, 0) !important;
    right: calc(var(--ap-bc-submit-right, 0px) + var(--ap-bc-submit-width, 46px)) !important;
    height: auto !important;
    max-height: none !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.ap-bc-btn-inside-input {
    top: 50% !important;
    right: 7px !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 10px !important;
}

.ap-bc-lookup-loading {
    pointer-events: none !important;
    opacity: .82 !important;
}

.ap-bc-lookup-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 999px;
    animation: apBcSpin .75s linear infinite;
    background: transparent;
}

.ap-bc-lookup-loading svg {
    opacity: .15;
}

@keyframes apBcSpin {
    to { transform: rotate(360deg); }
}

.ap-bc-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(2, 6, 23, .80);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.ap-bc-hidden {
    display: none !important;
}

html.ap-bc-open,
body.ap-bc-open {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}

.ap-bc-card {
    width: min(96vw, 740px);
    max-height: min(96vh, 840px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,.36);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #0f172a;
    font-family: inherit;
}

.ap-bc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.ap-bc-title {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.05rem;
}

.ap-bc-subtitle {
    color: #64748b;
    font-size: .88rem;
    margin-top: 2px;
}

.ap-bc-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ap-bc-video-host {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.ap-bc-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
    transform-origin: center center;
    background: #000;
    -webkit-transform: translateZ(0);
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}

.ap-bc-video::-webkit-media-controls,
.ap-bc-video::-webkit-media-controls-panel,
.ap-bc-video::-webkit-media-controls-start-playback-button,
.ap-bc-video::-webkit-media-controls-play-button,
.ap-bc-video::-webkit-media-controls-enclosure {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ap-bc-video.ap-bc-preview-flipped {
    transform: scaleX(-1) translateZ(0) !important;
}

.ap-bc-frame {
    position: absolute;
    inset: 12%;
    border: 2px solid rgba(255,255,255,.86);
    border-radius: 18px;
    box-shadow: 0 0 0 999px rgba(0,0,0,.22), inset 0 0 28px rgba(255,255,255,.12);
    pointer-events: none;
}

.ap-bc-frame::before,
.ap-bc-frame::after {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border-color: #14b8a6;
    border-style: solid;
}

.ap-bc-frame::before {
    left: -2px;
    top: -2px;
    border-width: 5px 0 0 5px;
    border-radius: 18px 0 0 0;
}

.ap-bc-frame::after {
    right: -2px;
    bottom: -2px;
    border-width: 0 5px 5px 0;
    border-radius: 0 0 18px 0;
}

.ap-bc-frame span {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22d3ee, #14b8a6, transparent);
    box-shadow: 0 0 16px rgba(20, 184, 166, .75);
    animation: apBcScanLine 1.35s linear infinite;
}

@keyframes apBcScanLine {
    0% { transform: translateY(-80px); opacity: .35; }
    50% { opacity: 1; }
    100% { transform: translateY(80px); opacity: .35; }
}

.ap-bc-status {
    padding: 12px 16px;
    color: #334155;
    font-weight: 600;
    min-height: 44px;
}

.ap-bc-status-error {
    color: #b91c1c;
    background: #fef2f2;
}

.ap-bc-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.ap-bc-actions button {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.ap-bc-switch {
    background: #ecfeff;
    color: #0e7490;
}

.ap-bc-flip {
    background: #fff7ed;
    color: #c2410c;
}

.ap-bc-flip[aria-pressed="true"] {
    background: #ffedd5;
    color: #9a3412;
}

.ap-bc-cancel {
    background: #f1f5f9;
    color: #334155;
}

.ap-bc-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 18px);
    z-index: 2147483001;
    max-width: min(92vw, 620px);
    padding: 12px 16px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 12px 34px rgba(0,0,0,.28);
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    text-align: center;
}

.ap-bc-toast-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ap-bc-toast-error {
    background: #991b1b;
}

@media (max-width: 575.98px) {
    .ap-bc-overlay {
        padding: 8px;
        align-items: stretch;
    }

    .ap-bc-card {
        width: 100%;
        max-height: 100%;
        border-radius: 16px;
    }

    .ap-bc-video-host {
        aspect-ratio: 4 / 5;
        min-height: 52vh;
    }

    .ap-bc-head {
        padding: 12px;
    }

    .ap-bc-title {
        font-size: 1rem;
    }

    .ap-bc-subtitle {
        font-size: .78rem;
    }

    .ap-bc-actions {
        flex-wrap: wrap;
        justify-content: stretch;
        padding: 10px 12px 12px;
    }

    .ap-bc-actions button {
        flex: 1 1 auto;
    }
}

.ap-bc-wrap input[type="search"],
.ap-bc-wrap input[type="text"] {
    min-width: 0 !important;
}

.woodmart-search-form .ap-bc-wrap,
.wd-search-form .ap-bc-wrap,
.header-search .ap-bc-wrap,
.searchform .ap-bc-wrap {
    width: 100%;
}
