/* ---- Gift cards ----------------------------------------------------- */

.kma.kma-section.kma-giftcards {
	max-width: 980px !important;
}
.kma-giftcards {
    display: flex;
    flex-direction: column;
    gap: 12px;
	width: 100%;
	padding-top: 0 !important;
}
.kma-giftcards__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 20px;
}
.kma-giftcards__actions {
	margin-left: auto;
}
.kma-giftcards__actions .kma-btn {
	min-width: fit-content; 
}

.kma-giftcards__form {
    padding: 16px;
    background: var(--kma-beige-light);
}

.kma-giftcards__form[hidden] {
    display: none;
}

.kma-giftcards__main {
	display: flex;
	align-items: stretch;
	gap: 20px;
	border-bottom: 1px solid var(--kma-line);
	padding-bottom: 36px;
	margin-bottom: 24px;
}
.kma-giftcards__info {
	flex: 1;
	background-color: var(--kma-beige-light);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 250px;
}
.kma-giftcards__info-actions {
	margin-top: auto;
	display: flex;
	gap: 20px;
}
.kma-giftcard-list {
    display: grid;
    gap: 12px;
	width: fit-content;
	min-width: 400px;
}

.kma-giftcard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1.6 / 1;
    max-width: 400px;
    padding: 20px;
    background: var(--kma-beige);
}

.kma-giftcard__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

img.kma-giftcard__brand {
    filter: brightness( 10% ) contrast( 100% ) saturate( 100% ) blur( 0px ) hue-rotate( 0deg ) !important;
	width: 100px;
	height: auto;
}

.kma-giftcard__bottom {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kma-giftcard__balance {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.kma-giftcard--empty {
    opacity: 0.7;
}

.kma-giftcards__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.kma-activity__amount {
    font-size: 14px;
    white-space: nowrap;
}
.kma-giftcards .kma-order-list__item:hover {
	transform: translatey(0);
	box-shadow: none;
}
.kma-giftcards .kma-order-list__item .woocommerce-Price-amount {
	padding-right: 20px;
}

@media (max-width:768px) {
	.kma-giftcards {
		padding-top: 28px !important;
	}
	.kma-giftcards__head {
		flex-direction: column;
		align-items: start;
		gap:16px;
		padding-bottom: 20px;
	}

	.kma-giftcards__actions {
		margin-left: 0;
	}
	.kma-giftcards__main {
		flex-direction: column;
		gap: 10px;
		align-items: flex-start;
		padding-bottom: 32px;
		margin-bottom: 20px;
	}
	.kma-giftcards__info {
		flex: 1;
		background-color: var(--kma-beige-light);
		padding: 20px;
		width: 100%;
    	min-height: 200px;
	}
	
}
@media (max-width:590px) {
	.kma-giftcards__actions {
		width: 100%;
		justify-content: stretch;
	} 
	.kma-giftcard-list {
    	gap: 10px;
		width: 100%;
	}
	.kma-giftcard {
    	max-width: none;
		width: 100%;
	}
	.kma-giftcards__info-actions {
		flex-direction: column,
		gap: 10px;
	}
}