@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

.dcs-container {
    /* max-width: 1200px; */
    /* margin: 0 auto; */
    /* padding: 20px; */
}
.dcs-radio-group {
    text-align: left;
    margin-bottom: 10px;
    padding-left: 10px;
}
.dropdwn_div {
    width: 40%;
}
.dropdwn_div .dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropdwn_div .dropdown > input[type="checkbox"] {
    position: absolute;
    left: -100vw;
  }
  
  .dropdwn_div .dropdown > label,
  .dropdwn_div .dropdown > a[role="button"] {
    display: inline-block;
    padding: 6px 15px;
    color: #333;
    line-height: 1.5em;
    text-decoration: none;
    border: 1px solid #8c8c8c;
    cursor: pointer;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  }
  
  
  
  .dropdwn_div .dropdown > label:after,
  .dropdwn_div .dropdown > a[role="button"]:after {
    content: "\f0d7";
    font-family: FontAwesome;
    display: inline-block;
    margin-left: 6px;
  }
  
  .dropdwn_div .dropdown > ul {
    position: absolute;
    z-index: 999;
    display: block;
    left: -100vw;
    top: calc(1.5em + 14px);
    border: 1px solid #8c8c8c;
    background: #fff;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    width: 100%;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: 0 3px 8px rgba(0,0,0,.15);
    -moz-box-shadow: 0 3px 8px rgba(0,0,0,.15);
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
  }
  
  .dropdwn_div .dropdown > ul a {
    display: block;
    padding: 6px 15px;
    text-decoration: none;
    color: #333;
  }
  
  .dropdwn_div .dropdown > ul a:hover,
  .dropdwn_div .dropdown > ul a:focus {
    background: #ececec;
  }
  
  .dropdwn_div .dropdown > input[type="checkbox"]:checked ~ ul,
  .dropdwn_div .dropdown > ul:target {
    left: 0;
  }
  
  .dropdwn_div .dropdown > [type="checkbox"]:checked + label:after,
  .dropdwn_div .dropdown > ul:target ~ a:after {
    content: "\f0d8";
  }
  
  .dropdwn_div .dropdown a.close {
    display: none;
  }
  
  .dropdwn_div .dropdown > ul:target ~ a.close {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    text-indent: -100vw;
    z-index: 1000;
  }
.left-side {
    width: 50%;
}
.dcs-campaign-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.dcs-campaign-card {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 33px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    display: flex;
}

.dcs-campaign-card:hover {
    transform: translateY(-5px);
}

.dcs-campaign-card img {
    width: 100%;
    height: 200px !important;
    border-radius: 8px;
    object-fit: cover;
}
.dcs-campaign-card h3 {
    font-size: 30px;
    font-weight: 600;
    color: #3A9BD5;
    margin: 0px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: initial;
    font-family: 'Montserrat';
}
.dsc-amount {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dcs-campaign-card .p-campaign p {
    font-size: 15px;
    color: #666;
    margin-top: 15px;
    text-align: initial;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Montserrat';
}


.dcs-givewp-info {
    margin: 10px 0;
    text-align: left;
}

.dcs-givewp-info p {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.dcs-donation-form {
    margin-top: 15px;
}

.dcs-amount-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* border-radius: 10px; */
    width: 20%;
    /* margin-bottom: 10px; */
    background-color: #f5f5f5;
    padding: 0px 0px !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    margin-left: 15px;
}

.dcs-amount-input.error {
    background-color: #ffe6e6;
}

.dcs-currency {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 22px;
    color: #353842;
    /* margin: 0 5px; */
    padding: 4px 15px;
    background-color: #e6a726;
    font-weight: bold;
}

.dcs-custom-amount {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 0px !important;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 18px !important;
    text-align: center;
    outline: none;
    color: #333;
    margin-bottom: initial;
}

.dcs-custom-amount::placeholder {
    color: #999;
}

.dcs-currency-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0 5px;
}

.dcs-chips {
    display: flex;
    /* justify-content: center; */
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.dcs-chip {
    background: #e6f0fa;
    border: none;
    color: initial;
    padding: 0px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
}

.dcs-chip.active,
.dcs-chip:hover {
    background: #006960;
    color: #fff;
}

.dcs-chip-custom {
    background: #006960;
    color: #fff;
}

.dcs-add-to-cart {
    background: #E6A726;
    color: #fff;
    border: none;
    padding: 8px 35px;
    /* border-radius: 10px; */
    cursor: pointer;
    /* width: 100%; */
    font-family: 'Josefin Sans', sans-serif;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-family: 'Montserrat';
}
.btn-div {
    margin-left: 15px;
    width: 33%;
}
.dcs-add-to-cart:hover {
    background: #333;
}

.dcs-checkout-slider {
    position: fixed;
    top: 0;
    right: -460px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    padding: 20px;
    transition: right 0.3s ease-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.dcs-checkout-slider.open {
    right: 0;
}

.dcs-checkout-slider h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
}

.dcs-close-slider {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.dcs-cart-container {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.dcs-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dcs-cart-header h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.dcs-close-cart {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.dcs-cart-section {
    margin-bottom: 20px;
}

.dcs-cart-section h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.dcs-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 10px;
}

.dcs-item-details {
    display: flex;
    flex-direction: column;
}

.dcs-item-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.dcs-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dcs-item-amount {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.dcs-remove-item {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
}

.dcs-cart-items-scrollable {
    flex: 1 1 auto;
    overflow-y: auto;
}

.dcs-cart-footer {
    width: 100%;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 15px 0;
    border-top: 1px solid #ddd;
    z-index: 10;
}

.dcs-cart-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dcs-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.dcs-subtotal span:first-child {
    font-weight: 700;
    text-transform: capitalize;
}

.dcs-subtotal span:nth-child(2) {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.dcs-subtotal span:last-child {
    font-size: 18px;
    font-weight: 700;
}

.dcs-checkout-button {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    width: 100%;
    max-width: 300px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin: 10px auto;
    display: block;
    text-align: center;
    transition: background 0.3s ease;
}

.dcs-checkout-button:hover {
    background: #333;
}

.dcs-secure-note {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.dcs-lock-icon {
    font-size: 12px;
}

.dcs-loading {
    text-align: center;
    color: #666;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 50px;
}

.dcs-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.dcs-empty-cart {
    font-family: 'Josefin Sans', sans-serif;
    text-align: center;
    color: #666;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInWithBounce {
    0% { right: -400px; }
    70% { right: 20px; }
    100% { right: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .dcs-container {
        padding: 10px;
    }

    .dcs-campaign-list {
        grid-template-columns: 1fr;
    }

    .dcs-cart-container {
        max-width: 100%;
        padding: 15px;
        margin: 10px auto;
    }

    .dcs-checkout-slider {
        width: 100%;
        padding: 15px;
    }

    .dcs-cart-items-scrollable {
        max-height: calc(100vh - 250px);
    }

    .dcs-checkout-button {
        max-width: 100%;
        padding: 12px 20px;
    }

    .dcs-subtotal {
        font-size: 14px;
    }

    .dcs-subtotal span:last-child {
        font-size: 16px;
    }
}


.dcs-error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease-out;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* .dcs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
} */

.dcs-campaign-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}
.right-side {
    width: 100%;
    margin-left: 45px;
}

@media (max-width: 1200px) {
    .dcs-campaign-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .dcs-campaign-card{
        display: block;
    }
    .left-side {
        width: 100%;
    }
    .right-side {
        margin-left: 0px;
    }
    .dsc-amount{
        display: block;
    }
    .dropdwn_div {
        width: 100%;
    }
    .dcs-amount-input {
        width: 100%;
    margin-top: 15px;
    margin-left: 0;
    }
    .dcs-add-to-cart {
        width: 100%;
    }
    .btn-div {
        margin-top: 15px;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .dcs-campaign-list {
        grid-template-columns: repeat(1, 1fr);
    }
    .dcs-campaign-card{
        display: block;
    }
    .left-side {
        width: 100%;
    }
    .right-side {
        margin-left: 0px;
    }
    .dsc-amount{
        display: block;
    }
    .dropdwn_div {
        width: 100%;
    }
    .dcs-amount-input {
        width: 100%;
    margin-top: 15px;
    margin-left: 0;
    }
    .dcs-add-to-cart {
        width: 100%;
    }
    .btn-div {
        margin-top: 15px;
        margin-left: 0;
        width: 100%;
    }
}
.dcs-item-meta {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    display: block;
}