/* ============================================================================
   PAGE FAMILY: photo-to-painting funnel (B8) — STRUCTURE tier
   Migrated 2026-07-05. Scope: custom-repro-page / photo-restyle-page /
   photo-restyle-wait-page body classes (13 personas + restyle pages).
   PHASE-A FIDELITY: verbatim relocation. Harness-diff before editing.
   ============================================================================ */
body.photo-restyle-page .image-upload-container.photo-restyle-upload {
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

body.photo-restyle-page #add-image {
    position: relative;
    overflow: hidden;
}

body.photo-restyle-page #upload-spinner {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* brand cream overlay — overridden per site */
    background: var(--pr-spinner-overlay, rgba(247, 241, 224, 0.9));
}

body.photo-restyle-page #uploaded-image-preview-container {
    display: none;                 /* shown by JS once a file is chosen */
    width: 50%;
    flex-shrink: 0;
    position: relative;            /* offset parent for the remove button */
}

body.photo-restyle-page #uploaded-image-preview {
    display: block;
    width: 100%;
}

body.photo-restyle-page #remove-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    color: #fff;
    /* generic "danger" — overridable per site via --pr-remove-bg */
    background: var(--pr-remove-bg, #dc3545);
}

body.photo-restyle-page #remove-image-btn:hover {
    background: var(--pr-remove-bg-hover, #c82333);
}

body.photo-restyle-page #image-input {
    display: none;
}

body.photo-restyle-page #upload-message {
    margin-top: 10px;
    display: none;                 /* shown by JS on error */
}

body.photo-restyle-page #image_edit_requests {
    min-height: 120px;
}

body.photo-restyle-page .edit-request-examples-intro {
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 0;
    color: var(--pr-muted-text, #6c757d);
}

body.photo-restyle-page .style-card,
body.photo-restyle-page .style-card * {
    cursor: pointer;
}

body.photo-restyle-wait-page { opacity: 0.8; }

body.photo-restyle-wait-page .photo-restyle-wait-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

body.photo-restyle-wait-page .photo-restyle-wait-heading {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

body.photo-restyle-wait-page .photo-restyle-wait-subtext {
    text-align: center;
    font-size: 16px;
    color: var(--ptr-wait-muted, #666);
}

body.photo-restyle-wait-page textarea.form-control[readonly] {
    min-height: 120px;
    background-color: var(--ptr-wait-surface, #f8f9fa);
}

body.photo-restyle-wait-page #loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.10);
    z-index: 9999;
}

body.photo-restyle-wait-page .photo-restyle-wait-spinner {
    width: 5vw;
    height: auto;
}

/* ============================================================================
   FUNNEL LEGACY-CARD BASE (2026-07-06): the photo funnel deliberately keeps
   the legacy card markup (search_card family), but A1z deleted its base
   rules from the globals assuming the funnel skins carried everything -
   the photo-restyle-page scope did NOT. This is a VERBATIM copy of the
   HEAD legacy card base (original order); this component loads only on
   the funnel pages, so it cannot leak elsewhere.
   ========================================================================= */

.search_card {
	border-bottom: 1px solid #DCD3BF;
	border-right: 1px solid #DCD3BF;
}

.searchCard_sec .col-md-4:nth-child(-n+3) .search_card {
	border-top: 1px solid #DCD3BF;
}

.search_card {
	padding: 25px 15px;
	position: relative;
}

.search_img {
	width: 250px;
	height: 285px;
	margin: auto;
	overflow: hidden;
	position: relative;
}

.search_img .search_card_model_badge {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
  background: #3E342AB2;
  padding: 8px;
  color: #EDE9DE;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 14px;
  font-weight: 500;
  z-index: 3;
  max-width: calc(100% - 40px);
  pointer-events: none;
}

.searchCard_body {
	width: 250px;
	margin: auto;
	margin-top: 30px;
	height: 65px;
}

.search_img img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
    margin: auto;
    text-align: center;
    object-position: top center;
}

.museums-100 .search_img img {
    width: 100%;
    height: 125px;
    max-height: 150px;
    object-fit: cover;
    display: block;
    margin: auto;
    text-align: center;
    object-position: top center;
}

.art-artist {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.art-artist h2 {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 13px;
	line-height: 20px;
	text-align: center;
	text-transform: uppercase;
	color: #B23333;
}

.art-artist h2 a {
	color: #B23333;
	text-decoration: none;
}

.art-artist span {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 15px;
	line-height: 20px;
	letter-spacing: 0%;
	text-align: center;
	opacity: 0.5;
	color: #3E342A;
}

.art-artist span a {
	color: #3E342A;
	text-decoration: none;
}

.art-title {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 16px;
	line-height: 20px;
	letter-spacing: 0%;
	color: #3E342A;
}

.art-title a {
	color: #3E342A;
	text-decoration: none;
}

.hover_visible {
	width: 250px;
	margin: auto;
	margin-top: 15px;
	/* height: 86px; */
	position: absolute;
	background: #E8E2CD;
	width: 100%;
	left: 0;
	z-index: 99999;
	padding: 0px 18px 25px;
	border-bottom: 1px solid #DCD3BF;
	transition: all 2s ease;
}

.hover_visible p {
	font-family: var(--font-body);
	font-weight: 500;
	font-style: italic;
	font-size: 15px;
	line-height: 24px;
	color: #3E342A;
	margin-bottom: 40px;
	opacity: 0.5;
}

.hover_visible p a {
	color: #3E342A;
    text-decoration: none;
}

.addToCart {
	background: #875D2A;
	width: 200px;
	display: block;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 15px;
	line-height: 20px;
	text-align: center;
	text-transform: uppercase;
	color: #EDE9DE;
	text-decoration: none;
	padding: 10px 35px;
}

.card_bottom {
	display: flex;
	gap: 10px;
	align-items: center;
}

.fav_group {
	border: 1px solid #875D2A;
	padding: 7px 10px;
}

.fav_group.active {
	background: #E4DBBB;
}

.hover_visible {
	display: none;
}

.search_card:hover {
	background: #E8E2CD;
/* 	cursor: pointer; */
	/* border-left: 1px solid #DCD3BF; */
}

.search_card:hover .hover_visible {
	display: block;
	transition: all 2s ease;
}

.card_content {
	width: 100%;
	max-width: 250px;
	margin: auto;
}

.custom_search .search_card {
    border: 0;
    border-bottom: 1px solid #DCD3BF;
}

.custom_search .search_card .searchCard_body {
    height: 140px;
}

.custom_search .search_card .art-artist h2 {
    text-align: left;
    margin-bottom: 10px;
    margin-top: 10px;
}

.search_sec.catalog-list-page .custom_search .search_card .art-artist h2 {
    margin-top: 0;
    margin-bottom: 0;
}

.custom_search .search_card .art-artist h2 a {
    max-width: 25ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    display: inline-block;
    font-size: 14px;
}

.search_sec.catalog-list-page .custom_search .search_card .art-artist h2,
.search_sec.catalog-list-page .custom_search .search_card .art-artist h2 a,
.search_sec.catalog-list-page .custom_search .search_card .art-artist span,
.search_sec.catalog-list-page .custom_search .search_card .art-artist span a {
    font-size: 14px;
    line-height: 1.35;
}

.custom_search .search_card .art-artist span {
    text-align: right;
    font-size: 16px;
}

.custom_search .art-title {
    font-size: 16px;
    line-height: 24px;
}

.custom_search .search_card .hover_visible p {
    font-style: normal;
    font-size: clamp(14px ,0.833vw ,16px );
    line-height: 24px;
    font-weight: 400;
}

.custom_search .search_card .art-title a {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom_search .cartbtn_group {
    width: 100%;
}

.custom_search .cartbtn_group a.addToCart {
    font-size: 16px;
    line-height: 20px;
	width:100%;
}

@media (min-width: 767px) and (max-width: 1200px) {
  .custom_search .search_card .searchCard_body {
    height: 120px;
}

  .custom_search .search_card .art-artist h2 a {
    font-size: 10px;
/*     max-width: 12ch; */
}

  .custom_search .search_card .art-artist span {
    font-size: 10px;
}

  .custom_search .art-title {
    font-size: 15px;
    line-height: 22px;
}

}
.custom_search .search_card.search_card {
    border-bottom: 0;
}

.custom_search .search_card .search_img,
.custom_search .search_card .searchCard_body {
    width: 100%;
    height: auto;
}

.custom_search .search_card .hover_visible {
    width: 100%;
}

.custom_search .search_card .card_content {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.artwork-list-page .fav_group:not(.artwork-catalog-card__fav-group) {
    border: none;
    background: transparent;
}

.artwork-list-page .fav_group:not(.artwork-catalog-card__fav-group).active {
    background: transparent;
}

.artwork-list-page .custom_search .search_card .searchCard_body {
    margin-top: 8px;
    height: auto;
}

@media (max-width: 768px) {
  .hover_visible p {
	
	margin-bottom: 24;
	opacity: 0.5;
}

}
.custom_search .search_card .search_img,
.custom_search .search_card .searchCard_body {
    width: 100%;
    height: auto;
}

.search_card {
    position: relative; 
}

.same-space-card .search_img {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.custom_search .search_img {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.custom_search .search_img > a {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.custom_search .search_img img {
    width: calc(100% - 20px);
    height: auto;
    object-fit: contain;
    object-position: top center;
    margin: 10px;
}

.custom_search .search_card .searchCard_body {
    margin-top: 12px;
}

.article-list-page .custom_search .search_card .article-list-card__body {
    margin-top: 0;
}

.card_bottom a {
    position: relative; 
    z-index: 2; 
}

.custom_search .search_card {
    cursor: default;
}

.search_sec.catalog-list-page .custom_search .search_card .hover_visible p.catalog-card-meta-description,
.search_sec.artwork-list-page .custom_search .search_card .hover_visible p.catalog-card-meta-description,
.search_sec.catalog-categories-page .custom_search .search_card .hover_visible p.catalog-card-meta-description,
.search_sec.artwork-categories-page .custom_search .search_card .hover_visible p.catalog-card-meta-description,
.search_sec.article-list-page .article-list-grid .article-list-card__content p.catalog-card-meta-description,
.top100-listing .search_card.top100-listing__card .hover_visible p,
.top100-listing .search_card.top100-listing__card .hover_visible p.catalog-card-meta-description,
.search_sec.catalog-groupby-page .showMainResulsImage p.catalog-card-meta-description,
.search_sec.article-groupby-page .showMainResulsImage p.catalog-card-meta-description,
.custom_search .artwork-catalog-card .artwork-catalog-card__content p.catalog-card-meta-description {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: unset;
    max-height: none;
}

.custom_search .search_card.artwork-catalog-card {
    padding: 0;
}

.custom_search .search_card.artwork-catalog-card .searchCard_body,
.custom_search .search_card.artwork-catalog-card .artwork-catalog-card__body {
    width: 100%;
    max-width: none;
    margin-top: 0;   /* cancel legacy catalog-list / artwork-list body gap */
    margin-left: 0;
    margin-right: 0;
    border-top: none;  /* media __media border-bottom is the sole divider */
}

.custom_search .search_card.artwork-catalog-card .hover_visible.artwork-catalog-card__hover .card_content,
.custom_search .search_card.artwork-catalog-card .hover_visible.artwork-catalog-card__hover .artwork-catalog-card__content {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.custom_search .search_card.artwork-catalog-card .hover_visible.artwork-catalog-card__hover .card_content,
.custom_search .search_card.artwork-catalog-card .hover_visible.artwork-catalog-card__hover .artwork-catalog-card__content,
.custom_search .search_card.artwork-catalog-card .hover_visible.artwork-catalog-card__hover .artwork-catalog-card__footer {
    padding-left: 0;
    padding-right: 0;
}

.custom_search .search_card.artwork-catalog-card .hover_visible.artwork-catalog-card__hover {
    margin-top: 0;
    position: absolute;
    top: 100%;
    box-sizing: border-box;
    z-index: 1;
    /* left / width / side borders: per-brand in site-*-V2.0.css (frame bleed + corners) */
}

.custom_search .search_card.artwork-catalog-card:hover {
    border-bottom-color: transparent !important;
}

.search_sec.catalog-list-page .custom_search .search_card.artwork-catalog-card:hover,
.search_sec.artwork-list-page .custom_search .search_card.artwork-catalog-card:hover {
    z-index: 20;
}

.custom_search .artwork-catalog-card .fav_group.active .unfav_icon {
    display: none !important;
}

.custom_search .artwork-catalog-card .fav_group.active .fav_icon {
    display: block !important;
}

.custom_search .artwork-catalog-card .fav_group.active .artwork-catalog-card__fav-toggle {
    background: transparent !important;
}

.top100-listing .search_card.top100-listing__card {
    overflow: visible;
    position: relative;
    padding: 0;
    /* Reinstate full frame — global .custom_search .search_card.search_card zeros border-bottom */
    border: 1px solid var(--top100-card-border, #DCD3BF);
    border-bottom: 1px solid var(--top100-card-border, #DCD3BF);
}

.top100-listing .search_card.top100-listing__card:hover {
    z-index: 20;
    border-bottom-color: transparent !important;
}

.top100-listing .search_card.top100-listing__card .search_img {
    border-bottom: 1px solid var(--top100-card-border, #DCD3BF);
}

.top100-listing .search_card.top100-listing__card .searchCard_body {
    padding: 12px 12px 12px;
    margin-top: 0;
    position: relative;
}

.top100-listing .search_card.top100-listing__card .searchCard_body::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--top100-card-border, #DCD3BF);
    pointer-events: none;
}

.top100-listing .search_card.top100-listing__card:hover .searchCard_body::after {
    display: none;
}

.top100-listing .search_card.top100-listing__card .art-artist {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.top100-listing .search_card.top100-listing__card .art-artist h2 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    line-height: normal;
}

.top100-listing .search_card.top100-listing__card .hover_visible {
    position: absolute;
    top: 100%;
    left: -1px;
    width: calc(100% + 2px);
    margin: 0;
    padding: 12px 14px 16px;
    border: 1px solid #DCD3BF;
    border-top: 1px solid #DCD3BF;
    background: #E8E2CD;
    box-sizing: border-box;
    z-index: 1;
}

.custom_search .artwork-catalog-card .card_bottom.artwork-catalog-card__footer {
    align-items: stretch;
}

@media only screen and (min-width: 992px) and (max-width: 1500px) {
  .custom_search .search_card .hover_visible p {
 
    font-size: 14px;

}

  .hover_visible {
		padding: 0px 18px 30px;
	}

  .addToCart {
		width: 100%;
		font-size: 11px;
		line-height: 14px;
		padding: 10px 9px;
	}

}
@media only screen and (min-width: 992px) and (max-width: 1200px) {
  .art-artist span {
		font-size: 13px;
	}

  .art-title {
		font-size: 14px;
	}

  .searchCard_body {
		width: 100%;
	}

  .art-artist h2 {
		font-size: 11px;
	}

  .search_img {
		width: 100%;
	}

}
@media only screen and (max-width: 991px) {
  .card_content {
		width: 100%;
		max-width: 100%;
		min-width: 100%;
	}

  .hover_visible {
		padding: 0px 18px 30px;
	}

  .addToCart {
		width: 100%;
		font-size: 11px;
		line-height: 14px;
		padding: 10px 9px;
	}

  .searchCard_body {
		width: 100%;
	}

  .search_img {
		width: 100%;
	}

}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .addToCart {
		font-size: 10px;
		padding: 10px 6px;
	}

  .fav_group {
		padding: 4px 8px;
	}

  .art-title {
		font-family: var(--font-body);
		font-weight: 500;
		font-size: 12px;
		line-height: 16px;
		letter-spacing: 0%;
		color: #3E342A;
	}

  .art-artist h2 {
		font-size: 10px;
		line-height: 14px;
	}

  .art-artist span {
		font-size: 11px;
		line-height: 14px;
	}

  .search_img {
		height: 161px;
	}

}
@media only screen and (max-width: 1024px) {
  .custom_search .search_card .hover_visible p { }

}
@media only screen and (max-width: 767px) {
  .search_img a {
		width: 100%;
	}

}
@media screen and (min-width: 270px) and (max-width: 479px) {
  .art-title {
		font-size: 14px;
	}

}
