.photobooks-page li.step{
    margin: initial;
}

.photobooks-page .icon{
    height: unset;
    width: unset;
    margin: initial;
}

.photobooks-page img{
    vertical-align: baseline;
}

/* This page class is from photobooks code*/
.photobooks-page .page,
.photobooks-page textarea{
    min-height: unset;
}

.center-1 .photobooks-page .title{
    text-align: left;
}
.html-account-page .center-2 .photobooks-page .title{
    text-align: left;
}
.center-1 .photobooks-page .Headers .title,
.center-1 .photobooks-page .HeaderItem .title,
.html-account-page .center-2 .photobooks-page .Headers .title,
.html-account-page .center-2 .photobooks-page .HeaderItem .title{
    text-align: center;
}
.photobooks-page .header{
    --nop-theme-primaryTextColor: transparent;
    height: auto;
    min-height: auto;
}
.photobooks-page .TBSB_OptionButton,
.photobooks-page .QF_SubmitButton,
.photobooks-page .PTC_PopupCloseButton{
    padding-block: 1px;
    padding-inline: 6px;
}
.photobooks-page .option-label{
    margin-bottom: 0;
}

.html-photobooks-product:not(.html-account-page) .container--designer.container--designs {
  max-width: initial;
  padding: unset;
}

.container--designer.container--designs .center-1{
    margin: initial;
}

.html-account-page .container--designer.container--designs .center-2{
    margin: initial;
}

.photobooks-page input[type="text"],
.photobooks-page input[type="email"],
.photobooks-page input[type="tel"],
.photobooks-page input[type="password"],
.photobooks-page textarea,
.photobooks-page select {
    height: unset;
    border: unset;
    vertical-align: unset;
    padding: unset;
    color: initial;
}

.photobooks-page input[type="text"]:focus
{
    color: initial;
}

@media (min-width: 901px) {
  .html-photobooks-product .master-wrapper-page {
    overflow-x: clip;
  }
}

@media (min-width: 992px) {
  .html-account-page .photobooks-page {
    margin-left: 100px;
    width: calc(100% - 100px);
  }
}

@media (min-width: 1050px) and (max-width: 1399px) {
  .html-account-page .photobooks-page .ProjectsList.saved-projects table {
    zoom: 70%;
  }
}

@media (max-width: 767px) {
  .photobooks-page .custom-description-column {
    text-align: left;
  }
}

/* Shared overlay for both the logged-in "design saved" confirmation (Figma node 15:2599)
   and the logged-out "save your design" prompt (Figma node 15:2555). */
.photobooks-auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.photobooks-auth-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin: 16px;
    padding: 32px;
    background: #ffffff;
    border-radius: 8px;
}

.photobooks-auth-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    padding: 10px;
    gap: 10px;
    border: 1px solid #E5E7EB;
    border-radius: 40px;
    background: transparent;
    opacity: 0.8;
    cursor: pointer;
}

.photobooks-auth-modal__close svg {
    width: 10px;
    height: 10px;
}

.photobooks-auth-modal__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Pink icon circle + cloud-upload glyph (#facce74d bg, #e50085 icon) */
.photobooks-auth-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #facce74d;
    flex-shrink: 0;
}

.photobooks-auth-modal__icon svg {
    width: 32px;
    height: 32px;
    fill: #e50085;
}

.photobooks-auth-modal__body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.photobooks-auth-modal__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.photobooks-auth-modal__title {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: normal;
    text-align: center;
    vertical-align: middle;
    color: #505D77;
}

.photobooks-auth-modal__message {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: normal;
    text-align: center;
    vertical-align: middle;
    color: #333333;
}

.photobooks-auth-modal__message-highlight {
    font-weight: 600;
}

.photobooks-auth-modal__message-body {
    letter-spacing: 0.02em;
    color: #2C2C2C;
}

/* The "My Account -> My Photobooks" run in the "Design saved" modal is a real link so the
   AC about correct navigation is met, but Figma shows it as plain bold text, not a styled
   link - override the theme's generic a/a:hover (underline + orange). */
.photobooks-auth-modal__message-link {
    text-decoration: none;
}

.photobooks-auth-modal__message-link:hover,
.photobooks-auth-modal__message-link:focus {
    color: #2C2C2C;
    text-decoration: underline;
}

.photobooks-auth-modal__actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.photobooks-auth-modal__button {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px solid transparent;
    border-radius: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
}

/* Reserved for the leading/trailing icon slots in the Figma button spec; left empty since
   no icon asset was specified for Register/Sign in. */
.photobooks-auth-modal__button-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.photobooks-auth-modal__button--register {
    background: #ffffff;
    border-color: #e50085;
    color: #e50085;
}

.photobooks-auth-modal__button--login {
    background: #e50085;
    border-color: #e50085;
    color: #ffffff;
}

/* Overrides the theme's generic a:hover (underline + orange, both unscoped and lower
   specificity than these selectors) - these are buttons, not text links, so hover should
   only darken the existing pink accent, no underline. */
.photobooks-auth-modal__button--register:hover,
.photobooks-auth-modal__button--register:focus {
    background: #fdf2f8;
    border-color: #c2006e;
    color: #c2006e;
    text-decoration: none;
}

.photobooks-auth-modal__button--login:hover,
.photobooks-auth-modal__button--login:focus {
    background: #c2006e;
    border-color: #c2006e;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 480px) {
    .photobooks-auth-modal {
        padding: 24px;
    }
}
