/* Dwell brand palette (brand guide, April 2021): Dark Blue #03272D, Forest Green #07841B,
   Kiwi #72DB2B (accent only), Slate #515E61 (body copy only). Typography (Circe/Lato) comes
   from the site theme; this sheet only sets color and layout. */

html {
    scroll-behavior: smooth;
}

.current-catalogitem {
    height: 220px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media (min-width: 992px) {
    .current-catalogitem {
        height: 420px;
    }
}

.current-catalogitem h1 {
    background-color: rgba(0, 0, 0, 0.3);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 6px;
}

.catalogitem {
    border: 1px solid rgba(0, 0, 0, .3);
    position: relative;
}

.catalogitem h1 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 0;
}

.catalogitem-category {
    display: block;
    text-align: center;
    padding: 4px;
    background-color: #07841B;
    color: white;
    font-weight: 550;
}

/* Giving Catalog - Category colors */
.catalogitem-category.general-fund {
    background-color: #000000;

}


.catalogitem-category.domestic-church-plant,
.catalogitem-category.domestic-church-planting {
    background-color: #d4d4d4;
    color: #000;

}

.catalogitem-category.humanitarian-aid,
.catalogitem-category.humanitarian-aid-fund,
.catalogitem-category.humanitarian-aid-funds,
.catalogitem-category.humanitarian-aid-development,
.catalogitem-category.humanitarian-aid-and-development {
    background-color: #808080;
    color: #fff;

}

.shortterm-trips{
    background-color: #aaaaaa;
}

.catalogitem-category.global-partner,
.catalogitem-category.global-partners,
.catalogitem-category.global-partnership,
.catalogitem-category.global-partnership-fund,
.catalogitem-category.global-partnership-funds {
    background-color: #555;

}

.catalogitem-category.missions,
.catalogitem-category.missions-fund,
.catalogitem-category.mission-funds,
.catalogitem-category.missions-funds,
.catalogitem-category.global-workers {
    background-color: #ffffff;
    color: #000;

}

.catalogitem-category.building-fund {
    background-color: darkgoldenrod;
}

.catalogitem-category.harambee {
    background-color: #2b2b2b;
    color: #fff;
}

.catalogitem-body {
    padding: 15px;
    height: 172px;
    overflow: hidden;
}

.catalogitem-shortdescription {
    height: 120px;
    overflow: hidden;
}

.catalogitem-link:hover {
    text-decoration: none;
}

.catalogitem-image {
    height: 158px;
    width: 100%;
    /* Default placeholder; GivingCatalog.js overrides per item via .css('background-image', ...). */
    background-image: url('/GetImage.ashx?Guid=FAB0526F-91E7-4C95-A682-66B36571565B');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.btn-remove-from-cart {
    font-weight: bold;
    cursor: pointer;
    margin-left: 15px;
    font-size: 14px;
}

.zzcatalogitem-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: all .1s ease-in-out;
}

.zzcatalogitem-image:hover:after {
    background: rgba(0,0,0,.2);
}

/* Popup Background */
.popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}

/* Popup Content */
.popup-content {
    background-color: #ffffff;
    margin: auto;
    border-radius: 10px;
    border: 2px solid #03272D;
    width: 80%;
}

.popup-header {
    width: 100%;
}

.popup-body {
    padding: 0px 20px 20px 20px;
}

/* Popup Close Button */
.btn-x-close {
    color: #777777;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-top: -5px;
    margin-right: 5px;
    cursor: pointer;
}

.popup-image {
    height: 158px;
    width: 100%;
    /* Default placeholder; ShowMoreInfoPopup in GivingCatalog.js overrides per item. */
    background-image: url('/GetImage.ashx?Guid=FAB0526F-91E7-4C95-A682-66B36571565B');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.popup-text {
    color: #333333;
    padding: 10px;
    font-size: 1em;
    font-weight: 500;
}

.popup-button {
    background-color: #07841B;
    color: white;
    border-radius: 5px;
    border: 1px solid #07841B;
    margin: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
}

/* .adj .scheduled-transaction
,.adj .scheduled-transactions
, #cart
,.scheduled-transaction .panel
{
    height: 100%;
} */

.transaction-entry-v2 {
    max-width: 100%;
}

#cart{
    height: 100%;

}

.adj{

  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.adj .scheduled-transactions, .adj #cart{
    display: flex;
    flex-direction: column;
    
}

.scheduled-transactions{
    margin-bottom: 15px;
}
@media only screen and (max-width: 768px) {
    .form-group, #cart {
      max-width: 100%;
      flex-grow: 1;
    }
    .catalogitem h1 {
        font-size: 16px;
    }
    .container {
        width: 100%;
    }
    .scheduled-transactions{
        flex-basis: 100%;
    }
    #cart{
        flex-basis: 100%;
    }
    li{
        flex-basis: 100%;
        display: list-item;
    }
    .profile-nav .nav-pills>li {
        display: list-item;
        float: none;
    }
    .catalogitem-body {
        height: auto;
    }
    .catalogitem-shortdescription{
        height: auto;
    }

      }
.container {
    width: 85%;
}
@media screen and (min-width: 1601px) {
    body {
      font-size: 16px;
    }
    .catalogitem h1 {
        font-size: 18px;
    }
  }
/* Media query for smaller screens */
@media screen and (max-width: 1600px) {
    body {
      font-size: 14px;
    }
    .catalogitem h1 {
        font-size: 18px;
    }
  }
  /* Media query for smaller screens */
@media screen and (max-width:992px) {
    .catalogitem-body {
        height: auto;
    }
    .container {
        width: 100%;
    }
    .catalogitem-shortdescription{
        height: auto;
    }
    body {
        font-size: 14px;
      }
      .catalogitem h1 {
          font-size: 16px;
      }
      .catalogitem-wrapper.col-lg-12 .catalogitem-image{
        height: 158px;
        width: 100%;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
      }
      .catalogitem-wrapper.col-lg-12 .catalogitem-body{
        height: auto;
      }
  }
@media screen and (max-width:1024px) {
    body {
        font-size: 14px;
      }
      .catalogitem h1 {
          font-size: 16px;
      }

  }
  @media screen and (min-width:993px) {
    .catalogitem-wrapper.col-lg-12 .catalogitem-image{
        height: 200px;
        width: 100%;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
    .catalogitem-wrapper.col-lg-12 .catalogitem-body{
        height: 130px;
    }
  }

/* Enlarged text for the gift-processing error message (NotificationBox) and its acknowledge modal. */
.giving-error-text {
    font-size: 1.25rem;
    line-height: 1.5;
}

/* Bump the block's notification-box text (quarterly-dates info, validation warnings) - it inherits the small
   body size by default. Scoped through .alert for enough specificity to beat the theme's default. The
   higher-specificity rule below keeps the gift-error box at its larger size. */
.transaction-entry-v2 .alert .js-notification-text {
    font-size: 16px;
}

.transaction-entry-v2 .alert.giving-error-text .js-notification-text {
    font-size: 1.25rem;
}

/* Self-contained acknowledge modal for gift-processing errors. */
.giving-error-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.5);
}

.giving-error-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.giving-error-modal-dialog {
    width: 90%;
    max-width: 480px;
    margin: 16px;
    padding: 24px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.giving-error-modal-footer {
    margin-top: 20px;
    text-align: right;
}

/* Recurring confirmation modal content (shares the error modal chrome). */
.giving-confirm-body .giving-confirm-amount {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.giving-confirm-body .giving-confirm-funds {
    color: #515E61;
    margin-bottom: 12px;
}

/* ===== Stage 3, slice 2: inline amounts on catalog cards ===== */

/* Lay the catalog out with flexbox instead of Bootstrap's floated columns. Floats stair-step when cards have
   unequal heights (and when a card grows as its amount box / Donate button toggles), leaving gaps and making
   cards jump. Flex-wrap wraps every row cleanly from the left regardless of height; align-items:stretch gives
   equal-height cards per row so the borders line up. */
#givingCatalogItems.giving-catalog {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

#givingCatalogItems.giving-catalog > .catalogitem-wrapper {
    display: flex;
}

#givingCatalogItems.giving-catalog > .catalogitem-wrapper > .catalogitem {
    width: 100%;
}

/* A card with an amount entered is part of the gift: Forest Green outline + faint tint. */
.catalogitem-wrapper.has-amount .catalogitem {
    border-color: #07841B;
    box-shadow: 0 0 0 2px rgba(7, 132, 27, .25);
}

.catalogitem-wrapper.has-amount .catalogitem-body {
    background-color: rgba(7, 132, 27, .05);
}

/* Inline amount input area (the relocated CampusAccountAmountPicker currency-box). */
.catalogitem-amount {
    padding: 0 12px 4px;
}

.catalogitem-amount .currency-box {
    margin-bottom: 4px;
}

/* "More info" as a quiet, clearly-clickable link on its own line beneath the amount / button. */
.catalogitem-moreinfo {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #07841B;
    text-decoration: none;
}

.catalogitem-moreinfo:hover,
.catalogitem-moreinfo:focus {
    color: #07841B;
    text-decoration: underline;
}

/* Short-term trip two-button group (shown until the donor picks "Donate to trip"). */
.catalogitem-trip-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px 8px;
}

/* ===== Stage 3, slice 2b: lifted schedule block (recurring tint) ===== */

/* The schedule block now sits at the top of the page (below the mode toggle) and is shown only in recurring
   mode. The Forest Green tint reinforces the recurring-vs-once distinction. */
.giving-schedule-block {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid rgba(7, 132, 27, .35);
    border-radius: 6px;
    background-color: rgba(7, 132, 27, .06);
}

/* ===== Stage 3, slice 3: sticky summary bar ===== */

/* Reserve space so the fixed bar never covers the last content on the amount-entry step. */
.transaction-entry-v2 {
    padding-bottom: 140px;
}

/* Multi-fund cue: instruction line at the top of the catalog. */
/* Catalog search: clearer label + a no-results message (hidden until JS shows it). */
.giving-catalog-search-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.giving-catalog-noresults {
    display: none;
    margin-top: 16px;
    padding: 20px;
    text-align: center;
    color: #777;
    font-style: italic;
}

/* Search field with the icon + clear (x) inside one bordered input. The "Categories" style
   (search-style-pills) is the decided design: rounded search box with category filter pills below. */
.giving-catalog-search {
    position: relative;
}

.giving-catalog-search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
}

.giving-catalog-search-clear {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #999;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.giving-catalog-search-clear:hover,
.giving-catalog-search-clear:focus {
    color: #333;
}

/* A big rounded "Search N funds..." box with category filter pills below. */
.search-style-pills .giving-catalog-search .form-control {
    height: 54px;
    font-size: 18px;
    border-radius: 28px;
    padding-left: 24px;
    padding-right: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.search-style-pills .giving-catalog-search-icon,
.search-style-pills .giving-catalog-search-clear {
    display: none;
}

/* Category filter pills. On mobile they collapse behind the Filter toggle (search box stays visible). */
.giving-catalog-categories {
    display: none;
}

.search-style-pills .giving-catalog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.giving-catalog-filter-toggle {
    display: none;
}

@media (max-width: 767px) {
    .giving-catalog-filter-toggle {
        display: inline-block;
        margin-top: 10px;
    }

    .search-style-pills .giving-catalog-categories {
        display: none;
    }

    .search-style-pills.is-filter-open .giving-catalog-categories {
        display: flex;
    }
}

.giving-cat-pill {
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}

.giving-cat-pill.active {
    background-color: #03272D;
    color: #fff;
    border-color: #03272D;
}

.giving-cat-count {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, .08);
    font-size: 12px;
}

.giving-cat-pill.active .giving-cat-count {
    background-color: rgba(255, 255, 255, .2);
}

.giving-catalog-help {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-left: 3px solid #07841B;
    background-color: rgba(7, 132, 27, .06);
}

/* "Your gift" running fund list in the summary bar. */
.giving-summary-funds {
    font-size: 16px;
    opacity: .85;
}

/* Pinned to the bottom of the viewport. z-index 900 keeps it below the more-info popup (1000) and the error
   modal (10000). Muted by default; dark/active once the donor has entered an amount.
   Layout decided 2026-09: full-width bottom bar on desktop, centered floating card on mobile. */
.giving-summary-bar {
    position: fixed;
    z-index: 900;
    display: flex;
    gap: 12px;
    background-color: #f5f5f5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* Desktop: full-width bottom bar */
@media (min-width: 768px) {
    .giving-summary-bar {
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 24px;
        border-top: 1px solid rgba(0, 0, 0, .15);
    }
}

/* Mobile: centered floating card */
@media (max-width: 767px) {
    .giving-summary-bar {
        left: 50%;
        bottom: 24px;
        transform: translateX(-50%);
        width: 440px;
        max-width: calc(100vw - 40px);
        flex-direction: column;
        padding: 16px 18px;
        border: 1px solid rgba(0, 0, 0, .12);
        border-radius: 12px;
    }

    /* Keep the floating card short when many funds are selected: the fund list ellipsizes
       after two lines (the total and the Give button are what matter on this card). */
    .giving-summary-funds {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.giving-summary-bar.has-gift {
    background-color: #03272D;
    color: #fff;
}

/* Log-in hint in the pledge nudge modal: only shown to logged-out donors (GivingCatalog.js
   toggles is-anonymous on the modal when the server flags the donor as anonymous). */
.giving-pledge-login {
    display: none;
    margin-top: 12px;
    font-size: 14px;
    color: #515E61;
}

.giving-error-modal.is-anonymous .giving-pledge-login {
    display: block;
}

/* Kiwi accent on the one number that matters once a gift is in progress. Kiwi on Dark Blue
   is high-contrast; keep it to the amount so the accent stays an accent. */
.giving-summary-bar.has-gift .giving-summary-amount {
    color: #72DB2B;
}

.giving-summary-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.giving-summary-prompt {
    font-size: 17px;
    font-style: italic;
    opacity: .8;
}

.giving-summary-mode {
    font-size: 17px;
    opacity: .85;
}

.giving-summary-amount {
    font-size: 28px;
    font-weight: 700;
}

.giving-summary-projection {
    font-size: 16px;
    opacity: .8;
}

/* Actions: inline next to the info on the desktop bar; stacked with a full-width button on the mobile card. */
.giving-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .giving-summary-actions {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .giving-summary-actions .btn-give-now {
        width: 100%;
    }
}

/* Clear-selections button: only shown once a gift is in progress (the bar is dark then, so it is
   styled as a ghost button against the dark background). */
.giving-summary-clear {
    display: none;
    align-self: flex-start;
    margin-top: 10px;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background-color: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 20px;
    text-decoration: none;
}

.giving-summary-clear .fa-eraser {
    margin-right: 5px;
}

.giving-summary-bar.has-gift .giving-summary-clear {
    display: inline-flex;
    align-items: center;
}

.giving-summary-clear:hover,
.giving-summary-clear:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, .28);
    border-color: #fff;
    text-decoration: none;
}

/* Card "Donate" button (the decided card model). A normal inline button, centered in the card actions
   (.catalogitem-actions is text-center); updateCardModeDisplay manages visibility + label. */
.js-card-activate {
    min-width: 120px;
}

/* Prayer letter signup checkbox (funds flagged OffersPrayerLetterSignup): hidden until the card has an
   amount entered. */
.catalogitem-prayerletter {
    display: none;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.catalogitem-wrapper.has-amount .catalogitem-prayerletter {
    display: block;
}

/* Mobile fix: these toggles/buttons are <a> without href and use delegated click handlers. iOS Safari only
   dispatches click to delegated handlers for "clickable" elements, so without cursor:pointer a tap does nothing
   on mobile (works on desktop). Give them cursor:pointer. */
.js-giving-mode,
.js-giving-summary-clear,
.giving-cat-pill,
.js-card-activate,
.btn-give-now,
.btn-more-info,
.btn-donate-trip,
.btn-donate-person {
    cursor: pointer;
}