/* Photos to PDF pieces only. Page layout, header, nav and footer come from ../style.css */

.pdf-tool,
.pdf-tool * {
    box-sizing: border-box;
}

.pdf-tool {
    max-width: 520px;
    margin: 0 auto;
}

.sub {
    margin: 0 0 20px;
}

.btn {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0 0 10px;
    padding: 12px 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font: inherit;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    background: #e9e9e9;
}

.btn.primary {
    border-color: #242424;
    background: #242424;
    color: #fff;
}

.btn.primary:hover {
    background: #444;
}

.btn.quiet {
    border-color: transparent;
    background: none;
    color: #777;
    font-weight: normal;
}

.btn.quiet:hover {
    background: none;
    text-decoration: underline;
}

.btn[disabled],
.btn.busy {
    opacity: 0.5;
    pointer-events: none;
}

#picker {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#status {
    min-height: 1.6em;
    margin: 6px 0 10px;
    color: #777;
    text-align: center;
}

#status.error {
    color: #b3261e;
}

#list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

#list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

#list img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    background: #ddd;
}

#list .page {
    flex: 1;
    color: #777;
}

#list button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 20px;
    cursor: pointer;
}

#list button:hover {
    background: #e9e9e9;
}

#list button[disabled] {
    opacity: 0.25;
}

.field {
    display: block;
    margin-bottom: 12px;
}

.field span {
    display: block;
    margin-bottom: 4px;
    color: #777;
    font-size: 0.9rem;
}

.field input,
.field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}

[hidden] {
    display: none !important;
}
