.pcm-dc-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
    flex-basis: 100%;
    width: 100%;
    padding: 1rem 0;
}

.pcm-dc-page,
.pcm-dc-lazy-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--gcid-primary-color, #000);
    border-radius: 12px;
    background: #fff;
    color: var(--gcid-primary-color, #000);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: normal;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.pcm-dc-lazy-button {
    padding-inline: 22px;
}

/* Keep the hover text above Divi Theme Builder link colors. */
#et-boc .pcm-dc-pagination a.pcm-dc-page:hover,
#et-boc .pcm-dc-lazy-control .pcm-dc-lazy-button:hover,
a.pcm-dc-page:hover,
.pcm-dc-lazy-button:hover {
    border-color: var(--gcid-primary-color, #000);
    background: var(--gcid-primary-color, #000);
    color: #fff;
}

.pcm-dc-page[aria-current="page"] {
    border-color: var(--gcid-primary-color, #000);
    background: var(--gcid-primary-color, #000);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 5px 12px color-mix(in srgb, var(--gcid-primary-color, #000) 14%, transparent);
}

.pcm-dc-page-gap {
    padding-inline: 4px;
    color: #000;
    font-size: 14px;
}

.pcm-dc-page-summary {
    flex-basis: 100%;
    margin-top: 6px;
    color: #000;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
}

.pcm-dc-lazy-control {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
    flex-basis: 100%;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}

.pcm-dc-lazy-control:not(:has(.pcm-dc-lazy-button, .pcm-dc-lazy-navigation:not([hidden]))) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

.pcm-dc-lazy-navigation {
    display: contents;
    flex-basis: auto;
    width: auto;
    padding: 0;
}

.pcm-dc-lazy-navigation .pcm-dc-page-previous {
    order: -1;
}

.pcm-dc-lazy-navigation .pcm-dc-page-next {
    order: 1;
}

.pcm-dc-lazy-navigation .pcm-dc-page[aria-disabled="true"] {
    display: none;
}

.pcm-dc-lazy-button[aria-disabled="true"] {
    opacity: .65;
    cursor: wait;
}

.pcm-dc-page:focus-visible,
.pcm-dc-lazy-button:focus-visible {
    outline: 2px solid var(--gcid-primary-color, #000);
    outline-offset: 4px;
}

.pcm-dc-lazy-button[hidden],
.pcm-dc-lazy-navigation[hidden],
.pcm-dc-lazy-preloader[hidden] {
    display: none !important;
}

.pcm-dc-lazy-preloader {
    display: inline-block;
    box-sizing: border-box;
    width: 1.75rem;
    height: 1.75rem;
    border: 3px solid var(--gcid-primary-color, #000);
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: middle;
    animation: pcm-dc-lazy-spin .8s linear infinite;
}

@keyframes pcm-dc-lazy-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .pcm-dc-lazy-preloader { animation: none; }
    .pcm-dc-page,
    .pcm-dc-lazy-button { transition: none; }
}

.pcm-dc-lazy-status {
    display: block;
    order: 2;
    flex-basis: 100%;
    font-size: .875rem;
}

.pcm-dc-lazy-control:not(.pcm-dc-lazy-error) .pcm-dc-lazy-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
