#bbr-refund-app {
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#bbr-refund-app h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

#bbr-refund-app p {
    color: #555;
    margin-bottom: 20px;
}

/* Form groups */
.bbr-form-group {
    margin-bottom: 16px;
}

.bbr-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.bbr-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.bbr-form-group input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

/* Buttons */
.bbr-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bbr-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bbr-btn-primary {
    background: #2271b1;
    color: #fff;
}

.bbr-btn-primary:hover:not(:disabled) {
    background: #1a5a8e;
}

.bbr-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.bbr-btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.bbr-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Notice messages */
.bbr-notice {
    background: #fef8e7;
    color: #7d6608;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid #f5e6a3;
}

/* Error messages */
.bbr-error {
    background: #fef0f0;
    color: #cc0000;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid #fdd;
}

/* Product cards */
.bbr-product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bbr-product-card.bbr-selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.bbr-product-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.bbr-product-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f5f5f5;
}

.bbr-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbr-product-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.bbr-product-meta {
    font-size: 13px;
    color: #777;
}

/* Product fields */
.bbr-product-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bbr-field {
    flex: 1;
    min-width: 150px;
}

.bbr-field:has(.bbr-qty-select) {
    flex: 0 0 auto;
    min-width: auto;
}

.bbr-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #444;
}

.bbr-optional {
    font-weight: 400;
    color: #999;
}

.bbr-qty-select {
    width: 80px !important;
    height: 40px !important;
    font-size: 16px !important;
}

.bbr-reason-select {
    height: 40px !important;
    font-size: 16px !important;
}

.bbr-field select,
.bbr-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
}

.bbr-field select:focus,
.bbr-field textarea:focus {
    border-color: #2271b1;
    outline: none;
}

.bbr-note-field {
    flex-basis: 100%;
}

/* Shipping methods */
.bbr-shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bbr-shipping-option:hover {
    border-color: #aaa;
}

.bbr-shipping-option.bbr-selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.bbr-shipping-option input[type="radio"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
}

.bbr-shipping-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.bbr-shipping-name {
    font-weight: 600;
    font-size: 15px;
}

.bbr-shipping-price {
    font-size: 15px;
    color: #555;
    font-weight: 600;
}

/* Confirmation */
.bbr-confirmation {
    text-align: center;
    padding: 40px 20px;
}

/* PDF download button — BikeBudget brand styling */
#bbr-label-download {
    margin: 24px 0;
}

.bbr-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #F5831F !important;
    color: #fff !important;
    border: 2px solid #F5831F;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(245, 131, 31, 0.25);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.05s;
}

.bbr-btn-pdf:hover,
.bbr-btn-pdf:focus,
.bbr-btn-pdf:visited {
    background: #231F20 !important;
    border-color: #231F20;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(35, 31, 32, 0.3);
}

.bbr-btn-pdf:visited:not(:hover):not(:focus) {
    background: #F5831F !important;
    border-color: #F5831F;
}

.bbr-btn-pdf:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(35, 31, 32, 0.3);
}

.bbr-btn-pdf .bbr-btn-icon {
    flex-shrink: 0;
}

.bbr-confirmation-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #d4edda;
    color: #28a745;
    font-size: 32px;
    line-height: 64px;
    margin: 0 auto 20px;
}

.bbr-confirmation h2 {
    color: #28a745;
}

/* Responsive */
@media (max-width: 600px) {
    .bbr-product-fields {
        flex-direction: column;
    }

    .bbr-btn-group {
        flex-direction: column;
    }

    .bbr-product-info {
        flex-direction: column;
        text-align: center;
    }
}

/* iOS zoomt in op formuliervelden kleiner dan 16px: alle invoervelden minimaal 16px. */
#bbr-refund-app input,
#bbr-refund-app select,
#bbr-refund-app textarea,
#bbr-refund-app button {
    font-size: 16px;
}
