.cart_item {
	position: relative;
}

.af-sub-product-items-div {
	list-style: none;
	padding: 0;
	margin: 0;
}

.af-sub-product-items-div li {
	width: 100%;
}

.list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: table;
	width: 100%;
}

.list li {
	display: table-cell;
	vertical-align: middle;
}

/* .af-cp-chain-product table td input[type=number] {
	width: 75px;
	background-color: #fff;
	border: 1px solid #00000024;
	box-shadow: none;
	height: 40px;

}

.af-cp-chain-product table td a {
	font-size: 14px;
	line-height: 24px;
	font-weight: 600;
	color: #000;
}

.af-cp-chain-product h4 {
	font-size: 20px;
	line-height: 30px;
	font-weight: 600;
} */

.af-cpfw-total-price label {
	font-weight: normal;
	color: #000;
	margin-right: 5px;
}

.af-cpfw-total-price {
	font-weight: normal;
	color: #000;
	margin-bottom: 14px;
	font-size: larger;
}


/* style of table */

/* Container */
.af-cp-chain-product-all-temp, .af-cp-compact-list {
    margin: 20px 0;
    overflow-x: auto;
}

/* Main table */
.af-cpfw-linked-product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* Table header */
.af-cpfw-linked-product-table th {
    text-align: left;
    padding: 12px 8px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
    color: #333;
}

/* Table cells */
.af-cpfw-linked-product-table td {
    padding: 16px 8px !important;
    border-bottom: 1px solid #eaeaea;
    vertical-align: middle;
}

/* Select column (checkbox) */
.af-cpfw-linked-product-table td:first-child,
.af-cpfw-linked-product-table th:first-child {
    text-align: center;
    width: 50px;
}

/* Checkbox styling */
.af-cpfw-linked-product-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

/* Disabled checkbox (fixed products) */
.af-cpfw-linked-product-table input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.af-cpfw-linked-product-table img {
    max-width: 50px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Product column */
.af-cpfw-linked-product-table a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.af-cpfw-linked-product-table a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Product attributes (select dropdowns) */
.af-cpfw-linked-product-table select {
    display: block;
    margin-top: 8px;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    max-width: 100%;
    cursor: pointer;
}

/* Quantity column */
.af-cpfw-linked-product-table td:nth-child(4) {
    text-align: center;
    font-weight: 500;
}

/* Price column */
.af-cpfw-linked-product-table td:nth-child(5) {
    font-weight: 500;
}

/* .af-cpfw-linked-product-table del {
    color: #999;
    margin-right: 6px;
    font-size: 0.85em;
} */

/* .af-cpfw-linked-product-table ins {
    text-decoration: none;
    background: none;
    font-weight: 600;
    color: #2c6e2c;
} */

/* Saving column */
.af-cpfw-linked-product-table td:nth-child(6) {
    color: #2c6e2c;
    font-weight: 500;
}

.af-cpfw-sum-of-all-prices {
    font-size: 20px;
    font-weight: 700;
}

/* Responsive: allow horizontal scroll on small screens */
@media screen and (max-width: 768px) {
    .af-cp-chain-product {
        overflow-x: auto;
    }
    .af-cpfw-linked-product-table {
        min-width: 600px;
    }
}

/* Optional: Zebra striping for better readability */
.af-cpfw-linked-product-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Style of grid/card template  */

/* Grid Container - 3 columns */
.af-cp-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

/* Card - smaller and compact */
.af-cp-grid-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.af-cp-grid-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Checkbox - top left */
.af-cp-card-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.af-cp-card-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #7f54b3;
}

/* Product Image - smaller */
.af-cp-card-image {
    margin: 8px 0 10px;
}

.af-cp-card-image img {
    max-width: 70px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Product Title - compact */
.af-cp-card-title {
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 6px;
    line-height: 1.3;
}

.af-cp-card-title a {
    color: #2c3e50;
    text-decoration: none;
}

/* Variation attributes - compact */
.af-cp-card-attributes {
    margin: 8px 0;
    font-size: 0.8em;
}

.af-cp-card-attributes select {
    width: 100%;
    padding: 4px;
    font-size: 0.8em;
    margin-top: 4px;
}

/* Quantity input - smaller */
.af-cp-card-quantity {
    margin: 10px 0;
}

.af-cp-card-quantity label {
    display: block;
    font-size: 0.75em;
    color: #555;
    margin-bottom: 3px;
}

.af-cp-card-quantity input {
    width: 60px;
    text-align: center;
    padding: 4px;
    font-size: 0.85em;
}

/* Price & Saving - compact */
.af-cp-card-price {
    margin-top: 8px;
    font-size: 0.95em;
}

.af-cp-card-price del {
    color: #999;
    margin-right: 5px;
    font-size: 0.85em;
}

.af-cp-card-price ins {
    text-decoration: none;
    font-weight: bold;
    color: #2c6e2c;
}

.saving {
    margin-top: 4px;
    font-size: 0.75em;
    color: #2c6e2c;
}

/* Responsive: on tablets, 2 cards per row */
@media (max-width: 768px) {
    .af-cp-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Responsive: on mobile, 1 card per row */
@media (max-width: 480px) {
    .af-cp-grid-container {
        grid-template-columns: 1fr;
    }
}

/* style for list  */

/* Compact List Container */
.af-cp-compact-list {
    margin: 20px 0;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
}

/* Each product row */
.af-cp-compact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
    font-size: 14px;
    /* flex-wrap: wrap;  */
}

.af-cp-compact-item:last-child {
    border-bottom: none;
}

/* Checkbox column */
.af-cp-compact-checkbox {
    flex: 0 0 30px;
}

/* Image column */
.af-cp-compact-image {
    flex: 0 0 50px;
}

.af-cp-compact-image img {
    max-width: 40px;
    border-radius: 4px;
}

/* Title column - takes remaining space */
.af-cp-compact-title {
    flex: 2;
    min-width: 150px;
}

.af-cp-compact-title a {
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
}

.af-cp-compact-attributes {
    margin-top: 5px;
    font-size: 0.8em;
}

.af-cp-compact-attributes select {
    padding: 2px 4px;
    font-size: 0.8em;
}

.af-cp-compact-list-qty{
flex: 0 0 50PX;
}
/* Price column */
.af-cp-compact-price {
    flex: 100px;
    font-weight: 600;
    color: #2c6e2c;
}

.af-cp-compact-price del {
    color: #999;
    font-weight: normal;
    margin-right: 5px;
}

/* Quantity stepper */
.af-cp-compact-quantity {
    flex: 0 0 110px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.af-cp-compact-quantity button {
    width: 28px;
    height: 28px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: all 0.2s;
}

.af-cp-compact-quantity button:hover {
    background: #e5e5e5;
}

.af-cp-compact-quantity input {
    width: 50px;
    text-align: center;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Total price */
.af-cp-total-price {
    text-align: left;
    padding: 12px 16px 12px 0px;
}

.af-cp-total-price .af-cpfw-sum-of-all-prices {
    font-weight: bold;
    font-size: 18px;
}

.af_cp_tewnty_five{
    background-color: var(--wp--preset--color--contrast);
    border-width: 0;
    color: var(--wp--preset--color--base);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--small);
    font-style: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    padding-top: 1rem;
    padding-right: 2.25rem;
    padding-bottom: 1rem;
    padding-left: 2.25rem;
    text-decoration: none;
    text-transform: inherit;
    align-items: center;
    border-style: none;
    display: inline-flex;
    justify-content: center;
    line-height: inherit;
    overflow: hidden;
    white-space: normal;
    word-break: normal;
    border-radius: 9999px;
}

.af-cp-compact-item-astra{
    gap : 0px;
}

/* Responsive: stack on mobile */
@media (max-width: 640px) {
    .af-cp-compact-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .af-cp-compact-title,
    .af-cp-compact-price,
    .af-cp-compact-quantity {
        width: 100%;
    }
}