.donation-header {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.donation-header img {
	width: 80px;
	margin-bottom: 10px;
}

.donation-title {
	font-size: 24px;
	font-weight: bold;
	color: #333;
}

.donation-description {
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
}

#donation-amount {
	width: calc(100% - 28px);
	padding: 12px;
	font-size: 16px;
	border: 2px solid #ddd;
	border-radius: 6px;
	text-align: center;
	margin-bottom: 15px;
	transition: border 0.2s ease-in-out;
}

#donation-amount:focus {
	border: 2px solid #b71c1c;
	outline: none;
}

.donation-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%; /* Makes container full-width */
	max-width: 100%; /* Ensures it doesn't overflow */
	justify-content: space-between;
}

.donation-option {
	flex: 1; /* Make all buttons the same width */
	max-width: 80px; /* Limit button width */
}

.donation-option:hover,
.donation-option.active {
    background: #b71c1c;
    color: white;
}

.donation-button{
	background: white;
	border: 2px solid #c62828;
	color: #c62828;
	font-size: 16px;
	font-weight: bold;
	padding: 10px 10px;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.2s;
}

/* Hide the $50 button on mobile screens */
@media (max-width: 480px) {
    .donation-option[data-amount="50"] {
        display: none;
    }
}

.donation-input {
    display: flex;
    align-items: center;
    border: 2px solid #c62828;
    padding: 8px;
    border-radius: 5px;
    font-size: 16px;
	background-color: #fff;
}

.donation-input span {
    color: #c62828;
    margin-right: 5px;
    font-weight: bold;
}

.donation-input input {
    border: none;
    outline: none;
    width: 60px;
    font-size: 16px;
    color: #32325d;
    text-align: center;
}

#card-element {
	background: white;
	padding: 12px;
	border-radius: 6px;
	border: 2px solid #ddd;
	transition: border 0.2s ease-in-out;
}

.donate-button {
	padding: 14px;
	font-size: 18px;
	margin-top: 20px;
	width: 100%;
	box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
}

.donate-button:disabled,
.donate-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.error-message {
	color: #c62828;
	font-size: 14px;
	margin-top: 5px;
	margin-bottom: 10px;
}

#preview img {
	max-width: 300px;
	margin-top: 10px;
	display: block;
}


.accordion {
    padding: 15px;
    width: 100%;
    text-align: left;
    outline: none;
    font-size: 18px;
}

.accordion:hover {
    color: white;
	transform: none;
}

/* Ensure the accordion button follows the same style when active */
.accordion.active {
    background: #b71c1c;
    color: white;
}

.panel {
    max-height: 0;
    overflow: hidden;
    background-color: #f9f9f9;
    border: none; /* Remove border when closed */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out, border 0.3s;
    padding: 0 15px;
	margin-bottom: 5px;
}

.panel.open {
    max-height: 500px; /* Adjust based on content size */
    padding: 15px;
    border: 1px solid #ddd; /* Show border only when open */
}


.donation-data input,
.donation-data textarea {
    font-family: sans-serif;
    width: calc(100% - 28px);
    font-size: 16px;
    color: #32325d;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 2px solid #ddd;
    transition: border 0.2s ease-in-out;
    margin-bottom: 5px;
}

/* Remove default outline on focus */
.donation-data input:focus-visible,
.donation-data textarea:focus-visible {
    outline: none;
}

/* Placeholder styling */
.donation-data input::placeholder,
.donation-data textarea::placeholder {
    color: #a0aec0; /* Light gray placeholder */
    opacity: 1; /* Ensures placeholder is fully visible */
}

/* Compatibility for older browsers */
.donation-data input:-ms-input-placeholder,
.donation-data textarea:-ms-input-placeholder { /* Internet Explorer */
    color: #a0aec0;
}

.donation-data input::-ms-input-placeholder,
.donation-data textarea::-ms-input-placeholder { /* Microsoft Edge */
    color: #a0aec0;
}

/* Tabs Container */
.tab-container {
    display: flex;
    justify-content: space-between;
    /* border-bottom: 2px solid #ddd; */
	gap: 5px;
}

/* Individual Tabs */
.tab {
	color: #888;
    padding: 10px 20px;
    cursor: pointer;
    background: #ddd;
    border: 1px solid #ddd;
    transition: background 0.3s ease;
	width: 100%;
	border-radius: 8px 8px 0 0;
}

.tab:hover {
    background: #e0e0e0;
}

.tab.active {
	color: #000;
    background: #f4f4f4;
    font-weight: bold;
    /* border-bottom: 2px solid #666; */
    border-bottom: 0;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Make the table responsive */
.table-responsive {
    overflow-x: auto;
    max-width: 100%;
}

/* Table Styles */
table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    margin: auto;
	border-radius: 0 0 8px 8px;
    overflow: hidden;
	border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
	padding: 15px;
    text-align: left;
	font-size: 24px;
	border-top: 0;
	color: #888;
	text-align: center;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Target the last row's last <td> */
table tr:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden; /* Ensures content respects the rounded corners */
}
table tr:last-child td {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden; /* Ensures content respects the rounded corners */
}

/* Thumbnail Images */
td img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Links */
td a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

td a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    table {
        width: 100%;
    }

    td {
        padding: 8px;
    }

    .tab {
        padding: 8px 15px;
    }

    td img {
        max-width: 150px;
    }
}

/* Donation Item Layout */
.table-donation-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

/* Image Styling */
.table-donation-item img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
}

/* Donation Info Container */
.table-donation-info {
    flex: 1;
    text-align: left;
}

/* Website URL */
.table-donation-url {
    color: #c62828;
    font-weight: bold;
    display: block;
    text-decoration: none;
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.table-donation-url.a:hover {
    text-decoration: underline;
}

/* Donation Message */
.table-donation-message {
    color: #333;
    font-size: 14px;
}

/* Donation Amount */
.table-donation-amount {
	white-space: nowrap;
    border: 2px solid #c62828;
    color: #c62828;
    padding: 3px 3px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    min-width: 40px;
	font-size: 16px;
	background: white;
}

/* Donation Section */
.collapsible-donation {
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
	background-color: #f8f9fa;
}

/* Donation Header - Clickable */
.donation-header-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.donation-header-button button{
	padding: 14px;
    font-size: 18px;
    width: 100%;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
}
.donation-header-button button:hover{
	transform: none;
}

.table-donation-header {
	display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px; /* Add spacing between URL and amount */
    flex-wrap: nowrap; /* Prevent wrapping */
	margin-bottom: 5px;
}

/* Donation Title */
.table-donation-title {
    font-size: 18px;
    font-weight: bold;
}

/* Toggle Icon */
.toggle-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
	transform: rotate(180deg); /* Starts rotated when collapsed */
	display: inline-block;
}

/* Collapsible Content */
.donation-content {
    padding: 0 15px;
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.3s ease-in-out;
}

/* Hidden State */
.donation-content.hidden {
    max-height: 0;
    padding: 0;
}

/* Adjustments for very small screens */
@media (max-width: 480px) {
    .table-donation-header {
        flex-direction: column; /* Stack elements on very small screens */
        align-items: flex-start;
    }

    .table-donation-url, .table-donation-amount {
        max-width: 100%; /* Allow full width if needed */
        text-align: left;
    }
}

.maple-pledge {
    text-align: center;
    background: #f8f8f8;
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
    font-weight: bold;
}
.maple-pledge h3 {
    color: #b22222;
}
