/* AvaGlama personal book bookmarks */
.ca-bookmark-control{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d9e4dd;border-radius:12px;background:#fffdf8;color:#174b43;font:inherit;font-size:12px;font-weight:800;line-height:1.3;text-decoration:none;padding:9px 12px;cursor:pointer;transition:background .18s,border-color .18s,color .18s,transform .18s;white-space:nowrap}
.ca-bookmark-control:hover{background:#eff6f0;border-color:#8eb9a7;color:#103a34}
.ca-bookmark-control:focus-visible{outline:3px solid rgba(54,116,94,.3);outline-offset:2px}
.ca-bookmark-control[disabled]{opacity:.65;cursor:wait}
.ca-bookmark-control.is-bookmarked{background:#174b43;border-color:#174b43;color:#fff}
.ca-bookmark-control.is-bookmarked:hover{background:#0f3c35;color:#fff}
.ca-bookmark-control i{font-size:14px;line-height:1}
.ca-bookmark-control-icon{position:absolute;z-index:8;top:12px;left:12px;width:39px;height:39px;padding:0;border-radius:50%;box-shadow:0 5px 17px rgba(23,55,45,.16);background:rgba(255,253,248,.96);backdrop-filter:blur(8px)}
.ca-bookmark-control-icon i{font-size:16px}
.cr-download-archive-card{position:relative}
.ca-product-actions .ca-bookmark-control-full{order:-1}
.ca-bookmark-account-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.ca-bookmark-account-card{display:grid;grid-template-columns:112px minmax(0,1fr);gap:15px;align-items:stretch;padding:14px;border:1px solid var(--acct-line,#e7dfd2);border-radius:18px;background:var(--acct-surface,#fffdf8);box-shadow:0 8px 24px rgba(42,61,49,.05);min-width:0;width:100%;box-sizing:border-box}
.ca-bookmark-account-cover{display:flex;align-items:center;justify-content:center;min-height:146px;height:100%;border-radius:12px;background:#f4eee4;overflow:hidden}
.ca-bookmark-account-cover img{display:block;width:100%;height:100%;max-height:160px;object-fit:cover}
.ca-bookmark-account-cover>span{display:grid;place-items:center;color:#2d6b58;font-size:25px}
.ca-bookmark-account-info{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:8px}
.ca-bookmark-account-info h3{margin:0;font-size:14px;line-height:1.8;color:var(--acct-primary,#174b43);overflow-wrap:anywhere}
.ca-bookmark-account-info h3 a{color:inherit;text-decoration:none}
.ca-bookmark-account-info h3 a:hover{color:#b08039}
.ca-bookmark-account-excerpt{margin:0;color:var(--acct-muted,#6e776f);font-size:12px;line-height:1.9;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;}
.ca-bookmark-account-price{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--acct-muted,#6e776f)}
.ca-bookmark-account-price del{opacity:.7}
.ca-bookmark-account-price strong{color:var(--acct-primary,#174b43);font-size:14px}
.ca-bookmark-account-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:auto;width:100%}
.ca-bookmark-buy-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px;border-radius:11px;background:var(--acct-primary,#174b43);color:#fff!important;text-decoration:none;font-size:11px;font-weight:800}
.ca-bookmark-buy-link:hover{background:#0d3831}
.ca-bookmark-account-actions .ca-bookmark-control{font-size:11px;padding:8px 10px}
.ca-bookmark-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:42px 18px;border:1px dashed var(--acct-line,#e7dfd2);border-radius:20px;background:var(--acct-surface,#fffdf8)}
.ca-bookmark-empty>span{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#edf5ef;color:#225b4c;font-size:22px}
.ca-bookmark-empty strong{color:var(--acct-primary,#174b43);font-size:15px}
.ca-bookmark-empty p{max-width:420px;margin:0;color:var(--acct-muted,#6e776f);font-size:12px;line-height:2}
.ca-bookmark-empty>a{display:inline-flex;align-items:center;gap:9px;padding:10px 14px;border-radius:12px;background:#174b43;color:#fff!important;text-decoration:none;font-size:12px;font-weight:800}
.ca-bookmark-toast{position:fixed;z-index:100000;bottom:24px;right:24px;max-width:min(400px,calc(100vw - 32px));padding:13px 16px;border:1px solid #d4e5d9;border-radius:14px;background:#fffdf8;color:#174b43;box-shadow:0 12px 40px rgba(25,50,40,.18);font-size:13px;font-weight:700;direction:rtl}
.ca-bookmark-toast.is-error{border-color:#e6c7bf;color:#8c332a}
@media(max-width:767px){.ca-bookmark-account-grid{grid-template-columns:minmax(0,1fr)}.ca-bookmark-account-card{grid-template-columns:82px minmax(0,1fr);padding:10px;gap:10px}.ca-bookmark-account-cover{min-height:120px;height:100%}.ca-bookmark-account-info h3{font-size:12px}.ca-bookmark-account-excerpt{font-size:11px;-webkit-line-clamp:3}.ca-bookmark-account-price strong{font-size:12px}.ca-bookmark-account-actions{gap:6px}.ca-bookmark-buy-link,html body .ca-bookmark-account-actions a.ca-bookmark-buy-link{padding:8px 10px;font-size:11px}.ca-bookmark-control-icon{width:35px;height:35px;top:9px;left:9px}}

.ca-single-product .ca-product-actions .ca-bookmark-control-full{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;max-width:100%;padding:0 13px;border:1px solid #d9e4dd;background:#fffdf8;color:#174b43;font-weight:800;text-decoration:none}
.ca-single-product .ca-product-actions button.ca-bookmark-control-full.is-bookmarked,.ca-single-product .ca-product-actions a.ca-bookmark-control-full.is-bookmarked{background:#174b43!important;border-color:#174b43!important;color:#fff!important}
.ca-single-product .ca-product-actions button.ca-bookmark-control-full.is-bookmarked:hover{background:#0f3c35!important;border-color:#0f3c35!important;color:#fff!important}


/* FINAL BOOKMARK COLOR GUARD — keep label/icon contrast consistent with the green palette. */
html body .ca-bookmark-control:not(.is-bookmarked),
html body .ca-bookmark-control:not(.is-bookmarked) i,
html body .ca-bookmark-control:not(.is-bookmarked) span:not(.screen-reader-text){
  color:#174b43!important;
}
html body .ca-bookmark-control:not(.is-bookmarked){
  background:#fffdf8!important;
  border-color:#d9e4dd!important;
}
html body .ca-bookmark-control:not(.is-bookmarked):hover,
html body .ca-bookmark-control:not(.is-bookmarked):hover i,
html body .ca-bookmark-control:not(.is-bookmarked):hover span:not(.screen-reader-text){
  background:#eff6f0!important;
  color:#103a34!important;
}
html body .ca-bookmark-control.is-bookmarked,
html body .ca-bookmark-control.is-bookmarked i,
html body .ca-bookmark-control.is-bookmarked span,
html body .ca-bookmark-control.is-bookmarked::before,
html body .ca-single-product .ca-product-actions .ca-bookmark-control.is-bookmarked,
html body .ca-single-product .ca-product-actions .ca-bookmark-control.is-bookmarked i,
html body .ca-single-product .ca-product-actions .ca-bookmark-control.is-bookmarked span{
  color:#fff!important;
}
html body .ca-bookmark-control.is-bookmarked,
html body .ca-single-product .ca-product-actions .ca-bookmark-control.is-bookmarked{
  background:#174b43!important;
  border-color:#174b43!important;
}
html body .ca-bookmark-control.is-bookmarked:hover,
html body .ca-bookmark-control.is-bookmarked:hover i,
html body .ca-bookmark-control.is-bookmarked:hover span{
  background:#0f3c35!important;
  border-color:#0f3c35!important;
  color:#fff!important;
}

/* Home-page product cards use a standalone, icon-only bookmark overlay (no text label). */
.cr-discovery-home .ca-home-bookmark-wrap{position:relative;min-width:0;min-height:0;height:100%;}
.cr-discovery-home .ca-home-bookmark-wrap > .ca-bookmark-control-icon{
  top:7px!important;left:7px!important;right:auto!important;z-index:30!important;
  width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;
  padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:50%!important;line-height:1!important;box-shadow:0 4px 13px rgba(23,55,45,.2)!important;
}
.cr-discovery-home .ca-home-bookmark-wrap > .ca-bookmark-control-icon i{font-size:14px!important;line-height:1!important;}
.cr-discovery-home .ca-home-bookmark-wrap > .v6-shelf-card,
.cr-discovery-home .ca-home-bookmark-wrap > .cr-pick-item,
.cr-discovery-home .ca-home-bookmark-wrap > .cr-for-you-card,
.cr-discovery-home .ca-home-bookmark-wrap > .cr-topic-mini-card{height:100%;box-sizing:border-box;}
.cr-discovery-home .v6-shelf-grid > .ca-home-bookmark-wrap,
.cr-discovery-home .cr-for-you-grid > .ca-home-bookmark-wrap{min-width:0;height:100%;}
.cr-discovery-home .cr-pick-list > .ca-home-bookmark-wrap{min-width:0;width:100%;}
.cr-discovery-home .cr-topic-mini-shelf > .ca-home-bookmark-wrap{flex:0 0 auto;min-width:0;}
@media(max-width:767px){
  .cr-discovery-home .ca-home-bookmark-wrap > .ca-bookmark-control-icon{top:6px!important;left:6px!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;}
}

/* Bookmark page final guards: keep purchase CTA text readable and cards horizontal. */
html body .ca-bookmark-account-actions a.ca-bookmark-buy-link,
html body .ca-bookmark-account-actions a.ca-bookmark-buy-link:visited,
html body .ca-bookmark-account-actions a.ca-bookmark-buy-link:hover,
html body .ca-bookmark-account-actions a.ca-bookmark-buy-link:focus,
html body .ca-bookmark-account-actions a.ca-bookmark-buy-link span,
html body .ca-bookmark-account-actions a.ca-bookmark-buy-link i{color:#fff!important;}
html body .ca-bookmark-account-grid{grid-template-columns:minmax(0,1fr)!important;}
html body .ca-bookmark-account-card{grid-template-columns:112px minmax(0,1fr)!important;}
@media(max-width:767px){html body .ca-bookmark-account-card{grid-template-columns:82px minmax(0,1fr)!important;}}

/* Final visual fixes: remove shadows from product action buttons and unify bookmark-login label color. */
html body .ca-single-product .ca-product-actions > a,
html body .ca-single-product .ca-product-actions > button,
html body .ca-single-product .ca-product-actions > a:hover,
html body .ca-single-product .ca-product-actions > button:hover,
html body .ca-single-product .ca-product-actions > a:focus,
html body .ca-single-product .ca-product-actions > button:focus,
html body .ca-single-product .ca-product-actions > a:active,
html body .ca-single-product .ca-product-actions > button:active {
  box-shadow: none !important;
  text-shadow: none !important;
}
html body .ca-single-product .ca-product-actions .ca-bookmark-control-full,
html body .ca-single-product .ca-product-actions .ca-bookmark-control-full:link,
html body .ca-single-product .ca-product-actions .ca-bookmark-control-full:visited,
html body .ca-single-product .ca-product-actions .ca-bookmark-control-full span,
html body .ca-single-product .ca-product-actions .ca-bookmark-control-full i {
  color: #174b43 !important;
  -webkit-text-fill-color: #174b43 !important;
  text-shadow: none !important;
}
html body .ca-single-product .ca-product-actions .ca-bookmark-control-full.is-bookmarked,
html body .ca-single-product .ca-product-actions .ca-bookmark-control-full.is-bookmarked span,
html body .ca-single-product .ca-product-actions .ca-bookmark-control-full.is-bookmarked i {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
/* Bookmark cards: preserve the portrait cover ratio and prevent mobile grid stretching. */
html body .ca-bookmark-account-card { align-items: start !important; }
html body .ca-bookmark-account-cover { align-self: start !important; height: auto !important; min-height: 0 !important; aspect-ratio: 2 / 3; }
html body .ca-bookmark-account-cover img { width: 100% !important; height: 100% !important; max-height: none !important; aspect-ratio: 2 / 3; object-fit: contain !important; object-position: center top !important; }
@media (max-width: 767px) {
  html body .ca-bookmark-account-card { grid-template-columns: minmax(76px, 27%) minmax(0, 1fr) !important; align-items: start !important; gap: 10px !important; }
  html body .ca-bookmark-account-cover { width: 100% !important; height: auto !important; min-height: 0 !important; aspect-ratio: 2 / 3 !important; }
  html body .ca-bookmark-account-cover img { display: block !important; width: 100% !important; height: 100% !important; max-height: none !important; object-fit: contain !important; }
  html body .ca-bookmark-account-info { min-width: 0 !important; overflow-wrap: anywhere; }
  html body .ca-bookmark-account-actions { min-width: 0 !important; }
}

/* Final fix: guest bookmark-login CTA should match the solid comment button. */
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest,
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest:link,
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest:visited,
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest:hover,
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest:focus,
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest:active {
  background: #174b43 !important;
  background-image: none !important;
  border-color: #174b43 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest span,
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest i,
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest:hover span,
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest:hover i {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest::before,
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest::after,
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest span::before,
html body .ca-single-product .ca-product-actions > a.ca-bookmark-control-full.is-guest span::after {
  background: transparent !important;
  box-shadow: none !important;
}

/* Global bookmark button color correction: all layouts, states, and color schemes. */
html body button.ca-bookmark-control,
html body a.ca-bookmark-control,
html body .ca-bookmark-control[role="button"] {
  appearance:none !important;
  -webkit-appearance:none !important;
  background-color:#fffdf8 !important;
  background-image:none !important;
  border:1px solid #d9e4dd !important;
  color:#174b43 !important;
  -webkit-text-fill-color:#174b43 !important;
  opacity:1 !important;
  text-shadow:none !important;
}
html body button.ca-bookmark-control i,
html body button.ca-bookmark-control span,
html body a.ca-bookmark-control i,
html body a.ca-bookmark-control span,
html body .ca-bookmark-control[role="button"] i,
html body .ca-bookmark-control[role="button"] span {
  color:inherit !important;
  -webkit-text-fill-color:currentColor !important;
}
html body button.ca-bookmark-control:hover,
html body a.ca-bookmark-control:hover,
html body .ca-bookmark-control[role="button"]:hover,
html body button.ca-bookmark-control:focus-visible,
html body a.ca-bookmark-control:focus-visible,
html body .ca-bookmark-control[role="button"]:focus-visible {
  background-color:#eff6f0 !important;
  border-color:#8eb9a7 !important;
  color:#103a34 !important;
  -webkit-text-fill-color:#103a34 !important;
}
html body button.ca-bookmark-control.is-bookmarked,
html body a.ca-bookmark-control.is-bookmarked,
html body .ca-bookmark-control[role="button"].is-bookmarked,
html body button.ca-bookmark-control.is-bookmarked:hover,
html body a.ca-bookmark-control.is-bookmarked:hover,
html body .ca-bookmark-control[role="button"].is-bookmarked:hover,
html body button.ca-bookmark-control.is-bookmarked:focus,
html body a.ca-bookmark-control.is-bookmarked:focus {
  background-color:#174b43 !important;
  background-image:none !important;
  border-color:#174b43 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
html body .ca-bookmark-control.is-bookmarked i,
html body .ca-bookmark-control.is-bookmarked span { color:#fff !important; -webkit-text-fill-color:#fff !important; }
html body .ca-bookmark-control-icon:not(.is-bookmarked) { background-color:rgba(255,253,248,.97) !important; color:#174b43 !important; }
html body .ca-bookmark-control-icon.is-bookmarked { background-color:#174b43 !important; color:#fff !important; }


/* AVAGLAMA FINAL PATCH: explicit bookmark contrast for every theme state. */
html body button.ca-bookmark-control-full:not(.is-bookmarked):not([data-bookmarked="1"]),
html body button.ca-bookmark-control-full:not(.is-bookmarked):not([data-bookmarked="1"]):link,
html body button.ca-bookmark-control-full:not(.is-bookmarked):not([data-bookmarked="1"]):visited,
html body button.ca-bookmark-control-full:not(.is-bookmarked):not([data-bookmarked="1"]):hover,
html body button.ca-bookmark-control-full:not(.is-bookmarked):not([data-bookmarked="1"]):focus,
html body button.ca-bookmark-control-full:not(.is-bookmarked):not([data-bookmarked="1"]):active {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #174b43 !important;
  color: #174b43 !important;
  -webkit-text-fill-color: #174b43 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
html body button.ca-bookmark-control-full:not(.is-bookmarked):not([data-bookmarked="1"]) > i,
html body button.ca-bookmark-control-full:not(.is-bookmarked):not([data-bookmarked="1"]) > span:not(.screen-reader-text) {
  display: inline !important;
  color: #174b43 !important;
  -webkit-text-fill-color: #174b43 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
html body button.ca-bookmark-control-full.is-bookmarked,
html body button.ca-bookmark-control-full[data-bookmarked="1"],
html body button.ca-bookmark-control-full.is-bookmarked:hover,
html body button.ca-bookmark-control-full[data-bookmarked="1"]:hover,
html body button.ca-bookmark-control-full.is-bookmarked:focus,
html body button.ca-bookmark-control-full[data-bookmarked="1"]:focus {
  background: #174b43 !important;
  background-color: #174b43 !important;
  background-image: none !important;
  border-color: #174b43 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
html body button.ca-bookmark-control-full.is-bookmarked > i,
html body button.ca-bookmark-control-full.is-bookmarked > span:not(.screen-reader-text),
html body button.ca-bookmark-control-full[data-bookmarked="1"] > i,
html body button.ca-bookmark-control-full[data-bookmarked="1"] > span:not(.screen-reader-text) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
html body button.ca-bookmark-control-icon:not(.is-bookmarked):not([data-bookmarked="1"]),
html body a.ca-bookmark-control-icon:not(.is-bookmarked):not([data-bookmarked="1"]) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #174b43 !important;
  color: #174b43 !important;
  -webkit-text-fill-color: #174b43 !important;
}
html body button.ca-bookmark-control-icon:not(.is-bookmarked):not([data-bookmarked="1"]) > i,
html body a.ca-bookmark-control-icon:not(.is-bookmarked):not([data-bookmarked="1"]) > i {
  color: #174b43 !important;
  -webkit-text-fill-color: #174b43 !important;
}
html body button.ca-bookmark-control-icon.is-bookmarked,
html body button.ca-bookmark-control-icon[data-bookmarked="1"],
html body a.ca-bookmark-control-icon.is-bookmarked,
html body a.ca-bookmark-control-icon[data-bookmarked="1"] {
  background: #174b43 !important;
  background-color: #174b43 !important;
  border-color: #174b43 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body button.ca-bookmark-control-icon.is-bookmarked > i,
html body button.ca-bookmark-control-icon[data-bookmarked="1"] > i,
html body a.ca-bookmark-control-icon.is-bookmarked > i,
html body a.ca-bookmark-control-icon[data-bookmarked="1"] > i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
