.share-collection-v2 {
  font-family: "Inter", "Open Sans", sans-serif;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  height: max-content !important;
  max-height: 90dvh;
  overflow: hidden;
  position: relative;
}
.share-collection-v2 .sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid #F0F0F0;
  flex-shrink: 0;
}
.share-collection-v2 .sc-header .sc-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.3;
}
.share-collection-v2 .sc-header .sc-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 0px;
}
.share-collection-v2 .sc-header .sc-close:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}
.share-collection-v2 .sc-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 28px;
}
.share-collection-v2 .sc-body::-webkit-scrollbar {
  width: 6px;
}
.share-collection-v2 .sc-body::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}
.share-collection-v2 .sc-body::-webkit-scrollbar-track {
  background: transparent;
}
.share-collection-v2 .sc-section {
  padding: 18px 0;
}
.share-collection-v2 .sc-divider {
  height: 1px;
  background: #F0F0F0;
  margin: 0 -28px;
}
.share-collection-v2 .sc-section-heading-with-icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.share-collection-v2 .sc-section-heading-with-icon .sc-send-email-btn {
  width: 35px;
  height: 35px;
  background: #F3F4F6;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  color: #111827;
  padding: 0px;
}
.share-collection-v2 .sc-section-heading-with-icon .sc-send-email-btn:hover {
  background: #E5E7EB;
}
.share-collection-v2 .sc-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.share-collection-v2 .sc-section-heading span {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}
.share-collection-v2 .sc-section-heading svg {
  flex-shrink: 0;
}
.share-collection-v2 .sc-section-heading.sc-slideshow-trigger {
  cursor: pointer;
  width: fit-content;
}
.share-collection-v2 .sc-section-heading.sc-slideshow-trigger:hover span {
  color: #111827;
  text-decoration: underline;
}
.share-collection-v2 .sc-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.share-collection-v2 .sc-url-row .sc-url-display {
  flex: 1;
  min-width: 0;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px 14px;
  overflow: hidden;
}
.share-collection-v2 .sc-url-row .sc-url-display .sc-url-text {
  font-size: 14px;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.share-collection-v2 .sc-url-row .sc-copy-btn {
  width: 40px;
  height: 40px;
  background: #F3F4F6;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  color: #111827;
}
.share-collection-v2 .sc-url-row .sc-copy-btn:hover {
  background: #E5E7EB;
}
.share-collection-v2 .sc-allow-download {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F5F5F7;
  border-radius: 10px;
  padding: 11px 14px;
}
.share-collection-v2 .sc-allow-download .sc-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #121212;
  cursor: pointer;
  flex-shrink: 0;
}
.share-collection-v2 .sc-allow-download .sc-checkbox-label {
  font-size: 15px;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
  margin: 0;
}
.share-collection-v2 .sc-add-people-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 12px;
}
.share-collection-v2 .sc-add-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-collection-v2 .sc-add-row .sc-email-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.share-collection-v2 .sc-add-row .sc-email-input:focus {
  border-color: #121212;
}
.share-collection-v2 .sc-add-row .sc-email-input::placeholder {
  color: #9CA3AF;
}
.share-collection-v2 .sc-add-row .sc-role-select-wrap {
  position: relative;
  flex-shrink: 0;
}
.share-collection-v2 .sc-add-row .sc-role-select {
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px 32px 10px 12px;
  font-size: 14px;
  color: #374151;
  background: #fff;
  appearance: none;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  transition: border-color 0.2s;
}
.share-collection-v2 .sc-add-row .sc-role-select-wrap .sc-role-select:hover, .share-collection-v2 .sc-add-row .sc-role-select-wrap .sc-role-select:focus {
  border-color: #121212;
}
.share-collection-v2 .sc-add-row .sc-add-btn {
  background: #121212;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.share-collection-v2 .sc-add-row .sc-add-btn:hover {
  background: #333333;
}
.share-collection-v2 .sc-people-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.share-collection-v2 .sc-person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F9FAFB;
}
.share-collection-v2 .sc-person-row:last-child {
  border-bottom: none;
}
.share-collection-v2 .sc-person-row .sc-person-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.share-collection-v2 .sc-person-row .sc-person-info .sc-person-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-collection-v2 .sc-person-row .sc-person-info .sc-person-email {
  font-size: 13px;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-collection-v2 .sc-person-row .sc-owner-label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  flex-shrink: 0;
}
.share-collection-v2 .sc-person-row .sc-person-role-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.share-collection-v2 .sc-person-row .sc-person-role-wrap .sc-person-role {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 6px 30px 6px 12px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  appearance: none;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}
.share-collection-v2 .sc-person-row .sc-person-role-wrap .sc-person-role:hover, .share-collection-v2 .sc-person-row .sc-person-role-wrap .sc-person-role:focus {
  border-color: #121212;
}
.share-collection-v2 .sc-person-row .sc-person-role-wrap .sc-person-remove {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #EF4444;
  font-size: 16px;
  line-height: 18px;
  border-radius: 50%;
  transition: background 0.2s;
  flex-shrink: 0;
  padding: 0px;
}
.share-collection-v2 .sc-person-row .sc-person-role-wrap .sc-person-remove:hover {
  background: #FEF2F2;
}
.share-collection-v2 .sc-general-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.share-collection-v2 .sc-general-access-row .sc-section-heading {
  margin-bottom: 0;
}


input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    position: relative;
}

input[type="checkbox"]:checked {
    background: #000;
}

input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
}

.share-collection-v2 .sc-general-access-row .sc-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #121212;
  cursor: pointer;
  flex-shrink: 0;
}
.share-collection-v2 .sc-general-access-options {
  background: #F9FAFB;
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}
.share-collection-v2 .sc-access-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #F0F0F0;
}
.share-collection-v2 .sc-access-option:last-child {
  border-bottom: none;
}
.share-collection-v2 .sc-access-option:hover {
  background: #F5F5F5;
}
.share-collection-v2 .sc-access-option.active {
  background: #F0F0F0;
}
.share-collection-v2 .sc-access-option .sc-access-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.share-collection-v2 .sc-access-option .sc-access-option-body .sc-access-option-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.share-collection-v2 .sc-access-option .sc-access-option-body .sc-access-option-desc {
  font-size: 13px;
  color: #6B7280;
}
.share-collection-v2 .sc-access-option .sc-access-check {
  flex-shrink: 0;
}
.share-collection-v2 .sc-expiry-label {
  font-size: 14px;
  color: #6B7280;
  margin: 0 0 10px;
}
.share-collection-v2 .sc-expiry-select-wrap {
  position: relative;
  width: fit-content;
}
.share-collection-v2 .sc-expiry-select-wrap .sc-expiry-select {
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  color: #374151;
  background: #fff;
  appearance: none;
  cursor: pointer;
  outline: none;
  min-width: 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  transition: border-color 0.2s;
}
.share-collection-v2 .sc-expiry-select-wrap .sc-expiry-select:hover, .share-collection-v2 .sc-expiry-select-wrap .sc-expiry-select:focus {
  border-color: #121212;
}
.share-collection-v2 .sc-social-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 12px;
}
.share-collection-v2 .sc-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.share-collection-v2 .sc-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.share-collection-v2 .sc-social-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.share-collection-v2 .sc-social-btn.sc-facebook {
  background: #1877F2;
  color: #fff;
}
.share-collection-v2 .sc-social-btn.sc-facebook i {
  color: #fff;
}
.share-collection-v2 .sc-social-btn.sc-email {
  background: #1F2937;
  color: #fff;
}
.share-collection-v2 .sc-social-btn.sc-email i {
  color: #fff;
}
.share-collection-v2 .sc-social-btn.sc-link {
  background: #F3F4F6;
  color: #111827;
  border: 1px solid #D1D5DB;
}
.share-collection-v2 .sc-social-btn.sc-link svg path {
  stroke: #111827;
}
.share-collection-v2 .share-url-collection {
  position: relative;
}
.share-collection-v2 .share-url-collection #message {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: #1F2937;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  display: none;
  pointer-events: none;
}
.share-collection-v2 .sc-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 28px;
  border-top: 1px solid #F0F0F0;
  flex-shrink: 0;
}
.share-collection-v2 .sc-footer .sc-btn-cancel {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
  border-radius: 100px;
  padding: 11px 26px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  position: relative !important;
  top: unset !important;
  right: unset !important;
  line-height: 18px;
}
.share-collection-v2 .sc-footer .sc-btn-cancel:hover {
  background: #E5E7EB;
}
.share-collection-v2 .sc-footer .sc-btn-done {
  background: #121212;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 11px 28px;
  font-size: 15px;
  line-height: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.share-collection-v2 .sc-footer .sc-btn-done:hover {
  background: #333333;
}
@media (max-width: 576px) {
  .share-collection-v2 {
    max-height: 95vh;
  }
  .share-collection-v2 .sc-header {
    padding: 16px 18px 14px;
  }
  .share-collection-v2 .sc-header .sc-title {
    font-size: 16px;
  }
  .share-collection-v2 .sc-body {
    padding: 0 18px;
  }
  .share-collection-v2 .sc-divider {
    margin: 0 -18px;
  }
  .share-collection-v2 .sc-add-row {
    flex-wrap: wrap;
  }
  .share-collection-v2 .sc-add-row .sc-email-input {
    width: 100%;
    flex: unset;
  }
  .share-collection-v2 .sc-add-row .sc-add-btn {
    margin-left: auto;
  }
  .share-collection-v2 .sc-footer {
    padding: 14px 18px;
  }
}

@media (max-width: 960px) and (max-height: 480px) and (orientation: landscape) {
  .share-collection-v2 {
    max-height: 92vh;
  }
  .share-collection-v2 .sc-header {
    padding: 12px 16px 10px;
  }
  .share-collection-v2 .sc-header .sc-title {
    font-size: 16px;
  }
  .share-collection-v2 .sc-body {
    padding: 0 16px;
  }
  .share-collection-v2 .sc-section {
    padding: 10px 0;
  }
  .share-collection-v2 .sc-divider {
    margin: 0 -16px;
  }
  .share-collection-v2 .sc-section-heading span {
    font-size: 14px;
  }
  .share-collection-v2 .sc-url-row {
    gap: 8px;
    margin-bottom: 8px;
  }
  .share-collection-v2 .sc-url-row .sc-url-display {
    padding: 8px 12px;
  }
  .share-collection-v2 .sc-url-row .sc-url-display .sc-url-text {
    font-size: 12px;
  }
  .share-collection-v2 .sc-url-row .sc-copy-btn {
    width: 34px;
    height: 34px;
  }
  .share-collection-v2 .sc-expiry-select-wrap .sc-expiry-select {
    padding: 8px 32px 8px 12px;
    font-size: 12px;
    min-width: 120px;
  }
  .share-collection-v2 .sc-add-people-label {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .share-collection-v2 .sc-add-row {
    gap: 6px;
  }
  .share-collection-v2 .sc-add-row .sc-email-input {
    padding: 8px 12px;
    font-size: 12px;
  }
  .share-collection-v2 .sc-add-row .sc-role-select {
    padding: 8px 28px 8px 10px;
    font-size: 12px;
  }
  .share-collection-v2 .sc-add-row .sc-add-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  .share-collection-v2 .sc-person-row {
    padding: 8px 0;
  }
  .share-collection-v2 .sc-person-row .sc-person-info .sc-person-name {
    font-size: 13px;
  }
  .share-collection-v2 .sc-person-row .sc-person-info .sc-person-email {
    font-size: 12px;
  }
  .share-collection-v2 .sc-person-row .sc-owner-label {
    font-size: 12px;
  }
  .share-collection-v2 .sc-person-row .sc-person-role-wrap .sc-person-role {
    padding: 4px 26px 4px 10px;
    font-size: 12px;
  }
  .share-collection-v2 .sc-person-row .sc-person-role-wrap .sc-person-remove {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  .share-collection-v2 .sc-general-access-options {
    margin-top: 8px;
  }
  .share-collection-v2 .sc-access-option {
    padding: 10px 12px;
  }
  .share-collection-v2 .sc-access-option .sc-access-option-body .sc-access-option-title {
    font-size: 12px;
  }
  .share-collection-v2 .sc-access-option .sc-access-option-body .sc-access-option-desc {
    font-size: 11px;
  }
  .share-collection-v2 .sc-footer {
    padding: 10px 16px;
    gap: 10px;
  }
  .share-collection-v2 .sc-footer .sc-btn-cancel,
  .share-collection-v2 .sc-footer .sc-btn-done {
    padding: 8px 20px;
    font-size: 13px;
  }
}

.share-collection-v2 .sc-person-row[data-status=pending] {
  animation: sc-slide-in 0.25s ease;
  background: #F5F5F5;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 2px;
}
@keyframes sc-slide-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.share-collection-v2 .sc-email-input:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}