/* dmuchance/style.css */

.dc-img-container-mini { 
    width: 100%; 
    height: 200px; /* Stała wysokość */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #fdfdfd; 
    overflow: hidden; 
    border: 1px solid #eee; 
    border-radius: 6px; 
    margin-bottom: 15px;
}
.dc-img-container-mini img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Wymusza wypełnienie bez zniekształceń */
}

.dc-img-container-single { 
    width: 100%; 
    height: 350px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #fff; 
    overflow: hidden; 
    border: 1px solid #eee; 
    border-radius: 6px; 
    margin-bottom: 15px;
}
.dc-img-container-single img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    cursor: zoom-in;
}

.dc-inline-cal .flatpickr-calendar { box-shadow:none !important; border:1px solid #ddd; width:100% !important; max-width:100% !important; margin:10px 0; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.inRange { border: 2px solid #000 !important; background: #e6f2ff !important; color: #000 !important; font-weight: bold; }
.flatpickr-day.startRange, .flatpickr-day.endRange { background: #0073aa !important; color: #fff !important; }

#dc-toast { visibility:hidden; min-width:250px; background-color:#333; color:#fff; text-align:center; border-radius:4px; padding:16px; position:fixed; z-index:999999; left:50%; bottom:30px; transform:translateX(-50%); font-size:15px; opacity:0; transition:opacity 0.3s; }
#dc-toast.show { visibility:visible; opacity:1; }

.dc-share-btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease; }
.dc-share-btn.dc-share-working { opacity: .85; cursor: wait !important; }
.dc-share-btn.dc-share-copied { background:#28a745 !important; border-color:#28a745 !important; color:#fff !important; transform:scale(1.03); box-shadow:0 0 0 4px rgba(40,167,69,.18); }
.dc-share-btn.dc-share-error { background:#dc3232 !important; border-color:#dc3232 !important; color:#fff !important; }
.dc-open-single-img:hover img { transform:scale(1.03); }
.dc-open-single-img img { transition:transform .2s ease; }

/* Kalendarz Flatpickr jest tworzony obok elementu wejściowego, więc nie można opierać kolorów tylko o .dc-inline-cal. */
.dc-inline-cal + .flatpickr-calendar,
.dc-calendar-themed.flatpickr-calendar {
    box-shadow:none !important;
    border:1px solid #ddd;
    width:100% !important;
    max-width:100% !important;
    margin:10px 0;
}
.dc-calendar-themed .flatpickr-day.dc-day-part,
.dc-calendar-themed .flatpickr-day.dc-day-book {
    opacity:1 !important;
    filter:none !important;
}

/* Etykiety i oznaczenia cenowe */
.dc-badge-sale,
.dc-badge-hit {
    position: absolute;
    top: 10px;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 12px;
    z-index: 10;
    letter-spacing: .02em;
    line-height: 1.2;
}
.dc-badge-sale { right: 10px; background: #d54e21; }
.dc-badge-hit {
    left: 10px;
    background: linear-gradient(135deg, #b8860b, #ffd700, #b8860b);
    color: #2b2100;
    border: 1px solid rgba(120, 80, 0, .45);
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.dc-product-hit { overflow: hidden; }
.dc-title-hit {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 8px;
    border-radius: 5px;
    background: linear-gradient(135deg, #b8860b, #ffd700, #b8860b);
    color: #2b2100;
    font-size: 14px;
    font-weight: 800;
    vertical-align: middle;
    border: 1px solid rgba(120, 80, 0, .45);
}
.dc-omnibus-mini {
    margin: 0 0 14px;
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 1.35;
}
.dc-omnibus-detail {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* v13: produkty sprzedażowe */
.dc-sale-info-mini {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #005177;
    background: #eef7ff;
    border: 1px solid #b8daff;
    border-radius: 999px;
    padding: 4px 10px;
    margin: 0 auto 10px;
    display: inline-block;
}
.dc-sale-box {
    font-size: 14px;
    line-height: 1.45;
}
