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: green;
    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 black; /* #517a54; */
    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: #517a54;
    color: white;
    border-radius: 5px;
    border: 1px solid #517a54;
    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;
}

/* ===== 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: green outline + faint tint. (Brand polish in Stage 5.) */
.catalogitem-wrapper.has-amount .catalogitem {
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, .25);
}

.catalogitem-wrapper.has-amount .catalogitem-body {
    background-color: rgba(22, 163, 74, .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: #337ab7;
    text-decoration: none;
}

.catalogitem-moreinfo:hover,
.catalogitem-moreinfo:focus {
    color: #23527c;
    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 green tint reinforces the recurring-vs-once distinction. (Brand polish in Stage 5.) */
.giving-schedule-block {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid rgba(22, 163, 74, .35);
    border-radius: 6px;
    background-color: rgba(22, 163, 74, .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. Two preview variants swapped by the
   on-page "Search style" toggle: search-style-inline (icon/x sit quietly inside) and search-style-boxed
   (icon/x as full-height boxed addons, the input-group look). */
.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;
}

/* Inline variant (default): icon + x quietly inside the field. */
.search-style-inside .form-control {
    padding-left: 40px;
    padding-right: 40px;
}

.search-style-inside .giving-catalog-search-icon {
    left: 14px;
}

.search-style-inside .giving-catalog-search-clear {
    right: 8px;
    padding: 0 8px;
}

/* Categories variant: 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 (hidden unless the Categories search style is active). */
.giving-catalog-categories {
    display: none;
}

.search-style-pills .giving-catalog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.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: #1f2937;
    color: #fff;
    border-color: #1f2937;
}

.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 #16a34a;
    background-color: rgba(22, 163, 74, .06);
}

/* "Your gift" running fund list in the summary bar. */
.giving-summary-funds {
    font-size: 15px;
    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. */
/* Base (shared). A position/shape VARIANT class is always applied (variant-bar | variant-centered |
   variant-corner) and is swappable live via the on-page style switcher while we gather feedback. */
.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);
}

/* Variant: full-width bottom bar */
.giving-summary-bar.variant-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);
}

/* Variant: centered floating card */
.giving-summary-bar.variant-centered {
    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;
}

/* Variant: bottom-right floating card */
.giving-summary-bar.variant-corner {
    right: 20px;
    bottom: 20px;
    left: auto;
    width: 340px;
    max-width: calc(100vw - 40px);
    flex-direction: column;
    padding: 16px 18px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 12px;
}

.giving-summary-bar.has-gift {
    background-color: #1f2937;
    color: #fff;
}

.giving-summary-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.giving-summary-prompt {
    font-style: italic;
    opacity: .8;
}

.giving-summary-mode {
    font-size: 15px;
    opacity: .85;
}

.giving-summary-amount {
    font-size: 24px;
    font-weight: 700;
}

.giving-summary-projection {
    font-size: 15px;
    opacity: .8;
}

/* Card variants stack the actions with a full-width button; the bar variant keeps them inline. */
.giving-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.giving-summary-bar.variant-bar .giving-summary-actions {
    flex-direction: row;
    align-items: center;
}

.giving-summary-bar.variant-centered .giving-summary-actions .btn-give-now,
.giving-summary-bar.variant-corner .giving-summary-actions .btn-give-now {
    width: 100%;
}

/* On-page preview switcher for the summary-bar style. TEMPORARY - remove once a layout is chosen. */
.giving-style-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 8px 12px;
    border: 1px dashed rgba(0, 0, 0, .35);
    border-radius: 6px;
    background-color: #fffbe6;
}

.giving-style-switcher-label {
    font-weight: 600;
    font-size: 13px;
}

/* Card-style preview "Donate button" (TEMPORARY). A normal inline button, centered in the card actions
   (.catalogitem-actions is text-center); hidden in the default amount-box mode so there's no flash before JS
   runs (updateCardModeDisplay then manages it in button mode). */
.js-card-activate {
    min-width: 120px;
}

.card-mode-box .js-card-activate {
    display: none;
}

/* 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-summary-style,
.js-card-style,
.js-savedpayment-demo,
.js-search-style,
.js-giving-mode,
.giving-cat-pill,
.js-card-activate,
.btn-give-now,
.btn-more-info,
.btn-donate-trip,
.btn-donate-person {
    cursor: pointer;
}