.agp-frontend-container {
    margin: 20px 0;
}

.agp-frontend-message {
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.agp-frontend-success {
    background: #dcffde;
    color: #46b450;
    border: 1px solid #b1d9b5;
}

.agp-frontend-progress {
    background: #fff8e1;
    color: #b7791f;
    border: 1px solid #f0d78c;
}

.agp-frontend-suggested-title {
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

.agp-frontend-suggested-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.agp-frontend-suggested-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    width: 120px;
    text-align: center;
    background: #fff;
}

.agp-frontend-suggested-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.agp-frontend-suggested-name {
    display: block;
    font-size: 13px;
    margin-top: 5px;
    color: #333;
}

.agp-frontend-suggested-price {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-top: 3px;
}

.agp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
}

.agp-popup-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 100001;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 25px;
}

.agp-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.agp-popup-close:hover {
    color: #333;
}

.agp-popup-message {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
}

.agp-popup-success {
    background: #dcffde;
    color: #46b450;
    border: 1px solid #b1d9b5;
}

.agp-popup-progress {
    background: #fff8e1;
    color: #b7791f;
    border: 1px solid #f0d78c;
}

.agp-popup-suggested-title {
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

.agp-popup-suggested-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* Force a horizontal rail even if the theme sets generic flex/div rules. */
.agp-popup-suggested-wrapper .agp-popup-suggested-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: 6px 2px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.agp-popup-suggested-wrapper .agp-popup-suggested-list::-webkit-scrollbar {
    display: none;
}

.agp-popup-suggested-wrapper .agp-popup-suggested-arrow {
    display: none;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.agp-popup-suggested-wrapper .agp-popup-suggested-arrow.agp-visible {
    display: inline-flex;
}

.agp-popup-suggested-wrapper .agp-popup-suggested-arrow:hover {
    background: #111111;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.agp-popup-suggested-wrapper .agp-popup-suggested-arrow:active {
    transform: scale(0.96);
}

.agp-popup-suggested-wrapper .agp-popup-suggested-arrow::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-radius: 1px;
}

.agp-popup-suggested-wrapper .agp-popup-suggested-prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.agp-popup-suggested-wrapper .agp-popup-suggested-next::before {
    transform: rotate(45deg);
    margin-right: 3px;
}

.agp-popup-suggested-wrapper .agp-popup-suggested-item {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto;
    width: 124px;
    min-width: 124px;
    box-sizing: border-box;
    scroll-snap-align: start;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    background: #fff;
    justify-content: space-between;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.agp-popup-suggested-wrapper .agp-popup-suggested-item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.agp-popup-suggested-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.agp-popup-suggested-image {
    max-width: 64px;
    height: auto;
    margin: 0 auto 6px;
}

.agp-popup-suggested-name {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 4px;
    color: #333;
    min-height: 30px;
}

.agp-popup-suggested-price {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #111;
    margin-top: 3px;
}

.agp-popup-suggested-wrapper .agp-popup-add-to-cart {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 11px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 999px;
}


