.fct-product-card {
  position: relative;
}

.apof-test-mode-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 5px 8px;
  border-radius: 4px;
  background: #f59e0b;
  color: #111827;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}
/* Force-hide Unshipped pill when canceled */
.fct-order-status-badges.apof-hide-unshipped span.badge.info.ml-2 {
  display: none !important;
}

/* ------------------------------------------------------------
   APOF: Related Products card styling on /item/ pages
------------------------------------------------------------ */

.fct-product-list-item .fct-product-card {
  padding: 14px 14px 8px 14px;
}

.fct-product-list-item .fct-product-card-image-wrap {
  margin-bottom: 12px !important;
}

.fct-product-list-item .fct-product-card-title {
  font-size: 18px;
  line-height: 1.25;
  margin: 12px 0 8px 0;
}

.fct-product-list-item .fct-product-card-title a {
  display: block;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fct-product-list-item .fct-product-card-prices {
  margin: 14px 0 16px 0 !important;
}

/* =========================================================
   APOF Reviews v1.0
   Product Tile Rating Summary
========================================================= */

.apof-rating-summary {
    margin-top: 14px;
    margin-bottom: 18px;
    margin-left: 4px;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.apof-rating-stars {
    color: #f5b301;
    letter-spacing: 1px;
    font-size: 13px;
        display: inline-block;
    margin-left: 6px;
}

.apof-rating-score,
.apof-rating-count {
    color: #222;
    font-weight: 500;
}

.apof-star-rating {
    display: inline-flex;
    align-items: center;
}

.apof-star {
    border: 0;
    background: transparent;
    color: #c7c7c7;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.apof-star.active {
    color: #f5b301;
}

.apof-review-item-stars {
    color: #f5b301;
    font-size: 18px;
    line-height: 1;
    margin-bottom: 10px;
}

.apof-review-hidden {
    display: none;
}

.apof-reviews-list {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 28px;
    margin-top: 40px;
    background: #fff;
}

.apof-review-item {
    padding: 22px 0;
    border-bottom: 1px solid #ececec;
}

.apof-review-item:last-child {
    border-bottom: 0;
}

.apof-reviews-more-wrap {
    text-align: center;
    margin-top: 24px;
}

.apof-see-more-reviews {
    border: 1px solid #d0d0d0;
    background: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.apof-review-body-collapsed {
    max-height: 135px;
    overflow: hidden;
    position: relative;
}

.apof-review-read-more {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2271b1;
    cursor: pointer;
    font-weight: 600;
}

.apof-review-read-more:hover {
    text-decoration: underline;
}

.apof-review-form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.apof-review-form-col {
    width: calc(50% - 22px);
}

.apof-review-form-col label,
.apof-review-form-wrap label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.apof-review-form-col input,
.apof-review-form-wrap input[type="text"],
.apof-review-form-wrap input[type="email"],
.apof-review-form-wrap textarea {
    width: 100%;
}

@media (max-width: 767px) {
    .apof-review-form-row {
        flex-direction: column;
        gap: 14px;
    }
}

.apof-review-toggle,
.apof-review-form-wrap button[type="submit"] {
    border-radius: 8px !important;
}

.apof-review-toggle {
    margin-top: 28px;
    margin-bottom: 36px;

    border-radius: 8px !important;

    box-shadow:
        0 10px 24px rgba(0,0,0,0.08),
        0 2px 6px rgba(0,0,0,0.04);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.apof-review-toggle:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 32px rgba(0,0,0,0.10),
        0 4px 10px rgba(0,0,0,0.06);
}

.apof-review-form-wrap button[type="submit"] {
    border-radius: 8px !important;

    box-shadow:
        0 8px 18px rgba(0,0,0,0.08),
        0 2px 5px rgba(0,0,0,0.04);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.apof-reviews-summary-block {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 28px;
    padding: 18px 22px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #fff;

    box-shadow:
        0 8px 18px rgba(0,0,0,0.05),
        0 2px 5px rgba(0,0,0,0.03);
}

.apof-reviews-summary-stars {
    color: #f5b301;
    font-size: 28px;
    letter-spacing: 2px;
    line-height: 1;
}

.apof-reviews-summary-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.apof-reviews-summary-text strong {
    font-size: 18px;
    color: #111827;
}

.apof-reviews-summary-text span {
    color: #6b7280;
    font-size: 14px;
}

.apof-verified-purchase-badge {
    display: inline-flex;
    align-items: center;

    padding: 2px 8px;

    border-radius: 999px;

    background: rgba(34, 197, 94, 0.12);
    color: #15803d;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.apof-review-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.apof-review-meta-separator {
    color: #9ca3af;
}

.apof-shipping-incentives-table {
    margin-left: 0;
}

.apof-shipping-incentives-table th {
    padding-left: 0;
}

/* APOF Shipping Incentive Banner */
.apof-shipping-incentive-banner {
    list-style: none;
    margin: 10px 0 14px;
    padding: 0;
}

.apof-shipping-incentive-inner {
    background: #eef5ff;
    border: 1px solid #cfe0ff;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #1e4fa3;
    font-weight: 500;
}

.apof-shipping-incentive-inner strong {
    font-weight: 700;
}

/* Cart overlay specific spacing + sizing */
.apof-cart-shipping-incentive-banner {
    margin: 14px 20px 18px;
}

.apof-cart-shipping-incentive-banner .apof-shipping-incentive-inner {
    font-size: 12px;
    padding: 8px 10px;
}

.apof-customer-fulfillment-panel {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.apof-customer-fulfillment-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.apof-customer-fulfillment-headings,
.apof-customer-fulfillment-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1.5fr 1fr;
    column-gap: 16px;
}

.apof-customer-fulfillment-headings {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
}

.apof-customer-fulfillment-row {
    font-size: 14px;
    color: #111827;
}

.apof-customer-fulfillment-row a {
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 700px) {
    .apof-customer-fulfillment-headings {
        display: none;
    }

    .apof-customer-fulfillment-row {
        display: block;
    }

    .apof-customer-fulfillment-row > div {
        margin-bottom: 8px;
    }
}