.sgfb-inline-cta {
    --sgfb-button: #c98235;
    --sgfb-text: #fff;
    --sgfb-bg: #fff7ed;
    --sgfb-micro: #7c4a1e;
    --sgfb-border: #e3b06f;
    display: flex;
    margin: 1.5em 0;
    box-sizing: border-box;
}

.sgfb-align-left { justify-content: flex-start; }
.sgfb-align-center { justify-content: center; }
.sgfb-align-right { justify-content: flex-end; }

.sgfb-cta-inner {
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-sizing: border-box;
}

.sgfb-width-wide .sgfb-cta-inner { max-width: 680px; }
.sgfb-width-full .sgfb-cta-inner { max-width: none; }

.sgfb-cta-microcopy {
    color: var(--sgfb-micro);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 5px;
}

.sgfb-cta-description {
    color: #4b382c;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 auto 8px;
}

.sgfb-cta-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 22px;
    background: var(--sgfb-button);
    color: var(--sgfb-text) !important;
    border: 1px solid var(--sgfb-border);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(77, 50, 24, .18);
    box-sizing: border-box;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.sgfb-cta-link:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.sgfb-tracking-pixel {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sgfb-editor-preview .sgfb-cta-link {
    cursor: default;
    pointer-events: none;
}

.sgfb-shape-small .sgfb-cta-link { border-radius: 8px; }
.sgfb-shape-medium .sgfb-cta-link { border-radius: 14px; }
.sgfb-shape-pill .sgfb-cta-link,
.sgfb-shape-full .sgfb-cta-link { border-radius: 999px; }
.sgfb-shape-square .sgfb-cta-link { border-radius: 2px; }

.sgfb-style-amazon .sgfb-cta-link {
    background: linear-gradient(180deg, #ffd66b 0%, var(--sgfb-button) 100%);
    color: var(--sgfb-text) !important;
    border-color: var(--sgfb-border);
}

.sgfb-style-rakuten .sgfb-cta-link {
    background: linear-gradient(180deg, #d93648 0%, var(--sgfb-button) 100%);
    border-color: var(--sgfb-border);
}

.sgfb-style-simple .sgfb-cta-link {
    background: #fff;
    color: var(--sgfb-text) !important;
    border-color: var(--sgfb-border);
    box-shadow: none;
}

.sgfb-style-raised .sgfb-cta-link {
    box-shadow: 0 6px 0 rgba(0,0,0,.22), 0 12px 22px rgba(0,0,0,.16);
}

.sgfb-style-outline .sgfb-cta-link {
    background: transparent;
    color: var(--sgfb-text) !important;
    border-width: 2px;
    box-shadow: none;
}

.sgfb-style-gradient .sgfb-cta-link {
    background: linear-gradient(135deg, var(--sgfb-button), #9d4538);
}

.sgfb-motion-shine .sgfb-cta-link::after {
    content: "";
    position: absolute;
    top: -35%;
    left: -45%;
    width: 32%;
    height: 170%;
    background: rgba(255,255,255,.42);
    transform: rotate(25deg);
    animation: sgfb-shine 3.4s ease-in-out infinite;
}

.sgfb-motion-pulse .sgfb-cta-link { animation: sgfb-pulse 2.8s ease-in-out infinite; }
.sgfb-motion-shake .sgfb-cta-link { animation: sgfb-shake 3.8s ease-in-out infinite; }
.sgfb-motion-float .sgfb-cta-link { animation: sgfb-float 3.2s ease-in-out infinite; }
.sgfb-motion-hover .sgfb-cta-link:hover { transform: translateY(-3px) scale(1.01); }
.sgfb-motion-none .sgfb-cta-link { animation: none; }

@keyframes sgfb-shine {
    0%, 58% { left: -45%; opacity: 0; }
    68% { opacity: 1; }
    84%, 100% { left: 118%; opacity: 0; }
}

@keyframes sgfb-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.025); }
}

@keyframes sgfb-shake {
    0%, 86%, 100% { transform: translateX(0); }
    88% { transform: translateX(-2px); }
    90% { transform: translateX(2px); }
    92% { transform: translateX(-1px); }
    94% { transform: translateX(1px); }
}

@keyframes sgfb-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.sgfb-root .sgfb-inline-floating-slot {
    display: flex;
    justify-content: center;
    width: 100%;
    pointer-events: none;
}

.sgfb-root .sgfb-floating-inline-panel.sgfb-panel {
    display: flex;
    pointer-events: auto;
    width: min(520px, calc(100vw - 24px));
    max-width: min(520px, calc(100vw - 24px));
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.sgfb-root .sgfb-floating-inline-panel .sgfb-cta-inner {
    max-width: none;
    background: var(--sgfb-bg);
    border: 1px solid var(--sgfb-border);
    border-radius: 18px;
    padding: 9px 10px 10px;
    box-shadow: 0 16px 42px rgba(0,0,0,.22);
}

.sgfb-root .sgfb-floating-inline-panel .sgfb-cta-microcopy {
    font-size: 11px;
    margin-bottom: 3px;
}

.sgfb-root .sgfb-floating-inline-panel .sgfb-cta-description {
    display: none;
}

.sgfb-root .sgfb-floating-inline-panel .sgfb-cta-link {
    min-height: 42px;
    font-size: 14px;
}

.sgfb-cta-end-marker {
    display: block;
    height: 0;
    overflow: hidden;
}

.sgfb-editor-wrap {
    border: 1px dashed #d1b48e;
    padding: 14px;
    background: #fffaf3;
}

.sgfb-editor-toolbar {
    margin-bottom: 12px;
}

.sgfb-editor-toolbar .components-button {
    margin: 0 4px 6px 0;
}

.sgfb-editor-color {
    margin-bottom: 18px;
}

.sgfb-editor-label {
    margin: 0 0 8px;
    font-weight: 600;
}

.sgfb-editor-end {
    border: 1px dashed #c7b39c;
    background: #fff8f0;
    color: #5d4634;
    padding: 12px 14px;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 767px) {
    .sgfb-inline-cta { margin: 1.25em 0; }
    .sgfb-cta-link { min-height: 46px; font-size: 14px; }
    .sgfb-cta-microcopy { font-size: 12px; }
    .sgfb-root .sgfb-floating-inline-panel { width: calc(100vw - 18px); max-width: calc(100vw - 18px); }
}

@media (prefers-reduced-motion: reduce) {
    .sgfb-cta-link,
    .sgfb-cta-link::after {
        animation: none !important;
        transition: none !important;
    }
}
