/* —— Search bar scan button —— */
.logo-bar-area .search-input-box,
.arbuda-search-input-wrap {
    position: relative;
}
.logo-bar-area .search-input-box .form-control,
.arbuda-search-field {
    padding-left: 2.65rem;
    padding-right: 0.75rem;
}
@media (max-width: 991.98px) {
    .logo-bar-area .search-input-box .form-control,
    .arbuda-search-field {
        padding-right: 2.35rem;
    }
}
.arbuda-search-scan-btn {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(145deg, #1b7fed 0%, #0b6ad8 100%);
    color: #fff;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(27, 127, 237, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.arbuda-search-scan-btn:hover,
.arbuda-search-scan-btn:focus {
    color: #fff;
    filter: brightness(1.06);
    box-shadow: 0 3px 10px rgba(27, 127, 237, 0.45);
    outline: none;
    transform: translateY(-50%) scale(1.04);
}
.arbuda-search-scan-btn:active {
    transform: translateY(-50%) scale(0.97);
}
.arbuda-scan-btn-icon {
    display: block;
    flex-shrink: 0;
}
#search.storefront-scan-flash {
    box-shadow: 0 0 0 2px rgba(27, 127, 237, 0.45);
    transition: box-shadow 0.2s ease;
}

/* —— Scanner modal —— */
.storefront-scanner-modal .modal-backdrop.show {
    opacity: 0.55;
}
.storefront-scanner-dialog {
    max-width: 420px;
    margin: 0.75rem auto;
}
@media (min-width: 576px) {
    .storefront-scanner-dialog {
        max-width: 440px;
    }
}
.storefront-scanner-card {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22), 0 8px 16px rgba(15, 23, 42, 0.08);
}
.storefront-scanner-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px 14px;
    background: linear-gradient(135deg, #1b7fed 0%, #0d5fbf 100%);
    color: #fff;
    position: relative;
}
.storefront-scanner-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.storefront-scanner-header-text {
    flex: 1;
    min-width: 0;
    padding-right: 28px;
}
.storefront-scanner-header .modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.storefront-scanner-subtitle {
    font-size: 0.72rem;
    opacity: 0.92;
    margin-top: 2px !important;
}
.storefront-scanner-close-x {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #fff !important;
    opacity: 0.9;
    text-shadow: none;
    font-size: 1.5rem;
}
.storefront-scanner-body {
    background: #f4f6f9;
}
.storefront-scanner-secure-wall {
    padding: 22px 20px 24px;
    text-align: center;
    background: #fff;
    margin: 12px;
    border-radius: 12px;
    border: 1px solid #e8ecf2;
}
.storefront-scanner-secure-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff4e6;
    color: #e67e22;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.storefront-scanner-https-btn {
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(27, 127, 237, 0.35);
}
.storefront-scanner-viewport-wrap {
    position: relative;
    padding: 12px 12px 0;
}
.storefront-scanner-viewport {
    width: 100%;
    height: min(52vh, 300px);
    min-height: 260px;
    border-radius: 14px;
    overflow: hidden;
    background: #0c0c0e;
    position: relative;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.22s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.storefront-scanner-viewport.is-switching {
    opacity: 0.55;
}
.storefront-scanner-frame {
    position: absolute;
    inset: 14% 8%;
    pointer-events: none;
    z-index: 5;
}
.storefront-scanner-frame span {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: rgba(27, 127, 237, 0.95);
    border-style: solid;
}
.storefront-scanner-frame span:nth-child(1) {
    top: 0; left: 0;
    border-width: 3px 0 0 3px;
    border-radius: 4px 0 0 0;
}
.storefront-scanner-frame span:nth-child(2) {
    top: 0; right: 0;
    border-width: 3px 3px 0 0;
    border-radius: 0 4px 0 0;
}
.storefront-scanner-frame span:nth-child(3) {
    bottom: 0; left: 0;
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 4px;
}
.storefront-scanner-frame span:nth-child(4) {
    bottom: 0; right: 0;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 4px 0;
}
.storefront-scanner-status-pill {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 6;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.storefront-scanner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0c0c0e;
    transform-origin: center center;
    transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.22s ease;
    will-change: transform;
    z-index: 1;
    -webkit-playsinline: true !important;
}
.storefront-scanner-viewport.is-switching .storefront-scanner-video {
    transform: scale(0.96);
    opacity: 0.65;
}
.storefront-scanner-viewport[data-zoom="1.5"] .storefront-scanner-video {
    transform: scale(1.5);
}
.storefront-scanner-frame {
    z-index: 4;
}
.storefront-scanner-status-pill {
    z-index: 6;
}
.storefront-scanner-toolbar .btn-light {
    background: #fff;
    border-color: #dde3eb;
    font-weight: 600;
    border-radius: 10px !important;
}
.storefront-scanner-zoom-group .btn {
    min-width: 48px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.storefront-scanner-zoom-group .btn.active {
    background: #1b7fed !important;
    border-color: #1b7fed !important;
    color: #fff !important;
}
.storefront-scanner-flip-btn i {
    vertical-align: -1px;
}
#storefront-scanner-flip-camera.is-spinning i {
    display: inline-block;
    animation: storefrontCamSpin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes storefrontCamSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.storefront-scanner-footer {
    background: #f4f6f9;
    padding: 8px 16px 16px;
    justify-content: center;
}
