.afgc-gift-card-amount-box{
	box-sizing: border-box;
/*	overflow: hidden;*/
	padding-right: 5px;
}

.afgc-gift-card-amount-box h3{
	font-size: 18px;
	line-height: 28px;
	color: #404040;
	font-weight: bold;
	margin: 20px 0px 15px;
}
.pagination{
	border-bottom: none!important;
}

.afgc-choose-image ul,
.afgc-choose-image-content ul,
.afgc-virtual-custom-amount ul,
.afgc-gift-account-content ul,
.afgc-physical-gift-card ul,
.afgc-main-form-preview-container ul,
.afgc-gift-card-details ul,
.afgc_gift_card_opt {
	list-style: none;
	padding: 0!important;
	margin: 0!important;
}
.afgc_custom-image_allow_main{
	min-height: 33px!important;
}
.adf-dashboard-pagination a,
.adf-dashboard-pagination span{
	    padding: 3px 7px 4px;
    border: 1px solid #2271b1;
    color: #2271b1;
    text-decoration: none!important;
    font-size: 13px;
    border-radius: 3px;
    line-height: 34px!important;
}
.adf-dashboard-pagination a:hover,
.adf-dashboard-pagination span{
	color: #fff;
	background-color: #2271b1;
}
.adf-dashboard-pagination{
	text-align: right;
}
.afgc-virtual-custom-amount ul li,
.afgc-physical-gift-card ul li,
.afgc-gift-card-details ul li{
	display: inline-block;
	vertical-align: middle;
	
}
.afgc-virtual-custom-amount ul li{
	vertical-align: top!important;
}

.afgc-enter-custom-amount li:last-child{
	width:65px;
}

.afgc-enter-custom-amount li:last-child input{
	width:100%;
}
.afgc_gift_card_opt{
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-direction: row;
}

.afgc_gift_card_opt li{
	display: flex;
	justify-content: flex-start;
	align-items: center;    
	margin-right: 10px;
}

.afgc-choose-image ul li{
	display: inline-block;
	vertical-align: top;
	text-align: center;
	margin: 4px 2px;
	width: 50px;
	border-radius: 3px;
	height: 50px;
}

.afgc-marked{
	position: relative;
}

.afgc-marked:before{
	content: '';
	display: block;
	width: 18px;
	height: 18px;
	position: absolute;
	border-radius: 50%;
	top: -7px;
	right: -6px;
	background-image: url(../images/check.png);
	background-size: 9px;
	background-repeat: no-repeat;
	background-position: center;
}

.afgc-choose-image-item img,
.afgc-choose-image ul li img{
	width: 100%;
	cursor: pointer;
	height: 100%;
	object-fit: cover;
}

.afgc-view a{
	font-size: 10px;
	line-height: 22px;
	font-weight: bold;
	display: block;
	width: 50px;
	height: 50px;
	padding: 15px 0;
	cursor: pointer;
}

/*===== Choose Image Modal =====*/

.afgc-choose-image{
	margin: 15px 0;
}

.product-type-gift_card:has(.afgc-product-form) .woocommerce-product-gallery__trigger {
	display: none !important;
}

dialog.afgc-choose-image-wrapper {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: clamp(12px, 4vw, 32px);
	border: 0;
	box-sizing: border-box;
	background: transparent;
	color: inherit;
	place-items: center;
	z-index: 9999;
}

dialog.afgc-choose-image-wrapper[open] {
	display: grid;
}

dialog.afgc-choose-image-wrapper[aria-modal="true"]:not([open]) {
	background: rgb(0 0 0 / 60%);
}

.afgc-choose-image-modal {
	width: min(100%, 880px);
	max-height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-sizing: border-box;
	background: #fff;
	color: #1e293b;
	border: 1px solid #dbe2ea;
	border-radius: 16px;
	box-shadow: 0 20px 70px rgb(0 0 0 / 30%);
}

.afgc-choose-image-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px clamp(14px, 3vw, 26px);
	border-bottom: 1px solid #dbe2ea;
}

.afgc-choose-image-modal-header h2 {
	margin: 0;
	font: inherit;
	font-size: 1.25em;
	font-weight: 650;
	line-height: 1.25;
}

.afgc-choose-image-modal .afgc-choose-image-modal-close {
	display: grid;
	flex: 0 0 44px;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 1px solid #dbe2ea;
	border-radius: 50%;
	background: #f7f9fc;
	color: inherit;
	font: inherit;
	font-size: 1.5em;
	line-height: 1;
	cursor: pointer;
}

.afgc-choose-image-content {
	display: grid;
	grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr);
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
}

.afgc-choose-image-content h3 {
	margin: 0 0 12px;
	font: inherit;
	font-weight: 650;
}

.afgc-tax-tabs-menu,
.afgc-tax-tabs-content {
	min-width: 0;
	padding: clamp(14px, 3vw, 26px);
}

.afgc-tax-tabs-menu {
	background: #f7f9fc;
	border-inline-end: 1px solid #dbe2ea;
}

.afgc-choose-image-modal .afgc-tab-nav,
.afgc-choose-image-modal .afgc-tax-gallery {
	list-style: none;
	margin: 0;
	padding: 0;
}

.afgc-choose-image-modal .afgc-tab-nav {
	display: grid;
	gap: 4px;
}

.afgc-choose-image-modal .afgc-tab-nav a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 5px 10px;
	border: 1px solid transparent;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.afgc-choose-image-modal .afgc-tab-nav a:hover,
.afgc-choose-image-modal .afgc-tab-nav a[aria-current="true"] {
	border-color: #cad5e3;
	background: #e8eef6;
}

.afgc-choose-image-modal .afgc-tab-nav a[aria-current="true"] {
	font-weight: 650;
}

.afgc-choose-image-modal .afgc-tax-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 100px), 1fr));
	gap: 10px;
}

.afgc-choose-image-modal .afgc-gallery-choice {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 4px;
	border: 1px solid #dbe2ea;
	border-radius: 9px;
	background: #f7f9fc;
	cursor: pointer;
}

.afgc-choose-image-modal .afgc-gallery-choice img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 5px;
}

.afgc-choose-image-modal .afgc-gallery-choice:hover,
.afgc-choose-image-modal .afgc-choose-image-modal-close:hover {
	border-color: currentColor;
	background: #e8eef6;
}

.afgc-choose-image-modal :is(button, a):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.afgc-choose-image-content {
		grid-template-columns: minmax(0, 1fr);
	}
	.afgc-tax-tabs-menu {
		border-inline-end: 0;
		border-bottom: 1px solid #dbe2ea;
	}
	.afgc-choose-image-modal .afgc-tab-nav {
		display: flex;
		flex-wrap: wrap;
	}
	.afgc-choose-image-modal .afgc-tax-gallery {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 78px), 1fr));
	}
}

.afgc-gift-card-amount-box {
	margin-bottom: 25px;
}
.afgc-option-radio input{
	    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}
.afgc-option-radio{
	position: relative;
}

.afgc-option-radio:has(input:checked) {
	outline: 1px solid currentColor;
	outline-offset: 1px;
}

.afgc-gift-card-amount-box input[type=text],
.afgc-gift-card-amount-box input[type=number],
.afgc-gift-card-amount-box input[type=email],
.afgc-gift-card-amount-box input[type=date],
.afgc-gift-card-amount-box textarea{
	transition: border-color ease 0.3s;
	background-color: #ffffff !important;
	box-shadow: none !important;
	padding: 2px 6px !important;
	display: inline-block;
	font-size: 12px;
	border-radius: 2px;
	line-height: 22px;
	height: auto!important;
	border: 1px solid #428b86;
}

.afgc-gift-card-amount-box button,
.afgc-gift-card-amount-box label.afgc-option-radio{
    box-shadow: none !important;
    width: fit-content;
    padding: 2px 9px !important;
    display: inline-block;
    font-size: 12px;
    text-align: center;
    min-width: 56px;
    border-radius: 2px;
    line-height: 22px;
    transition: border-color ease 0.3s;
}

.afgc-main-form-preview-container{
	display: block;
}

.afgc-section-label-custom-btn{
	position: relative;
}

.afgc-gift-card-amount-box h5{
	font-size: 16px;
	line-height: 26px;
	color: #000;
	position: relative;
	margin: 10px 0 5px;
	font-weight: 600;
}

.afgc-upload-img {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 104px;
	box-sizing: border-box;
	overflow: hidden;
	text-align: right;
	z-index: 999;
}

.afgc-upload-img label{
	display: inline-block;
	text-align: center;
	font-size: 12px;
	cursor: pointer;
	line-height: 22px;
	border-radius: 3px;
	font-weight: 600;
	padding: 5px 10px;
	max-width: 104px;
}

.afgc-upload-img-btn{
	opacity: 0;
}

.afgc-gift-card-amount-box .woocommerce-Price-currencySymbol{
	font-size:12px;
	line-height:22px;
	padding-left:2px;
}

.afgc-form-group{
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	width: 100%
}

.afgc-frnt-input-fld{
	color: #666 !important;
	padding: 5px 10px !important;
	font-family: inherit;
	min-height: 35px;
	height: auto;
	max-width: 100%;
	transition: border-color ease 0.3s;
	background-color: #ffffff !important;
	width: 70%!important;
	box-shadow: none !important;
	border: 1px solid #428b86 !important;
	transition: border-color ease 0.3s;
	box-shadow: none !important;
}

.afgc-frnt-txtarea-fld{
	color: #666 !important;
	padding: 5px 5px !important;
	font-family: inherit;
	height: 75px;
	max-width: 100%;
	transition: border-color ease 0.3s;
	background-color: #ffffff !important;
	width: 70%;
	box-shadow: none !important;
	font-size: 12px;
   line-height: 22px;
}

.afgc-frnt-input-fld::placeholder,
.afgc-frnt-txtarea-fld::placeholder,
.afgc-gift-card-amount-box input::placeholder{
	color: #666666cf;
	font-size: 12px;
}

.afgc-clone-btn{
	display: block;
	text-align: right;
	text-decoration: none;
	font-size: 12px;
	line-height: 22px;
	margin-bottom: 10px;
	color: #15726b;
}

.afgc-clone-btn:hover,
.afgc-clone-btn:focus,
.afgc-clone-btn:active{
	outline: 0px !important;
	border: 0;
	text-decoration: underline;
}

#afgc_items_for_clone,
.afgc_items_for_clone{
	margin-bottom: 30px;
	position: relative;
	margin-top: 15px;
}

.afgc_items_for_clone{
	margin-bottom: 30px;
	position: relative;
	border-radius: 5px;
	padding: 25px 20px 15px;
	border: 1px solid #0000001a;
	margin-top: 15px;
}

.afgc-delete-field{
	position: absolute;
	right: 5px;
	top: 0;
	cursor: pointer;
	font-size: 12px;
	line-height: 22px;
	font-weight: 600;
}

.product-type-gift_card:has(.afgc-product-form) .woocommerce-product-gallery{
	position: relative;   
}

.afgc-main-form-preview-container{
	height: auto;
   border-bottom-left-radius: 7px;
   border-bottom-right-radius: 7px;
	background-color: white;
	box-shadow: 0 10px 19px -12px;
	border: 1px solid #0000000a;
	box-sizing: border-box;
	overflow: hidden;
	padding: 20px;
	/* Keep the summary in gallery flow when a theme stacks its product columns. */
	position: relative;
	width: 100%;
	z-index: auto;
	display: none;
}

.afgc-main-form-preview-container h3{
	font-size: 18px;
	line-height: 28px;
	font-weight: bold;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #0000000d;
	padding-bottom: 15px;
	margin-bottom: 15px;
} 
.afgc-main-form-preview-container ul li{
	display: flex;
	margin-bottom: 10px;
	width: 100%;
	box-sizing: border-box;
	flex-wrap: nowrap;
	gap: 10px;
	justify-content: space-between;
	align-items: baseline;
	font-size: .875rem;
	line-height: 1.5;
}
.afgc-main-form-preview-container ul li span{
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
	font-size: inherit;
	line-height: inherit;
}
.afgc-main-form-preview-container li label{
	flex: 0 0 auto;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	text-align: start;
	font-weight: 600;
}

.product-type-gift_card:has(.afgc-product-form) .woocommerce-product-gallery__image a img{
	width: 100%;
}

.afgc-virtual-custom-amount ul li label, 
.afgc-physical-gift-card ul li label, 
.afgc_gift_card_opt li label,
.afgc-form-group label{
	font-size: 14px;
	line-height: 24px;
	color: #000;
}
.afgc_gift_card_opt li label{
	margin-right: 5px !important;
	margin-bottom: 0 !important;
	margin-left: 5px!important;
}
.afgc-enter-custom-amount{
	    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
/*=======================================*/

/*=============Cart Page ===============*/

/*=====================================*/


.afgc-have-code{
	padding: 30px 15px 30px 30px;
	list-style-type: none;
	margin: 25px 0px 35px;
	border-radius: 0;
	border-right:10px solid #f8f8f8;
	color: #000;
	font-weight: 500;
	box-shadow: 0 0 20px 0 rgb(0 0 0 / 15%);
	background-color: #fff;
	font-size:16px;
	line-height: 26px;
}

.afgc-show-giftcard{
	font-size: 17px;
	margin:0px 6px;
}

.afgc-enter-code{
	padding: 30px 15px 30px 30px;
	list-style-type: none;
	margin: 25px 0px 35px;
	border-right:10px solid #f8f8f8;
	color: #000;
	font-size: 1rem;
	font-weight: 500;
	box-shadow: 0 0 20px 0 rgb(0 0 0 / 15%);
	background-color: #fff;
	display: none;
}

.afgc-enter-code h4{
	font-size: 18px;
	line-height: 28px;
	line-height: normal;
	font-weight: 500;
	margin-bottom: 25px;
}

.afgc-gift-card-code-fld{
	width:70%;
	display: inline-block;
	box-shadow: none !important;
	background-color: transparent !important;
	border: 1px solid #0000001f !important;
	vertical-align: middle;
	height: 49px;
}

.afgc-gift-card-button{
	display: inline-block;
	vertical-align: middle;
	width: 27%;
	height: 49px;
}



/*=======================================*/

/*========== Account Page ==============*/

/*=====================================*/

.afgc-tabs{
	position: relative;
	box-sizing: border-box;
	padding: 0 15px;
	overflow: hidden;
}

.afgc-tabs-navs{
	list-style: none;
	padding: 0!important;
	margin: 0!important;
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	margin-bottom: 25px;
	border-bottom: 1px solid #2271b154;
	height: 39px;
}
.afgc-tabs-navs li{
	list-style: none!important;
}

.afgc-tabs-navs li.active a,
.afgc-tabs-navs li a:active,
.afgc-tabs-navs li a:hover,
.afgc-tabs-navs li a:focus{
	padding: 10px 15px;
	font-size: 14px;
	line-height: 24px;
	text-decoration: none !important;
	background-color:#2271b1;
	color:white;
	margin-right: 10px;
	border:1px solid #2271b1;
	outline: 0 !important;
}

.afgc-tabs-navs li a{
	padding: 5px 15px;
	font-size: 14px;
	line-height: 24px;
	text-decoration: none !important;
	background-color: white;
	color:black;
	margin-right: 10px;
	border:1px solid transparent;
}

.afgc-tabs h4{
	font-size: 18px;
	line-height: 28px;
	font-weight: 600;
	position: relative;
}

.afgc-level-one-list-item{
	position: relative;
	border-bottom: 1px solid rgba(0,0,0,.05);
	padding: 30px 20px;
}

.afgc-level-one-list-item:nth-child(even){
	background: #f8f9ff;
}

.afgc-level-one-list-item:last-child{
	border-bottom: 0;
}

.afgc-level-one-list-item li{
	display: block;
	width: 100%;
	margin-bottom: 10px;
}

.afgc-level-one-list-item label{
	font-size: 16px;
	line-height: 26px;
	text-align: left;
	font-weight: 600;
}

.afgc-level-one-list-item span{
	text-align: right;
	float: right;
}

.afgc_items_cl .afgc-delete-field{
	display: none;
}

.afgc-shordcodes-gifts-cards li img{
	width: 100% !important;
}

.afgc-product-form .tab-content{
	position: relative;
}

.afgc-net-amount{
	position: absolute;
	right: 0;
	top: 0;
	font-size: 20px;
	line-height: 30px;
	color: #000;
}

.afgc-tabs h4 span{
	position: absolute;
	right: 0;
	top: 0;
	font-size: 14px;
	line-height: 24px;
	background: #448a85;
	width: 100%;
	color: #fff;
	max-width: 80px;
	text-align: center;
	padding: 3px;
}

.afgc-coupon-strip{
   text-align: right;
}

.afgc-coupon-strip li{
	display: inline-block;
	vertical-align: top;
	width: 32%;
	box-sizing: border-box;
	overflow: hidden;
	padding: 25px 20px 30px;
	-webkit-transition: 0.5s;
	-o-transition: 0.5s;
	-moz-transition: 0.5s;
	transition: 0.5s;
	margin-right: 5px;
	border-radius: 5px;
	background-color: #fff;
	box-shadow: 3px 0 12px 0 rgb(154 168 255 / 19%);
	border-top: 6px solid #2271b1;
	margin-bottom: 25px;
	font-size: 14px;
	margin-top:10px;
	line-height: 24px;
	text-align: left;
}

.afgc-coupon-strip li h4{
	font-size: 15px;
	line-height: 25px;
	font-weight: 700;
	margin: 0 0 10px;
	position: relative;
}

.afgc-coupon-strip li h4 img{
	position: absolute;
	right: 0;
	top: 0;
	width: 40px;
	opacity: 0.2;
	height: 40px;
}

.afgc-download-col img {
	width: 25px;
	height: 25px;
	display: block;
}
body.afgc-popup-active{
	overflow: hidden;
}

.afgc-gift-type-wrap .select2-selection.select2-selection--single,
.afgc-gift-type-select{
	height: 35px;
	padding: 0 10px!important;
}
.afgc-gift-type-select{
	border-radius: 3px;
	background-color: #fff;
	font-size: 14px;
	line-height: 24px!important;
	width: 100%;
	padding: 0!important;
	padding-left: 5px!important;
	max-width: 412px;
}
#afgc_gift_products, .afgc-gift-type-wrap .select2-container{
	width: 100%;
	max-width: 412px;
	height: 35px;
	padding: 0!important;
}
#select2-afgc_gift_products-container{
	font-size: 14px;
    line-height: 33px;
    padding: 0!important;
}
.afgc-product-voucher-summary {
	margin: 18px 0;
	padding: 16px;
	border: 1px solid #d6ddd9;
	border-radius: 6px;
	background: #fff;
}
.afgc-product-voucher-summary[hidden] { display: none !important; }
.afgc-product-voucher-summary > strong,
.afgc-product-voucher-summary > a,
.afgc-product-voucher-summary > span,
.afgc-product-voucher-summary > small { display: block; }
.afgc-product-voucher-summary > a { margin: 5px 0 12px; font-size: 1.1em; }
.afgc-product-voucher-summary .afgc-product-voucher-value { font-size: 1.4em; }
.afgc-product-voucher-summary small,
.afgc-voucher-note { margin-top: 10px; line-height: 1.5; }
.afgc-gift-type-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 33px;
}
.afgc-gift-type-wrap .select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ababab;
    background: #fff;
    box-shadow: none;
}



/* Gift product wrap */
.afg-product-detail-wrap {
       border: 1px solid #d0e3ff;
    background-color: #f7faff;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    max-width: 500px;
    display: flex;
    justify-content: space-between;
}
.afg-product-information {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}
.afg-product-thumbnail img {
    width: 60px;
    object-fit: cover;
    border-radius: 4px;
    background: #fff;
}
.afg-product-content h6 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #222;
}
.afg-product-content h6 a{
	color: #000;
	font-weight: 600;
}
.afg-product-content .selected-variation {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 3px;
}

.afg-product-content .price {
    font-size: 14px!important;
    line-height: 24px;
    color: #111;
    margin: 0;
}
.afg-change a,
.afg-product-information > span {
    font-size: 13px;
    color: #0073e6;
    font-weight: 500;
    text-decoration: none;
    margin-left: 10px;
    white-space: nowrap;
}

.afg-change a:hover {
    text-decoration: underline;
}

	.afgc_preview_popup {
	display: none; /* Hidden by default */
	position: fixed;
	top: 0;
	overflow-y: auto;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 9999;
}

.afgc_popup_content {
		position: relative;
	background-color: #fff;
	padding: 40px;
	width: 100%;
	color: #000;
	max-width: 666px;
	margin: 50px auto;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.coupon-code-preiew button{
		font-size: 14px;
	line-height: 24px;
	background: none;
	padding: .6180469716em 1.41575em;
	border: 1px solid lightgray;
}
.afgc_close_popup {
	text-align: center;
	position: absolute;
	top: -9px;
	right: -8px;
	width: 25px;
	font-size: 22px;
	line-height: 24px;
	color: #000;
	font-weight: 700;
	cursor: pointer;
	background: red;
	color: #fff;
	border-radius: 50%;
	height: 25px;
}
.afd-preview-product-name-wrap span,
.afd-preview-expire-data-wrap span{
	margin-left: 8px;
}
.coupon-code-preiew{
		margin: 16px 0 20px;
}
.afgc-pdf-band p, .afd-preview-product-name-wrap, .afd-preview-expire-data-wrap{
		margin-bottom: 5px;
	font-size: 15px;
	line-height: 25px;
}
.afgc_preview_container h3 {
	text-align: center;
	font-size: 16px;
	padding-top: 0;
	border-top: none !important;
	line-height: 26px;
	font-weight: 500;
}
.afgc_preview_container{
	text-align: center;
}
.afgc-disclaimer-message p{
	margin: 0;
	color: #000;
	font-size: 14px;
	line-height: 24px;
}
.afgc_preview_images {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}
.afgc-pdf-band img{
	margin: 0 auto 6px;
}
.afgc-pdf-band h2{
		font-size: 23px;
	line-height: 33px;
	font-weight: 700;
	color: #000;
}

.afgc_selected_image img {
	width: 100%;
	height: auto;
}

.afgc_preview_details ul {
	list-style: none;
	padding: 0;
	margin-top: 20px;
}

.afgc_preview_details li {
	margin-bottom: 10px;
}

.afgc_preview_details li strong {
	font-weight: bold;
}

.afgc_preview_btn {
	border: none;
	cursor: pointer;
}
.afgc-pdf-band img{
		width: auto;
	max-width: 118px;
}

/* Native .cart hooks retain the existing field layout. */
.afgc-product-form form.gift_card_cart { display:block; }
.afgc-product-form .afgc-form-notice:empty { display:none; }
.afgc-product-form .afgc-form-notice { margin:12px 0; }
.afgc-product-form .afgc-main-form-preview-container { display:block; }
.afgc-product-form .afgc-frnt-input-fld::placeholder { font-size:inherit; }
.afgc-product-form .afgc-recipient-remove { background:transparent; border:0; color:inherit; }
.afgc-product-form .afgc-tax-tabs-content .tab-content[hidden] { display:none; }
.afgc-product-form .afgc-gift-type-wrap .select2-container { max-width:100%; }
.afgc-product-form .afgc-preview-image { max-width:100%; height:auto; }
/* Retain the gift-product presentation without hiding ordinary product content. */
.product-type-gift_card:has(.afgc-product-form) > .summary > .product_meta,
.product-type-gift_card:has(.afgc-product-form) > .summary > .woocommerce-product-details__short-description,
.product-type-gift_card:has(.afgc-product-form) > .woocommerce-product-gallery .flex-control-thumbs { display:none; }

.woocommerce form.cart a.afgc-gift-btn { box-sizing:border-box; display:inline-flex; min-block-size:0; align-items:center; justify-content:center; margin-inline-start:.5em; vertical-align:middle; text-decoration:none; }

/* Dialogs enter the browser's top layer without changing the owning form's DOM. */
dialog.afgc_preview_popup { border:0; margin:0; padding:20px; width:100%; height:100%; max-width:none; max-height:none; box-sizing:border-box; background:transparent; }
dialog.afgc_preview_popup[open] { display:block; }
dialog.afgc-choose-image-wrapper::backdrop, dialog.afgc_preview_popup::backdrop { background:rgb(0 0 0 / 60%); }
dialog.afgc-choose-image-wrapper .tab-content[hidden] { display:none; }
.afgc-product-form .afgc-section-label-custom-btn { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.afgc-product-form .afgc-section-label-custom-btn > h5 { margin:0; flex:1 1 auto; }
.afgc-product-form .afgc_custom-image_allow_main { position:relative; margin-inline-start:auto; }
.afgc-product-form .afgc-upload-img { position:relative; inset:auto; width:auto; max-width:none; z-index:auto; text-align:start; overflow:visible; }
.afgc-product-form .afgc-upload-img label { max-width:none; overflow-wrap:anywhere; border:1px solid currentColor; }
.afgc-product-form .afgc-upload-img-btn { position:absolute; inset:0; width:100%; height:100%; cursor:pointer; }
/* Let the associated label activate the picker while the native input remains keyboard focusable. */
.afgc-product-form .afgc-upload-img .afgc-upload-input {
	inset:auto;
	inline-size:1px;
	block-size:1px;
	min-inline-size:0;
	min-block-size:0;
	margin:0;
	padding:0;
	overflow:hidden;
	clip-path:inset(50%);
}
.afgc-product-form .afgc-upload-img:focus-within { outline:2px solid currentColor; outline-offset:2px; }

.afgc-product-form .afgc-gallery-strip {
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:8px;
}

.afgc-product-form .afgc-gallery-strip > li { width:60px; height:60px; }
.afgc-product-form .afgc-gallery-strip .afgc-view > a {
	display:grid;
	place-items:center;
	width:100%;
	height:100%;
	padding:0;
	text-align:center;
}
.afgc-product-form .afgc-gallery-strip:has(> .afgc-upload-preview[hidden]:only-child) { display:none; }
.afgc-product-form .afgc-upload-preview { position:relative; }
.afgc-product-form .afgc-upload-preview[hidden] { display:none; }
.afgc-product-form .afgc-upload-preview .afgc-upload-artwork {
	display:block;
	width:100%;
	height:100%;
	object-fit:contain;
	border:1px solid #ddd;
	cursor:default;
}

/* Icon controls sit inside cart forms, where themes often apply full-size purchase button rules. */
.afgc-product-form form.cart.gift_card_cart button.afgc-icon-button {
	box-sizing:border-box;
	display:inline-grid;
	place-items:center;
	flex:none;
	inline-size:24px !important;
	min-inline-size:24px !important;
	max-inline-size:24px !important;
	block-size:24px !important;
	min-block-size:24px !important;
	max-block-size:24px !important;
	margin:0 !important;
	padding:0 !important;
	border:1px solid currentColor;
	border-radius:50%;
	background:none !important;
	color:inherit !important;
	box-shadow:none;
	font:inherit;
	font-size:13px;
	line-height:1;
	text-align:center;
	cursor:pointer;
}

.afgc-product-form form.cart.gift_card_cart button.afgc-remove-upload {
	position:absolute;
	inset-block-start:2px;
	inset-inline-end:2px;
	border:1px solid #fff;
	background:#202630 !important;
	color:#fff !important;
	font-size:16px;
}

.afgc-product-form form.cart.gift_card_cart button.afgc-icon-button:focus-visible {
	outline:2px solid currentColor;
	outline-offset:2px;
}
.afgc-product-form .afgc-form-group { display:grid; grid-template-columns:minmax(0, 3fr) minmax(0, 7fr); gap:.65em; }
.afgc-product-form .afgc-form-group :is(.afgc-frnt-input-fld, .afgc-frnt-txtarea-fld) { width:100% !important; min-width:0; box-sizing:border-box; }
.afgc-product-form .afgc-required-mark[hidden], .afgc-product-form .afgc-preselected-picker[hidden], .afgc-product-form .afgc-preselected-voucher[hidden] { display:none !important; }
.afgc-product-form .afg-product-detail-wrap.afgc-preselected-voucher { max-width:none; }
.afgc-product-form .afgc-preselected-picker { margin-block-start:.75em; }
.afgc-product-form .afgc-preselected-picker label { display:block; }
.afgc-product-form .afg-change .afg-change-link { margin:0; padding:0; background:transparent; border:0; color:inherit; font:inherit; text-decoration:underline; white-space:nowrap; }
.afgc-product-form .afgc_gift_card_opt { flex-wrap:wrap; row-gap:.4em; }
.afgc-delivery-help { position:relative; display:inline-flex; align-items:center; }
.afgc-product-form form.cart.gift_card_cart .afgc-delivery-help button.afgc-icon-button {
	border:0 !important;
	box-shadow:none !important;
	outline:none !important;
}
.afgc-delivery-help button:focus-visible > span {
	border-width:2px;
	font-weight:700;
}
.afgc-delivery-help button > span {
	display:grid;
	place-items:center;
	box-sizing:border-box;
	inline-size:16px;
	block-size:16px;
	border:1px solid currentColor;
	border-radius:50%;
	font-size:11px;
	line-height:1;
}
.afgc-delivery-help .afgc-delivery-tooltip {
	display:none;
	position:absolute;
	z-index:5;
	inset-block-start:100%;
	inset-inline-start:0;
	width:min(15rem, 55vw);
	padding:.6em .8em;
	border-radius:.45em;
	background:#202630;
	color:#fff;
	font-size:.875em;
	line-height:1.4;
	white-space:normal;
	overflow-wrap:anywhere;
	box-shadow:0 4px 16px rgb(0 0 0 / 18%);
}
.afgc_gift_card_opt li:last-child .afgc-delivery-tooltip { inset-inline-start:auto; inset-inline-end:0; }
.afgc-delivery-help:not([data-dismissed]):is(:hover, [data-open]) .afgc-delivery-tooltip,
.afgc-delivery-help:not([data-dismissed]) button:focus-visible + .afgc-delivery-tooltip { display:block; }
@media (max-width:480px) {
	.afgc-product-form .afgc-form-group { grid-template-columns:minmax(0,1fr); gap:.25em; }
	.afgc_gift_card_opt li:last-child .afgc-delivery-tooltip { inset-inline-start:0; inset-inline-end:auto; }
	.woocommerce form.cart a.afgc-gift-btn { margin-block:.3em; }
}

.afgc-price-superseded,
.afgc-selected-header-price[hidden],
.afgc-product-form .afgc-purchase-summary[hidden],
.afgc-has-price-summary .afgc-voucher-value,
.afgc-has-price-summary .afgc-product-voucher-value,
.afgc-has-price-summary .afgc-product-voucher-value-label { display:none !important; }
.afgc-product-form .afgc-purchase-summary {
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(min(100%,13.5rem),1fr));
	grid-auto-rows:1fr;
	container:afgc-purchase-summary / inline-size;
	margin-block:.6rem .8rem;
	border:1px solid currentColor;
	border-color:color-mix(in srgb,currentColor 12%,transparent);
	border-radius:.65rem;
	background:color-mix(in srgb,currentColor 4%,transparent);
	font-size:min(1em,1rem);
	line-height:1.3;
}
.afgc-purchase-summary .afgc-price-buyer,
.afgc-purchase-summary .afgc-price-recipient {
	display:grid;
	align-items:center;
	column-gap:.4em;
	min-inline-size:0;
	padding:.55em .7em;
}
.afgc-purchase-summary .afgc-price-buyer {
	grid-template-columns:fit-content(40%) minmax(0,1fr) fit-content(40%);
	border-block-end:1px solid currentColor;
	border-color:color-mix(in srgb,currentColor 12%,transparent);
}
.afgc-purchase-summary .afgc-price-recipient {
	grid-template-columns:minmax(0,1fr) fit-content(40%);
}
.afgc-purchase-summary .afgc-price-label {
	font-size:.875em;
	overflow-wrap:anywhere;
}
.afgc-purchase-summary .afgc-price-amount {
	grid-column:-2;
	grid-row:1;
	justify-self:end;
	font-size:1em;
	font-variant-numeric:tabular-nums;
	text-align:end;
	overflow-wrap:anywhere;
}
.afgc-purchase-summary .afgc-price-saving {
	grid-column:2;
	grid-row:1;
	justify-self:start;
	padding:.16em .45em;
	border-radius:.35em;
	background:#e7f4ec;
	color:#166039;
	font-size:.75em;
	font-weight:600;
	overflow-wrap:anywhere;
}
@container afgc-purchase-summary (min-width:27rem) {
	.afgc-purchase-summary .afgc-price-buyer,
	.afgc-purchase-summary .afgc-price-recipient {
		display:flex;
		flex-wrap:wrap;
		align-items:baseline;
		row-gap:.25em;
	}
	.afgc-purchase-summary .afgc-price-buyer { border-block-end:0; }
	.afgc-purchase-summary .afgc-price-recipient { justify-content:flex-end; }
}

.afgc-account-tabs { display:flex; flex-wrap:wrap; gap:0 1.25em; margin-block-end:1.25em; border-block-end:1px solid currentColor; }
.afgc-account-tabs a { padding-block:.45em; }
.afgc-account-tabs [aria-current="page"] { font-weight:700; text-decoration-thickness:.12em; text-underline-offset:.25em; }
.afgc-account-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,9em),1fr)); gap:.75em; margin:0 0 1.25em; }
.afgc-account-metric { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.2em .5em; align-items:start; border:1px solid currentColor; border-color:color-mix(in srgb,currentColor 24%,transparent); border-radius:.45em; padding:.75em; }
.afgc-account-metric dt { grid-column:1; }
.afgc-account-metric dd { grid-column:1; margin:0; font-size:1.25em; font-weight:700; overflow-wrap:anywhere; }
.afgc-account-metric small { grid-column:1; }
.afgc-account-metric .afgc-account-icon { grid-column:2; grid-row:1 / span 2; opacity:.75; }
.afgc-account-table { container-type:inline-size; }
.afgc-account .afgc-account-cards { width:100%; table-layout:auto; font-size:.875rem; line-height:1.45; }
.afgc-account-card-name { display:block; }
.afgc-account-cards .afgc-account-money, .afgc-account-cards .afgc-account-pdf { width:1%; white-space:nowrap; }
.afgc-account-cards .afgc-account-download { display:inline-flex; align-items:center; justify-content:center; inline-size:44px; block-size:44px; padding:0; color:inherit; box-sizing:border-box; }
.afgc-account-cards .afgc-account-download:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.afgc-account .afgc-account-icon { width:1.375rem; height:1.375rem; display:inline-block; flex:none; }
.afgc-account-cards th, .afgc-account-cards td { padding:.55em .65em; overflow-wrap:normal; vertical-align:middle; }
.afgc-account-card-link, .afgc-account-activity a { overflow-wrap:anywhere; }
.afgc-account-detail .afgc-account-back { margin:0 0 .65em; font-size:.875rem; }
.afgc-account-detail-header { margin-block-end:1em; }
.afgc-account-detail-title { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem .65rem; }
.afgc-account-detail-title h2 { margin:0; font-size:clamp(1.25rem,1.08rem + .85vw,1.7rem); line-height:1.25; font-weight:700; overflow-wrap:anywhere; }
.afgc-account-detail-status { padding:.2em .65em; border:1px solid currentColor; border-color:color-mix(in srgb,currentColor 30%,transparent); border-radius:999px; background:color-mix(in srgb,currentColor 7%,transparent); font-size:.75rem; font-weight:600; }
.afgc-account-detail-header .afgc-account-detail-meta { margin:.35em 0 0; font-size:.875rem; }
.afgc-account-code { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.55em 1em; margin-block:0 1em; padding:.65rem .8rem; border:1px solid currentColor; border-color:color-mix(in srgb,currentColor 25%,transparent); border-radius:.5em; background:color-mix(in srgb,currentColor 4%,transparent); }
.afgc-account-code-value { flex:1 1 12em; min-width:0; }
.afgc-account-code label { display:block; font-size:.8125rem; font-weight:600; }
.afgc-account-code-value input#afgc-account-code { display:block; width:100%; box-sizing:border-box; padding:.18em 0; margin:0; border:0; background:transparent; box-shadow:none; color:inherit; font:600 .9375rem/1.45 monospace; }
.afgc-account-code-value input:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.afgc-account-code-actions { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); align-items:stretch; justify-items:stretch; inline-size:max-content; max-inline-size:100%; gap:.5em; }
.afgc-account-detail .afgc-account-copy, .afgc-account-detail .afgc-account-download { display:inline-flex; align-items:center; justify-content:center; gap:.45em; min-height:44px; padding:.3em .6em; cursor:pointer; border:1px solid currentColor; border-color:color-mix(in srgb,currentColor 35%,transparent); background:transparent; color:inherit; border-radius:.35em; font-family:inherit; font-size:.8125rem; line-height:1.3; font-weight:600; text-decoration:none; }
.afgc-account-detail .afgc-account-code-actions > :is(.afgc-account-copy, .afgc-account-download) { box-sizing:border-box; margin:0; inline-size:100%; min-inline-size:0; block-size:auto; align-self:stretch; text-align:center; overflow-wrap:anywhere; }
.afgc-account-detail .afgc-account-copy:hover, .afgc-account-detail .afgc-account-download:hover { background:color-mix(in srgb,currentColor 8%,transparent); }
.afgc-account-detail .afgc-account-copy:focus-visible, .afgc-account-detail .afgc-account-download:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.afgc-account :is(.afgc-account-copy, .afgc-account-download) > .afgc-account-icon { display:block; flex:none; width:16px; height:16px; margin:0; }
.afgc-account-code-actions .afgc-account-copy[hidden] { display:none; }
.afgc-account-copy-status { flex-basis:100%; font-size:.8125rem; }
.afgc-account-copy-status:empty { position:absolute; }
.afgc-account-verification { padding:1.25rem; border:1px solid currentColor; border-color:color-mix(in srgb,currentColor 25%,transparent); border-radius:.5rem; }
.afgc-account-verification h3 { margin-top:0; }
.afgc-account-verification form { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; margin:0; }
.afgc-account-verification .afgc-resend-countdown { font-variant-numeric:tabular-nums; }
.afgc-account-verification [hidden] { display:none; }
.afgc-account-detail .afgc-account-summary { grid-template-columns:repeat(auto-fit,minmax(min(100%,7.25rem),1fr)); gap:.55rem; }
.afgc-account-detail .afgc-account-metric { grid-template-rows:1fr auto; padding:.55rem .65rem; font-size:.875rem; }
.afgc-account-detail .afgc-account-metric .afgc-account-icon { width:1rem; height:1rem; }
.afgc-account-detail .afgc-account-metric dd { font-size:1.25rem; }

@container (width < 575px) {
	.afgc-account .afgc-account-cards,
	.afgc-account .afgc-account-cards tbody { display:block; }
	.afgc-account .afgc-account-cards thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
	.afgc-account .afgc-account-cards tbody tr { display:block; padding:.45em .65em; border-block-end:1px solid currentColor; border-color:color-mix(in srgb,currentColor 25%,transparent); }
	.afgc-account .afgc-account-cards tbody tr:last-child { border-block-end:0; }
	.afgc-account .afgc-account-cards tbody td { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:.6em; align-items:start; width:auto; white-space:normal; text-align:start; border:0; padding:.25em 0; }
	.afgc-account .afgc-account-cards tbody td::before { content:attr(data-title); font-weight:600; }
	.afgc-account .afgc-account-cards .afgc-account-download { justify-self:start; }
}

/* Classic cart uses the same definition list for every detail on one line item. */
.woocommerce-cart-form dl.variation:has(> dd .afgc-cart-item-value) {
	display:grid;
	grid-template-columns:fit-content(45%) minmax(0,1fr);
	gap:.25em .6em;
}
.woocommerce-cart-form dl.variation > dt:has(+ dd .afgc-cart-item-value),
.woocommerce-cart-form dl.variation > dd:has(.afgc-cart-item-value) {
	float:none;
	clear:none;
	display:block;
	margin:0;
	padding:0;
	font-size:.875rem;
	line-height:1.5;
	overflow-wrap:anywhere;
}
.woocommerce-cart-form dl.variation > dt:has(+ dd .afgc-cart-item-value) { font-weight:600; }
.woocommerce-cart-form dl.variation > dd:has(.afgc-cart-item-value) > p { margin:0; }

.wc-block-cart .wc-block-components-product-details > .afgc-cart-item-detail {
	display:grid;
	grid-template-columns:fit-content(45%) minmax(0,1fr);
	column-gap:.6em;
	margin-block:.25em;
	font-size:.875rem;
	line-height:1.5;
	overflow-wrap:anywhere;
}
.wc-block-cart .afgc-cart-item-detail > .wc-block-components-product-details__name { font-weight:600; }
.wc-block-cart .wc-block-components-product-details > .afgc-cart-item-detail > span[aria-hidden="true"],
.wc-block-cart .wc-block-components-product-details > span:has(+ .afgc-cart-item-detail) > span[aria-hidden="true"] { display:none; }

@media (max-width: 600px) {
	.woocommerce-cart-form dl.variation:has(> dd .afgc-cart-item-value),
	.wc-block-cart .wc-block-components-product-details > .afgc-cart-item-detail { grid-template-columns:minmax(0,1fr); }
	.woocommerce-cart-form dl.variation > dd:has(.afgc-cart-item-value) { margin-block-end:.35em; }
}
