.wcgr-opportunities-v1310 {
    margin: 2em 0;
    padding: 1.25em;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
}

.wcgr-opportunity {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-top: .75em;
    padding: 1em 1.2em;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    background: #f8f9fa;
}

.wcgr-opportunity-icon {
    flex: 0 0 2em;
    color: #e9605a;
    font-size: 1.8rem;
    text-align: center;
}

.wcgr-opportunity-icon svg {
    display: block;
    width: 1.2em;
    height: 1.2em;
    margin: 0 auto;
}

.wcgr-opportunity-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .2em;
}

.wcgr-opportunity-copy strong {
    color: #34465c;
}

.wcgr-opportunity-copy > span {
    color: #65758a;
}

.wcgr-remaining-amount,
.wcgr-remaining-amount * {
    color: #e9605a !important;
}

.wcgr-opportunity .button {
    flex: 0 0 auto;
    margin: 0;
}

.wcgr-opportunity-locked {
    opacity: .82;
}

.wcgr-progress {
    flex: 1 1 28%;
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: #d8dadd;
}

.wcgr-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #e9605a;
}

.wcgr-lock {
    flex: 0 0 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e9605a;
    font-size: 1.6rem;
    text-align: center;
}

.wcgr-lock svg {
    display: block;
    width: 1.45em;
    height: 1.45em;
}

.wcgr-shipping-opportunity {
    margin: 1.25em 0;
}

.wcgr-shipping-icon svg {
    display: block;
    width: 1.45em;
    height: 1.45em;
    margin: 0 auto;
}

.wcgr-shipping-check {
    display: flex;
    flex: 0 0 2em;
    align-items: center;
    justify-content: center;
    color: #e9605a;
    font-size: 1.6rem;
    font-weight: 700;
}

.wcgr-gift-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: .65em;
}

.wcgr-gift-list {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #e1e4e8;
}

.wcgr-gift-list[hidden] {
    display: none !important;
}

.wcgr-gift-card {
    display: grid;
    width: 100%;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: .75em;
    padding: .55em .7em;
    border: 1px solid #e1e4e8;
    border-radius: 7px;
    appearance: none;
    background: #fff;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.wcgr-gift-form > .wcgr-gift-card,
.wcgr-gift-form > .wcgr-gift-card:hover,
.wcgr-gift-form > .wcgr-gift-card:focus,
.wcgr-gift-form > .wcgr-gift-card:active {
    background-color: #fff !important;
    color: #34465c !important;
    text-transform: none !important;
}

.wcgr-gift-form > .wcgr-gift-card:hover {
    border-color: #e9605a;
}

.wcgr-gift-form > .wcgr-gift-card:focus-visible {
    outline: 2px solid #e9605a;
    outline-offset: 2px;
}

.wcgr-gift-card.is-selected {
    border-color: #e9605a;
    background-color: #fff4f3 !important;
}

.wcgr-gift-form.is-loading .wcgr-gift-card {
    position: relative;
    cursor: wait;
    opacity: .72;
}

.wcgr-gift-form.is-loading .wcgr-gift-card::after {
    position: absolute;
    top: calc(50% - .55em);
    right: .75em;
    width: 1.1em;
    height: 1.1em;
    border: 2px solid #e9605a;
    border-right-color: transparent;
    border-radius: 50%;
    animation: wcgr-spin .7s linear infinite;
    content: "";
}

.wcgr-remove-gift-form.is-loading .wcgr-remove-gift {
    cursor: wait;
    opacity: .7;
}

.wcgr-ajax-message:not([hidden]) {
    margin-bottom: .75em;
    color: #b42318;
}

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

.wcgr-gift-card * {
    text-transform: none !important;
}

.wcgr-gift-image img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.wcgr-gift-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .3em;
}

.wcgr-gift-info strong {
    color: #34465c;
}

.wcgr-gift-info span {
    color: #e9605a;
    font-weight: 700;
}

.wcgr-gift-status {
    white-space: nowrap;
}

.wcgr-gift-form,
.wcgr-remove-gift-form {
    margin: 0;
    display: flex;
    justify-content: flex-end;
    margin-top: .65em;
}

.wcgr-remove-gift {
    margin: 0;
    padding: .25em .1em;
    border: 0 !important;
    appearance: none;
    background: transparent !important;
    color: #65758a !important;
    cursor: pointer;
    font: inherit;
    font-size: .85em;
    text-decoration: underline;
    text-underline-offset: .15em;
}

.wcgr-remove-gift:hover,
.wcgr-remove-gift:focus {
    background: transparent !important;
    color: #e9605a !important;
}

.wcgr-gift-selected {
    color: #e9605a;
    font-size: .85em;
    font-weight: 700;
}

@media (max-width: 680px) {
    .wcgr-opportunities-v1310 {
        margin: 1em 0;
        padding: .65em;
    }

    .wcgr-opportunity {
        display: grid;
        grid-template-columns: 2rem minmax(0, 1fr) auto;
        align-items: center;
        column-gap: .65em;
        row-gap: .65em;
        margin-top: .55em;
        padding: .8em;
    }

    .wcgr-opportunity .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .wcgr-opportunity-icon {
        grid-column: 1;
        grid-row: 1;
        width: 2rem;
        font-size: 1.35rem;
    }

    .wcgr-opportunity-icon svg {
        width: 1.25em;
        height: 1.25em;
    }

    .wcgr-opportunity-copy {
        grid-column: 2 / -1;
        grid-row: 1;
        min-width: 0;
        gap: .15em;
    }

    .wcgr-opportunity-copy strong {
        font-size: 1rem;
        line-height: 1.3;
    }

    .wcgr-opportunity-copy > span {
        font-size: .95rem;
        line-height: 1.4;
    }

    .wcgr-progress {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        min-width: 0;
    }

    .wcgr-lock,
    .wcgr-shipping-check {
        grid-column: 3;
        grid-row: 2;
        width: 1.5rem;
        font-size: 1.25rem;
    }

    .wcgr-shipping-opportunity {
        grid-template-columns: minmax(0, 1fr) auto;
        margin: .6em 0;
        padding: .7em .8em;
    }

    .wcgr-shipping-opportunity .wcgr-shipping-icon {
        display: none;
    }

    .wcgr-shipping-opportunity .wcgr-opportunity-copy {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .wcgr-shipping-opportunity .wcgr-opportunity-copy strong {
        font-size: .98rem;
    }

    .wcgr-shipping-opportunity .wcgr-opportunity-copy > span {
        font-size: .92rem;
    }

    .wcgr-shipping-opportunity .wcgr-progress {
        grid-column: 1;
        grid-row: 2;
    }

    .wcgr-shipping-check:empty {
        display: none;
    }

    .wcgr-shipping-opportunity .wcgr-shipping-check:not(:empty) {
        grid-column: 2;
        grid-row: 2;
    }

    .wcgr-gift-card { grid-template-columns: 48px minmax(0, 1fr) auto; }

    .wcgr-gift-list-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wcgr-gift-card {
        gap: .55em;
        padding: .55em;
    }
}
