/**
 * Donasiku Public Styles
 *
 * @package    Donasiku
 * @subpackage Donasiku/public/css
 */

.container-adc {
    margin-left: auto;
    margin-right: auto;
    width: var(--theme-container-width);
    max-width: var(--theme-normal-container-max-width);
}

/* ============================================
   SINGLE CAMPAIGN PAGE
   ============================================ */

.donasiku-single-campaign {
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    padding: 0px 0px 70px 0px;
}

/* Breadcrumb */
.donasiku-breadcrumb {
    display: flex;
    align-items: center;
    /*flex-wrap: wrap;*/
    gap: 8px;
    padding: 30px 0px 10px 0px;
    font-size: 14px;
    color: #666;
}

.donasiku-breadcrumb a {
    color: #666;
    text-decoration: none;
    display: flex;
}

.donasiku-breadcrumb a>svg {
    width: 18px;
    height: 18px;
}

.donasiku-breadcrumb a:hover {
    color: var(--theme-palette-color-1);
}

.donasiku-breadcrumb .current {
    color: #333;
    font-weight: 500;
}

.donasiku-breadcrumb .separator {
    color: #ccc;
}

/* Campaign Wrapper */
.donasiku-campaign-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    margin-top: 10px;
}

/* Left Column: Campaign Content */
.donasiku-campaign-content {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.donasiku-campaign-image {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    border-radius: 12px;
}

.donasiku-campaign-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Category Badge */
.donasiku-campaign-category {
    padding: 20px 0 10px;
}

.category-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--theme-palette-color-1) 10%, transparent);
    color: var(--theme-palette-color-1);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Title */
.donasiku-campaign-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 10px 0 15px;
    line-height: 1.3;
}

/* Organizer */
.donasiku-campaign-organizer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.organizer-name {
    color: var(--theme-palette-color-1);
    font-weight: 600;
    text-transform: capitalize;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--theme-palette-color-1);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
}

/* Tabs */
.donasiku-campaign-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eee;
    margin-top: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-button:hover {
    color: var(--theme-palette-color-1);
}

.tab-button.active {
    color: var(--theme-palette-color-1);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--theme-palette-color-1);
}

/* Tab Contents */
.donasiku-tab-contents {
    padding: 25px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.campaign-description {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.campaign-description p {
    margin-bottom: 15px;
}

.empty-state {
    color: #999;
    font-style: italic;
}

/* ============================================
   RIGHT SIDEBAR: DONATION CARD
   ============================================ */
.donasiku-campaign-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.logged-in .donasiku-campaign-sidebar {
    top: 155px;
}

.donasiku-donation-card {
    background: linear-gradient(125deg, var(--theme-palette-color-1), var(--theme-palette-color-2));
    border-radius: 12px;
    padding: 25px;
}

/* Donation Header */
.donation-header {
    margin-bottom: 20px;
    color: #fff;
}

.donation-label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.donation-amount {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
}

.donation-target {
    font-size: 13px;
}

/* Progress Bar */
.donation-progress {
    margin-bottom: 20px;
    color: #fff;
}

.progress-bar {
    height: 8px;
    background: #0000001a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 13px;
}

/* Donation Stats */
.donation-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: start;
    flex: 1;
    color: #fff;
    background: #ffffff21;
    border: 1px solid #ffffff57;
    padding: 10px;
    border-radius: 10px;
    position: relative;
}

.stat-item>svg {
    position: absolute;
    right: 10px;
    top: 10px;
}

.stat-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
}

/* Countdown */
.donation-countdown {
    text-align: center;
    padding: 10px;
    background: #fff8e1;
    border-radius: 8px;
    font-size: 13px;
    color: #f57c00;
    margin-bottom: 20px;
}

/* Donate Button */
.donasiku-donate-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #fff;
    color: var(--theme-palette-color-1);
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.donasiku-donate-btn:hover {
    transform: translateY(-2px);
}

.donasiku-donate-btn--ended {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #303030 !important;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.donasiku-donate-btn--ended:hover {
    transform: none;
}

/* Action Buttons */
.donation-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #ffffff21;
    backdrop-filter: blur(5px);
    border: 1px solid #ffffff57;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #ffffff40;
}

.action-icon {
    font-size: 16px;
}

/* ============================================
   DONORS CARD
   ============================================ */

.donasiku-donors-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.donasiku-donors-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px;
}

.donors-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.donor-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 15px;
    padding-top: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.donor-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.donor-avatar {
    width: 40px;
    height: 40px;
    background: var(--theme-palette-color-1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.donor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.donor-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.donor-date {
    font-size: 12px;
    color: #999;
}

.donor-message {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.donor-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-palette-color-1);
    white-space: nowrap;
}

/* Load More Button */
.donasiku-load-more-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: transparent;
    color: var(--theme-palette-color-1);
    border: 1.5px solid var(--theme-palette-color-1);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.donasiku-load-more-btn:hover {
    background: color-mix(in srgb, var(--theme-palette-color-1) 10%, transparent);
}

.donasiku-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Timeline */
.donasiku-timeline {
    position: relative;
    padding-left: 30px;
}

.donasiku-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #f7f7f7;
}

.donasiku-timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.donasiku-timeline-item:last-child {
    padding-bottom: 0;
}

.donasiku-timeline-dot {
    position: absolute;
    left: -29px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: #e67e22;
    border-radius: 50%;
    z-index: 1;
    border: 2px solid #fff;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, .05);
}

.donasiku-timeline-date {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.donasiku-timeline-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.donasiku-timeline-body {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.donasiku-timeline-body a {
    color: var(--theme-palette-color-1, #2196f3);
    text-decoration: none;
    font-weight: 600;
}

.donasiku-timeline-body a:hover {
    text-decoration: underline;
}

.see-all-donors {
    display: block;
    text-align: center;
    padding-top: 15px;
    color: var(--theme-palette-color-1);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.see-all-donors:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 900px) {
    .donasiku-campaign-wrapper {
        grid-template-columns: 1fr;
    }

    .donasiku-campaign-sidebar {
        position: static;
    }

    .donasiku-campaign-title {
        font-size: 22px;
    }

    .donation-amount {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
    /*.donasiku-campaign-tabs {
        overflow-x: auto;
    }*/

    .donasiku-tab-contents {
        padding: 20px 0px 10px 0px;
    }

    .tab-button {
        padding: 12px 15px;
        font-size: 14px;
        white-space: nowrap;
    }

    .donation-stats {
        flex-direction: row;
    }

    .donasiku-breadcrumb {
        /*justify-content: center;*/
    }

    .campaign-details h3 {
        font-size: 15px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* Jumlah baris yang diinginkan */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        /* Menambahkan ... di akhir */
    }
}

@media (max-width: 1024px) {
    .donasiku-breadcrumb a:nth-child(5),
    .donasiku-breadcrumb span:last-child {
        white-space: nowrap;
        width: fit-content;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .donasiku-breadcrumb a:nth-child(3) {
        white-space: nowrap;
    }
}

/* ============================================
   SHARE MODAL
   ============================================ */

.donasiku-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.donasiku-modal.active {
    display: flex;
}

.donasiku-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.donasiku-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.donasiku-modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 25px;
}

/* Modal Campaign Info */
.modal-campaign-info {
    margin-bottom: 20px;
}

.modal-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

/* Copy Link */
.modal-copy-link {
    margin-bottom: 25px;
}

.copy-link-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.copy-link-wrapper input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #f9f9f9;
}

.copy-link-wrapper input:focus {
    outline: none;
    border-color: #2e7d32;
}

.copy-link-wrapper>input {
    border-radius: 8px !important;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.copy-btn:hover {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #2e7d32;
}

/* Social Buttons */
.modal-social {
    margin-bottom: 25px;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: #f5f5f5;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 70px;
}

.social-btn span {
    font-size: 11px;
    color: #666;
}

.social-btn svg {
    width: 28px;
    height: 28px;
}

/* Facebook */
.social-btn.facebook svg {
    color: #1877f2;
}

.social-btn.facebook:hover {
    background: #e7f3ff;
}

/* Twitter/X */
.social-btn.twitter svg {
    color: #000;
}

.social-btn.twitter:hover {
    background: #f0f0f0;
}

/* WhatsApp */
.social-btn.whatsapp svg {
    color: #25d366;
}

.social-btn.whatsapp:hover {
    background: #e7ffe7;
}

/* LinkedIn */
.social-btn.linkedin svg {
    color: #0077b5;
}

.social-btn.linkedin:hover {
    background: #e7f3ff;
}

/* Email */
.social-btn.email svg {
    color: #ea4335;
}

.social-btn.email:hover {
    background: #ffebe9;
}

/* Close Button */
.modal-close-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: #e0e0e0;
}

/* Modal Responsive */
@media (max-width: 500px) {
    .donasiku-modal-content {
        padding: 20px;
        margin: 10px;
    }

    .social-buttons {
        gap: 10px;
    }

    .social-btn {
        min-width: 60px;
        padding: 10px;
    }

    .social-btn svg {
        width: 24px;
        height: 24px;
    }

    .social-btn span {
        font-size: 10px;
    }
}

/* ============================================
   PAYMENT PAGE - NEW DESIGN
   ============================================ */

.donasiku-payment-page {
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    padding: 0px 0px 60px 0px;
}

.donasiku-payment-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Payment Wrapper - Two Column */
.payment-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    align-items: start;
}

/* Payment Form Section */
.payment-form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Payment Card (each section) */
.payment-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #ebebeb;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.section-title .required {
    color: #e53935;
}

/* Campaign Info Row */
.campaign-info-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.campaign-thumb-small {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.campaign-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0px;
    line-height: 1.4;
}

.organizer-text {
    font-size: 13px;
    color: #666;
    text-transform: capitalize;
}

/* Nominal Section */
.nominal-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 15px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.nominal-input-wrapper:focus-within {
    border-color: var(--theme-palette-color-1);
}

.currency-prefix {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

.nominal-input {
    flex: 1;
    border: none !important;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    background: transparent;
    outline: none;
}

.minimal-text {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

/* Amount Options */
.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-btn:hover {
    border-color: var(--theme-palette-color-1);
    background: color-mix(in srgb, var(--theme-palette-color-1) 5%, transparent);
    color: var(--theme-palette-color-1);
}

.amount-btn.active {
    border-color: var(--theme-palette-color-1);
    background: color-mix(in srgb, var(--theme-palette-color-1) 8%, transparent);
    color: var(--theme-palette-color-1);
    font-weight: 600;
}

/* Disclaimer Check */
.disclaimer-check,
.anonymous-check {
    margin-top: 15px;
}

.disclaimer-check label,
.anonymous-check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.disclaimer-check input[type="checkbox"],
.anonymous-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.disclaimer-check input[type="checkbox"]:checked,
.anonymous-check input[type="checkbox"]:checked {
    background: var(--theme-palette-color-1);
    border-color: var(--theme-palette-color-1);
}

.disclaimer-check input[type="checkbox"]:checked::after,
.anonymous-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Form Groups */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #e53935;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #ebebeb;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #2e7d32;
}

.form-group input::placeholder {
    color: #aaa;
}

/* Textarea */
.payment-card textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #ebebeb;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    min-height: 130px;
}

.payment-card textarea:focus {
    outline: none;
    border-color: var(--theme-palette-color-1);
}

.payment-card textarea::placeholder {
    color: #aaa;
}

.dnk-loggedin-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 13px;
    color: var(--theme-palette-color-1);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-item:hover {
    border-color: color-mix(in srgb, var(--theme-palette-color-1) 20%, transparent);
    background: color-mix(in srgb, var(--theme-palette-color-1) 2%, transparent);
}

.payment-method-item.active {
    border-color: var(--theme-palette-color-1);
    background: color-mix(in srgb, var(--theme-palette-color-1) 2%, transparent);
}

.method-icon {
    width: auto;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.method-info {
    flex: 1;
}

.method-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gateway-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--theme-palette-color-1);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    border-radius: 4px;
}

.method-description {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

.hidden-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.no-payment-methods {
    padding: 20px;
    background: #fff8e1;
    border-radius: 8px;
    text-align: center;
}

.no-payment-methods p {
    color: #f57c00;
    margin: 0;
    font-size: 14px;
}

/* ============================================
   PAYMENT SIDEBAR
   ============================================ */

.payment-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 125px;
}

.logged-in .payment-sidebar {
    top: 160px;
}

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #ebebeb;
}

/* Summary Card */
.summary-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.summary-row span:first-child {
    color: #666;
}

.summary-value {
    font-weight: 600;
    color: #1a1a1a;
}

.free-text {
    color: var(--theme-palette-color-1) !important;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.summary-total span:first-child {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.total-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--theme-palette-color-1);
}

.btn-submit-payment {
    display: block;
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background: var(--theme-palette-color-1);
    color: #fff;
    border: none;
    border-radius: 8px !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit-payment:hover {
    background: var(--theme-palette-color-2);
    transform: translateY(-1px);
}

/* Security Card */
.security-card {
    background: color-mix(in srgb, var(--theme-palette-color-1) 5%, transparent);
    border: 1px solid var(--theme-palette-color-1);
}

.security-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--theme-palette-color-1);
    margin: 0 0 15px;
}

.security-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--theme-palette-color-1);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
}

.security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--theme-palette-color-1);
}

.security-list li::before {
    content: '✓';
    position: absolute;
    left: 8px;
    color: var(--theme-palette-color-1);
}

.security-list li:last-child {
    margin-bottom: 0;
}

/* Help Card */
.help-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.help-card h4>svg {
    color: #c4c4c4;
}

.help-card>p {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px;
    line-height: 1.5;
}

.help-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-item {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.help-item .label {
    color: #666;
}

.help-link {
    color: var(--theme-palette-color-1);
    font-weight: 500;
    text-decoration: none;
}

.help-link:hover {
    text-decoration: underline;
}

/* Payment Error Page */
.payment-error {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    margin: 50px auto;
}

.payment-error h1 {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px;
}

.payment-error p {
    color: #666;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    padding: 12px 25px;
    background: #2e7d32;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

.btn-back:hover {
    background: #1b5e20;
    color: #fff;
}

/* Payment Status Pages */
.payment-status-page {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    margin: 60px auto 0px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.status-icon.success-icon {
    color: var(--theme-palette-color-1);
}

.status-icon.pending-icon {
    color: #f59e0b;
}

.status-icon.failed-icon {
    color: #ef4444;
}

.payment-status-page h1 {
    font-size: 25px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0px;
}

.status-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.donation-summary-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.donation-summary-box .summary-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.donation-summary-box .summary-row:last-child {
    border-bottom: none;
}

.donation-summary-box .summary-row span {
    color: #666;
    font-size: 14px;
}

.donation-summary-box .summary-row strong {
    color: #1a1a1a;
    font-size: 14px;
}

/* Donation code special styling */
.donation-summary-box .donation-code-row {
    margin: -10px -10px 10px -10px;
    padding: 15px !important;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid var(--theme-palette-color-1, #2e7d32) !important;
}

.donation-summary-box .donation-code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 16px !important;
    letter-spacing: 1px;
    color: var(--theme-palette-color-1, #2e7d32);
}

.status-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-actions .btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: var(--theme-palette-color-1);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.status-actions .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.status-actions .btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: var(--theme-palette-color-1);
    text-decoration: none;
    border: 1px solid var(--theme-palette-color-1);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.status-actions .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-submit-payment:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   PAYMENT PAGE RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .payment-wrapper {
        grid-template-columns: 1fr;
    }

    .payment-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .payment-card {
        padding: 20px;
    }

    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-card {
        padding: 20px;
    }

    .payment-status-page {
        margin: 40px auto 0px auto;
        padding: 20px 15px;
    }

    .payment-status-page h1 {
        font-size: 22px;
    }

    .payment-status-page .status-message {
        font-size: 14px;
    }
}

/* ============================================
   ARCHIVE CAMPAIGN PAGE
   ============================================ */

.donasiku-archive-campaign {
    padding: 60px 0 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Archive Header */
.donasiku-archive-header {
    text-align: center;
    margin-bottom: 30px;
}

.donasiku-archive-header .archive-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.donasiku-archive-header .archive-description {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Filters Section - Left Right Layout */
.donasiku-archive-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Category Dropdown (Left) */
.filter-category-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-category-wrapper label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    margin-bottom: 0px;
}

.category-dropdown {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6z'/%3E%3C/svg%3E") no-repeat right 15px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    min-width: 180px;
    transition: border-color 0.2s;
}

.category-dropdown:focus {
    outline: none;
    border-color: var(--theme-palette-color-1);
}

.category-dropdown:hover {
    border-color: #bbb;
}

/* Search Form (Right) */
.donasiku-search-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 450px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper svg {
    position: absolute;
    left: 15px;
    color: #999;
}

.search-input-wrapper input {
    width: 100% !important;
    padding: 12px 14px 12px 45px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--theme-palette-color-1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-palette-color-1) 15%, transparent);
}

.search-submit-btn {
    padding: 12px 20px;
    background: var(--theme-palette-color-1);
    color: #fff;
    border: none;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s !important;
    white-space: nowrap;
}

.search-submit-btn:hover {
    background: var(--theme-palette-color-2);
    transform: translateY(-1px);
}

/* Campaign Grid */
.donasiku-campaign-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Campaign Card */
.donasiku-campaign-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);*/
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #ebebeb;
}

.donasiku-campaign-card:hover {
    transform: translateY(-5px);
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);*/
}

.campaign-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.campaign-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.campaign-card-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s;
}

.donasiku-campaign-card:hover .campaign-card-image img {
    transform: scale(1.05);
}

.campaign-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #bbb;
}

/* Status Badge */
.campaign-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.campaign-status-badge.ended {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* Card Content */
.campaign-card-content {
    padding: 18px;
}

/* Card Title */
.campaign-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Organizer */
.campaign-card-organizer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.campaign-card-organizer .organizer-name {
    font-size: 13px;
    color: var(--theme-palette-color-1);
    font-weight: 500;
}

.campaign-card-organizer .verified-badge {
    width: 16px;
    height: 16px;
    font-size: 9px;
}

/* Card Amount */
.campaign-card-amount {
    margin-bottom: 10px;
}

.campaign-card-amount .amount-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.campaign-card-amount .amount-label {
    font-size: 13px;
    color: #999;
    margin-left: 5px;
}

/* Card Progress */
.campaign-card-progress {
    margin-bottom: 15px;
}

.campaign-card-progress .progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.campaign-card-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-palette-color-1), var(--theme-palette-color-2));
    border-radius: 3px;
}

/* Card Footer */
.campaign-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.campaign-card-donors {
    display: flex;
}

.donor-badge-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid #fff;
    margin-left: -8px;
}

.donor-badge-mini:first-child {
    margin-left: 0;
}

.donor-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: #333;
    color: #fff;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid #fff;
    margin-left: -8px;
}

.campaign-status-text {
    font-size: 12px;
    color: #999;
}

.campaign-status-text.ended {
    color: #f44336;
}

/* Campaign Duration */
.campaign-card-duration {
    display: flex;
    align-items: center;
}

.campaign-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.campaign-duration-badge svg {
    color: #999;
}

.campaign-duration-badge.unlimited svg {
    color: var(--theme-palette-color-1);
}

/* No Campaigns Found */
.donasiku-no-campaigns {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.donasiku-no-campaigns svg {
    color: #ccc;
    margin-bottom: 20px;
}

.donasiku-no-campaigns h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 10px;
}

.donasiku-no-campaigns p {
    font-size: 15px;
    color: #666;
    margin: 0 0 20px;
}

.reset-filter-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--theme-palette-color-1);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.reset-filter-btn:hover {
    background: var(--theme-palette-color-2);
    color: #fff;
}

/* Archive Pagination */
.donasiku-archive-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.donasiku-archive-pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.donasiku-archive-pagination li a,
.donasiku-archive-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.donasiku-archive-pagination li a:hover {
    background: var(--theme-palette-color-1);
    border-color: var(--theme-palette-color-1);
    color: #fff;
}

.donasiku-archive-pagination li span.current {
    background: var(--theme-palette-color-1);
    border-color: var(--theme-palette-color-1);
    color: #fff;
}

/* Archive Responsive */
@media (max-width: 992px) {
    .donasiku-campaign-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .donasiku-archive-header .archive-title {
        font-size: 24px;
    }

    .donasiku-archive-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-category-wrapper {
        width: 100%;
    }

    .category-dropdown {
        flex: 1;
        width: 100%;
    }

    .donasiku-search-form {
        max-width: 100%;
    }

    .donasiku-campaign-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .donasiku-archive-campaign {
        padding: 40px 0 40px;
    }
}

/* ============================================
   CAMPAIGN SEARCH SHORTCODE
   ============================================ */

.dnk-campaign-search {
    margin: 0 auto;
}

.dnk-campaign-search-form {
    width: 100%;
}

.dnk-campaign-search-inner {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 0px 6px 0px 24px;
    transition: box-shadow 0.3s, background 0.3s;
    border: 1.5px solid transparent;
}

.dnk-campaign-search-inner:focus-within {
    background: #fff;
    border-color: var(--theme-palette-color-1);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-palette-color-1) 12%, transparent);
}

.dnk-campaign-search-inner input {
    /*flex: 1;*/
    border: none !important;
    background: transparent !important;
    font-size: 15px !important;
    color: #333 !important;
    padding: 0px 0 !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: inherit;
    min-width: 0;
}

.dnk-campaign-search-inner input::placeholder {
    color: #aaa;
}

.dnk-campaign-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: unset !important;
    color: #d0d0d0 !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.dnk-campaign-search-btn svg {
    width: 24px !important;
    height: 24px !important;
    overflow: inherit;
}

.dnk-campaign-search-btn:hover {
    color: var(--theme-palette-color-1);
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .dnk-campaign-search-inner {
        padding: 4px 4px 4px 18px;
    }

    .dnk-campaign-search-inner input {
        font-size: 14px !important;
    }

    .dnk-campaign-search-btn {
        width: 38px;
        height: 38px;
    }
}

/* ============================================
   ZAKAT CALCULATOR
   ============================================ */

.donasiku-zakat-calc {
    margin-top: 5px;
}

.zakat-calc-row {
    margin-bottom: 14px;
}

.zakat-calc-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
}

.zakat-calc-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.zakat-calc-input-wrap:focus-within {
    border-color: var(--theme-palette-color-1, #2e7d32);
}

.zakat-calc-input-wrap .currency-prefix {
    padding: 12px 0 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    user-select: none;
}

.zakat-calc-input {
    flex: 1;
    border: none !important;
    padding: 12px 14px 12px 8px !important;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    background: transparent;
    outline: none !important;
}

.zakat-calc-input::placeholder {
    font-weight: 400;
    color: #bbb;
    font-size: 14px;
}

.zakat-calc-result {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
}

.zakat-calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.zakat-calc-result-row>span {
    color: #666;
}

.zakat-result-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-palette-color-1, #2e7d32);
}

/* ============================================
   PACKAGED PAYMENT FORM — CARD GRID
   ============================================ */

.donasiku-packaged-form {
    margin-top: 5px;
}

.pkg-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

/* Package Card */
.pkg-card {
    position: relative;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.pkg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pkg-card.selected {
    border-color: var(--theme-palette-color-1, #2e7d32);
}

/* Card Image */
.pkg-card-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f5f5f5;
}

.pkg-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pkg-card:hover .pkg-card-img img {
    transform: scale(1.05);
}

.pkg-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #eee);
    color: #ccc;
}

/* Card Body */
.pkg-card-body {
    padding: 10px 12px 12px;
}

.pkg-card-name {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pkg-card-desc {
    margin: 0 0 4px;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pkg-card-price {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--theme-palette-color-1, #2e7d32);
}

/* Checkmark */
.pkg-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    color: var(--theme-palette-color-1, #2e7d32);
}

.pkg-card.selected .pkg-card-check {
    opacity: 1;
    transform: scale(1);
}

/* Qty Section */
.pkg-qty-section {
    margin-bottom: 16px;
}

.pkg-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pkg-qty-row label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 0;
}

.pkg-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.pkg-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    user-select: none;
    -webkit-user-select: none;
}

.pkg-qty-btn:hover {
    background: #eee;
}

.pkg-qty-btn:active {
    background: #ddd;
}

.pkg-qty-input {
    width: 48px;
    height: 40px;
    border: none;
    border-left: 1.5px solid #e0e0e0;
    border-right: 1.5px solid #e0e0e0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
    -moz-appearance: textfield;
    outline: none;
}

.pkg-qty-input::-webkit-outer-spin-button,
.pkg-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Summary */
.pkg-summary {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.pkg-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.pkg-summary-row>span {
    color: #666;
}

.pkg-summary-total {
    color: var(--theme-palette-color-1, #2e7d32) !important;
    font-size: 18px !important;
}

/* Responsive */
@media (max-width: 600px) {
    .pkg-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pkg-card {
        display: flex;
        flex-direction: row;
    }

    .pkg-card-img {
        width: 100px;
        height: auto;
        min-height: 80px;
        flex-shrink: 0;
    }

    .pkg-card-body {
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .pkg-card-name {
        font-size: 14px;
    }

    .pkg-card-price {
        font-size: 13px;
    }

    .pkg-card-check {
        top: auto;
        bottom: 8px;
        right: 8px;
    }

    .pkg-card-img img {
        aspect-ratio: 1/1;
    }
}