/* Przycisk otwierający */
.product-cart-notes-trigger button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
	background-color: #cf0511;
	width:400px;
}

.product-cart-notes-trigger button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Tło modala (Overlay) */
#cart-notes-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px); /* Nowoczesny efekt rozmycia tła */
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex; /* Centrowanie */
    justify-content: center;
    align-items: center;
}

#cart-notes-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Okno modala */
.cn-modal-box {
    background: #fff;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
	border: 1px solid #f4d69e;
}

#cart-notes-modal-overlay.is-visible .cn-modal-box {
    transform: scale(1);
}

/* Nagłówek modala */
.cn-modal-header {
    padding: 20px;
    border-bottom: 1px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4d69e;
}

.cn-modal-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
}

.cn-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.cn-close-btn:hover {
    color: #333;
}

/* Treść modala */
.cn-modal-body {
    padding: 20px;
    overflow-y: auto;
    background: #000;
}

/* Karta produktu */
.cn-card {
    background: #000;
    border: 1px solid #f4d69e;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: border-color 0.2s;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cn-card:hover {
    border-color: #f4d69e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cn-product-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px solid #f4d69e;
    margin-bottom: 15px;
}

.cn-product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.cn-product-details strong {
    display: block;
    font-size: 1rem;
    color: #f4d69e;
}

.cn-form-area {
    width: 100%;
}

/* Pola formularza */
.cart-note-input {
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cart-note-input:focus {
    border-color: #2fb5d2;
    box-shadow: 0 0 0 3px rgba(47, 181, 210, 0.1);
    outline: none;
}

/* Akcje (Zapisz / Plik) */
.cn-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.cn-file-wrapper {
    flex: 1;
    margin-right: 15px;
}

/* Stopka modala */
.cn-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #f4d69e;
    text-align: center;
    background: #000;
}

/* Dodaj to do style.css obok #cart-notes-modal-overlay */
#cart-notes-modal-overlay,
#cart-notes-modal-overlay-cart {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cart-notes-modal-overlay.is-visible,
#cart-notes-modal-overlay-cart.is-visible {
    opacity: 1;
    visibility: visible;
}

#cart-notes-modal-overlay.is-visible .cn-modal-box,
#cart-notes-modal-overlay-cart.is-visible .cn-modal-box {
    transform: scale(1);
}

/* --- Nowy styl pola uploadu --- */

.cn-upload-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

/* Ukrywamy standardowy input, ale zostawiamy go dostępnym dla Labela */
.cn-file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

/* Stylizowany Label (Przycisk) */
.cn-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px;
    border: 2px dashed #f4d69e; /* Przerywana ramka */
    background-color: #373737;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: #f4d69e;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    width: 100%;
    margin: 0; /* Reset domyślnego marginesu labela */
}

/* Efekt najechania myszką */
.cn-file-label:hover {
    border-color: #f4d69e; /* Kolor Presty */
    background-color: #f4d69e;
    color: #fff;
}

/* Stan, gdy plik jest wybrany (dodamy klasę JS-em) */
.cn-file-label.has-file {
    border-style: solid;
    border-color: #f4d69e;
    background-color: #373737;
    color: #fff;
}

.cn-file-label i {
    font-size: 20px;
}