/* Rey theme — badge sits inside .rey-thPos containers */
.rey-productThumbnail .rey-thPos:has(.ds-cpfs-shop-badge) {
    overflow: visible !important;
}

.rey-productThumbnail .rey-thPos .ds-cpfs-shop-badge--rey {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    line-height: 0;
    width: auto;
    height: auto;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible !important;
}

.rey-productThumbnail .rey-thPos .ds-cpfs-shop-badge--rey.ds-cpfs-shop-badge--has-bg {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
}

.rey-productThumbnail .rey-thPos .ds-cpfs-shop-badge-icon {
    position: relative;
    z-index: 1;
    width: var(--ds-cpfs-shop-icon-size, 36px);
    height: var(--ds-cpfs-shop-icon-size, 36px);
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
}

/* Fallback themes — absolute badge on image wrapper */
.ds-cpfs-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
    overflow: visible;
}

.ds-cpfs-image-wrap > img {
    width: 100%;
    height: auto;
    display: block;
}

.ds-cpfs-shop-badge--fallback {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    padding: 0;
    line-height: 0;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}

.ds-cpfs-shop-badge--fallback.ds-cpfs-shop-badge--has-bg {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
}

.ds-cpfs-shop-badge--fallback.ds-cpfs-shop-badge--top-left {
    top: 8px;
    left: 8px;
    right: auto;
    bottom: auto;
}

.ds-cpfs-shop-badge--fallback.ds-cpfs-shop-badge--top-right {
    top: 8px;
    right: 8px;
    left: auto;
    bottom: auto;
}

.ds-cpfs-shop-badge--fallback.ds-cpfs-shop-badge--bottom-left {
    bottom: 8px;
    left: 8px;
    right: auto;
    top: auto;
}

.ds-cpfs-shop-badge--fallback.ds-cpfs-shop-badge--bottom-right {
    bottom: 8px;
    right: 8px;
    left: auto;
    top: auto;
}

.ds-cpfs-shop-badge--fallback.ds-cpfs-shop-badge--bottom-center {
    bottom: 8px;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
}

.ds-cpfs-shop-badge--fallback .ds-cpfs-shop-badge-icon {
    position: relative;
    z-index: 1;
    width: var(--ds-cpfs-shop-icon-size, 36px);
    height: var(--ds-cpfs-shop-icon-size, 36px);
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
}

.ds-cpfs-shop-badge--has-bg {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
}

/* Glass background — behind icon, sized with padding without clipping icon */
.ds-cpfs-icon-glass {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
}

.ds-cpfs-icon-glass--shop {
    width: calc(var(--ds-cpfs-shop-icon-size, 36px) + (var(--ds-cpfs-icon-bg-padding, 4px) * 2));
    height: calc(var(--ds-cpfs-shop-icon-size, 36px) + (var(--ds-cpfs-icon-bg-padding, 4px) * 2));
}

.ds-cpfs-single-notice-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    margin-top: 0;
    overflow: visible;
}

.ds-cpfs-single-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 1rem;
    font-size: 14px;
    line-height: 1.6;
}

.ds-cpfs-single-notice-text {
    flex: 1;
    min-width: 0;
    line-height: 1.6;
}

.ds-cpfs-single-notice--box {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
    color: #065f46;
}

.ds-cpfs-single-notice--box .ds-cpfs-single-notice-text {
    color: inherit;
}

.ds-cpfs-single-notice--minimal {
    padding: 0;
    margin: 0 0 0.75rem;
    background: transparent;
    border: none;
    color: var(--ds-cpfs-single-text-color, #065f46);
}

.ds-cpfs-single-notice--minimal .ds-cpfs-single-notice-text {
    color: var(--ds-cpfs-single-text-color, #065f46);
    font-weight: 500;
}

.ds-cpfs-single-notice-icon {
    width: var(--ds-cpfs-single-icon-size, 24px);
    height: var(--ds-cpfs-single-icon-size, 24px);
    max-width: none;
    max-height: none;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
    margin: 0;
}
