693 lines
23 KiB
Vue
693 lines
23 KiB
Vue
<template>
|
|
<div class="cart">
|
|
<div class="px-0">
|
|
<div
|
|
class="row vin-toggle flex align-items-center"
|
|
:class="[isActive ? 'active' : '']"
|
|
@click="toggleClass()">
|
|
<div class="col d-flex justify-content-between">
|
|
<span class="label">{{ amountDueText }}</span
|
|
><span class="label amount-due">{{ currencyFormatter.format(amountDue) }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="price-table">
|
|
<div class="service-type" :class="{ packageWithVAPS: packageWithVAPS }">
|
|
<textBlock :cmsWidgetName="servicePackageTitleWidget" /><span>{{
|
|
currencyFormatter.format(packagePrice)
|
|
}}</span>
|
|
</div>
|
|
|
|
<!-- Packaged Cart Items -->
|
|
<div
|
|
v-for="(cartItem, i) in packageCartItems"
|
|
:key="i"
|
|
:class="[this.packageCartItems ? 'vaps' : '']">
|
|
<span>{{ cartItem.name }}</span>
|
|
<textLink
|
|
ref="removeLink"
|
|
linkType="text"
|
|
:text="removeLinkText"
|
|
href="#!"
|
|
@click-event="removeItem(cartItem.cartItemType, cartItem.category)" />
|
|
</div>
|
|
|
|
<!-- Nonpackaged Cart Items -->
|
|
<hr style="background: red" />
|
|
<div v-for="(cartItem, i) in nonpackageCartItems" :key="i">
|
|
<span>{{ cartItem.name }}</span>
|
|
<textLink
|
|
ref="removeLink"
|
|
linkType="text"
|
|
:text="removeLinkText"
|
|
href="#!"
|
|
@click-event="removeItem(cartItem.cartItemType, cartItem.category)" />
|
|
<span>{{ currencyFormatter.format(cartItem.subTotal) }}</span>
|
|
</div>
|
|
|
|
<!-- Fees -->
|
|
<div v-if="recycleFeeCartItem">
|
|
<span>{{ recycleFeeCartItem.name }}</span
|
|
><span>{{ currencyFormatter.format(recycleFeeCartItem.subTotal) }}</span>
|
|
</div>
|
|
<div v-if="mobileFeeCartItem">
|
|
<span>{{ mobileFeeCartItem.name }}</span
|
|
><span>{{ currencyFormatter.format(mobileFeeCartItem.subTotal) }}</span>
|
|
</div>
|
|
|
|
<!-- Sub total, sales tax, total columns -->
|
|
<div class="sub-total">
|
|
<span>{{ subtotalText }}</span
|
|
><span>{{ currencyFormatter.format(subTotal) }}</span>
|
|
</div>
|
|
<div class="sales-tax">
|
|
<span>{{ salesTaxText }}</span
|
|
><span>{{ currencyFormatter.format(salesTax) }}</span>
|
|
</div>
|
|
<div class="amount-due">
|
|
<span>{{ amountDueText }}</span
|
|
><span>{{ currencyFormatter.format(amountDue) }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
// Components
|
|
import textLink from "@/ux-components/text-link/text-link";
|
|
import textBlock from "@/digital-components/text-block/text-block";
|
|
|
|
// Mixins
|
|
import baseMixin from "@/mixins/base-mixin.js";
|
|
|
|
// Helpers
|
|
import { deepClone } from "@/helpers/object-helper";
|
|
import { getHighestFullySatisfiedTier, getPackageContents } from "@/helpers/service-package-helper";
|
|
|
|
// Constants
|
|
import { partTypeStrings } from "@/constants/part-type-strings";
|
|
import { cartItemCategories } from "@/constants/cart-item-categories";
|
|
import { cartItemTypes } from "@/constants/cart-item-types";
|
|
|
|
export default {
|
|
name: "cart",
|
|
props: {
|
|
modelValue: Object,
|
|
damage: Object,
|
|
servicePackageOptionsCmsName: String,
|
|
availableLineItems: Object,
|
|
},
|
|
data() {
|
|
return {
|
|
isActive: false,
|
|
packageWithVAPS: false,
|
|
currencyFormatter: new Intl.NumberFormat("en-US", {
|
|
style: "currency",
|
|
currency: "USD",
|
|
}),
|
|
lineItems: deepClone(this.modelValue),
|
|
};
|
|
},
|
|
methods: {
|
|
toggleClass: function (event) {
|
|
this.isActive = !this.isActive;
|
|
},
|
|
getVapsPrice(packageName) {
|
|
const vapsItems = this.getVapsCartItemsForSelectedPackage(packageName);
|
|
|
|
let subTotal = 0;
|
|
|
|
vapsItems.forEach((item) => {
|
|
subTotal += item.subTotal;
|
|
});
|
|
|
|
return subTotal;
|
|
},
|
|
getVapsCartItemsForSelectedPackage(packageName) {
|
|
const packageContentTypes = getPackageContents(
|
|
this.glassToReplace,
|
|
this.availableLineItems,
|
|
this.isRepair,
|
|
packageName
|
|
);
|
|
|
|
let vapsCartItemsForSelectedPackage = [];
|
|
|
|
this.cartItems.forEach((cartItem) => {
|
|
packageContentTypes.forEach((vapType) => {
|
|
if (cartItem.cartItemType.includes(vapType)) {
|
|
vapsCartItemsForSelectedPackage.push(cartItem);
|
|
}
|
|
});
|
|
});
|
|
|
|
return vapsCartItemsForSelectedPackage;
|
|
},
|
|
getCmsContentForVapsType(vapsType) {
|
|
const vapsItemDescriptions = this.getCmsContent("VapsItemDescriptions", "Answers");
|
|
|
|
if (!vapsItemDescriptions) {
|
|
return "";
|
|
}
|
|
|
|
const vapsTypeName = vapsItemDescriptions.find((entry) => entry.Name === vapsType);
|
|
|
|
return vapsTypeName.Text;
|
|
},
|
|
removeItem(cartItemType, category) {
|
|
this.lineItems[category] = this.lineItems[category].filter(
|
|
(lineItemsToKeep) => lineItemsToKeep.cartItemType != cartItemType
|
|
);
|
|
|
|
this.$emit("update:modelValue", this.lineItems);
|
|
},
|
|
},
|
|
computed: {
|
|
cartItems: {
|
|
get: function () {
|
|
let cartItems = [];
|
|
|
|
if (this.frontWipersCartItem) {
|
|
cartItems.push(this.frontWipersCartItem);
|
|
}
|
|
|
|
if (this.rearWipersCartItem) {
|
|
cartItems.push(this.rearWipersCartItem);
|
|
}
|
|
|
|
if (this.rainDefenseCartItem) {
|
|
cartItems.push(this.rainDefenseCartItem);
|
|
}
|
|
|
|
if (this.glassPartsCartItem) {
|
|
cartItems.push(this.glassPartsCartItem);
|
|
}
|
|
|
|
if (this.otherSupportingItemsCartItem) {
|
|
cartItems.push(this.otherSupportingItemsCartItem);
|
|
}
|
|
|
|
if (this.recycleFeeCartItem) {
|
|
cartItems.push(this.recycleFeeCartItem);
|
|
}
|
|
|
|
if (this.mobileFeeCartItem) {
|
|
cartItems.push(this.mobileFeeCartItem);
|
|
}
|
|
|
|
// Create a cart item for each promo
|
|
this.promos.forEach((promoLineItem) => {
|
|
let cartItem = null;
|
|
|
|
cartItem = {
|
|
name: "Some Kind of Promo", // get from CMS?
|
|
category: cartItemCategories.PROMOS,
|
|
cartItemType: promoLineItem.partType,
|
|
isDisplayed: true,
|
|
subTotal:
|
|
(promoLineItem.kitPrice ?? 0) +
|
|
(promoLineItem.laborAmount ?? 0) +
|
|
(promoLineItem.sellingPrice ?? 0),
|
|
salesTax: promoLineItem.salesTax,
|
|
};
|
|
|
|
cartItems.push(cartItem);
|
|
});
|
|
|
|
return cartItems;
|
|
},
|
|
},
|
|
servicePackageTitleWidget() {
|
|
const servicePackageNames = this.getCmsContent(
|
|
this.servicePackageOptionsCmsName,
|
|
"Answers"
|
|
);
|
|
|
|
if (!servicePackageNames) {
|
|
return "";
|
|
}
|
|
|
|
const currentPackage = servicePackageNames.find(
|
|
(entry) => entry.Name === this.packageLevel
|
|
);
|
|
|
|
return currentPackage.SubWidgetName;
|
|
},
|
|
packageLevel() {
|
|
const tier = getHighestFullySatisfiedTier(
|
|
this.glassToReplace,
|
|
this.availableLineItems,
|
|
this.isRepair,
|
|
this.vaps
|
|
);
|
|
|
|
return tier;
|
|
},
|
|
packagePrice() {
|
|
let packagePrice = this.isInsuranceSelected
|
|
? 0
|
|
: baseMixin.methods.getTierOnePackagePrice(
|
|
baseMixin.methods.filterOutFees(this.availableLineItems)
|
|
);
|
|
|
|
packagePrice += this.getVapsPrice(this.packageLevel);
|
|
|
|
return packagePrice;
|
|
},
|
|
isRepair() {
|
|
if (!this.damage) {
|
|
return;
|
|
}
|
|
|
|
return this.damage.isRepair;
|
|
},
|
|
glassToReplace() {
|
|
if (!this.damage) {
|
|
return;
|
|
}
|
|
|
|
return this.damage.glassToReplace;
|
|
},
|
|
vaps() {
|
|
const vaps = this.lineItems?.vaps;
|
|
return vaps?.length > 0 ? vaps : [];
|
|
},
|
|
supportingItems() {
|
|
const supportingItems = this.lineItems?.supportingItems;
|
|
return supportingItems?.length > 0 ? supportingItems : [];
|
|
},
|
|
promos() {
|
|
const promos = this.lineItems?.promos;
|
|
return promos?.length > 0 ? promos : [];
|
|
},
|
|
// Cart Items
|
|
packageCartItems() {
|
|
return this.getVapsCartItemsForSelectedPackage(this.packageLevel);
|
|
},
|
|
nonpackageCartItems() {
|
|
const nonpackageCartItems = [];
|
|
|
|
this.cartItems.forEach((cartItem) => {
|
|
if (cartItem == this.recycleFeeCartItem || cartItem == this.mobileFeeCartItem) {
|
|
return;
|
|
}
|
|
|
|
if (!this.packageCartItems.find((packageCartItem) => packageCartItem == cartItem)) {
|
|
if (cartItem.isDisplayed) {
|
|
nonpackageCartItems.push(cartItem);
|
|
}
|
|
}
|
|
});
|
|
|
|
return nonpackageCartItems;
|
|
},
|
|
frontWiperCartItemName() {
|
|
return this.getCmsContentForVapsType(partTypeStrings.FRONT_WIPER);
|
|
},
|
|
frontWipersCartItem() {
|
|
let cartItem = null;
|
|
|
|
const frontWiperLineItems = this.vaps.filter(
|
|
(vapsLineItem) => vapsLineItem.partType == partTypeStrings.FRONT_WIPER
|
|
);
|
|
|
|
if (frontWiperLineItems.length > 0) {
|
|
cartItem = {
|
|
name: this.frontWiperCartItemName,
|
|
category: cartItemCategories.VAPS,
|
|
cartItemType: cartItemTypes.FRONT_WIPERS,
|
|
isDisplayed: true,
|
|
subTotal: 0,
|
|
salesTax: 0,
|
|
lineItems: [],
|
|
};
|
|
|
|
frontWiperLineItems.forEach((lineItem) => {
|
|
lineItem.cartItemType = cartItem.cartItemType;
|
|
cartItem.lineItems.push(lineItem);
|
|
|
|
cartItem.subTotal +=
|
|
(lineItem.kitPrice ?? 0) +
|
|
(lineItem.laborAmount ?? 0) +
|
|
(lineItem.sellingPrice ?? 0);
|
|
|
|
cartItem.salesTax += lineItem.salesTax ?? 0;
|
|
});
|
|
}
|
|
|
|
return cartItem;
|
|
},
|
|
rearWiperCartItemName() {
|
|
return this.getCmsContentForVapsType(partTypeStrings.REAR_WIPER);
|
|
},
|
|
rearWipersCartItem() {
|
|
let cartItem = null;
|
|
|
|
const rearWiperLineItems = this.vaps.filter(
|
|
(vapsLineItem) => vapsLineItem.partType == partTypeStrings.REAR_WIPER
|
|
);
|
|
|
|
if (rearWiperLineItems.length > 0) {
|
|
cartItem = {
|
|
name: this.rearWiperCartItemName,
|
|
category: cartItemCategories.VAPS,
|
|
cartItemType: cartItemTypes.REAR_WIPERS,
|
|
isDisplayed: true,
|
|
subTotal: 0,
|
|
salesTax: 0,
|
|
lineItems: [],
|
|
};
|
|
|
|
rearWiperLineItems.forEach((lineItem) => {
|
|
lineItem.cartItemType = cartItem.cartItemType;
|
|
cartItem.lineItems.push(lineItem);
|
|
|
|
cartItem.subTotal +=
|
|
(lineItem.kitPrice ?? 0) +
|
|
(lineItem.laborAmount ?? 0) +
|
|
(lineItem.sellingPrice ?? 0);
|
|
|
|
cartItem.salesTax += lineItem.salesTax ?? 0;
|
|
});
|
|
}
|
|
|
|
return cartItem;
|
|
},
|
|
rainDefenseCartItemName() {
|
|
return this.getCmsContentForVapsType(partTypeStrings.RAIN_DEFENSE);
|
|
},
|
|
rainDefenseCartItem() {
|
|
let cartItem = null;
|
|
|
|
const rainDefenseLineItem = this.vaps.find(
|
|
(vapsLineItem) => vapsLineItem.partType == partTypeStrings.RAIN_DEFENSE
|
|
);
|
|
|
|
if (rainDefenseLineItem) {
|
|
cartItem = {
|
|
name: this.getCmsContentForVapsType(partTypeStrings.RAIN_DEFENSE),
|
|
category: cartItemCategories.VAPS,
|
|
cartItemType: cartItemTypes.RAIN_DEFENSE,
|
|
isDisplayed: true,
|
|
subTotal: 0,
|
|
salesTax: 0,
|
|
lineItems: [],
|
|
};
|
|
|
|
rainDefenseLineItem.cartItemType = cartItem.cartItemType;
|
|
cartItem.lineItems.push(rainDefenseLineItem);
|
|
|
|
cartItem.subTotal +=
|
|
(rainDefenseLineItem.kitPrice ?? 0) +
|
|
(rainDefenseLineItem.laborAmount ?? 0) +
|
|
(rainDefenseLineItem.sellingPrice ?? 0);
|
|
|
|
cartItem.salesTax += rainDefenseLineItem.salesTax ?? 0;
|
|
}
|
|
|
|
return cartItem;
|
|
},
|
|
glassPartsCartItem() {
|
|
let cartItem = null;
|
|
|
|
if (this.lineItems?.glassParts?.length > 0) {
|
|
this.lineItems?.glassParts?.forEach((lineItem) => {
|
|
cartItem = {
|
|
name: null,
|
|
category: cartItemCategories.GLASS_PARTS,
|
|
cartItemType: cartItemTypes.GLASS_PARTS,
|
|
isDisplayed: false,
|
|
subTotal:
|
|
(lineItem.kitPrice ?? 0) +
|
|
(lineItem.laborAmount ?? 0) +
|
|
(lineItem.sellingPrice ?? 0),
|
|
salesTax: lineItem.salesTax ?? 0,
|
|
lineItems: [],
|
|
};
|
|
|
|
if (lineItem.childParts?.length > 0) {
|
|
lineItem.childParts.forEach((childPartLineItem) => {
|
|
cartItem.subTotal +=
|
|
(childPartLineItem.kitPrice ?? 0) +
|
|
(childPartLineItem.laborAmount ?? 0) +
|
|
(childPartLineItem.sellingPrice ?? 0);
|
|
|
|
cartItem.salesTax += childPartLineItem.salesTax;
|
|
});
|
|
}
|
|
});
|
|
}
|
|
|
|
return cartItem;
|
|
},
|
|
recycleFeeCartItemName() {
|
|
return this.getCmsContent("RecycleFeeTextWidget", "Text");
|
|
},
|
|
recycleFeeCartItem() {
|
|
let cartItem = null;
|
|
|
|
const recycleFeeLineItem = this.supportingItems.find(
|
|
(supportingItem) => supportingItem.partNumber == partTypeStrings.RECYCLE_FEE
|
|
);
|
|
|
|
if (recycleFeeLineItem) {
|
|
cartItem = {
|
|
name: this.recycleFeeCartItemName,
|
|
category: cartItemCategories.SUPPORTING_ITEMS,
|
|
cartItemType: cartItemTypes.RECYCLE_FEE,
|
|
isDisplayed: true,
|
|
subTotal: 0,
|
|
salesTax: 0,
|
|
lineItems: [],
|
|
};
|
|
|
|
//recycleFeeLineItem.cartItemType = cartItem.cartItemType;
|
|
//cartItem.lineItems.push(recycleFeeLineItem);
|
|
|
|
cartItem.subTotal +=
|
|
(recycleFeeLineItem.kitPrice ?? 0) +
|
|
(recycleFeeLineItem.laborAmount ?? 0) +
|
|
(recycleFeeLineItem.sellingPrice ?? 0);
|
|
|
|
cartItem.salesTax = recycleFeeLineItem.salesTax ?? 0;
|
|
}
|
|
|
|
return cartItem;
|
|
},
|
|
mobileFeeCartItemName() {
|
|
return this.getCmsContent("MobileServiceTextWidget", "Text");
|
|
},
|
|
mobileFeeCartItem() {
|
|
let cartItem = null;
|
|
|
|
const mobileFeeLineItem = this.supportingItems.find(
|
|
(lineItem) => lineItem.partNumber == partTypeStrings.MOBILE_FEE
|
|
);
|
|
|
|
if (mobileFeeLineItem) {
|
|
cartItem = {
|
|
name: this.mobileFeeCartItemName,
|
|
category: cartItemCategories.SUPPORTING_ITEMS,
|
|
cartItemType: cartItemTypes.MOBILE_FEE,
|
|
isDisplayed: true,
|
|
subTotal: 0,
|
|
salesTax: 0,
|
|
lineItems: [],
|
|
};
|
|
|
|
mobileFeeLineItem.cartItemType = cartItem.cartItemType;
|
|
cartItem.lineItems.push(mobileFeeLineItem);
|
|
|
|
cartItem.subTotal +=
|
|
(mobileFeeLineItem.kitPrice ?? 0) +
|
|
(mobileFeeLineItem.laborAmount ?? 0) +
|
|
(mobileFeeLineItem.sellingPrice ?? 0);
|
|
|
|
cartItem.salesTax += mobileFeeLineItem.salesTax ?? 0;
|
|
}
|
|
|
|
return cartItem;
|
|
},
|
|
otherSupportingItemsCartItem() {
|
|
let cartItem = null;
|
|
|
|
const otherSupportingItemsLineItems = this.supportingItems.filter(
|
|
(lineItem) =>
|
|
lineItem.partNumber != partTypeStrings.MOBILE_FEE &&
|
|
lineItem.partNumber != partTypeStrings.RECYCLE_FEE
|
|
);
|
|
|
|
if (otherSupportingItemsLineItems.length > 0) {
|
|
cartItem = {
|
|
name: null,
|
|
category: cartItemCategories.SUPPORTING_ITEMS,
|
|
cartItemType: cartItemTypes.SUPPORTING_ITEMS,
|
|
isDisplayed: false,
|
|
subTotal: 0,
|
|
salesTax: 0,
|
|
lineItems: [],
|
|
};
|
|
|
|
otherSupportingItemsLineItems.forEach((lineItem) => {
|
|
lineItem.cartItemType = cartItem.cartItemType;
|
|
cartItem.lineItems.push(lineItem);
|
|
|
|
cartItem.subTotal +=
|
|
(lineItem.kitPrice ?? 0) +
|
|
(lineItem.laborAmount ?? 0) +
|
|
(lineItem.sellingPrice ?? 0);
|
|
|
|
cartItem.salesTax += lineItem.salesTax ?? 0;
|
|
});
|
|
}
|
|
|
|
return cartItem;
|
|
},
|
|
removeLinkText() {
|
|
return this.getCmsContent("RemoveCartItemTextWidget", "Text");
|
|
},
|
|
recycleFeeText() {
|
|
return this.getCmsContent("RecycleFeeTextWidget", "Text");
|
|
},
|
|
salesTaxText() {
|
|
return this.getCmsContent("SalesTaxTextWidget", "Text");
|
|
},
|
|
amountDueText() {
|
|
return this.getCmsContent("AmountDueTextWidget", "Text");
|
|
},
|
|
subtotalText() {
|
|
return this.getCmsContent("SubtotalTextWidget", "Text");
|
|
},
|
|
subTotal() {
|
|
let subTotal = 0;
|
|
|
|
this.cartItems.forEach((cartItem) => {
|
|
subTotal += cartItem.subTotal;
|
|
});
|
|
|
|
return subTotal;
|
|
},
|
|
salesTax() {
|
|
let salesTax = 0;
|
|
this.cartItems.forEach((cartItem) => {
|
|
salesTax += cartItem.salesTax ?? 0;
|
|
});
|
|
|
|
return salesTax;
|
|
},
|
|
amountDue() {
|
|
return this.subTotal + this.salesTax;
|
|
},
|
|
},
|
|
watch: {
|
|
modelValue: {
|
|
handler(newValue) {
|
|
this.lineItems = deepClone(newValue);
|
|
},
|
|
deep: true,
|
|
},
|
|
},
|
|
components: {
|
|
textBlock,
|
|
textLink,
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.cart {
|
|
h5 {
|
|
border-bottom: 1px solid $gray-500;
|
|
color: $black;
|
|
}
|
|
.border-bottom {
|
|
color: $gray;
|
|
}
|
|
.label {
|
|
font-weight: 500;
|
|
}
|
|
.amount-due {
|
|
color: $green;
|
|
}
|
|
.price-table {
|
|
max-height: 0;
|
|
transition: all 350ms ease-in;
|
|
overflow: hidden;
|
|
div {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0.5rem 1.5rem;
|
|
&:nth-child(odd) {
|
|
background-color: #f5f5f5;
|
|
}
|
|
&:nth-last-child(-n + 3) {
|
|
background-color: #e3f2ea;
|
|
}
|
|
&:last-child {
|
|
background-color: #0c7e47;
|
|
color: #ffffff;
|
|
}
|
|
}
|
|
.vaps {
|
|
background-color: #f5f5f5;
|
|
padding-left: 2.5rem;
|
|
align-items: center;
|
|
span {
|
|
display: flex;
|
|
width: 33.33333%;
|
|
&:nth-child(2) {
|
|
justify-content: flex-end;
|
|
}
|
|
&:last-child {
|
|
justify-content: flex-end;
|
|
}
|
|
}
|
|
}
|
|
.package-type,
|
|
.service-type {
|
|
//background-color: #f5f5f5;
|
|
align-items: center;
|
|
}
|
|
.sub-total,
|
|
.sales-tax,
|
|
.amount-due {
|
|
font-weight: 500;
|
|
}
|
|
.sub-total {
|
|
border-top: 1px solid #0c7e47;
|
|
}
|
|
.service-type {
|
|
// background-color: #f5f5f5;
|
|
.text-block {
|
|
background: transparent;
|
|
margin-top: 0;
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
.vin-toggle {
|
|
&:after {
|
|
content: "";
|
|
transition: all 0.5s ease;
|
|
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8.9' xml:space='preserve'%3e%3cpath d='M8 8.9c-.2 0-.5-.1-.6-.3L.3 1.5C.1 1.4 0 1.1 0 .9 0 .7.1.4.3.3.4.1.7 0 .9 0c.2 0 .5.1.6.3L8 6.7 14.5.2c.1-.1.4-.2.6-.2.2 0 .5.1.6.3s.3.4.3.6c0 .2-.1.5-.3.6L8.6 8.6c-.1.2-.4.3-.6.3z' fill='%231474a2'/%3e%3c/svg%3e");
|
|
background-repeat: no-repeat;
|
|
background-position: right center;
|
|
width: 16px;
|
|
height: 9px;
|
|
display: inline-flex;
|
|
position: relative;
|
|
right: 0.75rem;
|
|
margin: 1rem 0 1rem 1rem;
|
|
cursor: pointer;
|
|
}
|
|
&.active:after {
|
|
transform: rotate(180deg);
|
|
}
|
|
&.active + .price-table {
|
|
max-height: 650px;
|
|
transition: all 350ms ease-in;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
}
|
|
</style>
|