/**
 * Dominican Organ Adoption Styles
 * Version: 2.2.0
 */

/* === CONTAINER === */
.doa-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
    box-sizing: border-box;
}

.doa-container *,
.doa-container *::before,
.doa-container *::after {
    box-sizing: border-box;
}

/* === PROGRESS BOX === */
.doa-progress-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.doa-progress-text {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #495057;
}

.doa-progress-bar {
    background: #dee2e6;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.doa-progress-fill {
    background: linear-gradient(90deg, #c67732 0%, #d4894a 100%);
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* === STEP INDICATOR === */
.doa-steps {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
    padding-bottom: 0;
}

.doa-steps .step {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    color: #adb5bd;
    font-size: 0.9rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.doa-steps .step .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.doa-steps .step.active {
    color: #c67732;
}

.doa-steps .step.active .step-number {
    background: #c67732;
    color: #fff;
}

.doa-steps .step.completed .step-number {
    background: #28a745;
    color: #fff;
}

.doa-steps .step.completed .step-number::after {
    content: '✓';
    font-size: 14px;
}

.doa-steps .step.completed .step-number {
    font-size: 0;
}

.step-label {
    font-size: 0.8rem;
}

/* === SECTIONS === */
.doa-section {
    animation: fadeIn 0.3s ease;
}

.doa-section.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doa-section h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #c67732;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.doa-intro {
    color: #6c757d;
    margin-bottom: 25px;
}

.doa-subtitle {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 20px;
    font-weight: 500;
}

/* === MANUAL BUTTONS - FIXED === */
.doa-grid-manuals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 800px) {
    .doa-grid-manuals {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.doa-btn-manual {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 180px;
    width: 100%;
}

.doa-btn-manual:hover {
    border-color: #c67732;
    box-shadow: 0 4px 12px rgba(198, 119, 50, 0.15);
    transform: translateY(-2px);
}

.doa-btn-manual:focus {
    outline: 2px solid #c67732;
    outline-offset: 2px;
}

.doa-btn-manual .manual-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #c67732 0%, #d4894a 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.doa-btn-manual strong {
    font-size: 1.1rem;
    color: #c67732;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.doa-btn-manual .manual-desc {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    max-width: 100%;
}

/* === REGISTER FILTER === */
.doa-register-filter {
    margin-bottom: 24px;
}

.doa-toggle-filter-btn {
    width: 100%;
    background: linear-gradient(135deg, #c67732 0%, #d4894a 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(198, 119, 50, 0.2);
}

.doa-toggle-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 119, 50, 0.3);
}

.doa-toggle-filter-btn .filter-icon {
    font-size: 1.1rem;
}

.doa-toggle-filter-btn .toggle-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.doa-filter-panel {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 12px;
    animation: slideDown 0.3s ease;
}

.doa-filter-panel.hidden {
    display: none;
}

.filter-content label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.filter-content .price-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-content .filter-btn {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
    font-weight: 500;
}

.filter-content .filter-btn:hover {
    border-color: #c67732;
    color: #c67732;
    background: #fdf8f4;
}

.filter-content .filter-btn.active {
    background: linear-gradient(135deg, #c67732 0%, #d4894a 100%);
    border-color: #c67732;
    color: #fff;
    font-weight: 600;
}

/* === SEARCH FUNCTIONALITY === */
.doa-quick-search {
    margin-bottom: 20px;
}

.doa-toggle-search-btn {
    width: 100%;
    background: linear-gradient(135deg, #c67732 0%, #d4894a 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(198, 119, 50, 0.2);
}

.doa-toggle-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 119, 50, 0.3);
}

.doa-toggle-search-btn .search-icon {
    font-size: 1.2rem;
}

.doa-toggle-search-btn .toggle-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.doa-search-panel {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

.doa-search-panel.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.price-buttons,
.type-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #c67732;
    color: #c67732;
    background: #fdf8f4;
}

.filter-btn.active {
    background: linear-gradient(135deg, #c67732 0%, #d4894a 100%);
    border-color: #c67732;
    color: #fff;
    font-weight: 600;
}

.search-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.doa-btn-search {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.doa-btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.doa-btn-reset {
    background: #fff;
    color: #6c757d;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doa-btn-reset:hover {
    border-color: #6c757d;
    color: #495057;
}

/* Quick search button */
.doa-btn-quick-search {
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.doa-btn-quick-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.35);
}

.doa-btn-quick-search .quick-icon {
    font-size: 1.3rem;
}

.doa-filter-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0 15px;
}

.doa-filter-divider::before,
.doa-filter-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.doa-filter-divider span {
    padding: 0 12px;
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
}

.doa-or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
}

.doa-or-divider::before,
.doa-or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #dee2e6;
}

.doa-or-divider span {
    padding: 0 15px;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search results */
#step-search h2 {
    margin-bottom: 15px;
}

#step-search .doa-back-btn {
    margin-bottom: 20px;
}

.doa-search-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.doa-search-info {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px 16px;
    font-weight: 600;
    color: #495057;
    flex: 1;
    min-width: 200px;
}

.doa-sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
}

.doa-sort-controls label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin: 0;
}

.doa-sort-select {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.9rem;
    color: #495057;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doa-sort-select:hover {
    border-color: #c67732;
}

.doa-sort-select:focus {
    outline: 2px solid #c67732;
    outline-offset: 2px;
    border-color: #c67732;
}

.doa-search-results {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.doa-search-group {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.search-group-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c67732;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.search-pipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.search-pipe-card {
    background: #fafafa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.search-pipe-card:hover {
    border-color: #c67732;
    background: #fdf8f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 119, 50, 0.12);
}

.pipe-card-key {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.pipe-card-price {
    color: #c67732;
    font-weight: 600;
    font-size: 0.9rem;
}

.pipe-card-btn {
    width: 100%;
    background: linear-gradient(135deg, #c67732 0%, #d4894a 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pipe-card-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(198, 119, 50, 0.3);
}

.pipe-card-btn.in-cart {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.doa-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 1rem;
}

/* === REGISTER LIST - WITH FLOATING TOOLTIP === */
.doa-list-registers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.doa-btn-register {
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.doa-btn-register:hover:not(.full) {
    border-color: #c67732;
    background: #fdf8f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 119, 50, 0.12);
}

.doa-btn-register:focus:not(.full) {
    outline: 2px solid #c67732;
    outline-offset: 2px;
}

.doa-btn-register strong {
    color: #c67732;
    font-size: 1rem;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.doa-btn-register small {
    color: #6c757d;
    font-size: 0.8rem;
}

.doa-btn-register.full {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

/* Tooltip container - verborgen standaard */
.doa-btn-register .register-desc {
    display: none;
}

.register-badge-nieuw {
    display: inline-block;
    background: #c67732;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

.register-nieuw-info {
    display: block;
    font-size: 0.75rem;
    color: #c67732;
    font-style: italic;
    margin-top: 2px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Tooltip wrapper - vaste positie overlay */
.doa-register-tooltip {
    position: fixed;
    background: #c67732;
    color: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 350px;
    min-width: 280px;
    z-index: 10000;
    box-shadow: 0 8px 30px rgba(198, 119, 50, 0.35);
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.doa-register-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.doa-register-tooltip .tooltip-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.doa-register-tooltip .tooltip-text {
    opacity: 0.95;
}

/* === KEYBOARD / PIPE GRID === */
.doa-header-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.doa-mini-cart {
    background: linear-gradient(135deg, #fdf8f4 0%, #faeadb 100%);
    border-left: 4px solid #c67732;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.doa-mini-cart.hidden {
    display: none;
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.doa-mini-cart .cart-info {
    font-size: 1rem;
}

.mini-cart-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.doa-btn-toggle-cart {
    background: #fff;
    color: #c67732;
    border: 2px solid #c67732;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.doa-btn-toggle-cart:hover {
    background: #c67732;
    color: #fff;
}

.doa-btn-toggle-cart .toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.mini-cart-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(198, 119, 50, 0.2);
    animation: slideDown 0.3s ease;
}

.mini-cart-details.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mini-cart-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    max-height: 300px;
    overflow-y: auto;
}

.mini-cart-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(198, 119, 50, 0.1);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.mini-cart-list li:last-child {
    border-bottom: none;
}

.mini-cart-list li.empty {
    color: #6c757d;
    font-style: italic;
    justify-content: center;
}

.mini-cart-list li.mini-cart-item {
    position: relative;
    padding-right: 30px;
}

.mini-cart-list .pipe-name {
    flex: 1;
    word-break: break-word;
    font-size: 0.85rem;
}

.mini-cart-list .pipe-price {
    font-weight: 600;
    color: #c67732;
    white-space: nowrap;
    font-size: 0.85rem;
    margin-right: 5px;
}

.remove-pipe-btn-mini {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545;
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    font-weight: 400;
}

.remove-pipe-btn-mini:hover {
    background: #c82333;
    transform: translateY(-50%) scale(1.15);
}

.remove-pipe-btn-mini:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

.mini-cart-total {
    font-weight: 700;
    text-align: right;
    color: #c67732;
    font-size: 1.1rem;
    padding-top: 10px;
    border-top: 2px solid #c67732;
}

.doa-btn-action {
    background: #c67732;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.doa-btn-action:hover {
    background: #a85f28;
    transform: translateY(-1px);
}

.doa-keyboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    justify-content: flex-start;
}

.doa-key {
    width: 44px;
    height: 65px;
    border: 2px solid #495057;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.7rem;
    padding: 4px 2px 6px;
    cursor: pointer;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    transition: all 0.15s ease;
    user-select: none;
    border-radius: 0 0 4px 4px;
    font-weight: 500;
    position: relative;
    flex-shrink: 0;
    gap: 2px;
}

.pipe-key-label {
    font-size: 0.7rem;
    font-weight: 500;
}

.pipe-price-label {
    font-size: 0.55rem;
    color: #c67732;
    font-weight: 700;
    line-height: 1;
}

.doa-key.selected .pipe-price-label {
    color: #fff;
}

.doa-key:focus {
    outline: 2px solid #c67732;
    outline-offset: 2px;
}

.doa-key.black-key {
    background: linear-gradient(180deg, #495057 0%, #212529 100%);
    color: #fff;
    border-color: #000;
    height: 45px;
    width: 36px;
    margin: 0 -8px;
    z-index: 1;
    border-radius: 0 0 3px 3px;
}

.doa-key.taken {
    background: #e9ecef;
    color: #adb5bd;
    border-color: #ced4da;
    cursor: not-allowed;
}

.doa-key:not(.taken):not(.selected):hover {
    background: linear-gradient(180deg, #faeadb 0%, #f5d9c0 100%);
    border-color: #c67732;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.doa-key.selected {
    background: linear-gradient(180deg, #c67732 0%, #a85f28 100%);
    color: #fff;
    border-color: #a85f28;
    font-weight: 700;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.doa-key.black-key.selected {
    background: linear-gradient(180deg, #a85f28 0%, #8a4e21 100%);
    border-color: #000;
}

.doa-key.black-key.taken {
    background: #6c757d;
}

/* Adopter name styling */
.pipe-adopter {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.52rem;
    color: #495057;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 8px);
    line-height: 1;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.doa-key.black-key .pipe-adopter {
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
    top: 3px;
}

.doa-key.taken:hover {
    transform: none;
}

/* === LEGEND === */
.doa-legend {
    display: flex;
    gap: 25px;
    margin-top: 15px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.doa-adoption-info {
    margin: 8px 0 12px 0;
    color: #6c757d;
    font-style: italic;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6c757d;
}

.dot {
    height: 14px;
    width: 14px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.dot.available {
    background: #fff;
    border: 2px solid #495057;
}

.dot.taken {
    background: #e9ecef;
    border: 2px solid #ced4da;
}

.dot.selected {
    background: #c67732;
    border: 2px solid #a85f28;
}

.doa-tip {
    margin-top: 20px;
    padding: 15px;
    background: #fdf8f4;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #8a4e21;
    border: 1px solid #f5d9c0;
}

/* === CHECKOUT === */
.doa-checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .doa-checkout-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.doa-summary-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    height: fit-content;
}

.doa-summary-box h3 {
    margin: 0 0 15px;
    font-size: 1.1rem;
    color: #c67732;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.doa-cart-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    max-height: 250px;
    overflow-y: auto;
}

.doa-cart-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    gap: 10px;
}

.doa-cart-list li:last-child {
    border-bottom: none;
}

.doa-cart-list li.empty {
    color: #6c757d;
    font-style: italic;
}

.doa-cart-list li.cart-item {
    position: relative;
    padding-right: 35px;
}

.doa-cart-list .pipe-name {
    flex: 1;
    word-break: break-word;
}

.doa-cart-list .pipe-price {
    font-weight: 600;
    color: #c67732;
    white-space: nowrap;
    margin-right: 8px;
}

.remove-pipe-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    font-weight: 400;
}

.remove-pipe-btn:hover {
    background: #c82333;
    transform: translateY(-50%) scale(1.1);
}

.remove-pipe-btn:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

.doa-total {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: right;
    color: #c67732;
    padding-top: 15px;
    border-top: 2px solid #c67732;
}

/* === FORM === */
.doa-form {
    background: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.95rem;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 0.8rem;
}

.doa-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.doa-input:focus {
    outline: none;
    border-color: #c67732;
    box-shadow: 0 0 0 3px rgba(198, 119, 50, 0.1);
}

.doa-input::placeholder {
    color: #adb5bd;
}

textarea.doa-input {
    resize: vertical;
    min-height: 80px;
}

.form-group.checkbox {
    margin-bottom: 15px;
}

.form-group.checkbox label {
    font-weight: normal;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #495057;
}

.form-group.checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #c67732;
}

.doa-btn-submit {
    background: linear-gradient(135deg, #c67732 0%, #d4894a 100%);
    color: #fff;
    padding: 16px 30px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.doa-btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #a85f28 0%, #c67732 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 119, 50, 0.3);
}

.doa-btn-submit:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.doa-btn-submit .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.doa-btn-submit .btn-loading::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

.doa-error {
    color: #dc3545;
    margin-top: 15px;
    padding: 12px 15px;
    background: #f8d7da;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.doa-error.visible {
    display: block;
}

.doa-payment-info {
    text-align: center;
    margin-top: 15px;
    color: #6c757d;
}

/* === NAVIGATION BUTTONS === */
.checkout-nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.doa-back-btn {
    font-size: 0.85rem;
    background: none;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.doa-back-btn:hover {
    background: #f8f9fa;
    color: #c67732;
    border-color: #c67732;
}

.doa-select-more-btn {
    font-size: 0.85rem;
    background: #c67732;
    color: #fff;
    border: 2px solid #c67732;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 600;
}

.doa-select-more-btn:hover {
    background: #a85f28;
    border-color: #a85f28;
    transform: translateY(-1px);
}

/* === LOADING === */
.doa-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1rem;
}

.doa-loading::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    border: 3px solid #e9ecef;
    border-top-color: #c67732;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 0.8s linear infinite;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .doa-container {
        padding: 15px;
    }

    .doa-steps .step {
        padding: 10px 5px;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .doa-steps .step .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .doa-grid-manuals {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .doa-btn-manual {
        min-height: auto;
        padding: 20px 16px;
    }

    .doa-list-registers {
        grid-template-columns: 1fr;
    }

    .doa-mini-cart {
        padding: 12px 15px;
    }

    .mini-cart-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .mini-cart-actions {
        flex-direction: column;
        gap: 8px;
    }

    .doa-btn-action,
    .doa-btn-toggle-cart {
        width: 100%;
        justify-content: center;
    }

    .doa-key {
        width: 38px;
        height: 55px;
        font-size: 0.6rem;
    }

    .doa-key.black-key {
        height: 38px;
        width: 30px;
        margin: 0 -6px;
    }

    .doa-section h2 {
        font-size: 1.25rem;
    }

    .doa-legend {
        gap: 15px;
    }

    /* Geen tooltip op mobiel - beschrijving direct zichtbaar */
    .doa-register-tooltip {
        display: none !important;
    }

    .doa-btn-register {
        max-width: 100% !important;
        padding: 14px 14px !important;
        overflow: hidden !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    .doa-btn-register .register-desc {
        display: block !important;
        background: #fdf8f4;
        color: #8a4e21;
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 6px;
        font-size: 0.8rem;
        line-height: 1.5;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: normal !important;
        hyphens: auto;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }

    .doa-btn-register strong {
        font-size: 0.95rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        max-width: 100% !important;
        white-space: normal !important;
    }

    .doa-btn-register small {
        overflow-wrap: break-word !important;
        word-break: normal !important;
        white-space: normal !important;
    }

    .register-badge-nieuw {
        font-size: 0.6rem;
        padding: 2px 6px;
        flex-shrink: 0;
    }

    .register-nieuw-info {
        font-size: 0.7rem;
        line-height: 1.4;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        white-space: normal !important;
    }

    /* Search panel mobile styles */
    .search-actions {
        flex-direction: column;
    }

    .doa-btn-search {
        min-width: 100%;
    }

    .search-pipes-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .doa-search-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .doa-sort-controls {
        width: 100%;
        justify-content: space-between;
    }

    .doa-sort-select {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .doa-list-registers {
        grid-template-columns: 1fr;
    }

    .doa-key {
        width: 32px;
        height: 48px;
    }

    .doa-key.black-key {
        height: 32px;
        width: 26px;
        margin: 0 -5px;
    }

    .doa-btn-manual .manual-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}