/* Обкладинка на документи — спільні стилі (assets/css/pda-cover-config.css) */

/* Накладки на прев'ю */
.ks-logo-overlay { position: absolute !important; border-radius: 50% !important; overflow: hidden !important; pointer-events: none !important; z-index: 2 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.ks-logo-overlay img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 50% !important; background-color: transparent; }
.ks-logo-overlay.empty { background: rgba(0,0,0,0.03) !important; }
.ks-custom-photo-container { position: absolute !important; border-radius: 50% !important; overflow: hidden !important; display: none; z-index: 5 !important; pointer-events: auto !important; }
.ks-custom-photo-img { position: absolute !important; cursor: grab !important; transform-origin: top left !important; max-width: unset !important; }
.ks-text-overlay { position: absolute !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; pointer-events: none !important; overflow: hidden !important; border-radius: 3px !important; z-index: 6 !important; }
.ks-text-overlay span { font-family: 'Arial', sans-serif; font-weight: normal; color: #1a1a1a; letter-spacing: 1px; text-align: center; white-space: nowrap; line-height: 1; transition: padding-left 0.2s ease; }
.ks-pl-badge { position: absolute !important; top: 0 !important; left: 0 !important; height: 100% !important; width: auto !important; max-width: none !important; min-width: 0 !important; object-fit: contain !important; display: none; border-radius: 3px 0 0 3px !important; z-index: 10 !important; }
.ks-rect-logo { height: 75% !important; width: auto !important; max-width: 40px !important; object-fit: contain !important; display: none; z-index: 10 !important; margin-left: 8px; margin-right: 4px; flex-shrink: 0; }

/* Матеріал і фон напису */
.swatch-czarna { background: #111; }
.swatch-karbon { background: repeating-linear-gradient(45deg,#1a1a1a 0px,#1a1a1a 4px,#2e2e2e 4px,#2e2e2e 8px); }
.swatch-biala { background: #f5f5f5; }
.swatch-bezowa { background: #b8b8b8; }
.rect-preview { width: 52px; height: 24px; border-radius: 4px; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: bold; }
.rect-white { background: #fff; }
.rect-black { background: #111; color: #fff; }
.rect-plate { background: #003399; color: #fff; }

/* Вкладки "Марка / Власне фото" */
.logo-tabs { display: flex; margin-bottom: 15px; border: 2px solid #eaeaea; border-radius: 8px; overflow: hidden; background: #f9f9f9; }
.logo-tab { flex: 1; padding: 14px; font-size: 14px; font-weight: 700; text-transform: uppercase; text-align: center; cursor: pointer; color: #666; border: none; transition: 0.2s; background: transparent; font-family: 'Jost', sans-serif; }
.logo-tab.active { background: var(--red, #e31b23); color: #fff; }

/* Завантаження власного фото */
.upload-area { display: none; }
.upload-area.visible { display: block; }
.upload-drop { border: 2px dashed #ccc; border-radius: 8px; padding: 30px 20px; text-align: center; cursor: pointer; background: #fafafa; transition: 0.3s; position: relative; }
.upload-drop:hover { border-color: var(--red, #e31b23); background: #fffafb; }
.upload-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.photo-editor-controls { display: none; margin-top: 15px; background: #f9f9f9; padding: 15px; border-radius: 8px; border: 1px solid #eaeaea; }
.photo-editor-controls.visible { display: block; }
.zoom-slider-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.zoom-slider-wrap input[type=range] { flex: 1; accent-color: var(--red, #e31b23); }

/* Розгортані необов'язкові примітки (Uwagi do tablicy / Uwagi do zamówienia) */
.pda-notes-accordion { margin-top: 14px; border: 1.5px dashed #dcdcdc; border-radius: 10px; background: #fafafa; overflow: hidden; transition: border-color 0.2s, background 0.2s; }
.pda-notes-accordion[open] { border-style: solid; border-color: #d0d0d0; background: #fff; }
.pda-notes-accordion summary { list-style: none; cursor: pointer; padding: 11px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #555; display: flex; align-items: center; justify-content: space-between; gap: 8px; user-select: none; }
.pda-notes-accordion summary::-webkit-details-marker { display: none; }
.pda-notes-accordion summary::after { content: '+ Dodaj'; font-size: 11px; font-weight: 800; color: var(--red, #e31b23); background: #fff0f0; padding: 3px 8px; border-radius: 99px; transition: 0.2s; flex-shrink: 0; }
.pda-notes-accordion[open] summary { border-bottom: 1px solid #eee; color: #222; }
.pda-notes-accordion[open] summary::after { content: '− Zwiń'; color: #666; background: #f0f0f0; }
.pda-notes-accordion-body { padding: 12px 14px 14px; }
.pda-notes-accordion-body .notice-info { display: block !important; margin-top: 10px; margin-bottom: 0; }