/* =============================================
   Wizualne Opowieści Light — Widgets CSS
   Floating: pakiety, kontakt, galeria
   ============================================= */

/* =============================================
   FLOATING SIDEBAR — pakiety
   ============================================= */
#wo-floating-pkg {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    z-index: 9999;
    background: #FFFFFF;
    border: 1px solid #D8E6F3;
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 12px 10px;
    width: 168px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 30px rgba(44,42,37,0.1);
    font-family: "DM Sans", sans-serif;
}
#wo-floating-pkg.wo-fpkg-visible { transform: translateY(-50%) translateX(0); }
#wo-floating-pkg.wo-fpkg-hidden  { transform: translateY(-50%) translateX(100%); }
.wo-fpkg-close {
    position: absolute; top: 7px; right: 8px;
    background: none; border: none;
    color: #9AA8B5; font-size: 11px;
    cursor: pointer; padding: 3px; line-height: 1;
    transition: color 0.2s;
}
.wo-fpkg-close:hover { color: #4A5568; }
.wo-fpkg-header { margin-bottom: 10px; padding-bottom: 7px; border-bottom: 1px solid rgba(43,125,233,0.2); }
.wo-fpkg-title { display: block; font-family: "Cormorant Garamond", serif; font-size: 12px; color: #1D1D1D; letter-spacing: 0.5px; font-weight: 500; margin-bottom: 2px; }
.wo-fpkg-sub { display: block; font-size: 9px; color: #9AA8B5; }
.wo-fpkg-item { padding: 7px 0; border-bottom: 1px solid rgba(43,125,233,0.12); }
.wo-fpkg-item:last-child { border-bottom: none; padding-bottom: 0; }
.wo-fpkg-info { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; gap: 4px; }
.wo-fpkg-name { font-size: 10px; font-weight: 600; color: #4A5568; text-transform: uppercase; letter-spacing: 0.5px; flex: 1; }
.wo-fpkg-price { font-size: 11px; font-weight: 700; color: #2B7DE9; white-space: nowrap; }
.wo-fpkg-btns { display: flex; gap: 5px; }
.wo-fpkg-btn { display: inline-flex; align-items: center; justify-content: center; font-family: "DM Sans", sans-serif; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 3px; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.wo-fpkg-btn-buy { flex: 1; padding: 5px 4px; background: transparent; border: 1px solid #D8E6F3; color: #4A5568; }
.wo-fpkg-btn-buy:hover { background: #1D1D1D; color: #FAFCFE; border-color: #1D1D1D; }
.wo-fpkg-btn-cart { width: 26px; height: 26px; padding: 0; background: transparent; border: 1px solid #D8E6F3; color: #9AA8B5; }
.wo-fpkg-btn-cart:hover { background: #EFF5FB; color: #4A5568; }
.wo-fpkg-btn-cart svg { pointer-events: none; }

/* =============================================
   FLOATING CONTACT WIDGET
   ============================================= */
.wo-cw-wrapper {
    position: fixed;
    left: -270px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: stretch;
    transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
}
.wo-cw-wrapper.wo-cw-open { left: 0; }
.wo-cw-panel {
    position: relative;
    width: 270px;
    background: #FFFFFF;
    border: 1px solid #D8E6F3;
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 16px 14px;
    font-family: "DM Sans", sans-serif;
    box-shadow: 4px 0 30px rgba(44,42,37,0.1);
}
.wo-cw-tab {
    align-self: center;
    background: #1D1D1D;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 14px 8px;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 2px;
    line-height: 1.8;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 2px 0 15px rgba(44,42,37,0.15);
    flex-shrink: 0;
    transition: background 0.2s;
}
.wo-cw-tab:hover { background: #111111; }
.wo-cw-close {
    position: absolute; top: 8px; right: 10px;
    background: none; border: none;
    color: #9AA8B5; font-size: 14px;
    cursor: pointer; padding: 2px;
    transition: color 0.2s;
}
.wo-cw-close:hover { color: #4A5568; }
.wo-cw-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 15px; font-weight: 500;
    color: #111111;
    margin: 0 0 10px;
}
.wo-cw-info { margin-bottom: 12px; }
.wo-cw-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #4A5568;
    margin-bottom: 6px;
}
.wo-cw-row span:first-child { font-size: 14px; flex-shrink: 0; width: 18px; text-align: center; }
.wo-cw-link { color: #2B7DE9 !important; text-decoration: none; font-size: 11px; }
.wo-cw-link:hover { color: #4A5568 !important; }
.wo-cw-hours { font-size: 11px; color: #6A7A8A; }
#wo-cw-form input, #wo-cw-form textarea {
    width: 100%;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    color: #111111;
    background: #FAFCFE;
    border: 1px solid #D8E6F3;
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 8px;
    outline: none;
    transition: border-color 0.2s;
}
#wo-cw-form input:focus, #wo-cw-form textarea:focus { border-color: #2B7DE9; }
#wo-cw-form textarea { resize: vertical; min-height: 60px; }
.wo-cw-submit {
    width: 100%;
    font-family: "DM Sans", sans-serif;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    background: #1D1D1D;
    color: #FFFFFF;
    border: none; border-radius: 4px;
    padding: 9px 0;
    cursor: pointer;
    transition: background 0.2s;
}
.wo-cw-submit:hover { background: #111111; }
.wo-cw-success-msg { display: none; font-size: 10px; color: #4caf50; text-align: center; margin: 4px 0 0; }

/* =============================================
   FLOATING GALLERY BUTTON + MODAL
   ============================================= */
.wo-ph-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1D1D1D;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(44,42,37,0.2);
    transition: background 0.2s, transform 0.2s;
}
.wo-ph-btn:hover { background: #111111; transform: translateY(-2px); }
.wo-ph-btn svg { color: #2B7DE9; }
.wo-ph-count {
    background: #2B7DE9;
    color: #1D1D1D;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
.wo-ph-count:empty { display: none; }

.wo-ph-modal { position: fixed; inset: 0; z-index: 99999; }
.wo-ph-modal.wo-ph-hidden { display: none; }
.wo-ph-backdrop { position: absolute; inset: 0; background: rgba(44,42,37,0.3); }
.wo-ph-drawer {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 380px;
    max-width: 90vw;
    background: #FFFFFF;
    box-shadow: -8px 0 40px rgba(44,42,37,0.15);
    display: flex;
    flex-direction: column;
    font-family: "DM Sans", sans-serif;
}
.wo-ph-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(43,125,233,0.2);
}
.wo-ph-drawer-title { font-family: "Cormorant Garamond", serif; font-size: 16px; font-weight: 500; color: #111111; }
.wo-ph-close { background: none; border: none; color: #9AA8B5; font-size: 16px; cursor: pointer; padding: 4px; }
.wo-ph-close:hover { color: #4A5568; }
.wo-ph-drawer-desc { padding: 0 20px; font-size: 11px; color: #9AA8B5; margin: 8px 0 0; }
.wo-ph-grid {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-content: start;
}
.wo-ph-loading { grid-column: span 2; text-align: center; color: #9AA8B5; font-size: 13px; padding: 2rem; }
.wo-ph-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(43,125,233,0.2);
}
.wo-ph-go-btn {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #1D1D1D;
    color: #FFFFFF;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}
.wo-ph-go-btn:hover { background: #111111; }
.wo-ph-item { cursor: pointer; }