.fpp-parish,
.fpp-directory-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.fpp-parish-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 5px;
}

.fpp-parish-header-content {
    flex: 1 1 auto;
    min-width: 0;
}

.fpp-directory-item {
    display: flow-root;
}

.fpp-directory-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.fpp-directory-head > div {
    min-width: 0;
}

.fpp-directory-item > .fpp-parish-logo {
    float: left;
    margin: 0 16px 10px 0;
}

.fpp-directory-item h3 {
    margin-top: 0;
}

.fpp-directory-head p {
    margin-top: 0;
}

.fpp-bulletins-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 74px;
    min-height: 86px;
    padding: 9px 8px;
    border: 1px solid #c8d9d0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f3faf6 100%);
    color: #22563d;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    box-shadow: 0 6px 16px rgba(34, 86, 61, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fpp-bulletins-toggle svg {
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 50%;
    background: #e7f4ec;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fpp-bulletins-toggle > span {
    display: grid;
    gap: 1px;
    font-size: 10px;
}

.fpp-bulletins-toggle > span > span {
    display: block;
}

.fpp-bulletins-toggle:hover,
.fpp-bulletins-toggle:focus,
.fpp-bulletins-toggle[aria-expanded="true"] {
    border-color: #75b28c;
    color: #124a2c;
    box-shadow: 0 12px 28px rgba(34, 86, 61, 0.18);
    transform: translateY(-2px);
}

.fpp-bulletins-toggle:hover svg,
.fpp-bulletins-toggle:focus svg,
.fpp-bulletins-toggle[aria-expanded="true"] svg {
    background: #1c9b4b;
    color: #ffffff;
    transform: scale(1.05);
}

.fpp-bulletins-panel {
    clear: both;
    margin: 12px 0 4px;
    padding: 2px;
    overflow: hidden;
    border: 1px solid #dbe7ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(38, 81, 115, 0.09);
}

.fpp-bulletins-panel[hidden] {
    display: none;
}

.fpp-bulletins-panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.fpp-bulletins-panel th,
.fpp-bulletins-panel td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6eef3;
    text-align: left;
}

.fpp-bulletins-panel th {
    background: #f6fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.fpp-bulletins-panel tr:last-child td {
    border-bottom: 0;
}

.fpp-bulletins-panel tr.is-latest td {
    background: #eef7f1;
    color: #173c28;
    font-weight: 700;
}

.fpp-bulletins-panel tr.is-latest td:first-child {
    border-left: 4px solid #1c9b4b;
}

.fpp-bulletins-panel a {
    color: #126b35;
    font-weight: inherit;
    text-decoration: none;
}

.fpp-bulletins-panel a:hover,
.fpp-bulletins-panel a:focus {
    text-decoration: underline;
}

.fpp-parish > .fpp-bulletins-panel {
    width: 100%;
    margin: 12px 0 18px;
}

.fpp-contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 8px 0 10px;
}

.fpp-contact-chip,
.fpp-contact-chip:visited {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    color: #24513a;
    background: #eef7f1;
    border: 1px solid #c6dfce;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
}

.fpp-contact-chip:hover,
.fpp-contact-chip:focus {
    color: #133c26;
    background: #dff0e5;
    border-color: #9ac5a7;
}

.fpp-contact-chip svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.fpp-parish-logo {
    width: 150px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.fpp-parish-description img,
.fpp-directory-excerpt img {
    max-width: 100%;
    height: auto;
}

.fpp-directory-excerpt {
    margin: 25px 0;
    text-align: justify;
}

.fpp-directory-excerpt .fpp-read-more {
    display: block;
    margin-top: 5px;
    text-align: right;
    white-space: nowrap;
}

.fpp-directory-item a.fpp-donate-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 190px;
    min-height: 56px;
    margin: 16px auto 0;
    padding-left: 0px;
    padding-right: 8px;
    color: #fff !important;
    background: #16733b;
    border: 1px solid #105b2e;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.fpp-directory-item a.fpp-donate-button::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    background: currentColor;
    -webkit-mask: url("../includes/ikona/kresba.svg") center / contain no-repeat;
    mask: url("../includes/ikona/kresba.svg") center / contain no-repeat;
}

.fpp-directory-item a.fpp-donate-button img {
    display: none;
}

.fpp-directory-item a.fpp-donate-button:hover,
.fpp-directory-item a.fpp-donate-button:focus,
.fpp-directory-item a.fpp-donate-button:active {
    color: #fff !important;
    background: #105b2e;
}

.fpp-directory-item a.fpp-donate-button:visited {
    color: #fff !important;
}

.fpp-donate-button:focus-visible {
    outline: 3px solid rgba(22, 115, 59, 0.35);
    outline-offset: 3px;
}

.fpp-donation-form {
    display: grid;
    gap: 14px;
    max-width: 520px;
    margin-top: 22px;
}

.fpp-donation-form label,
.fpp-donation-form input,
.fpp-donation-form select {
    display: block;
    width: 100%;
}

.fpp-donation-form input,
.fpp-donation-form select,
.fpp-donation-form button {
    box-sizing: border-box;
    padding: 10px;
}

.fpp-donation-form select {
    min-height: 44px;
    line-height: 1.35;
}

.fpp-donation-form option.fpp-option-once {
    color: #1c9b4b;
}

.fpp-donation-form option.fpp-option-repeat {
    color: #f97316;
}

.fpp-selected-description {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    color: #31533d;
    background: #f1f8f3;
    border-left: 4px solid #1c9b4b;
    white-space: pre-line;
}

.fpp-selected-description[hidden] {
    display: none;
}

.fpp-donor-note-field {
    display: grid;
    gap: 6px;
}

.fpp-donor-note-field[hidden] {
    display: none;
}

.fpp-donor-note-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fpp-note-counter {
    color: #5f6b63;
    font-size: 13px;
    font-weight: 600;
}

.fpp-today-collections {
    margin: 22px 0;
}

.fpp-donors {
    margin: 22px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.fpp-donors-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    border: 0;
    background: transparent;
    color: #173c28;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.fpp-donors-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef7f1;
    color: #24513a;
    font-size: 13px;
}

.fpp-donors-panel {
    padding: 0 0 14px;
}

.fpp-donors-panel ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fpp-donors-panel li {
    padding: 6px 10px;
    border: 1px solid #c6dfce;
    border-radius: 999px;
    background: #f7fbf8;
}

.fpp-collection-cards {
    display: grid;
    gap: 12px;
}

.fpp-collection-card {
    padding: 14px 16px;
    background: #f1f8f3;
    border: 1px solid #b9ddc4;
    border-left: 5px solid #1c9b4b;
    border-radius: 6px;
}

.fpp-collection-card h4,
.fpp-collection-card p {
    margin: 0;
}

.fpp-collection-card p {
    margin-top: 8px;
}

.fpp-calendar {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.fpp-calendar h3 {
    margin-top: 0;
}

.fpp-calendar-nav,
.fpp-calendar-weekdays,
.fpp-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.fpp-calendar-nav {
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
}

.fpp-calendar-weekdays {
    margin-bottom: 4px;
    color: #666;
    font-size: 13px;
    text-align: center;
}

.fpp-calendar-day {
    position: relative;
    min-height: 44px;
    padding: 4px;
    border: 1px solid #ddd;
    background: #fff;
}

.fpp-calendar-day:disabled {
    color: #aaa;
    background: #f5f5f5;
}

.fpp-calendar-day.has-collection:not(:disabled) {
    color: #126b35;
    border-color: #72b48a;
    cursor: pointer;
}

.fpp-calendar-day.is-selected {
    outline: 2px solid #126b35;
    outline-offset: 1px;
}

.fpp-calendar-day.is-validation-flash {
    animation: fpp-calendar-validation-flash 1s ease-in-out 3;
}

@keyframes fpp-calendar-validation-flash {
    0%,
    100% {
        border-color: #72b48a;
        background: #fff;
    }

    45% {
        border-color: #b32d2e;
        background: #fcf0f1;
        box-shadow: 0 0 0 2px rgba(179, 45, 46, 0.2);
    }
}

.fpp-calendar-dots {
    position: absolute;
    right: 5px;
    bottom: 5px;
    display: flex;
    gap: 3px;
    align-items: center;
}

.fpp-calendar-dot,
.fpp-calendar-dot-swatch {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.fpp-calendar-dot-once {
    background: #1c9b4b;
}

.fpp-calendar-dot-repeat {
    background: #f97316;
}

.fpp-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.fpp-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fpp-calendar-empty {
    margin-bottom: 0;
}

.fpp-result img {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-top: 12px;
}

.fpp-validation-message {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e0a5a8;
    border-left: 4px solid #b32d2e;
    border-radius: 6px;
    background: #fcf0f1;
    color: #7a1f24;
    font-weight: 700;
}

.fpp-parish-self-notice {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e0c36d;
    border-left: 4px solid #b7791f;
    border-radius: 6px;
    background: #fff8e5;
    color: #744210;
    font-weight: 700;
}

.fpp-thank-you-message {
    max-width: 420px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #c6dfce;
    border-left: 4px solid #1c9b4b;
    border-radius: 6px;
    background: #f7fbf8;
    color: #24513a;
    white-space: pre-line;
}

.fpp-qr-origin {
    max-width: 420px;
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid #c6dfce;
    border-radius: 6px;
    background: #f1f8f3;
    color: #24513a;
    font-weight: 700;
}

.fpp-directory {
    display: grid;
    gap: 14px;
}

.fpp-search input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 5px;
    padding: 10px;
}

@media (max-width: 640px) {
    .fpp-directory-head {
        align-items: stretch;
        flex-direction: column;
    }

    .fpp-bulletins-toggle {
        align-self: flex-start;
    }
}
